diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 4067d89b..c3062e48 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -114,6 +114,13 @@ jobs: env: RUSTFLAGS: --cfg=web_sys_unstable_apis + - job: check_web_sys + displayName: "Verify that web-sys is compiled correctly" + steps: + - template: ci/azure-install-rust.yml + - script: cd crates/web-sys && cargo run --release --package wasm-bindgen-webidl webidls src/features + - script: git diff --exit-code + - job: test_js_sys displayName: "Run js-sys crate tests" steps: diff --git a/crates/backend/src/ast.rs b/crates/backend/src/ast.rs index 63e626fe..303618c1 100644 --- a/crates/backend/src/ast.rs +++ b/crates/backend/src/ast.rs @@ -17,18 +17,24 @@ pub struct Program { pub enums: Vec, /// rust structs pub structs: Vec, - /// rust consts - pub consts: Vec, - /// "dictionaries", generated for WebIDL, which are basically just "typed - /// objects" in the sense that they represent a JS object with a particular - /// shape in JIT parlance. - pub dictionaries: Vec, /// custom typescript sections to be included in the definition file pub typescript_custom_sections: Vec, /// Inline JS snippets pub inline_js: Vec, } +impl Program { + /// Returns true if the Program is empty + pub fn is_empty(&self) -> bool { + self.exports.is_empty() + && self.imports.is_empty() + && self.enums.is_empty() + && self.structs.is_empty() + && self.typescript_custom_sections.is_empty() + && self.inline_js.is_empty() + } +} + /// A rust to js interface. Allows interaction with rust objects/functions /// from javascript. #[cfg_attr(feature = "extra-traits", derive(Debug))] @@ -51,8 +57,6 @@ pub struct Export { /// Whether or not this function should be flagged as the wasm start /// function. pub start: bool, - /// Whether the API is unstable. This is only used internally. - pub unstable_api: bool, } /// The 3 types variations of `self`. @@ -73,7 +77,6 @@ pub struct Import { pub module: ImportModule, pub js_namespace: Option, pub kind: ImportKind, - pub unstable_api: bool, } #[cfg_attr(feature = "extra-traits", derive(Debug))] @@ -129,7 +132,6 @@ pub struct ImportFunction { pub kind: ImportFunctionKind, pub shim: Ident, pub doc_comment: Option, - pub unstable_api: bool, } #[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq, Eq))] @@ -185,8 +187,7 @@ pub struct ImportType { pub rust_name: Ident, pub js_name: String, pub attrs: Vec, - pub typescript_name: Option, - pub unstable_api: bool, + pub typescript_type: Option, pub doc_comment: Option, pub instanceof_shim: String, pub is_type_of: Option, @@ -207,8 +208,6 @@ pub struct ImportEnum { pub variant_values: Vec, /// Attributes to apply to the Rust enum pub rust_attrs: Vec, - /// Whether the enum is part of an unstable WebIDL - pub unstable_api: bool, } #[cfg_attr(feature = "extra-traits", derive(Debug))] @@ -244,7 +243,6 @@ pub struct StructField { pub getter: Ident, pub setter: Ident, pub comments: Vec, - pub unstable_api: bool, } #[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq, Eq))] @@ -254,7 +252,6 @@ pub struct Enum { pub variants: Vec, pub comments: Vec, pub hole: u32, - pub unstable_api: bool, } #[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq, Eq))] @@ -279,49 +276,6 @@ pub enum TypeLocation { ExportRet, } -#[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq))] -#[derive(Clone)] -pub struct Const { - pub vis: syn::Visibility, - pub name: Ident, - pub class: Option, - pub ty: syn::Type, - pub value: ConstValue, - pub unstable_api: bool, -} - -#[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq))] -#[derive(Clone)] -/// same as webidl::ast::ConstValue -pub enum ConstValue { - BooleanLiteral(bool), - FloatLiteral(f64), - SignedIntegerLiteral(i64), - UnsignedIntegerLiteral(u64), - Null, -} - -#[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq, Eq))] -#[derive(Clone)] -pub struct Dictionary { - pub name: Ident, - pub fields: Vec, - pub ctor: bool, - pub doc_comment: Option, - pub ctor_doc_comment: Option, - pub unstable_api: bool, -} - -#[cfg_attr(feature = "extra-traits", derive(Debug, PartialEq, Eq))] -#[derive(Clone)] -pub struct DictionaryField { - pub rust_name: Ident, - pub js_name: String, - pub required: bool, - pub ty: syn::Type, - pub doc_comment: Option, -} - impl Export { /// Mangles a rust -> javascript export, so that the created Ident will be unique over function /// name and class name, if the function belongs to a javascript class. diff --git a/crates/backend/src/codegen.rs b/crates/backend/src/codegen.rs index fff2275e..ba515c0a 100644 --- a/crates/backend/src/codegen.rs +++ b/crates/backend/src/codegen.rs @@ -1,6 +1,6 @@ use crate::ast; use crate::encode; -use crate::util::{self, ShortHash}; +use crate::util::ShortHash; use crate::Diagnostic; use proc_macro2::{Ident, Literal, Span, TokenStream}; use quote::{quote, ToTokens}; @@ -39,11 +39,7 @@ impl TryToTokens for ast::Program { } } for i in self.imports.iter() { - DescribeImport { - kind: &i.kind, - unstable_api: i.unstable_api, - } - .to_tokens(tokens); + DescribeImport { kind: &i.kind }.to_tokens(tokens); // If there is a js namespace, check that name isn't a type. If it is, // this import might be a method on that type. @@ -68,12 +64,6 @@ impl TryToTokens for ast::Program { for e in self.enums.iter() { e.to_tokens(tokens); } - for c in self.consts.iter() { - c.to_tokens(tokens); - } - for d in self.dictionaries.iter() { - d.to_tokens(tokens); - } Diagnostic::from_vec(errors)?; @@ -305,7 +295,7 @@ impl ToTokens for ast::StructField { inner: quote! { <#ty as WasmDescribe>::describe(); }, - unstable_api: self.unstable_api, + attrs: vec![], } .to_tokens(tokens); @@ -542,7 +532,7 @@ impl TryToTokens for ast::Export { #(<#argtys as WasmDescribe>::describe();)* #describe_ret }, - unstable_api: self.unstable_api, + attrs: attrs.clone(), } .to_tokens(into); @@ -568,7 +558,6 @@ impl ToTokens for ast::ImportType { let vis = &self.vis; let rust_name = &self.rust_name; let attrs = &self.attrs; - let unstable_api_attr = util::maybe_unstable_api_attr(self.unstable_api); let doc_comment = match &self.doc_comment { None => "", Some(comment) => comment, @@ -586,14 +575,14 @@ impl ToTokens for ast::ImportType { } }; - let description = if let Some(typescript_name) = &self.typescript_name { - let typescript_name_len = typescript_name.len() as u32; - let typescript_name_chars = typescript_name.chars().map(|c| c as u32); + let description = if let Some(typescript_type) = &self.typescript_type { + let typescript_type_len = typescript_type.len() as u32; + let typescript_type_chars = typescript_type.chars().map(|c| c as u32); quote! { use wasm_bindgen::describe::*; inform(NAMED_ANYREF); - inform(#typescript_name_len); - #(inform(#typescript_name_chars);)* + inform(#typescript_type_len); + #(inform(#typescript_type_chars);)* } } else { quote! { @@ -617,14 +606,12 @@ impl ToTokens for ast::ImportType { #[doc = #doc_comment] #[repr(transparent)] #[allow(clippy::all)] - #unstable_api_attr #vis struct #rust_name { obj: #internal_obj } #[allow(bad_style)] #[allow(clippy::all)] - #unstable_api_attr const #const_name: () = { use wasm_bindgen::convert::{IntoWasmAbi, FromWasmAbi}; use wasm_bindgen::convert::{OptionIntoWasmAbi, OptionFromWasmAbi}; @@ -775,7 +762,6 @@ impl ToTokens for ast::ImportType { for superclass in self.extends.iter() { (quote! { #[allow(clippy::all)] - #unstable_api_attr impl From<#rust_name> for #superclass { #[inline] fn from(obj: #rust_name) -> #superclass { @@ -785,7 +771,6 @@ impl ToTokens for ast::ImportType { } #[allow(clippy::all)] - #unstable_api_attr impl AsRef<#superclass> for #rust_name { #[inline] fn as_ref(&self) -> &#superclass { @@ -807,7 +792,6 @@ impl ToTokens for ast::ImportEnum { let variants = &self.variants; let variant_strings = &self.variant_values; let attrs = &self.rust_attrs; - let unstable_api_attr = util::maybe_unstable_api_attr(self.unstable_api); let mut current_idx: usize = 0; let variant_indexes: Vec = variants @@ -836,7 +820,6 @@ impl ToTokens for ast::ImportEnum { #[allow(bad_style)] #(#attrs)* #[allow(clippy::all)] - #unstable_api_attr #vis enum #name { #(#variants = #variant_indexes_ref,)* #[doc(hidden)] @@ -844,69 +827,70 @@ impl ToTokens for ast::ImportEnum { } #[allow(clippy::all)] - #unstable_api_attr impl #name { - #vis fn from_js_value(obj: &wasm_bindgen::JsValue) -> Option<#name> { - obj.as_string().and_then(|obj_str| match obj_str.as_str() { + fn from_str(s: &str) -> Option<#name> { + match s { #(#variant_strings => Some(#variant_paths_ref),)* _ => None, - }) + } + } + + fn to_str(&self) -> &'static str { + match self { + #(#variant_paths_ref => #variant_strings,)* + #name::__Nonexhaustive => panic!(#expect_string), + } + } + + #vis fn from_js_value(obj: &wasm_bindgen::JsValue) -> Option<#name> { + obj.as_string().and_then(|obj_str| Self::from_str(obj_str.as_str())) } } + // It should really be using &str for all of these, but that requires some major changes to cli-support #[allow(clippy::all)] - #unstable_api_attr impl wasm_bindgen::describe::WasmDescribe for #name { fn describe() { - wasm_bindgen::JsValue::describe() + ::describe() } } #[allow(clippy::all)] - #unstable_api_attr impl wasm_bindgen::convert::IntoWasmAbi for #name { - type Abi = ::Abi; + type Abi = ::Abi; #[inline] fn into_abi(self) -> Self::Abi { - wasm_bindgen::JsValue::from(self).into_abi() + ::into_abi(self.into()) } } #[allow(clippy::all)] - #unstable_api_attr impl wasm_bindgen::convert::FromWasmAbi for #name { - type Abi = ::Abi; + type Abi = ::Abi; unsafe fn from_abi(js: Self::Abi) -> Self { - #name::from_js_value(&wasm_bindgen::JsValue::from_abi(js)).unwrap_or(#name::__Nonexhaustive) + let s = ::from_abi(js); + #name::from_js_value(&s).unwrap_or(#name::__Nonexhaustive) } } #[allow(clippy::all)] - #unstable_api_attr impl wasm_bindgen::convert::OptionIntoWasmAbi for #name { #[inline] - fn none() -> Self::Abi { Object::none() } + fn none() -> Self::Abi { <::js_sys::Object as wasm_bindgen::convert::OptionIntoWasmAbi>::none() } } #[allow(clippy::all)] - #unstable_api_attr impl wasm_bindgen::convert::OptionFromWasmAbi for #name { #[inline] - fn is_none(abi: &Self::Abi) -> bool { Object::is_none(abi) } + fn is_none(abi: &Self::Abi) -> bool { <::js_sys::Object as wasm_bindgen::convert::OptionFromWasmAbi>::is_none(abi) } } #[allow(clippy::all)] - #unstable_api_attr impl From<#name> for wasm_bindgen::JsValue { fn from(obj: #name) -> wasm_bindgen::JsValue { - match obj { - #(#variant_paths_ref => wasm_bindgen::JsValue::from_str(#variant_strings),)* - #name::__Nonexhaustive => panic!(#expect_string), - } + wasm_bindgen::JsValue::from(obj.to_str()) } } }).to_tokens(tokens); @@ -1012,7 +996,6 @@ impl TryToTokens for ast::ImportFunction { let arguments = &arguments; let abi_arguments = &abi_arguments; let abi_argument_names = &abi_argument_names; - let unstable_api_attr = util::maybe_unstable_api_attr(self.unstable_api); let doc_comment = match &self.doc_comment { None => "", @@ -1041,6 +1024,7 @@ impl TryToTokens for ast::ImportFunction { // the best we can in the meantime. let extern_fn = respan( quote! { + #(#attrs)* #[link(wasm_import_module = "__wbindgen_placeholder__")] #[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))] extern "C" { @@ -1079,7 +1063,6 @@ impl TryToTokens for ast::ImportFunction { if let Some(class) = class_ty { (quote! { - #unstable_api_attr impl #class { #invocation } @@ -1096,7 +1079,6 @@ impl TryToTokens for ast::ImportFunction { // See comment above in ast::Export for what's going on here. struct DescribeImport<'a> { kind: &'a ast::ImportKind, - unstable_api: bool, } impl<'a> ToTokens for DescribeImport<'a> { @@ -1123,7 +1105,7 @@ impl<'a> ToTokens for DescribeImport<'a> { #(<#argtys as WasmDescribe>::describe();)* #inform_ret }, - unstable_api: self.unstable_api, + attrs: f.function.rust_attrs.clone(), } .to_tokens(tokens); } @@ -1133,7 +1115,6 @@ impl ToTokens for ast::Enum { fn to_tokens(&self, into: &mut TokenStream) { let enum_name = &self.name; let hole = &self.hole; - let unstable_api_attr = util::maybe_unstable_api_attr(self.unstable_api); let cast_clauses = self.variants.iter().map(|variant| { let variant_name = &variant.name; quote! { @@ -1144,7 +1125,6 @@ impl ToTokens for ast::Enum { }); (quote! { #[allow(clippy::all)] - #unstable_api_attr impl wasm_bindgen::convert::IntoWasmAbi for #enum_name { type Abi = u32; @@ -1155,7 +1135,6 @@ impl ToTokens for ast::Enum { } #[allow(clippy::all)] - #unstable_api_attr impl wasm_bindgen::convert::FromWasmAbi for #enum_name { type Abi = u32; @@ -1168,21 +1147,18 @@ impl ToTokens for ast::Enum { } #[allow(clippy::all)] - #unstable_api_attr impl wasm_bindgen::convert::OptionFromWasmAbi for #enum_name { #[inline] fn is_none(val: &u32) -> bool { *val == #hole } } #[allow(clippy::all)] - #unstable_api_attr impl wasm_bindgen::convert::OptionIntoWasmAbi for #enum_name { #[inline] fn none() -> Self::Abi { #hole } } #[allow(clippy::all)] - #unstable_api_attr impl wasm_bindgen::describe::WasmDescribe for #enum_name { fn describe() { use wasm_bindgen::describe::*; @@ -1233,259 +1209,18 @@ impl ToTokens for ast::ImportStatic { inner: quote! { <#ty as WasmDescribe>::describe(); }, - unstable_api: false, + attrs: vec![], } .to_tokens(into); } } -impl ToTokens for ast::Const { - fn to_tokens(&self, tokens: &mut TokenStream) { - use crate::ast::ConstValue::*; - - let vis = &self.vis; - let name = &self.name; - let ty = &self.ty; - let unstable_api_attr = util::maybe_unstable_api_attr(self.unstable_api); - - let value: TokenStream = match self.value { - BooleanLiteral(false) => quote!(false), - BooleanLiteral(true) => quote!(true), - // the actual type is unknown because of typedefs - // so we cannot use std::fxx::INFINITY - // but we can use type inference - FloatLiteral(f) if f.is_infinite() && f.is_sign_positive() => quote!(1.0 / 0.0), - FloatLiteral(f) if f.is_infinite() && f.is_sign_negative() => quote!(-1.0 / 0.0), - FloatLiteral(f) if f.is_nan() => quote!(0.0 / 0.0), - // again no suffix - // panics on +-inf, nan - FloatLiteral(f) => { - let f = Literal::f64_suffixed(f); - quote!(#f) - } - SignedIntegerLiteral(i) => { - let i = Literal::i64_suffixed(i); - quote!(#i) - } - UnsignedIntegerLiteral(i) => { - let i = Literal::u64_suffixed(i); - quote!(#i) - } - Null => unimplemented!(), - }; - - let declaration = quote!(#vis const #name: #ty = #value as #ty;); - - if let Some(class) = &self.class { - (quote! { - #unstable_api_attr - impl #class { - #declaration - } - }) - .to_tokens(tokens); - } else { - declaration.to_tokens(tokens); - } - } -} - -impl ToTokens for ast::Dictionary { - fn to_tokens(&self, tokens: &mut TokenStream) { - let unstable_api_attr = util::maybe_unstable_api_attr(self.unstable_api); - let name = &self.name; - let mut methods = TokenStream::new(); - for field in self.fields.iter() { - field.to_tokens(&mut methods); - } - let required_names = &self - .fields - .iter() - .filter(|f| f.required) - .map(|f| &f.rust_name) - .collect::>(); - let required_types = &self - .fields - .iter() - .filter(|f| f.required) - .map(|f| &f.ty) - .collect::>(); - let required_names2 = required_names; - let required_names3 = required_names; - let doc_comment = match &self.doc_comment { - None => "", - Some(doc_string) => doc_string, - }; - - let ctor = if self.ctor { - let doc_comment = match &self.ctor_doc_comment { - None => "", - Some(doc_string) => doc_string, - }; - quote! { - #[doc = #doc_comment] - pub fn new(#(#required_names: #required_types),*) -> #name { - let mut _ret = #name { obj: ::js_sys::Object::new() }; - #(_ret.#required_names2(#required_names3);)* - return _ret - } - } - } else { - quote! {} - }; - - let const_name = Ident::new(&format!("_CONST_{}", name), Span::call_site()); - (quote! { - #[derive(Clone, Debug)] - #[repr(transparent)] - #[allow(clippy::all)] - #[doc = #doc_comment] - #unstable_api_attr - pub struct #name { - obj: ::js_sys::Object, - } - - #[allow(clippy::all)] - #unstable_api_attr - impl #name { - #ctor - #methods - } - - #[allow(bad_style)] - #[allow(clippy::all)] - #unstable_api_attr - const #const_name: () = { - use js_sys::Object; - use wasm_bindgen::describe::WasmDescribe; - use wasm_bindgen::convert::*; - use wasm_bindgen::{JsValue, JsCast}; - use wasm_bindgen::__rt::core::mem::ManuallyDrop; - - // interop w/ JsValue - impl From<#name> for JsValue { - #[inline] - fn from(val: #name) -> JsValue { - val.obj.into() - } - } - impl AsRef for #name { - #[inline] - fn as_ref(&self) -> &JsValue { self.obj.as_ref() } - } - - // Boundary conversion impls - impl WasmDescribe for #name { - fn describe() { - Object::describe(); - } - } - - impl IntoWasmAbi for #name { - type Abi = ::Abi; - #[inline] - fn into_abi(self) -> Self::Abi { - self.obj.into_abi() - } - } - - impl<'a> IntoWasmAbi for &'a #name { - type Abi = <&'a Object as IntoWasmAbi>::Abi; - #[inline] - fn into_abi(self) -> Self::Abi { - (&self.obj).into_abi() - } - } - - impl FromWasmAbi for #name { - type Abi = ::Abi; - #[inline] - unsafe fn from_abi(abi: Self::Abi) -> Self { - #name { obj: Object::from_abi(abi) } - } - } - - impl OptionIntoWasmAbi for #name { - #[inline] - fn none() -> Self::Abi { Object::none() } - } - impl<'a> OptionIntoWasmAbi for &'a #name { - #[inline] - fn none() -> Self::Abi { <&'a Object>::none() } - } - impl OptionFromWasmAbi for #name { - #[inline] - fn is_none(abi: &Self::Abi) -> bool { Object::is_none(abi) } - } - - impl RefFromWasmAbi for #name { - type Abi = ::Abi; - type Anchor = ManuallyDrop<#name>; - - #[inline] - unsafe fn ref_from_abi(js: Self::Abi) -> Self::Anchor { - let tmp = ::ref_from_abi(js); - ManuallyDrop::new(#name { - obj: ManuallyDrop::into_inner(tmp), - }) - } - } - - impl JsCast for #name { - #[inline] - fn instanceof(val: &JsValue) -> bool { - Object::instanceof(val) - } - - #[inline] - fn unchecked_from_js(val: JsValue) -> Self { - #name { obj: Object::unchecked_from_js(val) } - } - - #[inline] - fn unchecked_from_js_ref(val: &JsValue) -> &Self { - unsafe { &*(val as *const JsValue as *const #name) } - } - } - }; - }) - .to_tokens(tokens); - } -} - -impl ToTokens for ast::DictionaryField { - fn to_tokens(&self, tokens: &mut TokenStream) { - let rust_name = &self.rust_name; - let js_name = &self.js_name; - let ty = &self.ty; - let doc_comment = match &self.doc_comment { - None => "", - Some(doc_string) => doc_string, - }; - (quote! { - #[allow(clippy::all)] - #[doc = #doc_comment] - pub fn #rust_name(&mut self, val: #ty) -> &mut Self { - use wasm_bindgen::JsValue; - let r = ::js_sys::Reflect::set( - self.obj.as_ref(), - &JsValue::from(#js_name), - &JsValue::from(val), - ); - debug_assert!(r.is_ok(), "setting properties should never fail on our dictionary objects"); - let _ = r; - self - } - }).to_tokens(tokens); - } -} - /// Emits the necessary glue tokens for "descriptor", generating an appropriate /// symbol name as well as attributes around the descriptor function itself. struct Descriptor<'a, T> { ident: &'a Ident, inner: T, - unstable_api: bool, + attrs: Vec, } impl<'a, T: ToTokens> ToTokens for Descriptor<'a, T> { @@ -1513,15 +1248,15 @@ impl<'a, T: ToTokens> ToTokens for Descriptor<'a, T> { } let name = Ident::new(&format!("__wbindgen_describe_{}", ident), ident.span()); - let unstable_api_attr = util::maybe_unstable_api_attr(self.unstable_api); let inner = &self.inner; + let attrs = &self.attrs; (quote! { + #(#attrs)* #[no_mangle] #[allow(non_snake_case)] #[doc(hidden)] #[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))] #[allow(clippy::all)] - #unstable_api_attr pub extern "C" fn #name() { use wasm_bindgen::describe::*; // See definition of `link_mem_intrinsics` for what this is doing diff --git a/crates/backend/src/defined.rs b/crates/backend/src/defined.rs deleted file mode 100644 index 4320f2c1..00000000 --- a/crates/backend/src/defined.rs +++ /dev/null @@ -1,403 +0,0 @@ -use crate::ast; -use proc_macro2::Ident; -use syn; - -#[derive(Debug, Clone, Copy, PartialEq, Eq)] -pub enum ImportedTypeKind { - /// The definition of an imported type. - Definition, - /// A reference to an imported type. - Reference, -} - -impl ImportedTypes for Option -where - T: ImportedTypes, -{ - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - if let Some(inner) = self { - inner.imported_types(f); - } - } -} - -/// Iterate over definitions of and references to imported types in the AST. -pub trait ImportedTypes { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind); -} - -/// Iterate over definitions of imported types in the AST. -pub trait ImportedTypeDefinitions { - fn imported_type_definitions(&self, f: &mut F) - where - F: FnMut(&Ident); -} - -impl ImportedTypeDefinitions for T -where - T: ImportedTypes, -{ - fn imported_type_definitions(&self, f: &mut F) - where - F: FnMut(&Ident), - { - self.imported_types(&mut |id, kind| { - if let ImportedTypeKind::Definition = kind { - f(id); - } - }); - } -} - -/// Iterate over references to imported types in the AST. -pub trait ImportedTypeReferences { - fn imported_type_references(&self, f: &mut F) - where - F: FnMut(&Ident); -} - -impl ImportedTypeReferences for T -where - T: ImportedTypes, -{ - fn imported_type_references(&self, f: &mut F) - where - F: FnMut(&Ident), - { - self.imported_types(&mut |id, kind| { - if let ImportedTypeKind::Reference = kind { - f(id); - } - }); - } -} - -impl<'a, T: ImportedTypes> ImportedTypes for &'a T { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - (*self).imported_types(f) - } -} - -impl ImportedTypes for ast::Program { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - self.imports.imported_types(f); - self.consts.imported_types(f); - self.dictionaries.imported_types(f); - } -} - -impl ImportedTypes for Vec -where - T: ImportedTypes, -{ - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - for x in self { - x.imported_types(f); - } - } -} - -impl ImportedTypes for ast::Import { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - self.kind.imported_types(f) - } -} - -impl ImportedTypes for ast::ImportKind { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - match self { - ast::ImportKind::Static(s) => s.imported_types(f), - ast::ImportKind::Function(fun) => fun.imported_types(f), - ast::ImportKind::Type(ty) => ty.imported_types(f), - ast::ImportKind::Enum(enm) => enm.imported_types(f), - } - } -} - -impl ImportedTypes for ast::ImportStatic { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - self.ty.imported_types(f); - } -} - -impl ImportedTypes for syn::Type { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - match self { - syn::Type::Reference(ref r) => r.imported_types(f), - syn::Type::Path(ref p) => p.imported_types(f), - _ => {} - } - } -} - -impl ImportedTypes for syn::TypeReference { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - self.elem.imported_types(f); - } -} - -impl ImportedTypes for syn::TypePath { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - self.qself.imported_types(f); - self.path.imported_types(f); - } -} - -impl ImportedTypes for syn::QSelf { - fn imported_types(&self, _: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - // TODO - } -} - -impl ImportedTypes for syn::Path { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - for seg in self.segments.iter() { - seg.arguments.imported_types(f); - } - f( - &self.segments.last().unwrap().ident, - ImportedTypeKind::Reference, - ); - } -} - -impl ImportedTypes for syn::PathArguments { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - match self { - syn::PathArguments::AngleBracketed(data) => { - for arg in data.args.iter() { - arg.imported_types(f); - } - } - //TOCHECK - syn::PathArguments::Parenthesized(data) => { - for input in data.inputs.iter() { - input.imported_types(f); - } - // TODO do we need to handle output here? - // https://docs.rs/syn/0.14.0/syn/struct.ParenthesizedGenericArguments.html - } - syn::PathArguments::None => {} - } - } -} - -impl ImportedTypes for syn::GenericArgument { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - match self { - syn::GenericArgument::Lifetime(_) => {} - syn::GenericArgument::Type(ty) => ty.imported_types(f), - syn::GenericArgument::Binding(_) => {} // TODO - syn::GenericArgument::Const(_) => {} // TODO - syn::GenericArgument::Constraint(_) => {} // TODO - } - } -} - -impl ImportedTypes for ast::ImportFunction { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - self.function.imported_types(f); - self.kind.imported_types(f); - } -} - -impl ImportedTypes for ast::ImportFunctionKind { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - match self { - ast::ImportFunctionKind::Method { ty, .. } => ty.imported_types(f), - ast::ImportFunctionKind::Normal => {} - } - } -} - -impl ImportedTypes for ast::Function { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - self.arguments.imported_types(f); - if let Some(ref r) = self.ret { - r.imported_types(f); - } - } -} - -impl ImportedTypes for syn::FnArg { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - match self { - syn::FnArg::Receiver(_) => {} - syn::FnArg::Typed(p) => p.imported_types(f), - } - } -} - -impl ImportedTypes for syn::PatType { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - self.ty.imported_types(f) - } -} - -impl ImportedTypes for ast::ImportType { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - f(&self.rust_name, ImportedTypeKind::Definition); - for class in self.extends.iter() { - class.imported_types(f); - } - } -} - -impl ImportedTypes for ast::ImportEnum { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - f(&self.name, ImportedTypeKind::Definition); - } -} - -impl ImportedTypes for ast::Const { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - self.ty.imported_types(f); - } -} - -impl ImportedTypes for ast::Dictionary { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - f(&self.name, ImportedTypeKind::Definition); - for field in self.fields.iter() { - field.imported_types(f); - } - } -} - -impl ImportedTypes for ast::DictionaryField { - fn imported_types(&self, f: &mut F) - where - F: FnMut(&Ident, ImportedTypeKind), - { - self.ty.imported_types(f); - } -} - -/// Remove any methods, statics, &c, that reference types that are *not* -/// defined. -pub trait RemoveUndefinedImports { - fn remove_undefined_imports(&mut self, is_defined: &F) -> bool - where - F: Fn(&Ident) -> bool; -} - -impl RemoveUndefinedImports for ast::Program { - fn remove_undefined_imports(&mut self, is_defined: &F) -> bool - where - F: Fn(&Ident) -> bool, - { - let mut changed = self.imports.remove_undefined_imports(is_defined); - changed = self.consts.remove_undefined_imports(is_defined) || changed; - - for dictionary in self.dictionaries.iter_mut() { - let num_required = - |dict: &ast::Dictionary| dict.fields.iter().filter(|f| f.required).count(); - let before = num_required(dictionary); - changed = dictionary.fields.remove_undefined_imports(is_defined) || changed; - - // If a required field was removed we can no longer construct this - // dictionary so disable the constructor. - if before != num_required(dictionary) { - dictionary.ctor = false; - } - } - - changed - } -} - -impl RemoveUndefinedImports for Vec -where - T: ImportedTypeReferences, -{ - fn remove_undefined_imports(&mut self, is_defined: &F) -> bool - where - F: Fn(&Ident) -> bool, - { - let before = self.len(); - self.retain(|x| { - let mut all_defined = true; - x.imported_type_references(&mut |id| { - if all_defined { - if !is_defined(id) { - log::info!("removing due to {} not being defined", id); - all_defined = false; - } - } - }); - all_defined - }); - before != self.len() - } -} diff --git a/crates/backend/src/encode.rs b/crates/backend/src/encode.rs index 081a52cf..d60e34c6 100644 --- a/crates/backend/src/encode.rs +++ b/crates/backend/src/encode.rs @@ -188,7 +188,6 @@ fn shared_export<'a>( function: shared_function(&export.function, intern), method_kind, start: export.start, - unstable_api: export.unstable_api, }) } diff --git a/crates/backend/src/lib.rs b/crates/backend/src/lib.rs index e3cd679e..bd1850e7 100644 --- a/crates/backend/src/lib.rs +++ b/crates/backend/src/lib.rs @@ -10,6 +10,5 @@ mod error; pub mod ast; mod codegen; -pub mod defined; mod encode; pub mod util; diff --git a/crates/backend/src/util.rs b/crates/backend/src/util.rs index 756bc14a..950ae9b4 100644 --- a/crates/backend/src/util.rs +++ b/crates/backend/src/util.rs @@ -113,12 +113,10 @@ pub fn ident_ty(ident: Ident) -> syn::Type { } pub fn wrap_import_function(function: ast::ImportFunction) -> ast::Import { - let unstable_api = function.unstable_api; ast::Import { module: ast::ImportModule::None, js_namespace: None, kind: ast::ImportKind::Function(function), - unstable_api, } } @@ -156,19 +154,3 @@ impl fmt::Display for ShortHash { write!(f, "{:016x}", h.finish()) } } - -/// Create syn attribute for `#[cfg(web_sys_unstable_apis)]` and a doc comment. -pub fn unstable_api_attrs() -> proc_macro2::TokenStream { - quote::quote!( - #[cfg(web_sys_unstable_apis)] - #[doc = "\n\n*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as [described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] - ) -} - -pub fn maybe_unstable_api_attr(unstable_api: bool) -> Option { - if unstable_api { - Some(unstable_api_attrs()) - } else { - None - } -} diff --git a/crates/cli-support/src/js/mod.rs b/crates/cli-support/src/js/mod.rs index bed08f8a..4e6bb310 100644 --- a/crates/cli-support/src/js/mod.rs +++ b/crates/cli-support/src/js/mod.rs @@ -4,7 +4,7 @@ use crate::wit::{Adapter, AdapterId, AdapterJsImportKind, AuxValue}; use crate::wit::{AdapterKind, Instruction, InstructionData}; use crate::wit::{AuxEnum, AuxExport, AuxExportKind, AuxImport, AuxStruct}; use crate::wit::{JsImport, JsImportName, NonstandardWitSection, WasmBindgenAux}; -use crate::{Bindgen, EncodeInto, OutputMode}; +use crate::{reset_indentation, Bindgen, EncodeInto, OutputMode, PLACEHOLDER_MODULE}; use anyhow::{anyhow, bail, Context as _, Error}; use std::borrow::Cow; use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; @@ -188,6 +188,85 @@ impl<'a> Context<'a> { self.finalize_js(module_name, needs_manual_start) } + fn generate_node_imports(&self) -> String { + let mut imports = BTreeSet::new(); + for import in self.module.imports.iter() { + imports.insert(&import.module); + } + + let mut shim = String::new(); + + shim.push_str("let imports = {};\n"); + + if self.config.mode.nodejs_experimental_modules() { + for (i, module) in imports.iter().enumerate() { + if module.as_str() != PLACEHOLDER_MODULE { + shim.push_str(&format!("import * as import{} from '{}';\n", i, module)); + } + } + } + + for (i, module) in imports.iter().enumerate() { + if module.as_str() == PLACEHOLDER_MODULE { + shim.push_str(&format!( + "imports['{0}'] = module.exports;\n", + PLACEHOLDER_MODULE + )); + } else { + if self.config.mode.nodejs_experimental_modules() { + shim.push_str(&format!("imports['{}'] = import{};\n", module, i)); + } else { + shim.push_str(&format!("imports['{0}'] = require('{0}');\n", module)); + } + } + } + + reset_indentation(&shim) + } + + fn generate_node_wasm_loading(&self, path: &Path) -> String { + let mut shim = String::new(); + + if self.config.mode.nodejs_experimental_modules() { + // On windows skip the leading `/` which comes out when we parse a + // url to use `C:\...` instead of `\C:\...` + shim.push_str(&format!( + " + import * as path from 'path'; + import * as fs from 'fs'; + import * as url from 'url'; + import * as process from 'process'; + + let file = path.dirname(url.parse(import.meta.url).pathname); + if (process.platform === 'win32') {{ + file = file.substring(1); + }} + const bytes = fs.readFileSync(path.join(file, '{}')); + ", + path.file_name().unwrap().to_str().unwrap() + )); + } else { + shim.push_str(&format!( + " + const path = require('path').join(__dirname, '{}'); + const bytes = require('fs').readFileSync(path); + ", + path.file_name().unwrap().to_str().unwrap() + )); + } + + shim.push_str( + " + const wasmModule = new WebAssembly.Module(bytes); + const wasmInstance = new WebAssembly.Instance(wasmModule, imports); + wasm = wasmInstance.exports; + module.exports.__wasm = wasm; + ", + ); + + reset_indentation(&shim) + } + /// Performs the task of actually generating the final JS module, be it /// `--target no-modules`, `--target web`, or for bundlers. This is the very /// last step performed in `finalize`. @@ -224,11 +303,12 @@ impl<'a> Context<'a> { OutputMode::Node { experimental_modules: false, } => { + js.push_str(&self.generate_node_imports()); + js.push_str("let wasm;\n"); for (id, js) in crate::sorted_iter(&self.wasm_import_definitions) { let import = self.module.imports.get_mut(*id); - import.module = format!("./{}.js", module_name); footer.push_str("\nmodule.exports."); footer.push_str(&import.name); footer.push_str(" = "); @@ -236,7 +316,13 @@ impl<'a> Context<'a> { footer.push_str(";\n"); } - footer.push_str(&format!("wasm = require('./{}_bg');\n", module_name)); + footer.push_str( + &self.generate_node_wasm_loading(&Path::new(&format!( + "./{}_bg.wasm", + module_name + ))), + ); + if needs_manual_start { footer.push_str("wasm.__wbindgen_start();\n"); } diff --git a/crates/cli-support/src/lib.rs b/crates/cli-support/src/lib.rs index 49702c2d..491602c9 100755 --- a/crates/cli-support/src/lib.rs +++ b/crates/cli-support/src/lib.rs @@ -1,7 +1,7 @@ #![doc(html_root_url = "https://docs.rs/wasm-bindgen-cli-support/0.2")] use anyhow::{bail, Context, Error}; -use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet}; +use std::collections::{BTreeMap, HashMap, HashSet}; use std::env; use std::fs; use std::mem; @@ -9,6 +9,8 @@ use std::path::{Path, PathBuf}; use std::str; use walrus::Module; +pub(crate) const PLACEHOLDER_MODULE: &str = "__wbindgen_placeholder__"; + mod anyref; mod decode; mod descriptor; @@ -667,13 +669,6 @@ impl Output { .with_context(|| format!("failed to write `{}`", ts_path.display()))?; } - if gen.mode.nodejs() { - let js_path = wasm_path.with_extension(extension); - let shim = gen.generate_node_wasm_import(&self.module, &wasm_path); - fs::write(&js_path, shim) - .with_context(|| format!("failed to write `{}`", js_path.display()))?; - } - if gen.typescript { let ts_path = wasm_path.with_extension("d.ts"); let ts = wasm2es6js::typescript(&self.module)?; @@ -685,77 +680,6 @@ impl Output { } } -impl JsGenerated { - fn generate_node_wasm_import(&self, m: &Module, path: &Path) -> String { - let mut imports = BTreeSet::new(); - for import in m.imports.iter() { - imports.insert(&import.module); - } - - let mut shim = String::new(); - - if self.mode.nodejs_experimental_modules() { - for (i, module) in imports.iter().enumerate() { - shim.push_str(&format!("import * as import{} from '{}';\n", i, module)); - } - // On windows skip the leading `/` which comes out when we parse a - // url to use `C:\...` instead of `\C:\...` - shim.push_str(&format!( - " - import * as path from 'path'; - import * as fs from 'fs'; - import * as url from 'url'; - import * as process from 'process'; - - let file = path.dirname(url.parse(import.meta.url).pathname); - if (process.platform === 'win32') {{ - file = file.substring(1); - }} - const bytes = fs.readFileSync(path.join(file, '{}')); - ", - path.file_name().unwrap().to_str().unwrap() - )); - } else { - shim.push_str(&format!( - " - const path = require('path').join(__dirname, '{}'); - const bytes = require('fs').readFileSync(path); - ", - path.file_name().unwrap().to_str().unwrap() - )); - } - shim.push_str("let imports = {};\n"); - for (i, module) in imports.iter().enumerate() { - if self.mode.nodejs_experimental_modules() { - shim.push_str(&format!("imports['{}'] = import{};\n", module, i)); - } else { - shim.push_str(&format!("imports['{0}'] = require('{0}');\n", module)); - } - } - - shim.push_str(&format!( - " - const wasmModule = new WebAssembly.Module(bytes); - const wasmInstance = new WebAssembly.Instance(wasmModule, imports); - ", - )); - - if self.mode.nodejs_experimental_modules() { - for entry in m.exports.iter() { - shim.push_str("export const "); - shim.push_str(&entry.name); - shim.push_str(" = wasmInstance.exports."); - shim.push_str(&entry.name); - shim.push_str(";\n"); - } - } else { - shim.push_str("module.exports = wasmInstance.exports;\n"); - } - - reset_indentation(&shim) - } -} - fn gc_module_and_adapters(module: &mut Module) { loop { // Fist up, cleanup the native wasm module. Note that roots can come diff --git a/crates/cli-support/src/wit/mod.rs b/crates/cli-support/src/wit/mod.rs index 97c5db27..2c7e57d6 100644 --- a/crates/cli-support/src/wit/mod.rs +++ b/crates/cli-support/src/wit/mod.rs @@ -1,7 +1,7 @@ -use crate::decode; use crate::descriptor::{Descriptor, Function}; use crate::descriptors::WasmBindgenDescriptorsSection; use crate::intrinsic::Intrinsic; +use crate::{decode, PLACEHOLDER_MODULE}; use anyhow::{anyhow, bail, Error}; use std::collections::{HashMap, HashSet}; use std::str; @@ -9,8 +9,6 @@ use walrus::MemoryId; use walrus::{ExportId, FunctionId, ImportId, Module}; use wasm_bindgen_shared::struct_function_export_name; -const PLACEHOLDER_MODULE: &str = "__wbindgen_placeholder__"; - mod incoming; mod nonstandard; mod outgoing; diff --git a/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs b/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs index 49af8246..221aa00e 100644 --- a/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs +++ b/crates/cli/src/bin/wasm-bindgen-test-runner/node.rs @@ -41,15 +41,14 @@ pub fn execute( global.__wbg_test_invoke = f => f(); async function main(tests) {{ - const support = require("./{0}"); - const wasm = require("./{0}_bg"); + const wasm = require("./{0}"); - cx = new support.WasmBindgenTestContext(); - handlers.on_console_debug = support.__wbgtest_console_debug; - handlers.on_console_log = support.__wbgtest_console_log; - handlers.on_console_info = support.__wbgtest_console_info; - handlers.on_console_warn = support.__wbgtest_console_warn; - handlers.on_console_error = support.__wbgtest_console_error; + cx = new wasm.WasmBindgenTestContext(); + handlers.on_console_debug = wasm.__wbgtest_console_debug; + handlers.on_console_log = wasm.__wbgtest_console_log; + handlers.on_console_info = wasm.__wbgtest_console_info; + handlers.on_console_warn = wasm.__wbgtest_console_warn; + handlers.on_console_error = wasm.__wbgtest_console_error; // Forward runtime arguments. These arguments are also arguments to the // `wasm-bindgen-test-runner` which forwards them to node which we @@ -57,7 +56,7 @@ pub fn execute( // filters for now. cx.args(process.argv.slice(2)); - const ok = await cx.run(tests.map(n => wasm[n])); + const ok = await cx.run(tests.map(n => wasm.__wasm[n])); if (!ok) exit(1); }} diff --git a/crates/macro-support/src/parser.rs b/crates/macro-support/src/parser.rs index 678e16a9..a2bcdc3a 100644 --- a/crates/macro-support/src/parser.rs +++ b/crates/macro-support/src/parser.rs @@ -22,7 +22,6 @@ struct AttributeParseState { pub struct BindgenAttrs { /// List of parsed attributes pub attrs: Vec<(Cell, BindgenAttr)>, - pub unstable_api_attr: Option, } macro_rules! attrgen { @@ -54,6 +53,7 @@ macro_rules! attrgen { (typescript_custom_section, TypescriptCustomSection(Span)), (start, Start(Span)), (skip, Skip(Span)), + (typescript_type, TypeScriptType(Span, String, Span)), // For testing purposes only. (assert_no_shim, AssertNoShim(Span)), @@ -187,10 +187,7 @@ impl Default for BindgenAttrs { // sanity check that we call `check_used` an appropriate number of // times. ATTRS.with(|state| state.parsed.set(state.parsed.get() + 1)); - BindgenAttrs { - attrs: Vec::new(), - unstable_api_attr: None, - } + BindgenAttrs { attrs: Vec::new() } } } @@ -357,7 +354,6 @@ impl<'a> ConvertToAst for &'a mut syn::ItemStruct { getter: Ident::new(&getter, Span::call_site()), setter: Ident::new(&setter, Span::call_site()), comments, - unstable_api: false, }); attrs.check_used()?; } @@ -518,7 +514,6 @@ impl<'a> ConvertToAst<(BindgenAttrs, &'a ast::ImportModule)> for syn::ForeignIte rust_name: self.sig.ident.clone(), shim: Ident::new(&shim, Span::call_site()), doc_comment: None, - unstable_api: false, }); opts.check_used()?; @@ -535,6 +530,7 @@ impl ConvertToAst for syn::ForeignItemType { .js_name() .map(|s| s.0) .map_or_else(|| self.ident.to_string(), |s| s.to_string()); + let typescript_type = attrs.typescript_type().map(|s| s.0.to_string()); let is_type_of = attrs.is_type_of().cloned(); let shim = format!("__wbg_instanceof_{}_{}", self.ident, ShortHash(&self.ident)); let mut extends = Vec::new(); @@ -556,12 +552,11 @@ impl ConvertToAst for syn::ForeignItemType { Ok(ast::ImportKind::Type(ast::ImportType { vis: self.vis, attrs: self.attrs, - unstable_api: false, doc_comment: None, instanceof_shim: shim, is_type_of, rust_name: self.ident, - typescript_name: None, + typescript_type, js_name, extends, vendor_prefixes, @@ -784,7 +779,6 @@ impl<'a> MacroParse<(Option, &'a mut TokenStream)> for syn::Item { rust_class: None, rust_name, start, - unstable_api: false, }); } syn::Item::Struct(mut s) => { @@ -808,8 +802,7 @@ impl<'a> MacroParse<(Option, &'a mut TokenStream)> for syn::Item { if let Some(opts) = opts { opts.check_used()?; } - e.to_tokens(tokens); - e.macro_parse(program, ())?; + e.macro_parse(program, (tokens,))?; } syn::Item::Const(mut c) => { let opts = match opts { @@ -862,7 +855,7 @@ impl<'a> MacroParse for &'a mut syn::ItemImpl { syn::Type::Path(syn::TypePath { qself: None, ref path, - }) => extract_path_ident(path)?, + }) => path, _ => bail_span!( self.self_ty, "unsupported self type in #[wasm_bindgen] impl" @@ -890,7 +883,7 @@ impl<'a> MacroParse for &'a mut syn::ItemImpl { // then go for the rest. fn prepare_for_impl_recursion( item: &mut syn::ImplItem, - class: &Ident, + class: &syn::Path, impl_opts: &BindgenAttrs, ) -> Result<(), Diagnostic> { let method = match item { @@ -916,10 +909,12 @@ fn prepare_for_impl_recursion( other => bail_span!(other, "failed to parse this item as a known item"), }; + let ident = extract_path_ident(class)?; + let js_class = impl_opts .js_class() .map(|s| s.0.to_string()) - .unwrap_or(class.to_string()); + .unwrap_or(ident.to_string()); method.attrs.insert( 0, @@ -985,26 +980,89 @@ impl<'a, 'b> MacroParse<(&'a Ident, &'a str)> for &'b mut syn::ImplItemMethod { rust_class: Some(class.clone()), rust_name: self.sig.ident.clone(), start: false, - unstable_api: false, }); opts.check_used()?; Ok(()) } } -impl MacroParse<()> for syn::ItemEnum { - fn macro_parse(self, program: &mut ast::Program, (): ()) -> Result<(), Diagnostic> { - match self.vis { - syn::Visibility::Public(_) => {} - _ => bail_span!(self, "only public enums are allowed with #[wasm_bindgen]"), +fn import_enum(enum_: syn::ItemEnum, program: &mut ast::Program) -> Result<(), Diagnostic> { + let mut variants = vec![]; + let mut variant_values = vec![]; + + for v in enum_.variants.iter() { + match v.fields { + syn::Fields::Unit => (), + _ => bail_span!(v.fields, "only C-Style enums allowed with #[wasm_bindgen]"), } + match &v.discriminant { + Some(( + _, + syn::Expr::Lit(syn::ExprLit { + attrs: _, + lit: syn::Lit::Str(str_lit), + }), + )) => { + variants.push(v.ident.clone()); + variant_values.push(str_lit.value()); + } + Some((_, expr)) => bail_span!( + expr, + "enums with #[wasm_bidngen] cannot mix string and non-string values", + ), + None => { + bail_span!(v, "all variants must have a value"); + } + } + } + + program.imports.push(ast::Import { + module: ast::ImportModule::None, + js_namespace: None, + kind: ast::ImportKind::Enum(ast::ImportEnum { + vis: enum_.vis, + name: enum_.ident, + variants, + variant_values, + rust_attrs: enum_.attrs, + }), + }); + + Ok(()) +} + +impl<'a> MacroParse<(&'a mut TokenStream,)> for syn::ItemEnum { + fn macro_parse( + self, + program: &mut ast::Program, + (tokens,): (&'a mut TokenStream,), + ) -> Result<(), Diagnostic> { if self.variants.len() == 0 { bail_span!(self, "cannot export empty enums to JS"); } + // Check if the first value is a string literal + match self.variants[0].discriminant { + Some(( + _, + syn::Expr::Lit(syn::ExprLit { + attrs: _, + lit: syn::Lit::Str(_), + }), + )) => { + return import_enum(self, program); + } + _ => {} + } + let has_discriminant = self.variants[0].discriminant.is_some(); + match self.vis { + syn::Visibility::Public(_) => {} + _ => bail_span!(self, "only public enums are allowed with #[wasm_bindgen]"), + } + let variants = self .variants .iter() @@ -1075,13 +1133,16 @@ impl MacroParse<()> for syn::ItemEnum { } let comments = extract_doc_comments(&self.attrs); + + self.to_tokens(tokens); + program.enums.push(ast::Enum { name: self.ident, variants, comments, hole, - unstable_api: false, }); + Ok(()) } } @@ -1185,7 +1246,6 @@ impl MacroParse for syn::ForeignItem { module, js_namespace, kind, - unstable_api: false, }); Ok(()) @@ -1290,20 +1350,21 @@ fn assert_not_variadic(attrs: &BindgenAttrs) -> Result<(), Diagnostic> { Ok(()) } -/// If the path is a single ident, return it. +/// Extracts the last ident from the path fn extract_path_ident(path: &syn::Path) -> Result { - if path.leading_colon.is_some() { - bail_span!(path, "global paths are not supported yet"); + for segment in path.segments.iter() { + match segment.arguments { + syn::PathArguments::None => {} + _ => bail_span!(path, "paths with type parameters are not supported yet"), + } } - if path.segments.len() != 1 { - bail_span!(path, "multi-segment paths are not supported yet"); + + match path.segments.last() { + Some(value) => Ok(value.ident.clone()), + None => { + bail_span!(path, "empty idents are not supported"); + } } - let value = &path.segments[0]; - match value.arguments { - syn::PathArguments::None => {} - _ => bail_span!(path, "paths with type parameters are not supported yet"), - } - Ok(value.ident.clone()) } pub fn reset_attrs_used() { diff --git a/crates/macro/ui-tests/invalid-enums.stderr b/crates/macro/ui-tests/invalid-enums.stderr index 30149f24..a9ef8d03 100644 --- a/crates/macro/ui-tests/invalid-enums.stderr +++ b/crates/macro/ui-tests/invalid-enums.stderr @@ -1,4 +1,4 @@ -error: only public enums are allowed with #[wasm_bindgen] +error: cannot export empty enums to JS --> $DIR/invalid-enums.rs:4:1 | 4 | enum A {} diff --git a/crates/macro/ui-tests/invalid-imports.stderr b/crates/macro/ui-tests/invalid-imports.stderr index 5b39369b..aeb09c57 100644 --- a/crates/macro/ui-tests/invalid-imports.stderr +++ b/crates/macro/ui-tests/invalid-imports.stderr @@ -22,18 +22,6 @@ error: first argument of method must be a path 14 | fn f3(x: &&u32); | ^^^^^ -error: multi-segment paths are not supported yet - --> $DIR/invalid-imports.rs:16:15 - | -16 | fn f4(x: &foo::Bar); - | ^^^^^^^^ - -error: global paths are not supported yet - --> $DIR/invalid-imports.rs:18:15 - | -18 | fn f4(x: &::Bar); - | ^^^^^ - error: paths with type parameters are not supported yet --> $DIR/invalid-imports.rs:20:15 | @@ -52,12 +40,6 @@ error: constructor returns must be bare types 25 | fn f(); | ^^^^^^^ -error: global paths are not supported yet - --> $DIR/invalid-imports.rs:27:15 - | -27 | fn f() -> ::Bar; - | ^^^^^ - error: return value of constructor must be a bare path --> $DIR/invalid-imports.rs:29:5 | diff --git a/crates/shared/src/lib.rs b/crates/shared/src/lib.rs index e0b59c11..ceea8baf 100644 --- a/crates/shared/src/lib.rs +++ b/crates/shared/src/lib.rs @@ -94,7 +94,6 @@ macro_rules! shared_api { function: Function<'a>, method_kind: MethodKind<'a>, start: bool, - unstable_api: bool, } struct Enum<'a> { diff --git a/crates/web-sys/.gitignore b/crates/web-sys/.gitignore new file mode 100644 index 00000000..1b5c9e47 --- /dev/null +++ b/crates/web-sys/.gitignore @@ -0,0 +1 @@ +/features diff --git a/crates/web-sys/Cargo.toml b/crates/web-sys/Cargo.toml index fc1342a5..73baf7b1 100644 --- a/crates/web-sys/Cargo.toml +++ b/crates/web-sys/Cargo.toml @@ -20,12 +20,6 @@ rustdoc-args = ["--cfg=web_sys_unstable_apis"] doctest = false test = false -[build-dependencies] -env_logger = { version = "0.7.0", optional = true } -anyhow = "1.0" -wasm-bindgen-webidl = { path = "../webidl", version = "=0.2.58" } -sourcefile = "0.1" - [dependencies] wasm-bindgen = { path = "../..", version = "0.2.58" } js-sys = { path = '../js-sys', version = '0.3.35' } @@ -34,17 +28,10 @@ js-sys = { path = '../js-sys', version = '0.3.35' } wasm-bindgen-test = { path = '../test', version = '0.3.8' } wasm-bindgen-futures = { path = '../futures', version = '0.4.8' } -# This list is generated by passing `__WASM_BINDGEN_DUMP_FEATURES=foo` when -# compiling this crate which dumps the total list of features to a file called -# `foo`. -# -# Each one of these features activates the corresponding type, allowing bindings -# to be generated for it. Note that we may eventually add "groupings" of -# features to enable a convenient set of features all at once. For now, though, -# the features must all be manually activated. +# This list is auto-generated by the wasm-bindgen-webidl program [features] AbortController = [] -AbortSignal = [] +AbortSignal = ["EventTarget"] AddEventListenerOptions = [] AesCbcParams = [] AesCtrParams = [] @@ -54,78 +41,78 @@ AesKeyAlgorithm = [] AesKeyGenParams = [] Algorithm = [] AlignSetting = [] -AnalyserNode = [] +AnalyserNode = ["AudioNode", "EventTarget"] AnalyserOptions = [] AngleInstancedArrays = [] -Animation = [] +Animation = ["EventTarget"] AnimationEffect = [] -AnimationEvent = [] +AnimationEvent = ["Event"] AnimationEventInit = [] AnimationPlayState = [] -AnimationPlaybackEvent = [] +AnimationPlaybackEvent = ["Event"] AnimationPlaybackEventInit = [] AnimationPropertyDetails = [] AnimationPropertyValueDetails = [] AnimationTimeline = [] AssignedNodesOptions = [] AttestationConveyancePreference = [] -Attr = [] +Attr = ["EventTarget", "Node"] AttributeNameValue = [] AudioBuffer = [] AudioBufferOptions = [] -AudioBufferSourceNode = [] +AudioBufferSourceNode = ["AudioNode", "AudioScheduledSourceNode", "EventTarget"] AudioBufferSourceOptions = [] AudioConfiguration = [] -AudioContext = [] +AudioContext = ["BaseAudioContext", "EventTarget"] AudioContextOptions = [] AudioContextState = [] -AudioDestinationNode = [] +AudioDestinationNode = ["AudioNode", "EventTarget"] AudioListener = [] -AudioNode = [] +AudioNode = ["EventTarget"] AudioNodeOptions = [] AudioParam = [] AudioParamMap = [] -AudioProcessingEvent = [] -AudioScheduledSourceNode = [] -AudioStreamTrack = [] +AudioProcessingEvent = ["Event"] +AudioScheduledSourceNode = ["AudioNode", "EventTarget"] +AudioStreamTrack = ["EventTarget", "MediaStreamTrack"] AudioTrack = [] -AudioTrackList = [] -AudioWorklet = [] -AudioWorkletGlobalScope = [] -AudioWorkletNode = [] +AudioTrackList = ["EventTarget"] +AudioWorklet = ["Worklet"] +AudioWorkletGlobalScope = ["WorkletGlobalScope"] +AudioWorkletNode = ["AudioNode", "EventTarget"] AudioWorkletNodeOptions = [] AudioWorkletProcessor = [] AuthenticationExtensionsClientInputs = [] AuthenticationExtensionsClientOutputs = [] -AuthenticatorAssertionResponse = [] +AuthenticatorAssertionResponse = ["AuthenticatorResponse"] AuthenticatorAttachment = [] -AuthenticatorAttestationResponse = [] +AuthenticatorAttestationResponse = ["AuthenticatorResponse"] AuthenticatorResponse = [] AuthenticatorSelectionCriteria = [] AuthenticatorTransport = [] AutoKeyword = [] AutocompleteInfo = [] BarProp = [] -BaseAudioContext = [] +BaseAudioContext = ["EventTarget"] BaseComputedKeyframe = [] BaseKeyframe = [] BasePropertyIndexedKeyframe = [] BasicCardRequest = [] BasicCardResponse = [] BasicCardType = [] -BatteryManager = [] -BeforeUnloadEvent = [] +BatteryManager = ["EventTarget"] +BeforeUnloadEvent = ["Event"] BinaryType = [] -BiquadFilterNode = [] +BiquadFilterNode = ["AudioNode", "EventTarget"] BiquadFilterOptions = [] BiquadFilterType = [] Blob = [] -BlobEvent = [] +BlobEvent = ["Event"] BlobEventInit = [] BlobPropertyBag = [] BlockParsingOptions = [] BoxQuadOptions = [] -BroadcastChannel = [] +BroadcastChannel = ["EventTarget"] BrowserElementDownloadOptions = [] BrowserElementExecuteScriptOptions = [] BrowserFeedWriter = [] @@ -136,7 +123,7 @@ CacheBatchOperation = [] CacheQueryOptions = [] CacheStorage = [] CacheStorageNamespace = [] -CanvasCaptureMediaStream = [] +CanvasCaptureMediaStream = ["EventTarget", "MediaStream"] CanvasGradient = [] CanvasPattern = [] CanvasRenderingContext2d = [] @@ -144,34 +131,34 @@ CanvasWindingRule = [] CaretChangedReason = [] CaretPosition = [] CaretStateChangedEventInit = [] -CdataSection = [] +CdataSection = ["CharacterData", "EventTarget", "Node", "Text"] ChannelCountMode = [] ChannelInterpretation = [] -ChannelMergerNode = [] +ChannelMergerNode = ["AudioNode", "EventTarget"] ChannelMergerOptions = [] ChannelPixelLayout = [] ChannelPixelLayoutDataType = [] -ChannelSplitterNode = [] +ChannelSplitterNode = ["AudioNode", "EventTarget"] ChannelSplitterOptions = [] -CharacterData = [] +CharacterData = ["EventTarget", "Node"] CheckerboardReason = [] CheckerboardReport = [] CheckerboardReportService = [] ChromeFilePropertyBag = [] -ChromeWorker = [] +ChromeWorker = ["EventTarget", "Worker"] Client = [] ClientQueryOptions = [] ClientRectsAndTexts = [] ClientType = [] Clients = [] -ClipboardEvent = [] +ClipboardEvent = ["Event"] ClipboardEventInit = [] -CloseEvent = [] +CloseEvent = ["Event"] CloseEventInit = [] CollectedClientData = [] -Comment = [] +Comment = ["CharacterData", "EventTarget", "Node"] CompositeOperation = [] -CompositionEvent = [] +CompositionEvent = ["Event", "UiEvent"] CompositionEventInit = [] ComputedEffectTiming = [] ConnStatusDict = [] @@ -188,7 +175,7 @@ ConsoleStackEntry = [] ConsoleTimerError = [] ConsoleTimerLogOrEnd = [] ConsoleTimerStart = [] -ConstantSourceNode = [] +ConstantSourceNode = ["AudioNode", "AudioScheduledSourceNode", "EventTarget"] ConstantSourceOptions = [] ConstrainBooleanParameters = [] ConstrainDomStringParameters = [] @@ -196,7 +183,7 @@ ConstrainDoubleRange = [] ConstrainLongRange = [] ContextAttributes2d = [] ConvertCoordinateOptions = [] -ConvolverNode = [] +ConvolverNode = ["AudioNode", "EventTarget"] ConvolverOptions = [] Coordinates = [] Credential = [] @@ -210,30 +197,30 @@ Csp = [] CspPolicies = [] CspReport = [] CspReportProperties = [] -CssAnimation = [] +CssAnimation = ["Animation", "EventTarget"] CssBoxType = [] -CssConditionRule = [] -CssCounterStyleRule = [] -CssFontFaceRule = [] -CssFontFeatureValuesRule = [] -CssGroupingRule = [] -CssImportRule = [] -CssKeyframeRule = [] -CssKeyframesRule = [] -CssMediaRule = [] -CssNamespaceRule = [] -CssPageRule = [] +CssConditionRule = ["CssGroupingRule", "CssRule"] +CssCounterStyleRule = ["CssRule"] +CssFontFaceRule = ["CssRule"] +CssFontFeatureValuesRule = ["CssRule"] +CssGroupingRule = ["CssRule"] +CssImportRule = ["CssRule"] +CssKeyframeRule = ["CssRule"] +CssKeyframesRule = ["CssRule"] +CssMediaRule = ["CssConditionRule", "CssGroupingRule", "CssRule"] +CssNamespaceRule = ["CssRule"] +CssPageRule = ["CssRule"] CssPseudoElement = [] CssRule = [] CssRuleList = [] CssStyleDeclaration = [] -CssStyleRule = [] -CssStyleSheet = [] +CssStyleRule = ["CssRule"] +CssStyleSheet = ["StyleSheet"] CssStyleSheetParsingMode = [] -CssSupportsRule = [] -CssTransition = [] +CssSupportsRule = ["CssConditionRule", "CssGroupingRule", "CssRule"] +CssTransition = ["Animation", "EventTarget"] CustomElementRegistry = [] -CustomEvent = [] +CustomEvent = ["Event"] CustomEventInit = [] DataTransfer = [] DataTransferItem = [] @@ -241,18 +228,18 @@ DataTransferItemList = [] DateTimeValue = [] DecoderDoctorNotification = [] DecoderDoctorNotificationType = [] -DedicatedWorkerGlobalScope = [] -DelayNode = [] +DedicatedWorkerGlobalScope = ["EventTarget", "WorkerGlobalScope"] +DelayNode = ["AudioNode", "EventTarget"] DelayOptions = [] DeviceAcceleration = [] DeviceAccelerationInit = [] -DeviceLightEvent = [] +DeviceLightEvent = ["Event"] DeviceLightEventInit = [] -DeviceMotionEvent = [] +DeviceMotionEvent = ["Event"] DeviceMotionEventInit = [] -DeviceOrientationEvent = [] +DeviceOrientationEvent = ["Event"] DeviceOrientationEventInit = [] -DeviceProximityEvent = [] +DeviceProximityEvent = ["Event"] DeviceProximityEventInit = [] DeviceRotationRate = [] DeviceRotationRateInit = [] @@ -265,36 +252,36 @@ DistanceModelType = [] DnsCacheDict = [] DnsCacheEntry = [] DnsLookupDict = [] -Document = [] -DocumentFragment = [] -DocumentTimeline = [] +Document = ["EventTarget", "Node"] +DocumentFragment = ["EventTarget", "Node"] +DocumentTimeline = ["AnimationTimeline"] DocumentTimelineOptions = [] -DocumentType = [] +DocumentType = ["EventTarget", "Node"] DomError = [] DomException = [] DomImplementation = [] -DomMatrix = [] +DomMatrix = ["DomMatrixReadOnly"] DomMatrixReadOnly = [] DomParser = [] -DomPoint = [] +DomPoint = ["DomPointReadOnly"] DomPointInit = [] DomPointReadOnly = [] DomQuad = [] DomQuadInit = [] DomQuadJson = [] -DomRect = [] +DomRect = ["DomRectReadOnly"] DomRectInit = [] DomRectList = [] DomRectReadOnly = [] -DomRequest = [] +DomRequest = ["EventTarget"] DomRequestReadyState = [] DomStringList = [] DomStringMap = [] DomTokenList = [] DomWindowResizeEventDetail = [] -DragEvent = [] +DragEvent = ["Event", "MouseEvent", "UiEvent"] DragEventInit = [] -DynamicsCompressorNode = [] +DynamicsCompressorNode = ["AudioNode", "EventTarget"] DynamicsCompressorOptions = [] EcKeyAlgorithm = [] EcKeyGenParams = [] @@ -302,19 +289,19 @@ EcKeyImportParams = [] EcdhKeyDeriveParams = [] EcdsaParams = [] EffectTiming = [] -Element = [] +Element = ["EventTarget", "Node"] ElementCreationOptions = [] ElementDefinitionOptions = [] EndingTypes = [] ErrorCallback = [] -ErrorEvent = [] +ErrorEvent = ["Event"] ErrorEventInit = [] Event = [] EventInit = [] EventListener = [] EventListenerOptions = [] EventModifierInit = [] -EventSource = [] +EventSource = ["EventTarget"] EventSourceInit = [] EventTarget = [] Exception = [] @@ -326,59 +313,59 @@ ExtFragDepth = [] ExtSRgb = [] ExtShaderTextureLod = [] ExtTextureFilterAnisotropic = [] -ExtendableEvent = [] +ExtendableEvent = ["Event"] ExtendableEventInit = [] -ExtendableMessageEvent = [] +ExtendableMessageEvent = ["Event", "ExtendableEvent"] ExtendableMessageEventInit = [] External = [] FakePluginMimeEntry = [] FakePluginTagInit = [] -FetchEvent = [] +FetchEvent = ["Event", "ExtendableEvent"] FetchEventInit = [] -FetchObserver = [] +FetchObserver = ["EventTarget"] FetchReadableStreamReadDataArray = [] FetchReadableStreamReadDataDone = [] FetchState = [] -File = [] +File = ["Blob"] FileCallback = [] FileList = [] FilePropertyBag = [] -FileReader = [] +FileReader = ["EventTarget"] FileReaderSync = [] FileSystem = [] -FileSystemDirectoryEntry = [] +FileSystemDirectoryEntry = ["FileSystemEntry"] FileSystemDirectoryReader = [] FileSystemEntriesCallback = [] FileSystemEntry = [] FileSystemEntryCallback = [] -FileSystemFileEntry = [] +FileSystemFileEntry = ["FileSystemEntry"] FileSystemFlags = [] FillMode = [] FlashClassification = [] FlexLineGrowthState = [] -FocusEvent = [] +FocusEvent = ["Event", "UiEvent"] FocusEventInit = [] FontFace = [] FontFaceDescriptors = [] FontFaceLoadStatus = [] -FontFaceSet = [] +FontFaceSet = ["EventTarget"] FontFaceSetIterator = [] FontFaceSetIteratorResult = [] -FontFaceSetLoadEvent = [] +FontFaceSetLoadEvent = ["Event"] FontFaceSetLoadEventInit = [] FontFaceSetLoadStatus = [] FormData = [] FrameType = [] FuzzingFunctions = [] -GainNode = [] +GainNode = ["AudioNode", "EventTarget"] GainOptions = [] Gamepad = [] -GamepadAxisMoveEvent = [] +GamepadAxisMoveEvent = ["Event", "GamepadEvent"] GamepadAxisMoveEventInit = [] GamepadButton = [] -GamepadButtonEvent = [] +GamepadButtonEvent = ["Event", "GamepadEvent"] GamepadButtonEventInit = [] -GamepadEvent = [] +GamepadEvent = ["Event"] GamepadEventInit = [] GamepadHand = [] GamepadHapticActuator = [] @@ -423,7 +410,7 @@ GpuComputePipeline = [] GpuComputePipelineDescriptor = [] GpuCullMode = [] GpuDepthStencilStateDescriptor = [] -GpuDevice = [] +GpuDevice = ["EventTarget"] GpuDeviceDescriptor = [] GpuDeviceLostInfo = [] GpuErrorFilter = [] @@ -482,7 +469,7 @@ GpuTextureUsage = [] GpuTextureView = [] GpuTextureViewDescriptor = [] GpuTextureViewDimension = [] -GpuUncapturedErrorEvent = [] +GpuUncapturedErrorEvent = ["Event"] GpuUncapturedErrorEventInit = [] GpuValidationError = [] GpuVertexAttributeDescriptor = [] @@ -493,7 +480,7 @@ GridDeclaration = [] GridTrackState = [] GroupedHistoryEventInit = [] HalfOpenInfoDict = [] -HashChangeEvent = [] +HashChangeEvent = ["Event"] HashChangeEventInit = [] Headers = [] HeadersGuardEnum = [] @@ -506,121 +493,120 @@ HmacImportParams = [] HmacKeyAlgorithm = [] HmacKeyGenParams = [] HtmlAllCollection = [] -HtmlAnchorElement = [] -HtmlAreaElement = [] -HtmlAudioElement = [] -HtmlBaseElement = [] -HtmlBodyElement = [] -HtmlBrElement = [] -HtmlButtonElement = [] -HtmlCanvasElement = [] +HtmlAnchorElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlAreaElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlAudioElement = ["Element", "EventTarget", "HtmlElement", "HtmlMediaElement", "Node"] +HtmlBaseElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlBodyElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlBrElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlButtonElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlCanvasElement = ["Element", "EventTarget", "HtmlElement", "Node"] HtmlCollection = [] -HtmlDListElement = [] -HtmlDataElement = [] -HtmlDataListElement = [] -HtmlDetailsElement = [] -HtmlDialogElement = [] -HtmlDirectoryElement = [] -HtmlDivElement = [] -HtmlDocument = [] -HtmlElement = [] -HtmlEmbedElement = [] -HtmlFieldSetElement = [] -HtmlFontElement = [] -HtmlFormControlsCollection = [] -HtmlFormElement = [] -HtmlFrameElement = [] -HtmlFrameSetElement = [] -HtmlHeadElement = [] -HtmlHeadingElement = [] -HtmlHrElement = [] -HtmlHtmlElement = [] -HtmlHyperlinkElementUtils = [] -HtmlIFrameElement = [] -HtmlImageElement = [] -HtmlInputElement = [] -HtmlLabelElement = [] -HtmlLegendElement = [] -HtmlLiElement = [] -HtmlLinkElement = [] -HtmlMapElement = [] -HtmlMediaElement = [] -HtmlMenuElement = [] -HtmlMenuItemElement = [] -HtmlMetaElement = [] -HtmlMeterElement = [] -HtmlModElement = [] -HtmlOListElement = [] -HtmlObjectElement = [] -HtmlOptGroupElement = [] -HtmlOptionElement = [] -HtmlOptionsCollection = [] -HtmlOutputElement = [] -HtmlParagraphElement = [] -HtmlParamElement = [] -HtmlPictureElement = [] -HtmlPreElement = [] -HtmlProgressElement = [] -HtmlQuoteElement = [] -HtmlScriptElement = [] -HtmlSelectElement = [] -HtmlSlotElement = [] -HtmlSourceElement = [] -HtmlSpanElement = [] -HtmlStyleElement = [] -HtmlTableCaptionElement = [] -HtmlTableCellElement = [] -HtmlTableColElement = [] -HtmlTableElement = [] -HtmlTableRowElement = [] -HtmlTableSectionElement = [] -HtmlTemplateElement = [] -HtmlTextAreaElement = [] -HtmlTimeElement = [] -HtmlTitleElement = [] -HtmlTrackElement = [] -HtmlUListElement = [] -HtmlUnknownElement = [] -HtmlVideoElement = [] +HtmlDListElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlDataElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlDataListElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlDetailsElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlDialogElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlDirectoryElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlDivElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlDocument = ["Document", "EventTarget", "Node"] +HtmlElement = ["Element", "EventTarget", "Node"] +HtmlEmbedElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlFieldSetElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlFontElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlFormControlsCollection = ["HtmlCollection"] +HtmlFormElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlFrameElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlFrameSetElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlHeadElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlHeadingElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlHrElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlHtmlElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlIFrameElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlImageElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlInputElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlLabelElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlLegendElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlLiElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlLinkElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlMapElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlMediaElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlMenuElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlMenuItemElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlMetaElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlMeterElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlModElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlOListElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlObjectElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlOptGroupElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlOptionElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlOptionsCollection = ["HtmlCollection"] +HtmlOutputElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlParagraphElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlParamElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlPictureElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlPreElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlProgressElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlQuoteElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlScriptElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlSelectElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlSlotElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlSourceElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlSpanElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlStyleElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlTableCaptionElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlTableCellElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlTableColElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlTableElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlTableRowElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlTableSectionElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlTemplateElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlTextAreaElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlTimeElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlTitleElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlTrackElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlUListElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlUnknownElement = ["Element", "EventTarget", "HtmlElement", "Node"] +HtmlVideoElement = ["Element", "EventTarget", "HtmlElement", "HtmlMediaElement", "Node"] HttpConnDict = [] HttpConnInfo = [] HttpConnectionElement = [] IdbCursor = [] IdbCursorDirection = [] -IdbCursorWithValue = [] -IdbDatabase = [] +IdbCursorWithValue = ["IdbCursor"] +IdbDatabase = ["EventTarget"] IdbFactory = [] -IdbFileHandle = [] +IdbFileHandle = ["EventTarget"] IdbFileMetadataParameters = [] -IdbFileRequest = [] +IdbFileRequest = ["DomRequest", "EventTarget"] IdbIndex = [] IdbIndexParameters = [] IdbKeyRange = [] -IdbLocaleAwareKeyRange = [] -IdbMutableFile = [] +IdbLocaleAwareKeyRange = ["IdbKeyRange"] +IdbMutableFile = ["EventTarget"] IdbObjectStore = [] IdbObjectStoreParameters = [] IdbOpenDbOptions = [] -IdbOpenDbRequest = [] -IdbRequest = [] +IdbOpenDbRequest = ["EventTarget", "IdbRequest"] +IdbRequest = ["EventTarget"] IdbRequestReadyState = [] -IdbTransaction = [] +IdbTransaction = ["EventTarget"] IdbTransactionMode = [] -IdbVersionChangeEvent = [] +IdbVersionChangeEvent = ["Event"] IdbVersionChangeEventInit = [] IdleDeadline = [] IdleRequestOptions = [] -IirFilterNode = [] +IirFilterNode = ["AudioNode", "EventTarget"] IirFilterOptions = [] ImageBitmap = [] ImageBitmapFormat = [] ImageBitmapRenderingContext = [] -ImageCapture = [] +ImageCapture = ["EventTarget"] ImageCaptureError = [] -ImageCaptureErrorEvent = [] +ImageCaptureErrorEvent = ["Event"] ImageCaptureErrorEventInit = [] ImageData = [] -InputEvent = [] +InputEvent = ["Event", "UiEvent"] InputEventInit = [] InstallTriggerData = [] IntersectionObserver = [] @@ -635,16 +621,16 @@ JsonWebKey = [] KeyAlgorithm = [] KeyEvent = [] KeyIdsInitData = [] -KeyboardEvent = [] +KeyboardEvent = ["Event", "UiEvent"] KeyboardEventInit = [] -KeyframeEffect = [] +KeyframeEffect = ["AnimationEffect"] KeyframeEffectOptions = [] L10nElement = [] L10nValue = [] LifecycleCallbacks = [] LineAlignSetting = [] ListBoxObject = [] -LocalMediaStream = [] +LocalMediaStream = ["EventTarget", "MediaStream"] LocaleInfo = [] Location = [] MediaCapabilities = [] @@ -654,19 +640,19 @@ MediaDecodingConfiguration = [] MediaDecodingType = [] MediaDeviceInfo = [] MediaDeviceKind = [] -MediaDevices = [] -MediaElementAudioSourceNode = [] +MediaDevices = ["EventTarget"] +MediaElementAudioSourceNode = ["AudioNode", "EventTarget"] MediaElementAudioSourceOptions = [] MediaEncodingConfiguration = [] MediaEncodingType = [] -MediaEncryptedEvent = [] +MediaEncryptedEvent = ["Event"] MediaError = [] -MediaKeyError = [] -MediaKeyMessageEvent = [] +MediaKeyError = ["Event"] +MediaKeyMessageEvent = ["Event"] MediaKeyMessageEventInit = [] MediaKeyMessageType = [] MediaKeyNeededEventInit = [] -MediaKeySession = [] +MediaKeySession = ["EventTarget"] MediaKeySessionType = [] MediaKeyStatus = [] MediaKeyStatusMap = [] @@ -678,27 +664,27 @@ MediaKeys = [] MediaKeysPolicy = [] MediaKeysRequirement = [] MediaList = [] -MediaQueryList = [] -MediaQueryListEvent = [] +MediaQueryList = ["EventTarget"] +MediaQueryListEvent = ["Event"] MediaQueryListEventInit = [] -MediaRecorder = [] -MediaRecorderErrorEvent = [] +MediaRecorder = ["EventTarget"] +MediaRecorderErrorEvent = ["Event"] MediaRecorderErrorEventInit = [] MediaRecorderOptions = [] -MediaSource = [] +MediaSource = ["EventTarget"] MediaSourceEndOfStreamError = [] MediaSourceEnum = [] MediaSourceReadyState = [] -MediaStream = [] -MediaStreamAudioDestinationNode = [] -MediaStreamAudioSourceNode = [] +MediaStream = ["EventTarget"] +MediaStreamAudioDestinationNode = ["AudioNode", "EventTarget"] +MediaStreamAudioSourceNode = ["AudioNode", "EventTarget"] MediaStreamAudioSourceOptions = [] MediaStreamConstraints = [] MediaStreamError = [] -MediaStreamEvent = [] +MediaStreamEvent = ["Event"] MediaStreamEventInit = [] -MediaStreamTrack = [] -MediaStreamTrackEvent = [] +MediaStreamTrack = ["EventTarget"] +MediaStreamTrackEvent = ["Event"] MediaStreamTrackEventInit = [] MediaStreamTrackState = [] MediaTrackConstraintSet = [] @@ -706,30 +692,30 @@ MediaTrackConstraints = [] MediaTrackSettings = [] MediaTrackSupportedConstraints = [] MessageChannel = [] -MessageEvent = [] +MessageEvent = ["Event"] MessageEventInit = [] -MessagePort = [] -MidiAccess = [] -MidiConnectionEvent = [] +MessagePort = ["EventTarget"] +MidiAccess = ["EventTarget"] +MidiConnectionEvent = ["Event"] MidiConnectionEventInit = [] -MidiInput = [] +MidiInput = ["EventTarget", "MidiPort"] MidiInputMap = [] -MidiMessageEvent = [] +MidiMessageEvent = ["Event"] MidiMessageEventInit = [] MidiOptions = [] -MidiOutput = [] +MidiOutput = ["EventTarget", "MidiPort"] MidiOutputMap = [] -MidiPort = [] +MidiPort = ["EventTarget"] MidiPortConnectionState = [] MidiPortDeviceState = [] MidiPortType = [] MimeType = [] MimeTypeArray = [] -MouseEvent = [] +MouseEvent = ["Event", "UiEvent"] MouseEventInit = [] -MouseScrollEvent = [] +MouseScrollEvent = ["Event", "MouseEvent", "UiEvent"] MozDebug = [] -MutationEvent = [] +MutationEvent = ["Event"] MutationObserver = [] MutationObserverInit = [] MutationObservingInfo = [] @@ -741,16 +727,16 @@ NavigationType = [] Navigator = [] NavigatorAutomationInformation = [] NetworkCommandOptions = [] -NetworkInformation = [] +NetworkInformation = ["EventTarget"] NetworkResultOptions = [] -Node = [] +Node = ["EventTarget"] NodeFilter = [] NodeIterator = [] NodeList = [] -Notification = [] +Notification = ["EventTarget"] NotificationBehavior = [] NotificationDirection = [] -NotificationEvent = [] +NotificationEvent = ["Event", "ExtendableEvent"] NotificationEventInit = [] NotificationOptions = [] NotificationPermission = [] @@ -762,34 +748,34 @@ OesTextureFloatLinear = [] OesTextureHalfFloat = [] OesTextureHalfFloatLinear = [] OesVertexArrayObject = [] -OfflineAudioCompletionEvent = [] +OfflineAudioCompletionEvent = ["Event"] OfflineAudioCompletionEventInit = [] -OfflineAudioContext = [] +OfflineAudioContext = ["BaseAudioContext", "EventTarget"] OfflineAudioContextOptions = [] -OfflineResourceList = [] -OffscreenCanvas = [] +OfflineResourceList = ["EventTarget"] +OffscreenCanvas = ["EventTarget"] OpenWindowEventDetail = [] OptionalEffectTiming = [] OrientationLockType = [] OrientationType = [] -OscillatorNode = [] +OscillatorNode = ["AudioNode", "AudioScheduledSourceNode", "EventTarget"] OscillatorOptions = [] OscillatorType = [] OverSampleType = [] -PageTransitionEvent = [] +PageTransitionEvent = ["Event"] PageTransitionEventInit = [] PaintRequest = [] PaintRequestList = [] -PaintWorkletGlobalScope = [] -PannerNode = [] +PaintWorkletGlobalScope = ["WorkletGlobalScope"] +PannerNode = ["AudioNode", "EventTarget"] PannerOptions = [] PanningModelType = [] Path2d = [] PaymentAddress = [] PaymentComplete = [] -PaymentMethodChangeEvent = [] +PaymentMethodChangeEvent = ["Event", "PaymentRequestUpdateEvent"] PaymentMethodChangeEventInit = [] -PaymentRequestUpdateEvent = [] +PaymentRequestUpdateEvent = ["Event"] PaymentRequestUpdateEventInit = [] PaymentResponse = [] Pbkdf2Params = [] @@ -797,18 +783,18 @@ PcImplIceConnectionState = [] PcImplIceGatheringState = [] PcImplSignalingState = [] PcObserverStateType = [] -Performance = [] +Performance = ["EventTarget"] PerformanceEntry = [] PerformanceEntryEventInit = [] PerformanceEntryFilterOptions = [] -PerformanceMark = [] -PerformanceMeasure = [] +PerformanceMark = ["PerformanceEntry"] +PerformanceMeasure = ["PerformanceEntry"] PerformanceNavigation = [] -PerformanceNavigationTiming = [] +PerformanceNavigationTiming = ["PerformanceEntry", "PerformanceResourceTiming"] PerformanceObserver = [] PerformanceObserverEntryList = [] PerformanceObserverInit = [] -PerformanceResourceTiming = [] +PerformanceResourceTiming = ["PerformanceEntry"] PerformanceServerTiming = [] PerformanceTiming = [] PeriodicWave = [] @@ -817,47 +803,47 @@ PeriodicWaveOptions = [] PermissionDescriptor = [] PermissionName = [] PermissionState = [] -PermissionStatus = [] +PermissionStatus = ["EventTarget"] Permissions = [] PlaybackDirection = [] Plugin = [] PluginArray = [] PluginCrashedEventInit = [] -PointerEvent = [] +PointerEvent = ["Event", "MouseEvent", "UiEvent"] PointerEventInit = [] -PopStateEvent = [] +PopStateEvent = ["Event"] PopStateEventInit = [] -PopupBlockedEvent = [] +PopupBlockedEvent = ["Event"] PopupBlockedEventInit = [] Position = [] PositionAlignSetting = [] PositionError = [] PositionOptions = [] Presentation = [] -PresentationAvailability = [] -PresentationConnection = [] -PresentationConnectionAvailableEvent = [] +PresentationAvailability = ["EventTarget"] +PresentationConnection = ["EventTarget"] +PresentationConnectionAvailableEvent = ["Event"] PresentationConnectionAvailableEventInit = [] PresentationConnectionBinaryType = [] -PresentationConnectionCloseEvent = [] +PresentationConnectionCloseEvent = ["Event"] PresentationConnectionCloseEventInit = [] PresentationConnectionClosedReason = [] -PresentationConnectionList = [] +PresentationConnectionList = ["EventTarget"] PresentationConnectionState = [] PresentationReceiver = [] -PresentationRequest = [] -ProcessingInstruction = [] +PresentationRequest = ["EventTarget"] +ProcessingInstruction = ["CharacterData", "EventTarget", "Node"] ProfileTimelineLayerRect = [] ProfileTimelineMarker = [] ProfileTimelineMessagePortOperationType = [] ProfileTimelineStackFrame = [] ProfileTimelineWorkerOperationType = [] -ProgressEvent = [] +ProgressEvent = ["Event"] ProgressEventInit = [] PromiseNativeHandler = [] -PromiseRejectionEvent = [] +PromiseRejectionEvent = ["Event"] PromiseRejectionEventInit = [] -PublicKeyCredential = [] +PublicKeyCredential = ["Credential"] PublicKeyCredentialCreationOptions = [] PublicKeyCredentialDescriptor = [] PublicKeyCredentialEntity = [] @@ -867,7 +853,7 @@ PublicKeyCredentialRpEntity = [] PublicKeyCredentialType = [] PublicKeyCredentialUserEntity = [] PushEncryptionKeyName = [] -PushEvent = [] +PushEvent = ["Event", "ExtendableEvent"] PushEventInit = [] PushManager = [] PushMessageData = [] @@ -878,7 +864,7 @@ PushSubscriptionJson = [] PushSubscriptionKeys = [] PushSubscriptionOptions = [] PushSubscriptionOptionsInit = [] -RadioNodeList = [] +RadioNodeList = ["NodeList"] Range = [] RcwnPerfStats = [] RcwnStatus = [] @@ -910,8 +896,8 @@ RtcCertificate = [] RtcCertificateExpiration = [] RtcCodecStats = [] RtcConfiguration = [] -RtcDataChannel = [] -RtcDataChannelEvent = [] +RtcDataChannel = ["EventTarget"] +RtcDataChannelEvent = ["Event"] RtcDataChannelEventInit = [] RtcDataChannelInit = [] RtcDataChannelState = [] @@ -942,8 +928,8 @@ RtcMediaStreamTrackStats = [] RtcOfferAnswerOptions = [] RtcOfferOptions = [] RtcOutboundRtpStreamStats = [] -RtcPeerConnection = [] -RtcPeerConnectionIceEvent = [] +RtcPeerConnection = ["EventTarget"] +RtcPeerConnectionIceEvent = ["Event"] RtcPeerConnectionIceEventInit = [] RtcPriorityType = [] RtcRtcpParameters = [] @@ -971,20 +957,20 @@ RtcStatsIceCandidateType = [] RtcStatsReport = [] RtcStatsReportInternal = [] RtcStatsType = [] -RtcTrackEvent = [] +RtcTrackEvent = ["Event"] RtcTrackEventInit = [] RtcTransportStats = [] -RtcdtmfSender = [] -RtcdtmfToneChangeEvent = [] +RtcdtmfSender = ["EventTarget"] +RtcdtmfToneChangeEvent = ["Event"] RtcdtmfToneChangeEventInit = [] RtcrtpContributingSourceStats = [] RtcrtpStreamStats = [] -Screen = [] +Screen = ["EventTarget"] ScreenColorGamut = [] ScreenLuminance = [] -ScreenOrientation = [] -ScriptProcessorNode = [] -ScrollAreaEvent = [] +ScreenOrientation = ["EventTarget"] +ScriptProcessorNode = ["AudioNode", "EventTarget"] +ScrollAreaEvent = ["Event", "UiEvent"] ScrollBehavior = [] ScrollBoxObject = [] ScrollIntoViewOptions = [] @@ -995,54 +981,54 @@ ScrollSetting = [] ScrollState = [] ScrollToOptions = [] ScrollViewChangeEventInit = [] -SecurityPolicyViolationEvent = [] +SecurityPolicyViolationEvent = ["Event"] SecurityPolicyViolationEventDisposition = [] SecurityPolicyViolationEventInit = [] Selection = [] ServerSocketOptions = [] -ServiceWorker = [] -ServiceWorkerContainer = [] -ServiceWorkerGlobalScope = [] -ServiceWorkerRegistration = [] +ServiceWorker = ["EventTarget"] +ServiceWorkerContainer = ["EventTarget"] +ServiceWorkerGlobalScope = ["EventTarget", "WorkerGlobalScope"] +ServiceWorkerRegistration = ["EventTarget"] ServiceWorkerState = [] ServiceWorkerUpdateViaCache = [] -ShadowRoot = [] +ShadowRoot = ["DocumentFragment", "EventTarget", "Node"] ShadowRootInit = [] ShadowRootMode = [] -SharedWorker = [] -SharedWorkerGlobalScope = [] +SharedWorker = ["EventTarget"] +SharedWorkerGlobalScope = ["EventTarget", "WorkerGlobalScope"] SignResponse = [] SocketElement = [] SocketOptions = [] SocketReadyState = [] SocketsDict = [] -SourceBuffer = [] +SourceBuffer = ["EventTarget"] SourceBufferAppendMode = [] -SourceBufferList = [] +SourceBufferList = ["EventTarget"] SpeechGrammar = [] SpeechGrammarList = [] -SpeechRecognition = [] +SpeechRecognition = ["EventTarget"] SpeechRecognitionAlternative = [] -SpeechRecognitionError = [] +SpeechRecognitionError = ["Event"] SpeechRecognitionErrorCode = [] SpeechRecognitionErrorInit = [] -SpeechRecognitionEvent = [] +SpeechRecognitionEvent = ["Event"] SpeechRecognitionEventInit = [] SpeechRecognitionResult = [] SpeechRecognitionResultList = [] -SpeechSynthesis = [] +SpeechSynthesis = ["EventTarget"] SpeechSynthesisErrorCode = [] -SpeechSynthesisErrorEvent = [] +SpeechSynthesisErrorEvent = ["Event", "SpeechSynthesisEvent"] SpeechSynthesisErrorEventInit = [] -SpeechSynthesisEvent = [] +SpeechSynthesisEvent = ["Event"] SpeechSynthesisEventInit = [] -SpeechSynthesisUtterance = [] +SpeechSynthesisUtterance = ["EventTarget"] SpeechSynthesisVoice = [] -StereoPannerNode = [] +StereoPannerNode = ["AudioNode", "EventTarget"] StereoPannerOptions = [] Storage = [] StorageEstimate = [] -StorageEvent = [] +StorageEvent = ["Event"] StorageEventInit = [] StorageManager = [] StorageType = [] @@ -1054,9 +1040,9 @@ StyleSheetList = [] SubtleCrypto = [] SupportedType = [] SvgAngle = [] -SvgAnimateElement = [] -SvgAnimateMotionElement = [] -SvgAnimateTransformElement = [] +SvgAnimateElement = ["Element", "EventTarget", "Node", "SvgAnimationElement", "SvgElement"] +SvgAnimateMotionElement = ["Element", "EventTarget", "Node", "SvgAnimationElement", "SvgElement"] +SvgAnimateTransformElement = ["Element", "EventTarget", "Node", "SvgAnimationElement", "SvgElement"] SvgAnimatedAngle = [] SvgAnimatedBoolean = [] SvgAnimatedEnumeration = [] @@ -1069,142 +1055,142 @@ SvgAnimatedPreserveAspectRatio = [] SvgAnimatedRect = [] SvgAnimatedString = [] SvgAnimatedTransformList = [] -SvgAnimationElement = [] +SvgAnimationElement = ["Element", "EventTarget", "Node", "SvgElement"] SvgBoundingBoxOptions = [] -SvgCircleElement = [] -SvgClipPathElement = [] -SvgComponentTransferFunctionElement = [] -SvgDefsElement = [] -SvgDescElement = [] -SvgElement = [] -SvgEllipseElement = [] -SvgFilterElement = [] -SvgForeignObjectElement = [] -SvgGeometryElement = [] -SvgGradientElement = [] -SvgGraphicsElement = [] -SvgImageElement = [] +SvgCircleElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGeometryElement", "SvgGraphicsElement"] +SvgClipPathElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgComponentTransferFunctionElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgDefsElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGraphicsElement"] +SvgDescElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgElement = ["Element", "EventTarget", "Node"] +SvgEllipseElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGeometryElement", "SvgGraphicsElement"] +SvgFilterElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgForeignObjectElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGraphicsElement"] +SvgGeometryElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGraphicsElement"] +SvgGradientElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgGraphicsElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgImageElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGraphicsElement"] SvgLength = [] SvgLengthList = [] -SvgLineElement = [] -SvgLinearGradientElement = [] -SvgMarkerElement = [] -SvgMaskElement = [] +SvgLineElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGeometryElement", "SvgGraphicsElement"] +SvgLinearGradientElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGradientElement"] +SvgMarkerElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgMaskElement = ["Element", "EventTarget", "Node", "SvgElement"] SvgMatrix = [] -SvgMetadataElement = [] +SvgMetadataElement = ["Element", "EventTarget", "Node", "SvgElement"] SvgNumber = [] SvgNumberList = [] -SvgPathElement = [] +SvgPathElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGeometryElement", "SvgGraphicsElement"] SvgPathSeg = [] -SvgPathSegArcAbs = [] -SvgPathSegArcRel = [] -SvgPathSegClosePath = [] -SvgPathSegCurvetoCubicAbs = [] -SvgPathSegCurvetoCubicRel = [] -SvgPathSegCurvetoCubicSmoothAbs = [] -SvgPathSegCurvetoCubicSmoothRel = [] -SvgPathSegCurvetoQuadraticAbs = [] -SvgPathSegCurvetoQuadraticRel = [] -SvgPathSegCurvetoQuadraticSmoothAbs = [] -SvgPathSegCurvetoQuadraticSmoothRel = [] -SvgPathSegLinetoAbs = [] -SvgPathSegLinetoHorizontalAbs = [] -SvgPathSegLinetoHorizontalRel = [] -SvgPathSegLinetoRel = [] -SvgPathSegLinetoVerticalAbs = [] -SvgPathSegLinetoVerticalRel = [] +SvgPathSegArcAbs = ["SvgPathSeg"] +SvgPathSegArcRel = ["SvgPathSeg"] +SvgPathSegClosePath = ["SvgPathSeg"] +SvgPathSegCurvetoCubicAbs = ["SvgPathSeg"] +SvgPathSegCurvetoCubicRel = ["SvgPathSeg"] +SvgPathSegCurvetoCubicSmoothAbs = ["SvgPathSeg"] +SvgPathSegCurvetoCubicSmoothRel = ["SvgPathSeg"] +SvgPathSegCurvetoQuadraticAbs = ["SvgPathSeg"] +SvgPathSegCurvetoQuadraticRel = ["SvgPathSeg"] +SvgPathSegCurvetoQuadraticSmoothAbs = ["SvgPathSeg"] +SvgPathSegCurvetoQuadraticSmoothRel = ["SvgPathSeg"] +SvgPathSegLinetoAbs = ["SvgPathSeg"] +SvgPathSegLinetoHorizontalAbs = ["SvgPathSeg"] +SvgPathSegLinetoHorizontalRel = ["SvgPathSeg"] +SvgPathSegLinetoRel = ["SvgPathSeg"] +SvgPathSegLinetoVerticalAbs = ["SvgPathSeg"] +SvgPathSegLinetoVerticalRel = ["SvgPathSeg"] SvgPathSegList = [] -SvgPathSegMovetoAbs = [] -SvgPathSegMovetoRel = [] -SvgPatternElement = [] +SvgPathSegMovetoAbs = ["SvgPathSeg"] +SvgPathSegMovetoRel = ["SvgPathSeg"] +SvgPatternElement = ["Element", "EventTarget", "Node", "SvgElement"] SvgPoint = [] SvgPointList = [] -SvgPolygonElement = [] -SvgPolylineElement = [] +SvgPolygonElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGeometryElement", "SvgGraphicsElement"] +SvgPolylineElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGeometryElement", "SvgGraphicsElement"] SvgPreserveAspectRatio = [] -SvgRadialGradientElement = [] +SvgRadialGradientElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGradientElement"] SvgRect = [] -SvgRectElement = [] -SvgScriptElement = [] -SvgSetElement = [] -SvgStopElement = [] +SvgRectElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGeometryElement", "SvgGraphicsElement"] +SvgScriptElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgSetElement = ["Element", "EventTarget", "Node", "SvgAnimationElement", "SvgElement"] +SvgStopElement = ["Element", "EventTarget", "Node", "SvgElement"] SvgStringList = [] -SvgStyleElement = [] -SvgSwitchElement = [] -SvgSymbolElement = [] -SvgTextContentElement = [] -SvgTextElement = [] -SvgTextPathElement = [] -SvgTextPositioningElement = [] -SvgTitleElement = [] +SvgStyleElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgSwitchElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGraphicsElement"] +SvgSymbolElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgTextContentElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGraphicsElement"] +SvgTextElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGraphicsElement", "SvgTextContentElement", "SvgTextPositioningElement"] +SvgTextPathElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGraphicsElement", "SvgTextContentElement"] +SvgTextPositioningElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGraphicsElement", "SvgTextContentElement"] +SvgTitleElement = ["Element", "EventTarget", "Node", "SvgElement"] SvgTransform = [] SvgTransformList = [] SvgUnitTypes = [] -SvgUseElement = [] -SvgViewElement = [] +SvgUseElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGraphicsElement"] +SvgViewElement = ["Element", "EventTarget", "Node", "SvgElement"] SvgZoomAndPan = [] -SvgaElement = [] -SvgfeBlendElement = [] -SvgfeColorMatrixElement = [] -SvgfeComponentTransferElement = [] -SvgfeCompositeElement = [] -SvgfeConvolveMatrixElement = [] -SvgfeDiffuseLightingElement = [] -SvgfeDisplacementMapElement = [] -SvgfeDistantLightElement = [] -SvgfeDropShadowElement = [] -SvgfeFloodElement = [] -SvgfeFuncAElement = [] -SvgfeFuncBElement = [] -SvgfeFuncGElement = [] -SvgfeFuncRElement = [] -SvgfeGaussianBlurElement = [] -SvgfeImageElement = [] -SvgfeMergeElement = [] -SvgfeMergeNodeElement = [] -SvgfeMorphologyElement = [] -SvgfeOffsetElement = [] -SvgfePointLightElement = [] -SvgfeSpecularLightingElement = [] -SvgfeSpotLightElement = [] -SvgfeTileElement = [] -SvgfeTurbulenceElement = [] -SvggElement = [] -SvgmPathElement = [] -SvgsvgElement = [] -SvgtSpanElement = [] +SvgaElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGraphicsElement"] +SvgfeBlendElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeColorMatrixElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeComponentTransferElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeCompositeElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeConvolveMatrixElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeDiffuseLightingElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeDisplacementMapElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeDistantLightElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeDropShadowElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeFloodElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeFuncAElement = ["Element", "EventTarget", "Node", "SvgComponentTransferFunctionElement", "SvgElement"] +SvgfeFuncBElement = ["Element", "EventTarget", "Node", "SvgComponentTransferFunctionElement", "SvgElement"] +SvgfeFuncGElement = ["Element", "EventTarget", "Node", "SvgComponentTransferFunctionElement", "SvgElement"] +SvgfeFuncRElement = ["Element", "EventTarget", "Node", "SvgComponentTransferFunctionElement", "SvgElement"] +SvgfeGaussianBlurElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeImageElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeMergeElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeMergeNodeElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeMorphologyElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeOffsetElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfePointLightElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeSpecularLightingElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeSpotLightElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeTileElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgfeTurbulenceElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvggElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGraphicsElement"] +SvgmPathElement = ["Element", "EventTarget", "Node", "SvgElement"] +SvgsvgElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGraphicsElement"] +SvgtSpanElement = ["Element", "EventTarget", "Node", "SvgElement", "SvgGraphicsElement", "SvgTextContentElement", "SvgTextPositioningElement"] TcpReadyState = [] -TcpServerSocket = [] -TcpServerSocketEvent = [] +TcpServerSocket = ["EventTarget"] +TcpServerSocketEvent = ["Event"] TcpServerSocketEventInit = [] -TcpSocket = [] +TcpSocket = ["EventTarget"] TcpSocketBinaryType = [] -TcpSocketErrorEvent = [] +TcpSocketErrorEvent = ["Event"] TcpSocketErrorEventInit = [] -TcpSocketEvent = [] +TcpSocketEvent = ["Event"] TcpSocketEventInit = [] -Text = [] +Text = ["CharacterData", "EventTarget", "Node"] TextDecodeOptions = [] TextDecoder = [] TextDecoderOptions = [] TextEncoder = [] TextMetrics = [] -TextTrack = [] -TextTrackCue = [] +TextTrack = ["EventTarget"] +TextTrackCue = ["EventTarget"] TextTrackCueList = [] TextTrackKind = [] -TextTrackList = [] +TextTrackList = ["EventTarget"] TextTrackMode = [] -TimeEvent = [] +TimeEvent = ["Event"] TimeRanges = [] Touch = [] -TouchEvent = [] +TouchEvent = ["Event", "UiEvent"] TouchEventInit = [] TouchInit = [] TouchList = [] -TrackEvent = [] +TrackEvent = ["Event"] TrackEventInit = [] -TransitionEvent = [] +TransitionEvent = ["Event"] TransitionEventInit = [] Transport = [] TreeBoxObject = [] @@ -1215,23 +1201,23 @@ U2f = [] U2fClientData = [] UdpMessageEventInit = [] UdpOptions = [] -UiEvent = [] +UiEvent = ["Event"] UiEventInit = [] Url = [] UrlSearchParams = [] -UserProximityEvent = [] +UserProximityEvent = ["Event"] UserProximityEventInit = [] UserVerificationRequirement = [] ValidityState = [] VideoConfiguration = [] VideoFacingModeEnum = [] VideoPlaybackQuality = [] -VideoStreamTrack = [] +VideoStreamTrack = ["EventTarget", "MediaStreamTrack"] VideoTrack = [] -VideoTrackList = [] +VideoTrackList = ["EventTarget"] VisibilityState = [] VoidCallback = [] -VrDisplay = [] +VrDisplay = ["EventTarget"] VrDisplayCapabilities = [] VrEye = [] VrEyeParameters = [] @@ -1244,15 +1230,15 @@ VrPose = [] VrServiceTest = [] VrStageParameters = [] VrSubmitFrameResult = [] -VttCue = [] +VttCue = ["EventTarget", "TextTrackCue"] VttRegion = [] -WaveShaperNode = [] +WaveShaperNode = ["AudioNode", "EventTarget"] WaveShaperOptions = [] WebGl2RenderingContext = [] WebGlActiveInfo = [] WebGlBuffer = [] WebGlContextAttributes = [] -WebGlContextEvent = [] +WebGlContextEvent = ["Event"] WebGlContextEventInit = [] WebGlFramebuffer = [] WebGlPowerPreference = [] @@ -1268,8 +1254,8 @@ WebGlTexture = [] WebGlTransformFeedback = [] WebGlUniformLocation = [] WebGlVertexArrayObject = [] -WebKitCssMatrix = [] -WebSocket = [] +WebKitCssMatrix = ["DomMatrix", "DomMatrixReadOnly"] +WebSocket = ["EventTarget"] WebSocketDict = [] WebSocketElement = [] WebglColorBufferFloat = [] @@ -1286,27 +1272,28 @@ WebglDepthTexture = [] WebglDrawBuffers = [] WebglLoseContext = [] WebrtcGlobalStatisticsReport = [] -WheelEvent = [] +WheelEvent = ["Event", "MouseEvent", "UiEvent"] WheelEventInit = [] WidevineCdmManifest = [] -Window = [] -WindowClient = [] -Worker = [] -WorkerDebuggerGlobalScope = [] -WorkerGlobalScope = [] +Window = ["EventTarget"] +WindowClient = ["Client"] +Worker = ["EventTarget"] +WorkerDebuggerGlobalScope = ["EventTarget"] +WorkerGlobalScope = ["EventTarget"] WorkerLocation = [] WorkerNavigator = [] WorkerOptions = [] Worklet = [] WorkletGlobalScope = [] +WorkletOptions = [] XPathExpression = [] XPathNsResolver = [] XPathResult = [] -XmlDocument = [] -XmlHttpRequest = [] -XmlHttpRequestEventTarget = [] +XmlDocument = ["Document", "EventTarget", "Node"] +XmlHttpRequest = ["EventTarget", "XmlHttpRequestEventTarget"] +XmlHttpRequestEventTarget = ["EventTarget"] XmlHttpRequestResponseType = [] -XmlHttpRequestUpload = [] +XmlHttpRequestUpload = ["EventTarget", "XmlHttpRequestEventTarget"] XmlSerializer = [] XsltProcessor = [] console = [] diff --git a/crates/web-sys/build.rs b/crates/web-sys/build.rs deleted file mode 100644 index eba79a90..00000000 --- a/crates/web-sys/build.rs +++ /dev/null @@ -1,111 +0,0 @@ -use anyhow::{Context, Result}; -use sourcefile::SourceFile; -use std::collections::HashSet; -use std::env; -use std::ffi::OsStr; -use std::fs; -use std::path::{self, PathBuf}; -use std::process::Command; - -/// Read all WebIDL files in a directory into a single `SourceFile` -fn read_source_from_path(dir: &str) -> Result { - let entries = fs::read_dir(dir).context("reading webidls/enabled directory")?; - let mut source = SourceFile::default(); - for entry in entries { - let entry = entry.context(format!("getting {}/*.webidl entry", dir))?; - let path = entry.path(); - if path.extension() != Some(OsStr::new("webidl")) { - continue; - } - println!("cargo:rerun-if-changed={}", path.display()); - source = source - .add_file(&path) - .with_context(|| format!("reading contents of file \"{}\"", path.display()))?; - } - - Ok(source) -} - -fn main() -> Result<()> { - #[cfg(feature = "env_logger")] - env_logger::init(); - println!("cargo:rerun-if-changed=build.rs"); - println!("cargo:rerun-if-changed=webidls/enabled"); - println!("cargo:rerun-if-changed=webidls/unstable"); - - // Read our manifest, learn all `[feature]` directives with "toml parsing". - // Use all these names to match against environment variables set by Cargo - // to figure out which features are activated to we can pass that down to - // the webidl compiler. - let manifest_dir = PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").unwrap()); - let manifest = fs::read_to_string(manifest_dir.join("Cargo.toml"))?; - let features = manifest - .lines() - .skip_while(|f| !f.starts_with("[features]")); - - let enabled_features = env::vars() - .map(|p| p.0) - .filter(|p| p.starts_with("CARGO_FEATURE_")) - .map(|mut p| { - p.drain(0.."CARGO_FEATURE_".len()); - p - }) - .collect::>(); - - let mut allowed = Vec::new(); - for feature in features.filter(|f| !f.starts_with("#") && !f.starts_with("[")) { - let mut parts = feature.split('='); - let name = parts.next().unwrap().trim(); - if enabled_features.contains(&name.to_uppercase()) { - allowed.push(name); - } - } - - // If we're printing all features don't filter anything - println!("cargo:rerun-if-env-changed=__WASM_BINDGEN_DUMP_FEATURES"); - let allowed = if env::var("__WASM_BINDGEN_DUMP_FEATURES").is_ok() { - None - } else { - Some(&allowed[..]) - }; - - let source = read_source_from_path("webidls/enabled")?; - let unstable_source = read_source_from_path("webidls/unstable")?; - - let bindings = - match wasm_bindgen_webidl::compile(&source.contents, &unstable_source.contents, allowed) { - Ok(bindings) => bindings, - Err(e) => { - if let Some(err) = e.downcast_ref::() { - if let Some(pos) = source.resolve_offset(err.0) { - let ctx = format!( - "compiling WebIDL into wasm-bindgen bindings in file \ - \"{}\", line {} column {}", - pos.filename, - pos.line + 1, - pos.col + 1 - ); - return Err(e.context(ctx)); - } else { - return Err(e.context("compiling WebIDL into wasm-bindgen bindings")); - } - } - return Err(e.context("compiling WebIDL into wasm-bindgen bindings")); - } - }; - - let out_dir = env::var("OUT_DIR").context("reading OUT_DIR environment variable")?; - let out_file_path = path::Path::new(&out_dir).join("bindings.rs"); - fs::write(&out_file_path, bindings).context("writing bindings to output file")?; - println!("cargo:rustc-env=BINDINGS={}", out_file_path.display()); - - // run rustfmt on the generated file - really handy for debugging - // - // This is opportunistic though so don't assert that it succeeds. - println!("cargo:rerun-if-env-changed=WEBIDL_RUSTFMT_BINDINGS"); - if env::var("WEBIDL_RUSTFMT_BINDINGS").ok() != Some("0".to_string()) { - drop(Command::new("rustfmt").arg(&out_file_path).status()); - } - - Ok(()) -} diff --git a/crates/web-sys/src/features/gen_AbortController.rs b/crates/web-sys/src/features/gen_AbortController.rs new file mode 100644 index 00000000..54980ca5 --- /dev/null +++ b/crates/web-sys/src/features/gen_AbortController.rs @@ -0,0 +1,36 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AbortController , typescript_type = "AbortController" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AbortController` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AbortController`*"] + pub type AbortController; + #[cfg(feature = "AbortSignal")] + # [ wasm_bindgen ( structural , method , getter , js_class = "AbortController" , js_name = signal ) ] + #[doc = "Getter for the `signal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/signal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AbortController`, `AbortSignal`*"] + pub fn signal(this: &AbortController) -> AbortSignal; + #[wasm_bindgen(catch, constructor, js_class = "AbortController")] + #[doc = "The `new AbortController(..)` constructor, creating a new instance of `AbortController`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/AbortController)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AbortController`*"] + pub fn new() -> Result; + # [ wasm_bindgen ( method , structural , js_class = "AbortController" , js_name = abort ) ] + #[doc = "The `abort()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AbortController`*"] + pub fn abort(this: &AbortController); +} diff --git a/crates/web-sys/src/features/gen_AbortSignal.rs b/crates/web-sys/src/features/gen_AbortSignal.rs new file mode 100644 index 00000000..b1baa1ef --- /dev/null +++ b/crates/web-sys/src/features/gen_AbortSignal.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = AbortSignal , typescript_type = "AbortSignal" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AbortSignal` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] + pub type AbortSignal; + # [ wasm_bindgen ( structural , method , getter , js_class = "AbortSignal" , js_name = aborted ) ] + #[doc = "Getter for the `aborted` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/aborted)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] + pub fn aborted(this: &AbortSignal) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "AbortSignal" , js_name = onabort ) ] + #[doc = "Getter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] + pub fn onabort(this: &AbortSignal) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "AbortSignal" , js_name = onabort ) ] + #[doc = "Setter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AbortSignal`*"] + pub fn set_onabort(this: &AbortSignal, value: Option<&::js_sys::Function>); +} diff --git a/crates/web-sys/src/features/gen_AddEventListenerOptions.rs b/crates/web-sys/src/features/gen_AddEventListenerOptions.rs new file mode 100644 index 00000000..fe47d497 --- /dev/null +++ b/crates/web-sys/src/features/gen_AddEventListenerOptions.rs @@ -0,0 +1,69 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AddEventListenerOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AddEventListenerOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"] + pub type AddEventListenerOptions; +} +impl AddEventListenerOptions { + #[doc = "Construct a new `AddEventListenerOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `capture` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"] + pub fn capture(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("capture"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `once` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"] + pub fn once(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("once"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `passive` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`*"] + pub fn passive(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("passive"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AesCbcParams.rs b/crates/web-sys/src/features/gen_AesCbcParams.rs new file mode 100644 index 00000000..620f0225 --- /dev/null +++ b/crates/web-sys/src/features/gen_AesCbcParams.rs @@ -0,0 +1,50 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AesCbcParams ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AesCbcParams` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"] + pub type AesCbcParams; +} +impl AesCbcParams { + #[doc = "Construct a new `AesCbcParams`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"] + pub fn new(name: &str, iv: &::js_sys::Object) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.iv(iv); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `iv` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesCbcParams`*"] + pub fn iv(&mut self, val: &::js_sys::Object) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("iv"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AesCtrParams.rs b/crates/web-sys/src/features/gen_AesCtrParams.rs new file mode 100644 index 00000000..83d63e86 --- /dev/null +++ b/crates/web-sys/src/features/gen_AesCtrParams.rs @@ -0,0 +1,69 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AesCtrParams ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AesCtrParams` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] + pub type AesCtrParams; +} +impl AesCtrParams { + #[doc = "Construct a new `AesCtrParams`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] + pub fn new(name: &str, counter: &::js_sys::Object, length: u8) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.counter(counter); + ret.length(length); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `counter` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] + pub fn counter(&mut self, val: &::js_sys::Object) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("counter"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `length` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesCtrParams`*"] + pub fn length(&mut self, val: u8) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AesDerivedKeyParams.rs b/crates/web-sys/src/features/gen_AesDerivedKeyParams.rs new file mode 100644 index 00000000..885216da --- /dev/null +++ b/crates/web-sys/src/features/gen_AesDerivedKeyParams.rs @@ -0,0 +1,51 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AesDerivedKeyParams ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AesDerivedKeyParams` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"] + pub type AesDerivedKeyParams; +} +impl AesDerivedKeyParams { + #[doc = "Construct a new `AesDerivedKeyParams`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"] + pub fn new(name: &str, length: u32) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.length(length); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `length` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesDerivedKeyParams`*"] + pub fn length(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AesGcmParams.rs b/crates/web-sys/src/features/gen_AesGcmParams.rs new file mode 100644 index 00000000..0133c720 --- /dev/null +++ b/crates/web-sys/src/features/gen_AesGcmParams.rs @@ -0,0 +1,84 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AesGcmParams ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AesGcmParams` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] + pub type AesGcmParams; +} +impl AesGcmParams { + #[doc = "Construct a new `AesGcmParams`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] + pub fn new(name: &str, iv: &::js_sys::Object) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.iv(iv); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `additionalData` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] + pub fn additional_data(&mut self, val: &::js_sys::Object) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("additionalData"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `iv` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] + pub fn iv(&mut self, val: &::js_sys::Object) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("iv"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `tagLength` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesGcmParams`*"] + pub fn tag_length(&mut self, val: u8) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("tagLength"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AesKeyAlgorithm.rs b/crates/web-sys/src/features/gen_AesKeyAlgorithm.rs new file mode 100644 index 00000000..01b20f8a --- /dev/null +++ b/crates/web-sys/src/features/gen_AesKeyAlgorithm.rs @@ -0,0 +1,51 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AesKeyAlgorithm ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AesKeyAlgorithm` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"] + pub type AesKeyAlgorithm; +} +impl AesKeyAlgorithm { + #[doc = "Construct a new `AesKeyAlgorithm`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"] + pub fn new(name: &str, length: u16) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.length(length); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `length` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesKeyAlgorithm`*"] + pub fn length(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AesKeyGenParams.rs b/crates/web-sys/src/features/gen_AesKeyGenParams.rs new file mode 100644 index 00000000..e8e7d490 --- /dev/null +++ b/crates/web-sys/src/features/gen_AesKeyGenParams.rs @@ -0,0 +1,51 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AesKeyGenParams ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AesKeyGenParams` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"] + pub type AesKeyGenParams; +} +impl AesKeyGenParams { + #[doc = "Construct a new `AesKeyGenParams`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"] + pub fn new(name: &str, length: u16) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.length(length); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `length` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AesKeyGenParams`*"] + pub fn length(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Algorithm.rs b/crates/web-sys/src/features/gen_Algorithm.rs new file mode 100644 index 00000000..cde31648 --- /dev/null +++ b/crates/web-sys/src/features/gen_Algorithm.rs @@ -0,0 +1,36 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Algorithm ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Algorithm` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Algorithm`*"] + pub type Algorithm; +} +impl Algorithm { + #[doc = "Construct a new `Algorithm`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Algorithm`*"] + pub fn new(name: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Algorithm`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AlignSetting.rs b/crates/web-sys/src/features/gen_AlignSetting.rs new file mode 100644 index 00000000..b8007099 --- /dev/null +++ b/crates/web-sys/src/features/gen_AlignSetting.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `AlignSetting` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `AlignSetting`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum AlignSetting { + Start = "start", + Center = "center", + End = "end", + Left = "left", + Right = "right", +} diff --git a/crates/web-sys/src/features/gen_AnalyserNode.rs b/crates/web-sys/src/features/gen_AnalyserNode.rs new file mode 100644 index 00000000..ed3c08c1 --- /dev/null +++ b/crates/web-sys/src/features/gen_AnalyserNode.rs @@ -0,0 +1,124 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AnalyserNode , typescript_type = "AnalyserNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AnalyserNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] + pub type AnalyserNode; + # [ wasm_bindgen ( structural , method , getter , js_class = "AnalyserNode" , js_name = fftSize ) ] + #[doc = "Getter for the `fftSize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/fftSize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] + pub fn fft_size(this: &AnalyserNode) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "AnalyserNode" , js_name = fftSize ) ] + #[doc = "Setter for the `fftSize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/fftSize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] + pub fn set_fft_size(this: &AnalyserNode, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "AnalyserNode" , js_name = frequencyBinCount ) ] + #[doc = "Getter for the `frequencyBinCount` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/frequencyBinCount)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] + pub fn frequency_bin_count(this: &AnalyserNode) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "AnalyserNode" , js_name = minDecibels ) ] + #[doc = "Getter for the `minDecibels` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/minDecibels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] + pub fn min_decibels(this: &AnalyserNode) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "AnalyserNode" , js_name = minDecibels ) ] + #[doc = "Setter for the `minDecibels` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/minDecibels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] + pub fn set_min_decibels(this: &AnalyserNode, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "AnalyserNode" , js_name = maxDecibels ) ] + #[doc = "Getter for the `maxDecibels` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/maxDecibels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] + pub fn max_decibels(this: &AnalyserNode) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "AnalyserNode" , js_name = maxDecibels ) ] + #[doc = "Setter for the `maxDecibels` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/maxDecibels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] + pub fn set_max_decibels(this: &AnalyserNode, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "AnalyserNode" , js_name = smoothingTimeConstant ) ] + #[doc = "Getter for the `smoothingTimeConstant` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/smoothingTimeConstant)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] + pub fn smoothing_time_constant(this: &AnalyserNode) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "AnalyserNode" , js_name = smoothingTimeConstant ) ] + #[doc = "Setter for the `smoothingTimeConstant` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/smoothingTimeConstant)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] + pub fn set_smoothing_time_constant(this: &AnalyserNode, value: f64); + #[cfg(feature = "BaseAudioContext")] + #[wasm_bindgen(catch, constructor, js_class = "AnalyserNode")] + #[doc = "The `new AnalyserNode(..)` constructor, creating a new instance of `AnalyserNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/AnalyserNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`, `BaseAudioContext`*"] + pub fn new(context: &BaseAudioContext) -> Result; + #[cfg(all(feature = "AnalyserOptions", feature = "BaseAudioContext",))] + #[wasm_bindgen(catch, constructor, js_class = "AnalyserNode")] + #[doc = "The `new AnalyserNode(..)` constructor, creating a new instance of `AnalyserNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/AnalyserNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`, `AnalyserOptions`, `BaseAudioContext`*"] + pub fn new_with_options( + context: &BaseAudioContext, + options: &AnalyserOptions, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "AnalyserNode" , js_name = getByteFrequencyData ) ] + #[doc = "The `getByteFrequencyData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getByteFrequencyData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] + pub fn get_byte_frequency_data(this: &AnalyserNode, array: &mut [u8]); + # [ wasm_bindgen ( method , structural , js_class = "AnalyserNode" , js_name = getByteTimeDomainData ) ] + #[doc = "The `getByteTimeDomainData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getByteTimeDomainData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] + pub fn get_byte_time_domain_data(this: &AnalyserNode, array: &mut [u8]); + # [ wasm_bindgen ( method , structural , js_class = "AnalyserNode" , js_name = getFloatFrequencyData ) ] + #[doc = "The `getFloatFrequencyData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getFloatFrequencyData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] + pub fn get_float_frequency_data(this: &AnalyserNode, array: &mut [f32]); + # [ wasm_bindgen ( method , structural , js_class = "AnalyserNode" , js_name = getFloatTimeDomainData ) ] + #[doc = "The `getFloatTimeDomainData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode/getFloatTimeDomainData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`*"] + pub fn get_float_time_domain_data(this: &AnalyserNode, array: &mut [f32]); +} diff --git a/crates/web-sys/src/features/gen_AnalyserOptions.rs b/crates/web-sys/src/features/gen_AnalyserOptions.rs new file mode 100644 index 00000000..5deba385 --- /dev/null +++ b/crates/web-sys/src/features/gen_AnalyserOptions.rs @@ -0,0 +1,143 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AnalyserOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AnalyserOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] + pub type AnalyserOptions; +} +impl AnalyserOptions { + #[doc = "Construct a new `AnalyserOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] + pub fn channel_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelCountMode")] + #[doc = "Change the `channelCountMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`, `ChannelCountMode`*"] + pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCountMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelInterpretation")] + #[doc = "Change the `channelInterpretation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`, `ChannelInterpretation`*"] + pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelInterpretation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `fftSize` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] + pub fn fft_size(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("fftSize"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `maxDecibels` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] + pub fn max_decibels(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maxDecibels"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `minDecibels` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] + pub fn min_decibels(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("minDecibels"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `smoothingTimeConstant` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserOptions`*"] + pub fn smoothing_time_constant(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("smoothingTimeConstant"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AngleInstancedArrays.rs b/crates/web-sys/src/features/gen_AngleInstancedArrays.rs new file mode 100644 index 00000000..2875f2a5 --- /dev/null +++ b/crates/web-sys/src/features/gen_AngleInstancedArrays.rs @@ -0,0 +1,68 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ANGLE_instanced_arrays , typescript_type = "ANGLE_instanced_arrays" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AngleInstancedArrays` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"] + pub type AngleInstancedArrays; + # [ wasm_bindgen ( method , structural , js_class = "ANGLE_instanced_arrays" , js_name = drawArraysInstancedANGLE ) ] + #[doc = "The `drawArraysInstancedANGLE()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"] + pub fn draw_arrays_instanced_angle( + this: &AngleInstancedArrays, + mode: u32, + first: i32, + count: i32, + primcount: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "ANGLE_instanced_arrays" , js_name = drawElementsInstancedANGLE ) ] + #[doc = "The `drawElementsInstancedANGLE()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"] + pub fn draw_elements_instanced_angle_with_i32( + this: &AngleInstancedArrays, + mode: u32, + count: i32, + type_: u32, + offset: i32, + primcount: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "ANGLE_instanced_arrays" , js_name = drawElementsInstancedANGLE ) ] + #[doc = "The `drawElementsInstancedANGLE()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"] + pub fn draw_elements_instanced_angle_with_f64( + this: &AngleInstancedArrays, + mode: u32, + count: i32, + type_: u32, + offset: f64, + primcount: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "ANGLE_instanced_arrays" , js_name = vertexAttribDivisorANGLE ) ] + #[doc = "The `vertexAttribDivisorANGLE()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"] + pub fn vertex_attrib_divisor_angle(this: &AngleInstancedArrays, index: u32, divisor: u32); +} +impl AngleInstancedArrays { + #[doc = "The `ANGLE_instanced_arrays.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"] + pub const VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: u32 = 35070u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_Animation.rs b/crates/web-sys/src/features/gen_Animation.rs new file mode 100644 index 00000000..2e5908ef --- /dev/null +++ b/crates/web-sys/src/features/gen_Animation.rs @@ -0,0 +1,227 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = Animation , typescript_type = "Animation" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Animation` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub type Animation; + # [ wasm_bindgen ( structural , method , getter , js_class = "Animation" , js_name = id ) ] + #[doc = "Getter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn id(this: &Animation) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "Animation" , js_name = id ) ] + #[doc = "Setter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn set_id(this: &Animation, value: &str); + #[cfg(feature = "AnimationEffect")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Animation" , js_name = effect ) ] + #[doc = "Getter for the `effect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/effect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationEffect`*"] + pub fn effect(this: &Animation) -> Option; + #[cfg(feature = "AnimationEffect")] + # [ wasm_bindgen ( structural , method , setter , js_class = "Animation" , js_name = effect ) ] + #[doc = "Setter for the `effect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/effect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationEffect`*"] + pub fn set_effect(this: &Animation, value: Option<&AnimationEffect>); + #[cfg(feature = "AnimationTimeline")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Animation" , js_name = timeline ) ] + #[doc = "Getter for the `timeline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/timeline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationTimeline`*"] + pub fn timeline(this: &Animation) -> Option; + #[cfg(feature = "AnimationTimeline")] + # [ wasm_bindgen ( structural , method , setter , js_class = "Animation" , js_name = timeline ) ] + #[doc = "Setter for the `timeline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/timeline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationTimeline`*"] + pub fn set_timeline(this: &Animation, value: Option<&AnimationTimeline>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Animation" , js_name = startTime ) ] + #[doc = "Getter for the `startTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/startTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn start_time(this: &Animation) -> Option; + # [ wasm_bindgen ( structural , method , setter , js_class = "Animation" , js_name = startTime ) ] + #[doc = "Setter for the `startTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/startTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn set_start_time(this: &Animation, value: Option); + # [ wasm_bindgen ( structural , method , getter , js_class = "Animation" , js_name = currentTime ) ] + #[doc = "Getter for the `currentTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/currentTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn current_time(this: &Animation) -> Option; + # [ wasm_bindgen ( structural , method , setter , js_class = "Animation" , js_name = currentTime ) ] + #[doc = "Setter for the `currentTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/currentTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn set_current_time(this: &Animation, value: Option); + # [ wasm_bindgen ( structural , method , getter , js_class = "Animation" , js_name = playbackRate ) ] + #[doc = "Getter for the `playbackRate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/playbackRate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn playback_rate(this: &Animation) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "Animation" , js_name = playbackRate ) ] + #[doc = "Setter for the `playbackRate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/playbackRate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn set_playback_rate(this: &Animation, value: f64); + #[cfg(feature = "AnimationPlayState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Animation" , js_name = playState ) ] + #[doc = "Getter for the `playState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/playState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationPlayState`*"] + pub fn play_state(this: &Animation) -> AnimationPlayState; + # [ wasm_bindgen ( structural , method , getter , js_class = "Animation" , js_name = pending ) ] + #[doc = "Getter for the `pending` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/pending)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn pending(this: &Animation) -> bool; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Animation" , js_name = ready ) ] + #[doc = "Getter for the `ready` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/ready)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn ready(this: &Animation) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Animation" , js_name = finished ) ] + #[doc = "Getter for the `finished` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/finished)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn finished(this: &Animation) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "Animation" , js_name = onfinish ) ] + #[doc = "Getter for the `onfinish` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/onfinish)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn onfinish(this: &Animation) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Animation" , js_name = onfinish ) ] + #[doc = "Setter for the `onfinish` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/onfinish)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn set_onfinish(this: &Animation, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Animation" , js_name = oncancel ) ] + #[doc = "Getter for the `oncancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/oncancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn oncancel(this: &Animation) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Animation" , js_name = oncancel ) ] + #[doc = "Setter for the `oncancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/oncancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn set_oncancel(this: &Animation, value: Option<&::js_sys::Function>); + #[wasm_bindgen(catch, constructor, js_class = "Animation")] + #[doc = "The `new Animation(..)` constructor, creating a new instance of `Animation`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/Animation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn new() -> Result; + #[cfg(feature = "AnimationEffect")] + #[wasm_bindgen(catch, constructor, js_class = "Animation")] + #[doc = "The `new Animation(..)` constructor, creating a new instance of `Animation`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/Animation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationEffect`*"] + pub fn new_with_effect(effect: Option<&AnimationEffect>) -> Result; + #[cfg(all(feature = "AnimationEffect", feature = "AnimationTimeline",))] + #[wasm_bindgen(catch, constructor, js_class = "Animation")] + #[doc = "The `new Animation(..)` constructor, creating a new instance of `Animation`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/Animation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`, `AnimationEffect`, `AnimationTimeline`*"] + pub fn new_with_effect_and_timeline( + effect: Option<&AnimationEffect>, + timeline: Option<&AnimationTimeline>, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "Animation" , js_name = cancel ) ] + #[doc = "The `cancel()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/cancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn cancel(this: &Animation); + # [ wasm_bindgen ( catch , method , structural , js_class = "Animation" , js_name = finish ) ] + #[doc = "The `finish()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/finish)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn finish(this: &Animation) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Animation" , js_name = pause ) ] + #[doc = "The `pause()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/pause)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn pause(this: &Animation) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Animation" , js_name = play ) ] + #[doc = "The `play()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/play)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn play(this: &Animation) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Animation" , js_name = reverse ) ] + #[doc = "The `reverse()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/reverse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn reverse(this: &Animation) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "Animation" , js_name = updatePlaybackRate ) ] + #[doc = "The `updatePlaybackRate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Animation/updatePlaybackRate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Animation`*"] + pub fn update_playback_rate(this: &Animation, playback_rate: f64); +} diff --git a/crates/web-sys/src/features/gen_AnimationEffect.rs b/crates/web-sys/src/features/gen_AnimationEffect.rs new file mode 100644 index 00000000..199f22c6 --- /dev/null +++ b/crates/web-sys/src/features/gen_AnimationEffect.rs @@ -0,0 +1,48 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AnimationEffect , typescript_type = "AnimationEffect" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AnimationEffect` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`*"] + pub type AnimationEffect; + #[cfg(feature = "ComputedEffectTiming")] + # [ wasm_bindgen ( method , structural , js_class = "AnimationEffect" , js_name = getComputedTiming ) ] + #[doc = "The `getComputedTiming()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/getComputedTiming)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`, `ComputedEffectTiming`*"] + pub fn get_computed_timing(this: &AnimationEffect) -> ComputedEffectTiming; + #[cfg(feature = "EffectTiming")] + # [ wasm_bindgen ( method , structural , js_class = "AnimationEffect" , js_name = getTiming ) ] + #[doc = "The `getTiming()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/getTiming)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`, `EffectTiming`*"] + pub fn get_timing(this: &AnimationEffect) -> EffectTiming; + # [ wasm_bindgen ( catch , method , structural , js_class = "AnimationEffect" , js_name = updateTiming ) ] + #[doc = "The `updateTiming()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/updateTiming)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`*"] + pub fn update_timing(this: &AnimationEffect) -> Result<(), JsValue>; + #[cfg(feature = "OptionalEffectTiming")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AnimationEffect" , js_name = updateTiming ) ] + #[doc = "The `updateTiming()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEffect/updateTiming)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEffect`, `OptionalEffectTiming`*"] + pub fn update_timing_with_timing( + this: &AnimationEffect, + timing: &OptionalEffectTiming, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_AnimationEvent.rs b/crates/web-sys/src/features/gen_AnimationEvent.rs new file mode 100644 index 00000000..993be597 --- /dev/null +++ b/crates/web-sys/src/features/gen_AnimationEvent.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = AnimationEvent , typescript_type = "AnimationEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AnimationEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"] + pub type AnimationEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "AnimationEvent" , js_name = animationName ) ] + #[doc = "Getter for the `animationName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/animationName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"] + pub fn animation_name(this: &AnimationEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "AnimationEvent" , js_name = elapsedTime ) ] + #[doc = "Getter for the `elapsedTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/elapsedTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"] + pub fn elapsed_time(this: &AnimationEvent) -> f32; + # [ wasm_bindgen ( structural , method , getter , js_class = "AnimationEvent" , js_name = pseudoElement ) ] + #[doc = "Getter for the `pseudoElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/pseudoElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"] + pub fn pseudo_element(this: &AnimationEvent) -> String; + #[wasm_bindgen(catch, constructor, js_class = "AnimationEvent")] + #[doc = "The `new AnimationEvent(..)` constructor, creating a new instance of `AnimationEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/AnimationEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "AnimationEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "AnimationEvent")] + #[doc = "The `new AnimationEvent(..)` constructor, creating a new instance of `AnimationEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationEvent/AnimationEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEvent`, `AnimationEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &AnimationEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_AnimationEventInit.rs b/crates/web-sys/src/features/gen_AnimationEventInit.rs new file mode 100644 index 00000000..4d695f55 --- /dev/null +++ b/crates/web-sys/src/features/gen_AnimationEventInit.rs @@ -0,0 +1,124 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AnimationEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AnimationEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] + pub type AnimationEventInit; +} +impl AnimationEventInit { + #[doc = "Construct a new `AnimationEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `animationName` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] + pub fn animation_name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("animationName"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `elapsedTime` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] + pub fn elapsed_time(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("elapsedTime"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pseudoElement` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationEventInit`*"] + pub fn pseudo_element(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("pseudoElement"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AnimationPlayState.rs b/crates/web-sys/src/features/gen_AnimationPlayState.rs new file mode 100644 index 00000000..690e5eee --- /dev/null +++ b/crates/web-sys/src/features/gen_AnimationPlayState.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `AnimationPlayState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `AnimationPlayState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum AnimationPlayState { + Idle = "idle", + Running = "running", + Paused = "paused", + Finished = "finished", +} diff --git a/crates/web-sys/src/features/gen_AnimationPlaybackEvent.rs b/crates/web-sys/src/features/gen_AnimationPlaybackEvent.rs new file mode 100644 index 00000000..aedd341e --- /dev/null +++ b/crates/web-sys/src/features/gen_AnimationPlaybackEvent.rs @@ -0,0 +1,46 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = AnimationPlaybackEvent , typescript_type = "AnimationPlaybackEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AnimationPlaybackEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"] + pub type AnimationPlaybackEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "AnimationPlaybackEvent" , js_name = currentTime ) ] + #[doc = "Getter for the `currentTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/currentTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"] + pub fn current_time(this: &AnimationPlaybackEvent) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "AnimationPlaybackEvent" , js_name = timelineTime ) ] + #[doc = "Getter for the `timelineTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/timelineTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"] + pub fn timeline_time(this: &AnimationPlaybackEvent) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "AnimationPlaybackEvent")] + #[doc = "The `new AnimationPlaybackEvent(..)` constructor, creating a new instance of `AnimationPlaybackEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/AnimationPlaybackEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "AnimationPlaybackEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "AnimationPlaybackEvent")] + #[doc = "The `new AnimationPlaybackEvent(..)` constructor, creating a new instance of `AnimationPlaybackEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationPlaybackEvent/AnimationPlaybackEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEvent`, `AnimationPlaybackEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &AnimationPlaybackEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_AnimationPlaybackEventInit.rs b/crates/web-sys/src/features/gen_AnimationPlaybackEventInit.rs new file mode 100644 index 00000000..46ccbbdc --- /dev/null +++ b/crates/web-sys/src/features/gen_AnimationPlaybackEventInit.rs @@ -0,0 +1,107 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AnimationPlaybackEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AnimationPlaybackEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] + pub type AnimationPlaybackEventInit; +} +impl AnimationPlaybackEventInit { + #[doc = "Construct a new `AnimationPlaybackEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `currentTime` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] + pub fn current_time(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("currentTime"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timelineTime` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPlaybackEventInit`*"] + pub fn timeline_time(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timelineTime"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AnimationPropertyDetails.rs b/crates/web-sys/src/features/gen_AnimationPropertyDetails.rs new file mode 100644 index 00000000..9a2c36c9 --- /dev/null +++ b/crates/web-sys/src/features/gen_AnimationPropertyDetails.rs @@ -0,0 +1,94 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AnimationPropertyDetails ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AnimationPropertyDetails` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] + pub type AnimationPropertyDetails; +} +impl AnimationPropertyDetails { + #[doc = "Construct a new `AnimationPropertyDetails`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] + pub fn new( + property: &str, + running_on_compositor: bool, + values: &::wasm_bindgen::JsValue, + ) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.property(property); + ret.running_on_compositor(running_on_compositor); + ret.values(values); + ret + } + #[doc = "Change the `property` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] + pub fn property(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("property"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `runningOnCompositor` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] + pub fn running_on_compositor(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("runningOnCompositor"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `values` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] + pub fn values(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("values"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `warning` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyDetails`*"] + pub fn warning(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("warning"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AnimationPropertyValueDetails.rs b/crates/web-sys/src/features/gen_AnimationPropertyValueDetails.rs new file mode 100644 index 00000000..983fc613 --- /dev/null +++ b/crates/web-sys/src/features/gen_AnimationPropertyValueDetails.rs @@ -0,0 +1,84 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AnimationPropertyValueDetails ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AnimationPropertyValueDetails` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] + pub type AnimationPropertyValueDetails; +} +impl AnimationPropertyValueDetails { + #[cfg(feature = "CompositeOperation")] + #[doc = "Construct a new `AnimationPropertyValueDetails`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`, `CompositeOperation`*"] + pub fn new(composite: CompositeOperation, offset: f64) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.composite(composite); + ret.offset(offset); + ret + } + #[cfg(feature = "CompositeOperation")] + #[doc = "Change the `composite` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`, `CompositeOperation`*"] + pub fn composite(&mut self, val: CompositeOperation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composite"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `easing` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] + pub fn easing(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("easing"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `offset` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] + pub fn offset(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `value` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationPropertyValueDetails`*"] + pub fn value(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AnimationTimeline.rs b/crates/web-sys/src/features/gen_AnimationTimeline.rs new file mode 100644 index 00000000..d6ee1207 --- /dev/null +++ b/crates/web-sys/src/features/gen_AnimationTimeline.rs @@ -0,0 +1,21 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AnimationTimeline , typescript_type = "AnimationTimeline" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AnimationTimeline` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationTimeline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationTimeline`*"] + pub type AnimationTimeline; + # [ wasm_bindgen ( structural , method , getter , js_class = "AnimationTimeline" , js_name = currentTime ) ] + #[doc = "Getter for the `currentTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AnimationTimeline/currentTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnimationTimeline`*"] + pub fn current_time(this: &AnimationTimeline) -> Option; +} diff --git a/crates/web-sys/src/features/gen_AssignedNodesOptions.rs b/crates/web-sys/src/features/gen_AssignedNodesOptions.rs new file mode 100644 index 00000000..6fa0ffbd --- /dev/null +++ b/crates/web-sys/src/features/gen_AssignedNodesOptions.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AssignedNodesOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AssignedNodesOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AssignedNodesOptions`*"] + pub type AssignedNodesOptions; +} +impl AssignedNodesOptions { + #[doc = "Construct a new `AssignedNodesOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AssignedNodesOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `flatten` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AssignedNodesOptions`*"] + pub fn flatten(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("flatten"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AttestationConveyancePreference.rs b/crates/web-sys/src/features/gen_AttestationConveyancePreference.rs new file mode 100644 index 00000000..28ea13c4 --- /dev/null +++ b/crates/web-sys/src/features/gen_AttestationConveyancePreference.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `AttestationConveyancePreference` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `AttestationConveyancePreference`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum AttestationConveyancePreference { + None = "none", + Indirect = "indirect", + Direct = "direct", +} diff --git a/crates/web-sys/src/features/gen_Attr.rs b/crates/web-sys/src/features/gen_Attr.rs new file mode 100644 index 00000000..4945a9c3 --- /dev/null +++ b/crates/web-sys/src/features/gen_Attr.rs @@ -0,0 +1,63 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = Attr , typescript_type = "Attr" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Attr` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`*"] + pub type Attr; + # [ wasm_bindgen ( structural , method , getter , js_class = "Attr" , js_name = localName ) ] + #[doc = "Getter for the `localName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/localName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`*"] + pub fn local_name(this: &Attr) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Attr" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`*"] + pub fn value(this: &Attr) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "Attr" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`*"] + pub fn set_value(this: &Attr, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "Attr" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`*"] + pub fn name(this: &Attr) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Attr" , js_name = namespaceURI ) ] + #[doc = "Getter for the `namespaceURI` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/namespaceURI)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`*"] + pub fn namespace_uri(this: &Attr) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Attr" , js_name = prefix ) ] + #[doc = "Getter for the `prefix` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/prefix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`*"] + pub fn prefix(this: &Attr) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Attr" , js_name = specified ) ] + #[doc = "Getter for the `specified` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Attr/specified)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`*"] + pub fn specified(this: &Attr) -> bool; +} diff --git a/crates/web-sys/src/features/gen_AttributeNameValue.rs b/crates/web-sys/src/features/gen_AttributeNameValue.rs new file mode 100644 index 00000000..9f0d7726 --- /dev/null +++ b/crates/web-sys/src/features/gen_AttributeNameValue.rs @@ -0,0 +1,50 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AttributeNameValue ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AttributeNameValue` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"] + pub type AttributeNameValue; +} +impl AttributeNameValue { + #[doc = "Construct a new `AttributeNameValue`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"] + pub fn new(name: &str, value: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.value(value); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `value` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AttributeNameValue`*"] + pub fn value(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AudioBuffer.rs b/crates/web-sys/src/features/gen_AudioBuffer.rs new file mode 100644 index 00000000..ffed9931 --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioBuffer.rs @@ -0,0 +1,103 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AudioBuffer , typescript_type = "AudioBuffer" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioBuffer` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] + pub type AudioBuffer; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioBuffer" , js_name = sampleRate ) ] + #[doc = "Getter for the `sampleRate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/sampleRate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] + pub fn sample_rate(this: &AudioBuffer) -> f32; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioBuffer" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] + pub fn length(this: &AudioBuffer) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioBuffer" , js_name = duration ) ] + #[doc = "Getter for the `duration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/duration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] + pub fn duration(this: &AudioBuffer) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioBuffer" , js_name = numberOfChannels ) ] + #[doc = "Getter for the `numberOfChannels` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/numberOfChannels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] + pub fn number_of_channels(this: &AudioBuffer) -> u32; + #[cfg(feature = "AudioBufferOptions")] + #[wasm_bindgen(catch, constructor, js_class = "AudioBuffer")] + #[doc = "The `new AudioBuffer(..)` constructor, creating a new instance of `AudioBuffer`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/AudioBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioBufferOptions`*"] + pub fn new(options: &AudioBufferOptions) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioBuffer" , js_name = copyFromChannel ) ] + #[doc = "The `copyFromChannel()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyFromChannel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] + pub fn copy_from_channel( + this: &AudioBuffer, + destination: &mut [f32], + channel_number: i32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioBuffer" , js_name = copyFromChannel ) ] + #[doc = "The `copyFromChannel()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyFromChannel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] + pub fn copy_from_channel_with_start_in_channel( + this: &AudioBuffer, + destination: &mut [f32], + channel_number: i32, + start_in_channel: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioBuffer" , js_name = copyToChannel ) ] + #[doc = "The `copyToChannel()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyToChannel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] + pub fn copy_to_channel( + this: &AudioBuffer, + source: &mut [f32], + channel_number: i32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioBuffer" , js_name = copyToChannel ) ] + #[doc = "The `copyToChannel()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/copyToChannel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] + pub fn copy_to_channel_with_start_in_channel( + this: &AudioBuffer, + source: &mut [f32], + channel_number: i32, + start_in_channel: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioBuffer" , js_name = getChannelData ) ] + #[doc = "The `getChannelData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBuffer/getChannelData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`*"] + pub fn get_channel_data(this: &AudioBuffer, channel: u32) -> Result, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_AudioBufferOptions.rs b/crates/web-sys/src/features/gen_AudioBufferOptions.rs new file mode 100644 index 00000000..842a1128 --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioBufferOptions.rs @@ -0,0 +1,72 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AudioBufferOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioBufferOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"] + pub type AudioBufferOptions; +} +impl AudioBufferOptions { + #[doc = "Construct a new `AudioBufferOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"] + pub fn new(length: u32, sample_rate: f32) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.length(length); + ret.sample_rate(sample_rate); + ret + } + #[doc = "Change the `length` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"] + pub fn length(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `numberOfChannels` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"] + pub fn number_of_channels(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("numberOfChannels"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `sampleRate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferOptions`*"] + pub fn sample_rate(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sampleRate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AudioBufferSourceNode.rs b/crates/web-sys/src/features/gen_AudioBufferSourceNode.rs new file mode 100644 index 00000000..9f7216d1 --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioBufferSourceNode.rs @@ -0,0 +1,172 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioScheduledSourceNode , extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioBufferSourceNode , typescript_type = "AudioBufferSourceNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioBufferSourceNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] + pub type AudioBufferSourceNode; + #[cfg(feature = "AudioBuffer")] + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = buffer ) ] + #[doc = "Getter for the `buffer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/buffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioBufferSourceNode`*"] + pub fn buffer(this: &AudioBufferSourceNode) -> Option; + #[cfg(feature = "AudioBuffer")] + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = buffer ) ] + #[doc = "Setter for the `buffer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/buffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioBufferSourceNode`*"] + pub fn set_buffer(this: &AudioBufferSourceNode, value: Option<&AudioBuffer>); + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = playbackRate ) ] + #[doc = "Getter for the `playbackRate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/playbackRate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `AudioParam`*"] + pub fn playback_rate(this: &AudioBufferSourceNode) -> AudioParam; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = detune ) ] + #[doc = "Getter for the `detune` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/detune)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `AudioParam`*"] + pub fn detune(this: &AudioBufferSourceNode) -> AudioParam; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = loop ) ] + #[doc = "Getter for the `loop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] + pub fn loop_(this: &AudioBufferSourceNode) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = loop ) ] + #[doc = "Setter for the `loop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] + pub fn set_loop(this: &AudioBufferSourceNode, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = loopStart ) ] + #[doc = "Getter for the `loopStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] + pub fn loop_start(this: &AudioBufferSourceNode) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = loopStart ) ] + #[doc = "Setter for the `loopStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] + pub fn set_loop_start(this: &AudioBufferSourceNode, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = loopEnd ) ] + #[doc = "Getter for the `loopEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] + pub fn loop_end(this: &AudioBufferSourceNode) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = loopEnd ) ] + #[doc = "Setter for the `loopEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/loopEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] + pub fn set_loop_end(this: &AudioBufferSourceNode, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioBufferSourceNode" , js_name = onended ) ] + #[doc = "Getter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] + pub fn onended(this: &AudioBufferSourceNode) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioBufferSourceNode" , js_name = onended ) ] + #[doc = "Setter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] + pub fn set_onended(this: &AudioBufferSourceNode, value: Option<&::js_sys::Function>); + #[cfg(feature = "BaseAudioContext")] + #[wasm_bindgen(catch, constructor, js_class = "AudioBufferSourceNode")] + #[doc = "The `new AudioBufferSourceNode(..)` constructor, creating a new instance of `AudioBufferSourceNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/AudioBufferSourceNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `BaseAudioContext`*"] + pub fn new(context: &BaseAudioContext) -> Result; + #[cfg(all(feature = "AudioBufferSourceOptions", feature = "BaseAudioContext",))] + #[wasm_bindgen(catch, constructor, js_class = "AudioBufferSourceNode")] + #[doc = "The `new AudioBufferSourceNode(..)` constructor, creating a new instance of `AudioBufferSourceNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/AudioBufferSourceNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `AudioBufferSourceOptions`, `BaseAudioContext`*"] + pub fn new_with_options( + context: &BaseAudioContext, + options: &AudioBufferSourceOptions, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = start ) ] + #[doc = "The `start()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] + pub fn start(this: &AudioBufferSourceNode) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = start ) ] + #[doc = "The `start()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] + pub fn start_with_when(this: &AudioBufferSourceNode, when: f64) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = start ) ] + #[doc = "The `start()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] + pub fn start_with_when_and_grain_offset( + this: &AudioBufferSourceNode, + when: f64, + grain_offset: f64, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = start ) ] + #[doc = "The `start()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] + pub fn start_with_when_and_grain_offset_and_grain_duration( + this: &AudioBufferSourceNode, + when: f64, + grain_offset: f64, + grain_duration: f64, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = stop ) ] + #[doc = "The `stop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/stop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] + pub fn stop(this: &AudioBufferSourceNode) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioBufferSourceNode" , js_name = stop ) ] + #[doc = "The `stop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioBufferSourceNode/stop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`*"] + pub fn stop_with_when(this: &AudioBufferSourceNode, when: f64) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_AudioBufferSourceOptions.rs b/crates/web-sys/src/features/gen_AudioBufferSourceOptions.rs new file mode 100644 index 00000000..ec3f23da --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioBufferSourceOptions.rs @@ -0,0 +1,115 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AudioBufferSourceOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioBufferSourceOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] + pub type AudioBufferSourceOptions; +} +impl AudioBufferSourceOptions { + #[doc = "Construct a new `AudioBufferSourceOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "AudioBuffer")] + #[doc = "Change the `buffer` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioBufferSourceOptions`*"] + pub fn buffer(&mut self, val: Option<&AudioBuffer>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("buffer"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `detune` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] + pub fn detune(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detune"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `loop` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] + pub fn loop_(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("loop"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `loopEnd` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] + pub fn loop_end(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("loopEnd"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `loopStart` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] + pub fn loop_start(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("loopStart"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `playbackRate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceOptions`*"] + pub fn playback_rate(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("playbackRate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AudioConfiguration.rs b/crates/web-sys/src/features/gen_AudioConfiguration.rs new file mode 100644 index 00000000..dd2f7747 --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioConfiguration.rs @@ -0,0 +1,90 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AudioConfiguration ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioConfiguration` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] + pub type AudioConfiguration; +} +impl AudioConfiguration { + #[doc = "Construct a new `AudioConfiguration`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bitrate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] + pub fn bitrate(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bitrate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `channels` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] + pub fn channels(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channels"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `contentType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] + pub fn content_type(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("contentType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `samplerate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`*"] + pub fn samplerate(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("samplerate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AudioContext.rs b/crates/web-sys/src/features/gen_AudioContext.rs new file mode 100644 index 00000000..9758a2ff --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioContext.rs @@ -0,0 +1,418 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( vendor_prefix = webkit , extends = BaseAudioContext , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioContext , typescript_type = "AudioContext" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioContext` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] + pub type AudioContext; + #[cfg(feature = "AudioDestinationNode")] + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioContext" , js_name = destination ) ] + #[doc = "Getter for the `destination` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/destination)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioDestinationNode`*"] + pub fn destination(this: &AudioContext) -> AudioDestinationNode; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioContext" , js_name = sampleRate ) ] + #[doc = "Getter for the `sampleRate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/sampleRate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] + pub fn sample_rate(this: &AudioContext) -> f32; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioContext" , js_name = currentTime ) ] + #[doc = "Getter for the `currentTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/currentTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] + pub fn current_time(this: &AudioContext) -> f64; + #[cfg(feature = "AudioListener")] + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioContext" , js_name = listener ) ] + #[doc = "Getter for the `listener` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/listener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioListener`*"] + pub fn listener(this: &AudioContext) -> AudioListener; + #[cfg(feature = "AudioContextState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioContext" , js_name = state ) ] + #[doc = "Getter for the `state` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/state)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioContextState`*"] + pub fn state(this: &AudioContext) -> AudioContextState; + #[cfg(feature = "AudioWorklet")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "AudioContext" , js_name = audioWorklet ) ] + #[doc = "Getter for the `audioWorklet` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/audioWorklet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioWorklet`*"] + pub fn audio_worklet(this: &AudioContext) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioContext" , js_name = onstatechange ) ] + #[doc = "Getter for the `onstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/onstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] + pub fn onstatechange(this: &AudioContext) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioContext" , js_name = onstatechange ) ] + #[doc = "Setter for the `onstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/onstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] + pub fn set_onstatechange(this: &AudioContext, value: Option<&::js_sys::Function>); + #[wasm_bindgen(catch, constructor, js_class = "AudioContext")] + #[doc = "The `new AudioContext(..)` constructor, creating a new instance of `AudioContext`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] + pub fn new() -> Result; + #[cfg(feature = "AudioContextOptions")] + #[wasm_bindgen(catch, constructor, js_class = "AudioContext")] + #[doc = "The `new AudioContext(..)` constructor, creating a new instance of `AudioContext`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/AudioContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioContextOptions`*"] + pub fn new_with_context_options( + context_options: &AudioContextOptions, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] + pub fn close(this: &AudioContext) -> Result<::js_sys::Promise, JsValue>; + #[cfg(all(feature = "HtmlMediaElement", feature = "MediaElementAudioSourceNode",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createMediaElementSource ) ] + #[doc = "The `createMediaElementSource()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaElementSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `HtmlMediaElement`, `MediaElementAudioSourceNode`*"] + pub fn create_media_element_source( + this: &AudioContext, + media_element: &HtmlMediaElement, + ) -> Result; + #[cfg(feature = "MediaStreamAudioDestinationNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createMediaStreamDestination ) ] + #[doc = "The `createMediaStreamDestination()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaStreamDestination)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `MediaStreamAudioDestinationNode`*"] + pub fn create_media_stream_destination( + this: &AudioContext, + ) -> Result; + #[cfg(all(feature = "MediaStream", feature = "MediaStreamAudioSourceNode",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createMediaStreamSource ) ] + #[doc = "The `createMediaStreamSource()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createMediaStreamSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `MediaStream`, `MediaStreamAudioSourceNode`*"] + pub fn create_media_stream_source( + this: &AudioContext, + media_stream: &MediaStream, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = suspend ) ] + #[doc = "The `suspend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/suspend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] + pub fn suspend(this: &AudioContext) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "AnalyserNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createAnalyser ) ] + #[doc = "The `createAnalyser()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createAnalyser)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`, `AudioContext`*"] + pub fn create_analyser(this: &AudioContext) -> Result; + #[cfg(feature = "BiquadFilterNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createBiquadFilter ) ] + #[doc = "The `createBiquadFilter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBiquadFilter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `BiquadFilterNode`*"] + pub fn create_biquad_filter(this: &AudioContext) -> Result; + #[cfg(feature = "AudioBuffer")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createBuffer ) ] + #[doc = "The `createBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioContext`*"] + pub fn create_buffer( + this: &AudioContext, + number_of_channels: u32, + length: u32, + sample_rate: f32, + ) -> Result; + #[cfg(feature = "AudioBufferSourceNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createBufferSource ) ] + #[doc = "The `createBufferSource()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createBufferSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `AudioContext`*"] + pub fn create_buffer_source(this: &AudioContext) -> Result; + #[cfg(feature = "ChannelMergerNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createChannelMerger ) ] + #[doc = "The `createChannelMerger()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createChannelMerger)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ChannelMergerNode`*"] + pub fn create_channel_merger(this: &AudioContext) -> Result; + #[cfg(feature = "ChannelMergerNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createChannelMerger ) ] + #[doc = "The `createChannelMerger()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createChannelMerger)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ChannelMergerNode`*"] + pub fn create_channel_merger_with_number_of_inputs( + this: &AudioContext, + number_of_inputs: u32, + ) -> Result; + #[cfg(feature = "ChannelSplitterNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createChannelSplitter ) ] + #[doc = "The `createChannelSplitter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createChannelSplitter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ChannelSplitterNode`*"] + pub fn create_channel_splitter(this: &AudioContext) -> Result; + #[cfg(feature = "ChannelSplitterNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createChannelSplitter ) ] + #[doc = "The `createChannelSplitter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createChannelSplitter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ChannelSplitterNode`*"] + pub fn create_channel_splitter_with_number_of_outputs( + this: &AudioContext, + number_of_outputs: u32, + ) -> Result; + #[cfg(feature = "ConstantSourceNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createConstantSource ) ] + #[doc = "The `createConstantSource()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createConstantSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ConstantSourceNode`*"] + pub fn create_constant_source(this: &AudioContext) -> Result; + #[cfg(feature = "ConvolverNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createConvolver ) ] + #[doc = "The `createConvolver()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createConvolver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ConvolverNode`*"] + pub fn create_convolver(this: &AudioContext) -> Result; + #[cfg(feature = "DelayNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createDelay ) ] + #[doc = "The `createDelay()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createDelay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `DelayNode`*"] + pub fn create_delay(this: &AudioContext) -> Result; + #[cfg(feature = "DelayNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createDelay ) ] + #[doc = "The `createDelay()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createDelay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `DelayNode`*"] + pub fn create_delay_with_max_delay_time( + this: &AudioContext, + max_delay_time: f64, + ) -> Result; + #[cfg(feature = "DynamicsCompressorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createDynamicsCompressor ) ] + #[doc = "The `createDynamicsCompressor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createDynamicsCompressor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `DynamicsCompressorNode`*"] + pub fn create_dynamics_compressor( + this: &AudioContext, + ) -> Result; + #[cfg(feature = "GainNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createGain ) ] + #[doc = "The `createGain()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createGain)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `GainNode`*"] + pub fn create_gain(this: &AudioContext) -> Result; + #[cfg(feature = "IirFilterNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createIIRFilter ) ] + #[doc = "The `createIIRFilter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createIIRFilter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `IirFilterNode`*"] + pub fn create_iir_filter( + this: &AudioContext, + feedforward: &::wasm_bindgen::JsValue, + feedback: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(feature = "OscillatorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createOscillator ) ] + #[doc = "The `createOscillator()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createOscillator)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `OscillatorNode`*"] + pub fn create_oscillator(this: &AudioContext) -> Result; + #[cfg(feature = "PannerNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createPanner ) ] + #[doc = "The `createPanner()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPanner)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `PannerNode`*"] + pub fn create_panner(this: &AudioContext) -> Result; + #[cfg(feature = "PeriodicWave")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createPeriodicWave ) ] + #[doc = "The `createPeriodicWave()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPeriodicWave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `PeriodicWave`*"] + pub fn create_periodic_wave( + this: &AudioContext, + real: &mut [f32], + imag: &mut [f32], + ) -> Result; + #[cfg(all(feature = "PeriodicWave", feature = "PeriodicWaveConstraints",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createPeriodicWave ) ] + #[doc = "The `createPeriodicWave()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createPeriodicWave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*"] + pub fn create_periodic_wave_with_constraints( + this: &AudioContext, + real: &mut [f32], + imag: &mut [f32], + constraints: &PeriodicWaveConstraints, + ) -> Result; + #[cfg(feature = "ScriptProcessorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createScriptProcessor ) ] + #[doc = "The `createScriptProcessor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ScriptProcessorNode`*"] + pub fn create_script_processor(this: &AudioContext) -> Result; + #[cfg(feature = "ScriptProcessorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createScriptProcessor ) ] + #[doc = "The `createScriptProcessor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ScriptProcessorNode`*"] + pub fn create_script_processor_with_buffer_size( + this: &AudioContext, + buffer_size: u32, + ) -> Result; + #[cfg(feature = "ScriptProcessorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createScriptProcessor ) ] + #[doc = "The `createScriptProcessor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ScriptProcessorNode`*"] + pub fn create_script_processor_with_buffer_size_and_number_of_input_channels( + this: &AudioContext, + buffer_size: u32, + number_of_input_channels: u32, + ) -> Result; + #[cfg(feature = "ScriptProcessorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createScriptProcessor ) ] + #[doc = "The `createScriptProcessor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createScriptProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `ScriptProcessorNode`*"] + pub fn create_script_processor_with_buffer_size_and_number_of_input_channels_and_number_of_output_channels( + this: &AudioContext, + buffer_size: u32, + number_of_input_channels: u32, + number_of_output_channels: u32, + ) -> Result; + #[cfg(feature = "StereoPannerNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createStereoPanner ) ] + #[doc = "The `createStereoPanner()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createStereoPanner)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `StereoPannerNode`*"] + pub fn create_stereo_panner(this: &AudioContext) -> Result; + #[cfg(feature = "WaveShaperNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = createWaveShaper ) ] + #[doc = "The `createWaveShaper()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/createWaveShaper)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `WaveShaperNode`*"] + pub fn create_wave_shaper(this: &AudioContext) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = decodeAudioData ) ] + #[doc = "The `decodeAudioData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/decodeAudioData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] + pub fn decode_audio_data( + this: &AudioContext, + audio_data: &::js_sys::ArrayBuffer, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = decodeAudioData ) ] + #[doc = "The `decodeAudioData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/decodeAudioData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] + pub fn decode_audio_data_with_success_callback( + this: &AudioContext, + audio_data: &::js_sys::ArrayBuffer, + success_callback: &::js_sys::Function, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = decodeAudioData ) ] + #[doc = "The `decodeAudioData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/decodeAudioData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] + pub fn decode_audio_data_with_success_callback_and_error_callback( + this: &AudioContext, + audio_data: &::js_sys::ArrayBuffer, + success_callback: &::js_sys::Function, + error_callback: &::js_sys::Function, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioContext" , js_name = resume ) ] + #[doc = "The `resume()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioContext/resume)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`*"] + pub fn resume(this: &AudioContext) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_AudioContextOptions.rs b/crates/web-sys/src/features/gen_AudioContextOptions.rs new file mode 100644 index 00000000..b273a6ad --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioContextOptions.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AudioContextOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioContextOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"] + pub type AudioContextOptions; +} +impl AudioContextOptions { + #[doc = "Construct a new `AudioContextOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `sampleRate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContextOptions`*"] + pub fn sample_rate(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sampleRate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AudioContextState.rs b/crates/web-sys/src/features/gen_AudioContextState.rs new file mode 100644 index 00000000..95ab2ca1 --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioContextState.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `AudioContextState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `AudioContextState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum AudioContextState { + Suspended = "suspended", + Running = "running", + Closed = "closed", +} diff --git a/crates/web-sys/src/features/gen_AudioDestinationNode.rs b/crates/web-sys/src/features/gen_AudioDestinationNode.rs new file mode 100644 index 00000000..2faeb8bd --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioDestinationNode.rs @@ -0,0 +1,21 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioDestinationNode , typescript_type = "AudioDestinationNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioDestinationNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDestinationNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioDestinationNode`*"] + pub type AudioDestinationNode; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioDestinationNode" , js_name = maxChannelCount ) ] + #[doc = "Getter for the `maxChannelCount` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioDestinationNode/maxChannelCount)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioDestinationNode`*"] + pub fn max_channel_count(this: &AudioDestinationNode) -> u32; +} diff --git a/crates/web-sys/src/features/gen_AudioListener.rs b/crates/web-sys/src/features/gen_AudioListener.rs new file mode 100644 index 00000000..594dda8c --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioListener.rs @@ -0,0 +1,71 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AudioListener , typescript_type = "AudioListener" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioListener` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] + pub type AudioListener; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioListener" , js_name = dopplerFactor ) ] + #[doc = "Getter for the `dopplerFactor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] + pub fn doppler_factor(this: &AudioListener) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioListener" , js_name = dopplerFactor ) ] + #[doc = "Setter for the `dopplerFactor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/dopplerFactor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] + pub fn set_doppler_factor(this: &AudioListener, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioListener" , js_name = speedOfSound ) ] + #[doc = "Getter for the `speedOfSound` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] + pub fn speed_of_sound(this: &AudioListener) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioListener" , js_name = speedOfSound ) ] + #[doc = "Setter for the `speedOfSound` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/speedOfSound)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] + pub fn set_speed_of_sound(this: &AudioListener, value: f64); + # [ wasm_bindgen ( method , structural , js_class = "AudioListener" , js_name = setOrientation ) ] + #[doc = "The `setOrientation()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setOrientation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] + pub fn set_orientation( + this: &AudioListener, + x: f64, + y: f64, + z: f64, + x_up: f64, + y_up: f64, + z_up: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "AudioListener" , js_name = setPosition ) ] + #[doc = "The `setPosition()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setPosition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] + pub fn set_position(this: &AudioListener, x: f64, y: f64, z: f64); + # [ wasm_bindgen ( method , structural , js_class = "AudioListener" , js_name = setVelocity ) ] + #[doc = "The `setVelocity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioListener/setVelocity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioListener`*"] + pub fn set_velocity(this: &AudioListener, x: f64, y: f64, z: f64); +} diff --git a/crates/web-sys/src/features/gen_AudioNode.rs b/crates/web-sys/src/features/gen_AudioNode.rs new file mode 100644 index 00000000..ac4dd8aa --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioNode.rs @@ -0,0 +1,208 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioNode , typescript_type = "AudioNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] + pub type AudioNode; + #[cfg(feature = "BaseAudioContext")] + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioNode" , js_name = context ) ] + #[doc = "Getter for the `context` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/context)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `BaseAudioContext`*"] + pub fn context(this: &AudioNode) -> BaseAudioContext; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioNode" , js_name = numberOfInputs ) ] + #[doc = "Getter for the `numberOfInputs` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/numberOfInputs)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] + pub fn number_of_inputs(this: &AudioNode) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioNode" , js_name = numberOfOutputs ) ] + #[doc = "Getter for the `numberOfOutputs` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/numberOfOutputs)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] + pub fn number_of_outputs(this: &AudioNode) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioNode" , js_name = channelCount ) ] + #[doc = "Getter for the `channelCount` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCount)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] + pub fn channel_count(this: &AudioNode) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioNode" , js_name = channelCount ) ] + #[doc = "Setter for the `channelCount` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCount)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] + pub fn set_channel_count(this: &AudioNode, value: u32); + #[cfg(feature = "ChannelCountMode")] + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioNode" , js_name = channelCountMode ) ] + #[doc = "Getter for the `channelCountMode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCountMode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelCountMode`*"] + pub fn channel_count_mode(this: &AudioNode) -> ChannelCountMode; + #[cfg(feature = "ChannelCountMode")] + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioNode" , js_name = channelCountMode ) ] + #[doc = "Setter for the `channelCountMode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelCountMode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelCountMode`*"] + pub fn set_channel_count_mode(this: &AudioNode, value: ChannelCountMode); + #[cfg(feature = "ChannelInterpretation")] + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioNode" , js_name = channelInterpretation ) ] + #[doc = "Getter for the `channelInterpretation` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelInterpretation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelInterpretation`*"] + pub fn channel_interpretation(this: &AudioNode) -> ChannelInterpretation; + #[cfg(feature = "ChannelInterpretation")] + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioNode" , js_name = channelInterpretation ) ] + #[doc = "Setter for the `channelInterpretation` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/channelInterpretation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `ChannelInterpretation`*"] + pub fn set_channel_interpretation(this: &AudioNode, value: ChannelInterpretation); + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioNode" , js_name = connect ) ] + #[doc = "The `connect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] + pub fn connect_with_audio_node( + this: &AudioNode, + destination: &AudioNode, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioNode" , js_name = connect ) ] + #[doc = "The `connect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] + pub fn connect_with_audio_node_and_output( + this: &AudioNode, + destination: &AudioNode, + output: u32, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioNode" , js_name = connect ) ] + #[doc = "The `connect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] + pub fn connect_with_audio_node_and_output_and_input( + this: &AudioNode, + destination: &AudioNode, + output: u32, + input: u32, + ) -> Result; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioNode" , js_name = connect ) ] + #[doc = "The `connect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `AudioParam`*"] + pub fn connect_with_audio_param( + this: &AudioNode, + destination: &AudioParam, + ) -> Result<(), JsValue>; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioNode" , js_name = connect ) ] + #[doc = "The `connect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/connect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `AudioParam`*"] + pub fn connect_with_audio_param_and_output( + this: &AudioNode, + destination: &AudioParam, + output: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioNode" , js_name = disconnect ) ] + #[doc = "The `disconnect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] + pub fn disconnect(this: &AudioNode) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioNode" , js_name = disconnect ) ] + #[doc = "The `disconnect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] + pub fn disconnect_with_output(this: &AudioNode, output: u32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioNode" , js_name = disconnect ) ] + #[doc = "The `disconnect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] + pub fn disconnect_with_audio_node( + this: &AudioNode, + destination: &AudioNode, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioNode" , js_name = disconnect ) ] + #[doc = "The `disconnect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] + pub fn disconnect_with_audio_node_and_output( + this: &AudioNode, + destination: &AudioNode, + output: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioNode" , js_name = disconnect ) ] + #[doc = "The `disconnect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`*"] + pub fn disconnect_with_audio_node_and_output_and_input( + this: &AudioNode, + destination: &AudioNode, + output: u32, + input: u32, + ) -> Result<(), JsValue>; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioNode" , js_name = disconnect ) ] + #[doc = "The `disconnect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `AudioParam`*"] + pub fn disconnect_with_audio_param( + this: &AudioNode, + destination: &AudioParam, + ) -> Result<(), JsValue>; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioNode" , js_name = disconnect ) ] + #[doc = "The `disconnect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioNode/disconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `AudioParam`*"] + pub fn disconnect_with_audio_param_and_output( + this: &AudioNode, + destination: &AudioParam, + output: u32, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_AudioNodeOptions.rs b/crates/web-sys/src/features/gen_AudioNodeOptions.rs new file mode 100644 index 00000000..3f97b3d6 --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioNodeOptions.rs @@ -0,0 +1,75 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AudioNodeOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioNodeOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`*"] + pub type AudioNodeOptions; +} +impl AudioNodeOptions { + #[doc = "Construct a new `AudioNodeOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`*"] + pub fn channel_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelCountMode")] + #[doc = "Change the `channelCountMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`, `ChannelCountMode`*"] + pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCountMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelInterpretation")] + #[doc = "Change the `channelInterpretation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNodeOptions`, `ChannelInterpretation`*"] + pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelInterpretation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AudioParam.rs b/crates/web-sys/src/features/gen_AudioParam.rs new file mode 100644 index 00000000..c7fd7ccb --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioParam.rs @@ -0,0 +1,116 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AudioParam , typescript_type = "AudioParam" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioParam` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] + pub type AudioParam; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioParam" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] + pub fn value(this: &AudioParam) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioParam" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] + pub fn set_value(this: &AudioParam, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioParam" , js_name = defaultValue ) ] + #[doc = "Getter for the `defaultValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/defaultValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] + pub fn default_value(this: &AudioParam) -> f32; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioParam" , js_name = minValue ) ] + #[doc = "Getter for the `minValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/minValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] + pub fn min_value(this: &AudioParam) -> f32; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioParam" , js_name = maxValue ) ] + #[doc = "Getter for the `maxValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/maxValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] + pub fn max_value(this: &AudioParam) -> f32; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioParam" , js_name = cancelScheduledValues ) ] + #[doc = "The `cancelScheduledValues()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/cancelScheduledValues)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] + pub fn cancel_scheduled_values( + this: &AudioParam, + start_time: f64, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioParam" , js_name = exponentialRampToValueAtTime ) ] + #[doc = "The `exponentialRampToValueAtTime()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/exponentialRampToValueAtTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] + pub fn exponential_ramp_to_value_at_time( + this: &AudioParam, + value: f32, + end_time: f64, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioParam" , js_name = linearRampToValueAtTime ) ] + #[doc = "The `linearRampToValueAtTime()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/linearRampToValueAtTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] + pub fn linear_ramp_to_value_at_time( + this: &AudioParam, + value: f32, + end_time: f64, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioParam" , js_name = setTargetAtTime ) ] + #[doc = "The `setTargetAtTime()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/setTargetAtTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] + pub fn set_target_at_time( + this: &AudioParam, + target: f32, + start_time: f64, + time_constant: f64, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioParam" , js_name = setValueAtTime ) ] + #[doc = "The `setValueAtTime()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/setValueAtTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] + pub fn set_value_at_time( + this: &AudioParam, + value: f32, + start_time: f64, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioParam" , js_name = setValueCurveAtTime ) ] + #[doc = "The `setValueCurveAtTime()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParam/setValueCurveAtTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`*"] + pub fn set_value_curve_at_time( + this: &AudioParam, + values: &mut [f32], + start_time: f64, + duration: f64, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_AudioParamMap.rs b/crates/web-sys/src/features/gen_AudioParamMap.rs new file mode 100644 index 00000000..224e0c39 --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioParamMap.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AudioParamMap , typescript_type = "AudioParamMap" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioParamMap` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioParamMap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`*"] + pub type AudioParamMap; +} diff --git a/crates/web-sys/src/features/gen_AudioProcessingEvent.rs b/crates/web-sys/src/features/gen_AudioProcessingEvent.rs new file mode 100644 index 00000000..e8f547e8 --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioProcessingEvent.rs @@ -0,0 +1,37 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = AudioProcessingEvent , typescript_type = "AudioProcessingEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioProcessingEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioProcessingEvent`*"] + pub type AudioProcessingEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioProcessingEvent" , js_name = playbackTime ) ] + #[doc = "Getter for the `playbackTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent/playbackTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioProcessingEvent`*"] + pub fn playback_time(this: &AudioProcessingEvent) -> f64; + #[cfg(feature = "AudioBuffer")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "AudioProcessingEvent" , js_name = inputBuffer ) ] + #[doc = "Getter for the `inputBuffer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent/inputBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioProcessingEvent`*"] + pub fn input_buffer(this: &AudioProcessingEvent) -> Result; + #[cfg(feature = "AudioBuffer")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "AudioProcessingEvent" , js_name = outputBuffer ) ] + #[doc = "Getter for the `outputBuffer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioProcessingEvent/outputBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `AudioProcessingEvent`*"] + pub fn output_buffer(this: &AudioProcessingEvent) -> Result; +} diff --git a/crates/web-sys/src/features/gen_AudioScheduledSourceNode.rs b/crates/web-sys/src/features/gen_AudioScheduledSourceNode.rs new file mode 100644 index 00000000..90d5f01e --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioScheduledSourceNode.rs @@ -0,0 +1,63 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioScheduledSourceNode , typescript_type = "AudioScheduledSourceNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioScheduledSourceNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] + #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] + pub type AudioScheduledSourceNode; + #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioScheduledSourceNode" , js_name = onended ) ] + #[doc = "Getter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] + pub fn onended(this: &AudioScheduledSourceNode) -> Option<::js_sys::Function>; + #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioScheduledSourceNode" , js_name = onended ) ] + #[doc = "Setter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] + pub fn set_onended(this: &AudioScheduledSourceNode, value: Option<&::js_sys::Function>); + #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioScheduledSourceNode" , js_name = start ) ] + #[doc = "The `start()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] + pub fn start(this: &AudioScheduledSourceNode) -> Result<(), JsValue>; + #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioScheduledSourceNode" , js_name = start ) ] + #[doc = "The `start()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] + pub fn start_with_when(this: &AudioScheduledSourceNode, when: f64) -> Result<(), JsValue>; + #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioScheduledSourceNode" , js_name = stop ) ] + #[doc = "The `stop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/stop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] + pub fn stop(this: &AudioScheduledSourceNode) -> Result<(), JsValue>; + #[deprecated(note = "doesn't exist in Safari, use parent class methods instead")] + # [ wasm_bindgen ( catch , method , structural , js_class = "AudioScheduledSourceNode" , js_name = stop ) ] + #[doc = "The `stop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode/stop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioScheduledSourceNode`*"] + pub fn stop_with_when(this: &AudioScheduledSourceNode, when: f64) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_AudioStreamTrack.rs b/crates/web-sys/src/features/gen_AudioStreamTrack.rs new file mode 100644 index 00000000..4e9f21eb --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioStreamTrack.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = MediaStreamTrack , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioStreamTrack , typescript_type = "AudioStreamTrack" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioStreamTrack` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioStreamTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioStreamTrack`*"] + pub type AudioStreamTrack; +} diff --git a/crates/web-sys/src/features/gen_AudioTrack.rs b/crates/web-sys/src/features/gen_AudioTrack.rs new file mode 100644 index 00000000..a0f55785 --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioTrack.rs @@ -0,0 +1,56 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AudioTrack , typescript_type = "AudioTrack" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioTrack` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] + pub type AudioTrack; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioTrack" , js_name = id ) ] + #[doc = "Getter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] + pub fn id(this: &AudioTrack) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioTrack" , js_name = kind ) ] + #[doc = "Getter for the `kind` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/kind)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] + pub fn kind(this: &AudioTrack) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioTrack" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] + pub fn label(this: &AudioTrack) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioTrack" , js_name = language ) ] + #[doc = "Getter for the `language` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/language)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] + pub fn language(this: &AudioTrack) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioTrack" , js_name = enabled ) ] + #[doc = "Getter for the `enabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/enabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] + pub fn enabled(this: &AudioTrack) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioTrack" , js_name = enabled ) ] + #[doc = "Setter for the `enabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrack/enabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrack`*"] + pub fn set_enabled(this: &AudioTrack, value: bool); +} diff --git a/crates/web-sys/src/features/gen_AudioTrackList.rs b/crates/web-sys/src/features/gen_AudioTrackList.rs new file mode 100644 index 00000000..3b6c1938 --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioTrackList.rs @@ -0,0 +1,79 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioTrackList , typescript_type = "AudioTrackList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioTrackList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] + pub type AudioTrackList; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioTrackList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] + pub fn length(this: &AudioTrackList) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioTrackList" , js_name = onchange ) ] + #[doc = "Getter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] + pub fn onchange(this: &AudioTrackList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioTrackList" , js_name = onchange ) ] + #[doc = "Setter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] + pub fn set_onchange(this: &AudioTrackList, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioTrackList" , js_name = onaddtrack ) ] + #[doc = "Getter for the `onaddtrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onaddtrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] + pub fn onaddtrack(this: &AudioTrackList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioTrackList" , js_name = onaddtrack ) ] + #[doc = "Setter for the `onaddtrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onaddtrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] + pub fn set_onaddtrack(this: &AudioTrackList, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioTrackList" , js_name = onremovetrack ) ] + #[doc = "Getter for the `onremovetrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onremovetrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] + pub fn onremovetrack(this: &AudioTrackList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioTrackList" , js_name = onremovetrack ) ] + #[doc = "Setter for the `onremovetrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/onremovetrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`*"] + pub fn set_onremovetrack(this: &AudioTrackList, value: Option<&::js_sys::Function>); + #[cfg(feature = "AudioTrack")] + # [ wasm_bindgen ( method , structural , js_class = "AudioTrackList" , js_name = getTrackById ) ] + #[doc = "The `getTrackById()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioTrackList/getTrackById)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrack`, `AudioTrackList`*"] + pub fn get_track_by_id(this: &AudioTrackList, id: &str) -> Option; + #[cfg(feature = "AudioTrack")] + #[wasm_bindgen(method, structural, js_class = "AudioTrackList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrack`, `AudioTrackList`*"] + pub fn get(this: &AudioTrackList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_AudioWorklet.rs b/crates/web-sys/src/features/gen_AudioWorklet.rs new file mode 100644 index 00000000..319cabef --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioWorklet.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Worklet , extends = :: js_sys :: Object , js_name = AudioWorklet , typescript_type = "AudioWorklet" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioWorklet` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorklet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorklet`*"] + pub type AudioWorklet; +} diff --git a/crates/web-sys/src/features/gen_AudioWorkletGlobalScope.rs b/crates/web-sys/src/features/gen_AudioWorkletGlobalScope.rs new file mode 100644 index 00000000..85748732 --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioWorkletGlobalScope.rs @@ -0,0 +1,46 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = WorkletGlobalScope , extends = :: js_sys :: Object , js_name = AudioWorkletGlobalScope , typescript_type = "AudioWorkletGlobalScope" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioWorkletGlobalScope` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] + pub type AudioWorkletGlobalScope; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = currentFrame ) ] + #[doc = "Getter for the `currentFrame` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/currentFrame)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] + pub fn current_frame(this: &AudioWorkletGlobalScope) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = currentTime ) ] + #[doc = "Getter for the `currentTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/currentTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] + pub fn current_time(this: &AudioWorkletGlobalScope) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioWorkletGlobalScope" , js_name = sampleRate ) ] + #[doc = "Getter for the `sampleRate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/sampleRate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] + pub fn sample_rate(this: &AudioWorkletGlobalScope) -> f32; + # [ wasm_bindgen ( method , structural , js_class = "AudioWorkletGlobalScope" , js_name = registerProcessor ) ] + #[doc = "The `registerProcessor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope/registerProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletGlobalScope`*"] + pub fn register_processor( + this: &AudioWorkletGlobalScope, + name: &str, + processor_ctor: &::js_sys::Function, + ); +} diff --git a/crates/web-sys/src/features/gen_AudioWorkletNode.rs b/crates/web-sys/src/features/gen_AudioWorkletNode.rs new file mode 100644 index 00000000..8aeacd4c --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioWorkletNode.rs @@ -0,0 +1,64 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = AudioWorkletNode , typescript_type = "AudioWorkletNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioWorkletNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`*"] + pub type AudioWorkletNode; + #[cfg(feature = "AudioParamMap")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "AudioWorkletNode" , js_name = parameters ) ] + #[doc = "Getter for the `parameters` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/parameters)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParamMap`, `AudioWorkletNode`*"] + pub fn parameters(this: &AudioWorkletNode) -> Result; + #[cfg(feature = "MessagePort")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "AudioWorkletNode" , js_name = port ) ] + #[doc = "Getter for the `port` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/port)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`, `MessagePort`*"] + pub fn port(this: &AudioWorkletNode) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "AudioWorkletNode" , js_name = onprocessorerror ) ] + #[doc = "Getter for the `onprocessorerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/onprocessorerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`*"] + pub fn onprocessorerror(this: &AudioWorkletNode) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "AudioWorkletNode" , js_name = onprocessorerror ) ] + #[doc = "Setter for the `onprocessorerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/onprocessorerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`*"] + pub fn set_onprocessorerror(this: &AudioWorkletNode, value: Option<&::js_sys::Function>); + #[cfg(feature = "BaseAudioContext")] + #[wasm_bindgen(catch, constructor, js_class = "AudioWorkletNode")] + #[doc = "The `new AudioWorkletNode(..)` constructor, creating a new instance of `AudioWorkletNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/AudioWorkletNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`, `BaseAudioContext`*"] + pub fn new(context: &BaseAudioContext, name: &str) -> Result; + #[cfg(all(feature = "AudioWorkletNodeOptions", feature = "BaseAudioContext",))] + #[wasm_bindgen(catch, constructor, js_class = "AudioWorkletNode")] + #[doc = "The `new AudioWorkletNode(..)` constructor, creating a new instance of `AudioWorkletNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletNode/AudioWorkletNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNode`, `AudioWorkletNodeOptions`, `BaseAudioContext`*"] + pub fn new_with_options( + context: &BaseAudioContext, + name: &str, + options: &AudioWorkletNodeOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_AudioWorkletNodeOptions.rs b/crates/web-sys/src/features/gen_AudioWorkletNodeOptions.rs new file mode 100644 index 00000000..6bf4efe7 --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioWorkletNodeOptions.rs @@ -0,0 +1,143 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AudioWorkletNodeOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioWorkletNodeOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] + pub type AudioWorkletNodeOptions; +} +impl AudioWorkletNodeOptions { + #[doc = "Construct a new `AudioWorkletNodeOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] + pub fn channel_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelCountMode")] + #[doc = "Change the `channelCountMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`, `ChannelCountMode`*"] + pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCountMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelInterpretation")] + #[doc = "Change the `channelInterpretation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`, `ChannelInterpretation`*"] + pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelInterpretation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `numberOfInputs` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] + pub fn number_of_inputs(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("numberOfInputs"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `numberOfOutputs` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] + pub fn number_of_outputs(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("numberOfOutputs"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `outputChannelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] + pub fn output_channel_count(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("outputChannelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `processorOptions` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`*"] + pub fn processor_options(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("processorOptions"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AudioWorkletProcessor.rs b/crates/web-sys/src/features/gen_AudioWorkletProcessor.rs new file mode 100644 index 00000000..51896ed8 --- /dev/null +++ b/crates/web-sys/src/features/gen_AudioWorkletProcessor.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AudioWorkletProcessor , typescript_type = "AudioWorkletProcessor" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AudioWorkletProcessor` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletProcessor`*"] + pub type AudioWorkletProcessor; + #[cfg(feature = "MessagePort")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "AudioWorkletProcessor" , js_name = port ) ] + #[doc = "Getter for the `port` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletProcessor/port)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletProcessor`, `MessagePort`*"] + pub fn port(this: &AudioWorkletProcessor) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "AudioWorkletProcessor")] + #[doc = "The `new AudioWorkletProcessor(..)` constructor, creating a new instance of `AudioWorkletProcessor`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletProcessor/AudioWorkletProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletProcessor`*"] + pub fn new() -> Result; + #[cfg(feature = "AudioWorkletNodeOptions")] + #[wasm_bindgen(catch, constructor, js_class = "AudioWorkletProcessor")] + #[doc = "The `new AudioWorkletProcessor(..)` constructor, creating a new instance of `AudioWorkletProcessor`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletProcessor/AudioWorkletProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorkletNodeOptions`, `AudioWorkletProcessor`*"] + pub fn new_with_options( + options: &AudioWorkletNodeOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_AuthenticationExtensionsClientInputs.rs b/crates/web-sys/src/features/gen_AuthenticationExtensionsClientInputs.rs new file mode 100644 index 00000000..4cac529c --- /dev/null +++ b/crates/web-sys/src/features/gen_AuthenticationExtensionsClientInputs.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AuthenticationExtensionsClientInputs ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AuthenticationExtensionsClientInputs` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] + pub type AuthenticationExtensionsClientInputs; +} +impl AuthenticationExtensionsClientInputs { + #[doc = "Construct a new `AuthenticationExtensionsClientInputs`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `appid` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`*"] + pub fn appid(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("appid"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AuthenticationExtensionsClientOutputs.rs b/crates/web-sys/src/features/gen_AuthenticationExtensionsClientOutputs.rs new file mode 100644 index 00000000..2074dd51 --- /dev/null +++ b/crates/web-sys/src/features/gen_AuthenticationExtensionsClientOutputs.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AuthenticationExtensionsClientOutputs ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AuthenticationExtensionsClientOutputs` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"] + pub type AuthenticationExtensionsClientOutputs; +} +impl AuthenticationExtensionsClientOutputs { + #[doc = "Construct a new `AuthenticationExtensionsClientOutputs`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `appid` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`*"] + pub fn appid(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("appid"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AuthenticatorAssertionResponse.rs b/crates/web-sys/src/features/gen_AuthenticatorAssertionResponse.rs new file mode 100644 index 00000000..4ba681a2 --- /dev/null +++ b/crates/web-sys/src/features/gen_AuthenticatorAssertionResponse.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AuthenticatorResponse , extends = :: js_sys :: Object , js_name = AuthenticatorAssertionResponse , typescript_type = "AuthenticatorAssertionResponse" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AuthenticatorAssertionResponse` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponse`*"] + pub type AuthenticatorAssertionResponse; + # [ wasm_bindgen ( structural , method , getter , js_class = "AuthenticatorAssertionResponse" , js_name = authenticatorData ) ] + #[doc = "Getter for the `authenticatorData` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse/authenticatorData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponse`*"] + pub fn authenticator_data(this: &AuthenticatorAssertionResponse) -> ::js_sys::ArrayBuffer; + # [ wasm_bindgen ( structural , method , getter , js_class = "AuthenticatorAssertionResponse" , js_name = signature ) ] + #[doc = "Getter for the `signature` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse/signature)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponse`*"] + pub fn signature(this: &AuthenticatorAssertionResponse) -> ::js_sys::ArrayBuffer; + # [ wasm_bindgen ( structural , method , getter , js_class = "AuthenticatorAssertionResponse" , js_name = userHandle ) ] + #[doc = "Getter for the `userHandle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAssertionResponse/userHandle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAssertionResponse`*"] + pub fn user_handle(this: &AuthenticatorAssertionResponse) -> Option<::js_sys::ArrayBuffer>; +} diff --git a/crates/web-sys/src/features/gen_AuthenticatorAttachment.rs b/crates/web-sys/src/features/gen_AuthenticatorAttachment.rs new file mode 100644 index 00000000..f0776410 --- /dev/null +++ b/crates/web-sys/src/features/gen_AuthenticatorAttachment.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `AuthenticatorAttachment` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttachment`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum AuthenticatorAttachment { + Platform = "platform", + CrossPlatform = "cross-platform", +} diff --git a/crates/web-sys/src/features/gen_AuthenticatorAttestationResponse.rs b/crates/web-sys/src/features/gen_AuthenticatorAttestationResponse.rs new file mode 100644 index 00000000..8a5a3ebf --- /dev/null +++ b/crates/web-sys/src/features/gen_AuthenticatorAttestationResponse.rs @@ -0,0 +1,21 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AuthenticatorResponse , extends = :: js_sys :: Object , js_name = AuthenticatorAttestationResponse , typescript_type = "AuthenticatorAttestationResponse" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AuthenticatorAttestationResponse` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"] + pub type AuthenticatorAttestationResponse; + # [ wasm_bindgen ( structural , method , getter , js_class = "AuthenticatorAttestationResponse" , js_name = attestationObject ) ] + #[doc = "Getter for the `attestationObject` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorAttestationResponse/attestationObject)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttestationResponse`*"] + pub fn attestation_object(this: &AuthenticatorAttestationResponse) -> ::js_sys::ArrayBuffer; +} diff --git a/crates/web-sys/src/features/gen_AuthenticatorResponse.rs b/crates/web-sys/src/features/gen_AuthenticatorResponse.rs new file mode 100644 index 00000000..f606d360 --- /dev/null +++ b/crates/web-sys/src/features/gen_AuthenticatorResponse.rs @@ -0,0 +1,21 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AuthenticatorResponse , typescript_type = "AuthenticatorResponse" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AuthenticatorResponse` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorResponse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticatorResponse`*"] + pub type AuthenticatorResponse; + # [ wasm_bindgen ( structural , method , getter , js_class = "AuthenticatorResponse" , js_name = clientDataJSON ) ] + #[doc = "Getter for the `clientDataJSON` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/AuthenticatorResponse/clientDataJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticatorResponse`*"] + pub fn client_data_json(this: &AuthenticatorResponse) -> ::js_sys::ArrayBuffer; +} diff --git a/crates/web-sys/src/features/gen_AuthenticatorSelectionCriteria.rs b/crates/web-sys/src/features/gen_AuthenticatorSelectionCriteria.rs new file mode 100644 index 00000000..c0c2b860 --- /dev/null +++ b/crates/web-sys/src/features/gen_AuthenticatorSelectionCriteria.rs @@ -0,0 +1,75 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AuthenticatorSelectionCriteria ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AuthenticatorSelectionCriteria` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"] + pub type AuthenticatorSelectionCriteria; +} +impl AuthenticatorSelectionCriteria { + #[doc = "Construct a new `AuthenticatorSelectionCriteria`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "AuthenticatorAttachment")] + #[doc = "Change the `authenticatorAttachment` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticatorAttachment`, `AuthenticatorSelectionCriteria`*"] + pub fn authenticator_attachment(&mut self, val: AuthenticatorAttachment) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("authenticatorAttachment"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `requireResidentKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`*"] + pub fn require_resident_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("requireResidentKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "UserVerificationRequirement")] + #[doc = "Change the `userVerification` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`, `UserVerificationRequirement`*"] + pub fn user_verification(&mut self, val: UserVerificationRequirement) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("userVerification"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_AuthenticatorTransport.rs b/crates/web-sys/src/features/gen_AuthenticatorTransport.rs new file mode 100644 index 00000000..edafe5e1 --- /dev/null +++ b/crates/web-sys/src/features/gen_AuthenticatorTransport.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `AuthenticatorTransport` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `AuthenticatorTransport`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum AuthenticatorTransport { + Usb = "usb", + Nfc = "nfc", + Ble = "ble", +} diff --git a/crates/web-sys/src/features/gen_AutoKeyword.rs b/crates/web-sys/src/features/gen_AutoKeyword.rs new file mode 100644 index 00000000..d45de7a4 --- /dev/null +++ b/crates/web-sys/src/features/gen_AutoKeyword.rs @@ -0,0 +1,10 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `AutoKeyword` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `AutoKeyword`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum AutoKeyword { + Auto = "auto", +} diff --git a/crates/web-sys/src/features/gen_AutocompleteInfo.rs b/crates/web-sys/src/features/gen_AutocompleteInfo.rs new file mode 100644 index 00000000..7bed47c3 --- /dev/null +++ b/crates/web-sys/src/features/gen_AutocompleteInfo.rs @@ -0,0 +1,90 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = AutocompleteInfo ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `AutocompleteInfo` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] + pub type AutocompleteInfo; +} +impl AutocompleteInfo { + #[doc = "Construct a new `AutocompleteInfo`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `addressType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] + pub fn address_type(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("addressType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `contactType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] + pub fn contact_type(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("contactType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `fieldName` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] + pub fn field_name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("fieldName"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `section` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AutocompleteInfo`*"] + pub fn section(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("section"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_BarProp.rs b/crates/web-sys/src/features/gen_BarProp.rs new file mode 100644 index 00000000..6e0ddd45 --- /dev/null +++ b/crates/web-sys/src/features/gen_BarProp.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = BarProp , typescript_type = "BarProp" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BarProp` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BarProp)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BarProp`*"] + pub type BarProp; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "BarProp" , js_name = visible ) ] + #[doc = "Getter for the `visible` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BarProp/visible)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BarProp`*"] + pub fn visible(this: &BarProp) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "BarProp" , js_name = visible ) ] + #[doc = "Setter for the `visible` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BarProp/visible)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BarProp`*"] + pub fn set_visible(this: &BarProp, value: bool) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_BaseAudioContext.rs b/crates/web-sys/src/features/gen_BaseAudioContext.rs new file mode 100644 index 00000000..3ce91151 --- /dev/null +++ b/crates/web-sys/src/features/gen_BaseAudioContext.rs @@ -0,0 +1,395 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = BaseAudioContext , typescript_type = "BaseAudioContext" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BaseAudioContext` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + pub type BaseAudioContext; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "AudioDestinationNode")] + # [ wasm_bindgen ( structural , method , getter , js_class = "BaseAudioContext" , js_name = destination ) ] + #[doc = "Getter for the `destination` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/destination)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioDestinationNode`, `BaseAudioContext`*"] + pub fn destination(this: &BaseAudioContext) -> AudioDestinationNode; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + # [ wasm_bindgen ( structural , method , getter , js_class = "BaseAudioContext" , js_name = sampleRate ) ] + #[doc = "Getter for the `sampleRate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/sampleRate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] + pub fn sample_rate(this: &BaseAudioContext) -> f32; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + # [ wasm_bindgen ( structural , method , getter , js_class = "BaseAudioContext" , js_name = currentTime ) ] + #[doc = "Getter for the `currentTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/currentTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] + pub fn current_time(this: &BaseAudioContext) -> f64; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "AudioListener")] + # [ wasm_bindgen ( structural , method , getter , js_class = "BaseAudioContext" , js_name = listener ) ] + #[doc = "Getter for the `listener` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/listener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioListener`, `BaseAudioContext`*"] + pub fn listener(this: &BaseAudioContext) -> AudioListener; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "AudioContextState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "BaseAudioContext" , js_name = state ) ] + #[doc = "Getter for the `state` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/state)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContextState`, `BaseAudioContext`*"] + pub fn state(this: &BaseAudioContext) -> AudioContextState; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "AudioWorklet")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "BaseAudioContext" , js_name = audioWorklet ) ] + #[doc = "Getter for the `audioWorklet` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/audioWorklet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorklet`, `BaseAudioContext`*"] + pub fn audio_worklet(this: &BaseAudioContext) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + # [ wasm_bindgen ( structural , method , getter , js_class = "BaseAudioContext" , js_name = onstatechange ) ] + #[doc = "Getter for the `onstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/onstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] + pub fn onstatechange(this: &BaseAudioContext) -> Option<::js_sys::Function>; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + # [ wasm_bindgen ( structural , method , setter , js_class = "BaseAudioContext" , js_name = onstatechange ) ] + #[doc = "Setter for the `onstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/onstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] + pub fn set_onstatechange(this: &BaseAudioContext, value: Option<&::js_sys::Function>); + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "AnalyserNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createAnalyser ) ] + #[doc = "The `createAnalyser()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createAnalyser)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`, `BaseAudioContext`*"] + pub fn create_analyser(this: &BaseAudioContext) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "BiquadFilterNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createBiquadFilter ) ] + #[doc = "The `createBiquadFilter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createBiquadFilter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `BiquadFilterNode`*"] + pub fn create_biquad_filter(this: &BaseAudioContext) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "AudioBuffer")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createBuffer ) ] + #[doc = "The `createBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `BaseAudioContext`*"] + pub fn create_buffer( + this: &BaseAudioContext, + number_of_channels: u32, + length: u32, + sample_rate: f32, + ) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "AudioBufferSourceNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createBufferSource ) ] + #[doc = "The `createBufferSource()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createBufferSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `BaseAudioContext`*"] + pub fn create_buffer_source(this: &BaseAudioContext) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "ChannelMergerNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelMerger ) ] + #[doc = "The `createChannelMerger()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelMerger)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelMergerNode`*"] + pub fn create_channel_merger(this: &BaseAudioContext) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "ChannelMergerNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelMerger ) ] + #[doc = "The `createChannelMerger()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelMerger)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelMergerNode`*"] + pub fn create_channel_merger_with_number_of_inputs( + this: &BaseAudioContext, + number_of_inputs: u32, + ) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "ChannelSplitterNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelSplitter ) ] + #[doc = "The `createChannelSplitter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelSplitter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelSplitterNode`*"] + pub fn create_channel_splitter(this: &BaseAudioContext) + -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "ChannelSplitterNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createChannelSplitter ) ] + #[doc = "The `createChannelSplitter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createChannelSplitter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelSplitterNode`*"] + pub fn create_channel_splitter_with_number_of_outputs( + this: &BaseAudioContext, + number_of_outputs: u32, + ) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "ConstantSourceNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createConstantSource ) ] + #[doc = "The `createConstantSource()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createConstantSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConstantSourceNode`*"] + pub fn create_constant_source(this: &BaseAudioContext) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "ConvolverNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createConvolver ) ] + #[doc = "The `createConvolver()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createConvolver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConvolverNode`*"] + pub fn create_convolver(this: &BaseAudioContext) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "DelayNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createDelay ) ] + #[doc = "The `createDelay()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createDelay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DelayNode`*"] + pub fn create_delay(this: &BaseAudioContext) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "DelayNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createDelay ) ] + #[doc = "The `createDelay()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createDelay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DelayNode`*"] + pub fn create_delay_with_max_delay_time( + this: &BaseAudioContext, + max_delay_time: f64, + ) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "DynamicsCompressorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createDynamicsCompressor ) ] + #[doc = "The `createDynamicsCompressor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createDynamicsCompressor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DynamicsCompressorNode`*"] + pub fn create_dynamics_compressor( + this: &BaseAudioContext, + ) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "GainNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createGain ) ] + #[doc = "The `createGain()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createGain)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `GainNode`*"] + pub fn create_gain(this: &BaseAudioContext) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "IirFilterNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createIIRFilter ) ] + #[doc = "The `createIIRFilter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createIIRFilter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `IirFilterNode`*"] + pub fn create_iir_filter( + this: &BaseAudioContext, + feedforward: &::wasm_bindgen::JsValue, + feedback: &::wasm_bindgen::JsValue, + ) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "OscillatorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createOscillator ) ] + #[doc = "The `createOscillator()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createOscillator)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `OscillatorNode`*"] + pub fn create_oscillator(this: &BaseAudioContext) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "PannerNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createPanner ) ] + #[doc = "The `createPanner()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPanner)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PannerNode`*"] + pub fn create_panner(this: &BaseAudioContext) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "PeriodicWave")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave ) ] + #[doc = "The `createPeriodicWave()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`*"] + pub fn create_periodic_wave( + this: &BaseAudioContext, + real: &mut [f32], + imag: &mut [f32], + ) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(all(feature = "PeriodicWave", feature = "PeriodicWaveConstraints",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createPeriodicWave ) ] + #[doc = "The `createPeriodicWave()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createPeriodicWave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*"] + pub fn create_periodic_wave_with_constraints( + this: &BaseAudioContext, + real: &mut [f32], + imag: &mut [f32], + constraints: &PeriodicWaveConstraints, + ) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "ScriptProcessorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor ) ] + #[doc = "The `createScriptProcessor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*"] + pub fn create_script_processor(this: &BaseAudioContext) + -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "ScriptProcessorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor ) ] + #[doc = "The `createScriptProcessor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*"] + pub fn create_script_processor_with_buffer_size( + this: &BaseAudioContext, + buffer_size: u32, + ) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "ScriptProcessorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor ) ] + #[doc = "The `createScriptProcessor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*"] + pub fn create_script_processor_with_buffer_size_and_number_of_input_channels( + this: &BaseAudioContext, + buffer_size: u32, + number_of_input_channels: u32, + ) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "ScriptProcessorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createScriptProcessor ) ] + #[doc = "The `createScriptProcessor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createScriptProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ScriptProcessorNode`*"] + pub fn create_script_processor_with_buffer_size_and_number_of_input_channels_and_number_of_output_channels( + this: &BaseAudioContext, + buffer_size: u32, + number_of_input_channels: u32, + number_of_output_channels: u32, + ) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "StereoPannerNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createStereoPanner ) ] + #[doc = "The `createStereoPanner()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createStereoPanner)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `StereoPannerNode`*"] + pub fn create_stereo_panner(this: &BaseAudioContext) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + #[cfg(feature = "WaveShaperNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = createWaveShaper ) ] + #[doc = "The `createWaveShaper()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createWaveShaper)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `WaveShaperNode`*"] + pub fn create_wave_shaper(this: &BaseAudioContext) -> Result; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData ) ] + #[doc = "The `decodeAudioData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] + pub fn decode_audio_data( + this: &BaseAudioContext, + audio_data: &::js_sys::ArrayBuffer, + ) -> Result<::js_sys::Promise, JsValue>; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData ) ] + #[doc = "The `decodeAudioData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] + pub fn decode_audio_data_with_success_callback( + this: &BaseAudioContext, + audio_data: &::js_sys::ArrayBuffer, + success_callback: &::js_sys::Function, + ) -> Result<::js_sys::Promise, JsValue>; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = decodeAudioData ) ] + #[doc = "The `decodeAudioData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/decodeAudioData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] + pub fn decode_audio_data_with_success_callback_and_error_callback( + this: &BaseAudioContext, + audio_data: &::js_sys::ArrayBuffer, + success_callback: &::js_sys::Function, + error_callback: &::js_sys::Function, + ) -> Result<::js_sys::Promise, JsValue>; + #[deprecated(note = "doesn't exist in Safari, use `AudioContext` instead now")] + # [ wasm_bindgen ( catch , method , structural , js_class = "BaseAudioContext" , js_name = resume ) ] + #[doc = "The `resume()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/resume)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`*"] + pub fn resume(this: &BaseAudioContext) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_BaseComputedKeyframe.rs b/crates/web-sys/src/features/gen_BaseComputedKeyframe.rs new file mode 100644 index 00000000..7ee0edbd --- /dev/null +++ b/crates/web-sys/src/features/gen_BaseComputedKeyframe.rs @@ -0,0 +1,102 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = BaseComputedKeyframe ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BaseComputedKeyframe` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] + pub type BaseComputedKeyframe; +} +impl BaseComputedKeyframe { + #[doc = "Construct a new `BaseComputedKeyframe`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "CompositeOperation")] + #[doc = "Change the `composite` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`, `CompositeOperation`*"] + pub fn composite(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composite"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `easing` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] + pub fn easing(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("easing"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `offset` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] + pub fn offset(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `simulateComputeValuesFailure` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] + pub fn simulate_compute_values_failure(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("simulateComputeValuesFailure"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `computedOffset` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseComputedKeyframe`*"] + pub fn computed_offset(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("computedOffset"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_BaseKeyframe.rs b/crates/web-sys/src/features/gen_BaseKeyframe.rs new file mode 100644 index 00000000..95a7d58c --- /dev/null +++ b/crates/web-sys/src/features/gen_BaseKeyframe.rs @@ -0,0 +1,85 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = BaseKeyframe ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BaseKeyframe` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] + pub type BaseKeyframe; +} +impl BaseKeyframe { + #[doc = "Construct a new `BaseKeyframe`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "CompositeOperation")] + #[doc = "Change the `composite` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`, `CompositeOperation`*"] + pub fn composite(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composite"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `easing` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] + pub fn easing(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("easing"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `offset` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] + pub fn offset(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `simulateComputeValuesFailure` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseKeyframe`*"] + pub fn simulate_compute_values_failure(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("simulateComputeValuesFailure"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_BasePropertyIndexedKeyframe.rs b/crates/web-sys/src/features/gen_BasePropertyIndexedKeyframe.rs new file mode 100644 index 00000000..d7f692e2 --- /dev/null +++ b/crates/web-sys/src/features/gen_BasePropertyIndexedKeyframe.rs @@ -0,0 +1,67 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = BasePropertyIndexedKeyframe ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BasePropertyIndexedKeyframe` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"] + pub type BasePropertyIndexedKeyframe; +} +impl BasePropertyIndexedKeyframe { + #[doc = "Construct a new `BasePropertyIndexedKeyframe`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `composite` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"] + pub fn composite(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composite"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `easing` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"] + pub fn easing(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("easing"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `offset` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BasePropertyIndexedKeyframe`*"] + pub fn offset(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_BasicCardRequest.rs b/crates/web-sys/src/features/gen_BasicCardRequest.rs new file mode 100644 index 00000000..cb23ff87 --- /dev/null +++ b/crates/web-sys/src/features/gen_BasicCardRequest.rs @@ -0,0 +1,56 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = BasicCardRequest ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BasicCardRequest` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"] + pub type BasicCardRequest; +} +impl BasicCardRequest { + #[doc = "Construct a new `BasicCardRequest`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `supportedNetworks` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"] + pub fn supported_networks(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("supportedNetworks"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `supportedTypes` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BasicCardRequest`*"] + pub fn supported_types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("supportedTypes"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_BasicCardResponse.rs b/crates/web-sys/src/features/gen_BasicCardResponse.rs new file mode 100644 index 00000000..de28f4e1 --- /dev/null +++ b/crates/web-sys/src/features/gen_BasicCardResponse.rs @@ -0,0 +1,126 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = BasicCardResponse ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BasicCardResponse` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] + pub type BasicCardResponse; +} +impl BasicCardResponse { + #[doc = "Construct a new `BasicCardResponse`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] + pub fn new(card_number: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.card_number(card_number); + ret + } + #[cfg(feature = "PaymentAddress")] + #[doc = "Change the `billingAddress` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`, `PaymentAddress`*"] + pub fn billing_address(&mut self, val: Option<&PaymentAddress>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("billingAddress"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cardNumber` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] + pub fn card_number(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cardNumber"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cardSecurityCode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] + pub fn card_security_code(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cardSecurityCode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cardholderName` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] + pub fn cardholder_name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cardholderName"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `expiryMonth` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] + pub fn expiry_month(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("expiryMonth"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `expiryYear` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BasicCardResponse`*"] + pub fn expiry_year(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("expiryYear"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_BasicCardType.rs b/crates/web-sys/src/features/gen_BasicCardType.rs new file mode 100644 index 00000000..2a7b1c7b --- /dev/null +++ b/crates/web-sys/src/features/gen_BasicCardType.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `BasicCardType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `BasicCardType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum BasicCardType { + Credit = "credit", + Debit = "debit", + Prepaid = "prepaid", +} diff --git a/crates/web-sys/src/features/gen_BatteryManager.rs b/crates/web-sys/src/features/gen_BatteryManager.rs new file mode 100644 index 00000000..62cf5251 --- /dev/null +++ b/crates/web-sys/src/features/gen_BatteryManager.rs @@ -0,0 +1,98 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = BatteryManager , typescript_type = "BatteryManager" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BatteryManager` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] + pub type BatteryManager; + # [ wasm_bindgen ( structural , method , getter , js_class = "BatteryManager" , js_name = charging ) ] + #[doc = "Getter for the `charging` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/charging)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] + pub fn charging(this: &BatteryManager) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "BatteryManager" , js_name = chargingTime ) ] + #[doc = "Getter for the `chargingTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/chargingTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] + pub fn charging_time(this: &BatteryManager) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "BatteryManager" , js_name = dischargingTime ) ] + #[doc = "Getter for the `dischargingTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/dischargingTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] + pub fn discharging_time(this: &BatteryManager) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "BatteryManager" , js_name = level ) ] + #[doc = "Getter for the `level` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/level)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] + pub fn level(this: &BatteryManager) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "BatteryManager" , js_name = onchargingchange ) ] + #[doc = "Getter for the `onchargingchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onchargingchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] + pub fn onchargingchange(this: &BatteryManager) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "BatteryManager" , js_name = onchargingchange ) ] + #[doc = "Setter for the `onchargingchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onchargingchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] + pub fn set_onchargingchange(this: &BatteryManager, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "BatteryManager" , js_name = onchargingtimechange ) ] + #[doc = "Getter for the `onchargingtimechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onchargingtimechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] + pub fn onchargingtimechange(this: &BatteryManager) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "BatteryManager" , js_name = onchargingtimechange ) ] + #[doc = "Setter for the `onchargingtimechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onchargingtimechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] + pub fn set_onchargingtimechange(this: &BatteryManager, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "BatteryManager" , js_name = ondischargingtimechange ) ] + #[doc = "Getter for the `ondischargingtimechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/ondischargingtimechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] + pub fn ondischargingtimechange(this: &BatteryManager) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "BatteryManager" , js_name = ondischargingtimechange ) ] + #[doc = "Setter for the `ondischargingtimechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/ondischargingtimechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] + pub fn set_ondischargingtimechange(this: &BatteryManager, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "BatteryManager" , js_name = onlevelchange ) ] + #[doc = "Getter for the `onlevelchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onlevelchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] + pub fn onlevelchange(this: &BatteryManager) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "BatteryManager" , js_name = onlevelchange ) ] + #[doc = "Setter for the `onlevelchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BatteryManager/onlevelchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BatteryManager`*"] + pub fn set_onlevelchange(this: &BatteryManager, value: Option<&::js_sys::Function>); +} diff --git a/crates/web-sys/src/features/gen_BeforeUnloadEvent.rs b/crates/web-sys/src/features/gen_BeforeUnloadEvent.rs new file mode 100644 index 00000000..e758cb33 --- /dev/null +++ b/crates/web-sys/src/features/gen_BeforeUnloadEvent.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = BeforeUnloadEvent , typescript_type = "BeforeUnloadEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BeforeUnloadEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BeforeUnloadEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BeforeUnloadEvent`*"] + pub type BeforeUnloadEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "BeforeUnloadEvent" , js_name = returnValue ) ] + #[doc = "Getter for the `returnValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BeforeUnloadEvent/returnValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BeforeUnloadEvent`*"] + pub fn return_value(this: &BeforeUnloadEvent) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "BeforeUnloadEvent" , js_name = returnValue ) ] + #[doc = "Setter for the `returnValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BeforeUnloadEvent/returnValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BeforeUnloadEvent`*"] + pub fn set_return_value(this: &BeforeUnloadEvent, value: &str); +} diff --git a/crates/web-sys/src/features/gen_BinaryType.rs b/crates/web-sys/src/features/gen_BinaryType.rs new file mode 100644 index 00000000..d7ee13ba --- /dev/null +++ b/crates/web-sys/src/features/gen_BinaryType.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `BinaryType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `BinaryType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum BinaryType { + Blob = "blob", + Arraybuffer = "arraybuffer", +} diff --git a/crates/web-sys/src/features/gen_BiquadFilterNode.rs b/crates/web-sys/src/features/gen_BiquadFilterNode.rs new file mode 100644 index 00000000..75ed5a2e --- /dev/null +++ b/crates/web-sys/src/features/gen_BiquadFilterNode.rs @@ -0,0 +1,93 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = BiquadFilterNode , typescript_type = "BiquadFilterNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BiquadFilterNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`*"] + pub type BiquadFilterNode; + #[cfg(feature = "BiquadFilterType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "BiquadFilterNode" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`, `BiquadFilterType`*"] + pub fn type_(this: &BiquadFilterNode) -> BiquadFilterType; + #[cfg(feature = "BiquadFilterType")] + # [ wasm_bindgen ( structural , method , setter , js_class = "BiquadFilterNode" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`, `BiquadFilterType`*"] + pub fn set_type(this: &BiquadFilterNode, value: BiquadFilterType); + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "BiquadFilterNode" , js_name = frequency ) ] + #[doc = "Getter for the `frequency` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/frequency)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `BiquadFilterNode`*"] + pub fn frequency(this: &BiquadFilterNode) -> AudioParam; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "BiquadFilterNode" , js_name = detune ) ] + #[doc = "Getter for the `detune` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/detune)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `BiquadFilterNode`*"] + pub fn detune(this: &BiquadFilterNode) -> AudioParam; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "BiquadFilterNode" , js_name = Q ) ] + #[doc = "Getter for the `Q` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/Q)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `BiquadFilterNode`*"] + pub fn q(this: &BiquadFilterNode) -> AudioParam; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "BiquadFilterNode" , js_name = gain ) ] + #[doc = "Getter for the `gain` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/gain)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `BiquadFilterNode`*"] + pub fn gain(this: &BiquadFilterNode) -> AudioParam; + #[cfg(feature = "BaseAudioContext")] + #[wasm_bindgen(catch, constructor, js_class = "BiquadFilterNode")] + #[doc = "The `new BiquadFilterNode(..)` constructor, creating a new instance of `BiquadFilterNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/BiquadFilterNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `BiquadFilterNode`*"] + pub fn new(context: &BaseAudioContext) -> Result; + #[cfg(all(feature = "BaseAudioContext", feature = "BiquadFilterOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "BiquadFilterNode")] + #[doc = "The `new BiquadFilterNode(..)` constructor, creating a new instance of `BiquadFilterNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/BiquadFilterNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `BiquadFilterNode`, `BiquadFilterOptions`*"] + pub fn new_with_options( + context: &BaseAudioContext, + options: &BiquadFilterOptions, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "BiquadFilterNode" , js_name = getFrequencyResponse ) ] + #[doc = "The `getFrequencyResponse()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BiquadFilterNode/getFrequencyResponse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`*"] + pub fn get_frequency_response( + this: &BiquadFilterNode, + frequency_hz: &mut [f32], + mag_response: &mut [f32], + phase_response: &mut [f32], + ); +} diff --git a/crates/web-sys/src/features/gen_BiquadFilterOptions.rs b/crates/web-sys/src/features/gen_BiquadFilterOptions.rs new file mode 100644 index 00000000..d1858961 --- /dev/null +++ b/crates/web-sys/src/features/gen_BiquadFilterOptions.rs @@ -0,0 +1,146 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = BiquadFilterOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BiquadFilterOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] + pub type BiquadFilterOptions; +} +impl BiquadFilterOptions { + #[doc = "Construct a new `BiquadFilterOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] + pub fn channel_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelCountMode")] + #[doc = "Change the `channelCountMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`, `ChannelCountMode`*"] + pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCountMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelInterpretation")] + #[doc = "Change the `channelInterpretation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`, `ChannelInterpretation`*"] + pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelInterpretation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `Q` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] + pub fn q(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("Q"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `detune` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] + pub fn detune(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detune"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `frequency` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] + pub fn frequency(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("frequency"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `gain` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`*"] + pub fn gain(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("gain"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "BiquadFilterType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BiquadFilterOptions`, `BiquadFilterType`*"] + pub fn type_(&mut self, val: BiquadFilterType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_BiquadFilterType.rs b/crates/web-sys/src/features/gen_BiquadFilterType.rs new file mode 100644 index 00000000..21743d5f --- /dev/null +++ b/crates/web-sys/src/features/gen_BiquadFilterType.rs @@ -0,0 +1,17 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `BiquadFilterType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `BiquadFilterType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum BiquadFilterType { + Lowpass = "lowpass", + Highpass = "highpass", + Bandpass = "bandpass", + Lowshelf = "lowshelf", + Highshelf = "highshelf", + Peaking = "peaking", + Notch = "notch", + Allpass = "allpass", +} diff --git a/crates/web-sys/src/features/gen_Blob.rs b/crates/web-sys/src/features/gen_Blob.rs new file mode 100644 index 00000000..38543389 --- /dev/null +++ b/crates/web-sys/src/features/gen_Blob.rs @@ -0,0 +1,222 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Blob , typescript_type = "Blob" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Blob` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub type Blob; + # [ wasm_bindgen ( structural , method , getter , js_class = "Blob" , js_name = size ) ] + #[doc = "Getter for the `size` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/size)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn size(this: &Blob) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "Blob" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn type_(this: &Blob) -> String; + #[wasm_bindgen(catch, constructor, js_class = "Blob")] + #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Blob")] + #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn new_with_buffer_source_sequence( + blob_parts: &::wasm_bindgen::JsValue, + ) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Blob")] + #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn new_with_u8_array_sequence( + blob_parts: &::wasm_bindgen::JsValue, + ) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Blob")] + #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn new_with_blob_sequence(blob_parts: &::wasm_bindgen::JsValue) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Blob")] + #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn new_with_str_sequence(blob_parts: &::wasm_bindgen::JsValue) -> Result; + #[cfg(feature = "BlobPropertyBag")] + #[wasm_bindgen(catch, constructor, js_class = "Blob")] + #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobPropertyBag`*"] + pub fn new_with_buffer_source_sequence_and_options( + blob_parts: &::wasm_bindgen::JsValue, + options: &BlobPropertyBag, + ) -> Result; + #[cfg(feature = "BlobPropertyBag")] + #[wasm_bindgen(catch, constructor, js_class = "Blob")] + #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobPropertyBag`*"] + pub fn new_with_u8_array_sequence_and_options( + blob_parts: &::wasm_bindgen::JsValue, + options: &BlobPropertyBag, + ) -> Result; + #[cfg(feature = "BlobPropertyBag")] + #[wasm_bindgen(catch, constructor, js_class = "Blob")] + #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobPropertyBag`*"] + pub fn new_with_blob_sequence_and_options( + blob_parts: &::wasm_bindgen::JsValue, + options: &BlobPropertyBag, + ) -> Result; + #[cfg(feature = "BlobPropertyBag")] + #[wasm_bindgen(catch, constructor, js_class = "Blob")] + #[doc = "The `new Blob(..)` constructor, creating a new instance of `Blob`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobPropertyBag`*"] + pub fn new_with_str_sequence_and_options( + blob_parts: &::wasm_bindgen::JsValue, + options: &BlobPropertyBag, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "Blob" , js_name = arrayBuffer ) ] + #[doc = "The `arrayBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/arrayBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn array_buffer(this: &Blob) -> ::js_sys::Promise; + # [ wasm_bindgen ( catch , method , structural , js_class = "Blob" , js_name = slice ) ] + #[doc = "The `slice()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn slice(this: &Blob) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Blob" , js_name = slice ) ] + #[doc = "The `slice()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn slice_with_i32(this: &Blob, start: i32) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Blob" , js_name = slice ) ] + #[doc = "The `slice()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn slice_with_f64(this: &Blob, start: f64) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Blob" , js_name = slice ) ] + #[doc = "The `slice()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn slice_with_i32_and_i32(this: &Blob, start: i32, end: i32) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Blob" , js_name = slice ) ] + #[doc = "The `slice()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn slice_with_f64_and_i32(this: &Blob, start: f64, end: i32) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Blob" , js_name = slice ) ] + #[doc = "The `slice()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn slice_with_i32_and_f64(this: &Blob, start: i32, end: f64) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Blob" , js_name = slice ) ] + #[doc = "The `slice()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn slice_with_f64_and_f64(this: &Blob, start: f64, end: f64) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Blob" , js_name = slice ) ] + #[doc = "The `slice()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn slice_with_i32_and_i32_and_content_type( + this: &Blob, + start: i32, + end: i32, + content_type: &str, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Blob" , js_name = slice ) ] + #[doc = "The `slice()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn slice_with_f64_and_i32_and_content_type( + this: &Blob, + start: f64, + end: i32, + content_type: &str, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Blob" , js_name = slice ) ] + #[doc = "The `slice()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn slice_with_i32_and_f64_and_content_type( + this: &Blob, + start: i32, + end: f64, + content_type: &str, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Blob" , js_name = slice ) ] + #[doc = "The `slice()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn slice_with_f64_and_f64_and_content_type( + this: &Blob, + start: f64, + end: f64, + content_type: &str, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "Blob" , js_name = text ) ] + #[doc = "The `text()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`*"] + pub fn text(this: &Blob) -> ::js_sys::Promise; +} diff --git a/crates/web-sys/src/features/gen_BlobEvent.rs b/crates/web-sys/src/features/gen_BlobEvent.rs new file mode 100644 index 00000000..7fa0509f --- /dev/null +++ b/crates/web-sys/src/features/gen_BlobEvent.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = BlobEvent , typescript_type = "BlobEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BlobEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BlobEvent`*"] + pub type BlobEvent; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( structural , method , getter , js_class = "BlobEvent" , js_name = data ) ] + #[doc = "Getter for the `data` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent/data)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobEvent`*"] + pub fn data(this: &BlobEvent) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "BlobEvent")] + #[doc = "The `new BlobEvent(..)` constructor, creating a new instance of `BlobEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent/BlobEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BlobEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "BlobEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "BlobEvent")] + #[doc = "The `new BlobEvent(..)` constructor, creating a new instance of `BlobEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BlobEvent/BlobEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BlobEvent`, `BlobEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &BlobEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_BlobEventInit.rs b/crates/web-sys/src/features/gen_BlobEventInit.rs new file mode 100644 index 00000000..549331dd --- /dev/null +++ b/crates/web-sys/src/features/gen_BlobEventInit.rs @@ -0,0 +1,87 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = BlobEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BlobEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BlobEventInit`*"] + pub type BlobEventInit; +} +impl BlobEventInit { + #[doc = "Construct a new `BlobEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BlobEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BlobEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BlobEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BlobEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Blob")] + #[doc = "Change the `data` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `BlobEventInit`*"] + pub fn data(&mut self, val: Option<&Blob>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_BlobPropertyBag.rs b/crates/web-sys/src/features/gen_BlobPropertyBag.rs new file mode 100644 index 00000000..d6155e5a --- /dev/null +++ b/crates/web-sys/src/features/gen_BlobPropertyBag.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = BlobPropertyBag ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BlobPropertyBag` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BlobPropertyBag`*"] + pub type BlobPropertyBag; +} +impl BlobPropertyBag { + #[doc = "Construct a new `BlobPropertyBag`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BlobPropertyBag`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "EndingTypes")] + #[doc = "Change the `endings` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BlobPropertyBag`, `EndingTypes`*"] + pub fn endings(&mut self, val: EndingTypes) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("endings"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BlobPropertyBag`*"] + pub fn type_(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_BlockParsingOptions.rs b/crates/web-sys/src/features/gen_BlockParsingOptions.rs new file mode 100644 index 00000000..acafb8aa --- /dev/null +++ b/crates/web-sys/src/features/gen_BlockParsingOptions.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = BlockParsingOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BlockParsingOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BlockParsingOptions`*"] + pub type BlockParsingOptions; +} +impl BlockParsingOptions { + #[doc = "Construct a new `BlockParsingOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BlockParsingOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `blockScriptCreated` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BlockParsingOptions`*"] + pub fn block_script_created(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("blockScriptCreated"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_BoxQuadOptions.rs b/crates/web-sys/src/features/gen_BoxQuadOptions.rs new file mode 100644 index 00000000..32b29888 --- /dev/null +++ b/crates/web-sys/src/features/gen_BoxQuadOptions.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = BoxQuadOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BoxQuadOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`*"] + pub type BoxQuadOptions; +} +impl BoxQuadOptions { + #[doc = "Construct a new `BoxQuadOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "CssBoxType")] + #[doc = "Change the `box` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`, `CssBoxType`*"] + pub fn box_(&mut self, val: CssBoxType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("box"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `relativeTo` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`*"] + pub fn relative_to(&mut self, val: &::js_sys::Object) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("relativeTo"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_BroadcastChannel.rs b/crates/web-sys/src/features/gen_BroadcastChannel.rs new file mode 100644 index 00000000..58f76d1d --- /dev/null +++ b/crates/web-sys/src/features/gen_BroadcastChannel.rs @@ -0,0 +1,73 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = BroadcastChannel , typescript_type = "BroadcastChannel" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BroadcastChannel` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] + pub type BroadcastChannel; + # [ wasm_bindgen ( structural , method , getter , js_class = "BroadcastChannel" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] + pub fn name(this: &BroadcastChannel) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "BroadcastChannel" , js_name = onmessage ) ] + #[doc = "Getter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] + pub fn onmessage(this: &BroadcastChannel) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "BroadcastChannel" , js_name = onmessage ) ] + #[doc = "Setter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] + pub fn set_onmessage(this: &BroadcastChannel, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "BroadcastChannel" , js_name = onmessageerror ) ] + #[doc = "Getter for the `onmessageerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/onmessageerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] + pub fn onmessageerror(this: &BroadcastChannel) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "BroadcastChannel" , js_name = onmessageerror ) ] + #[doc = "Setter for the `onmessageerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/onmessageerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] + pub fn set_onmessageerror(this: &BroadcastChannel, value: Option<&::js_sys::Function>); + #[wasm_bindgen(catch, constructor, js_class = "BroadcastChannel")] + #[doc = "The `new BroadcastChannel(..)` constructor, creating a new instance of `BroadcastChannel`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/BroadcastChannel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] + pub fn new(channel: &str) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "BroadcastChannel" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] + pub fn close(this: &BroadcastChannel); + # [ wasm_bindgen ( catch , method , structural , js_class = "BroadcastChannel" , js_name = postMessage ) ] + #[doc = "The `postMessage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel/postMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BroadcastChannel`*"] + pub fn post_message( + this: &BroadcastChannel, + message: &::wasm_bindgen::JsValue, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_BrowserElementDownloadOptions.rs b/crates/web-sys/src/features/gen_BrowserElementDownloadOptions.rs new file mode 100644 index 00000000..114117ef --- /dev/null +++ b/crates/web-sys/src/features/gen_BrowserElementDownloadOptions.rs @@ -0,0 +1,56 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = BrowserElementDownloadOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BrowserElementDownloadOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BrowserElementDownloadOptions`*"] + pub type BrowserElementDownloadOptions; +} +impl BrowserElementDownloadOptions { + #[doc = "Construct a new `BrowserElementDownloadOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BrowserElementDownloadOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `filename` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BrowserElementDownloadOptions`*"] + pub fn filename(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("filename"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `referrer` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BrowserElementDownloadOptions`*"] + pub fn referrer(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("referrer"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_BrowserElementExecuteScriptOptions.rs b/crates/web-sys/src/features/gen_BrowserElementExecuteScriptOptions.rs new file mode 100644 index 00000000..5aa7768c --- /dev/null +++ b/crates/web-sys/src/features/gen_BrowserElementExecuteScriptOptions.rs @@ -0,0 +1,49 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = BrowserElementExecuteScriptOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BrowserElementExecuteScriptOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BrowserElementExecuteScriptOptions`*"] + pub type BrowserElementExecuteScriptOptions; +} +impl BrowserElementExecuteScriptOptions { + #[doc = "Construct a new `BrowserElementExecuteScriptOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BrowserElementExecuteScriptOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `origin` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BrowserElementExecuteScriptOptions`*"] + pub fn origin(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `url` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BrowserElementExecuteScriptOptions`*"] + pub fn url(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("url"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_BrowserFeedWriter.rs b/crates/web-sys/src/features/gen_BrowserFeedWriter.rs new file mode 100644 index 00000000..4bbdcc3c --- /dev/null +++ b/crates/web-sys/src/features/gen_BrowserFeedWriter.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = BrowserFeedWriter , typescript_type = "BrowserFeedWriter" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `BrowserFeedWriter` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BrowserFeedWriter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BrowserFeedWriter`*"] + pub type BrowserFeedWriter; + #[wasm_bindgen(catch, constructor, js_class = "BrowserFeedWriter")] + #[doc = "The `new BrowserFeedWriter(..)` constructor, creating a new instance of `BrowserFeedWriter`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BrowserFeedWriter/BrowserFeedWriter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BrowserFeedWriter`*"] + pub fn new() -> Result; + # [ wasm_bindgen ( method , structural , js_class = "BrowserFeedWriter" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BrowserFeedWriter/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BrowserFeedWriter`*"] + pub fn close(this: &BrowserFeedWriter); + # [ wasm_bindgen ( method , structural , js_class = "BrowserFeedWriter" , js_name = writeContent ) ] + #[doc = "The `writeContent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/BrowserFeedWriter/writeContent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BrowserFeedWriter`*"] + pub fn write_content(this: &BrowserFeedWriter); +} diff --git a/crates/web-sys/src/features/gen_BrowserFindCaseSensitivity.rs b/crates/web-sys/src/features/gen_BrowserFindCaseSensitivity.rs new file mode 100644 index 00000000..8191347d --- /dev/null +++ b/crates/web-sys/src/features/gen_BrowserFindCaseSensitivity.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `BrowserFindCaseSensitivity` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `BrowserFindCaseSensitivity`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum BrowserFindCaseSensitivity { + CaseSensitive = "case-sensitive", + CaseInsensitive = "case-insensitive", +} diff --git a/crates/web-sys/src/features/gen_BrowserFindDirection.rs b/crates/web-sys/src/features/gen_BrowserFindDirection.rs new file mode 100644 index 00000000..d5b8b467 --- /dev/null +++ b/crates/web-sys/src/features/gen_BrowserFindDirection.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `BrowserFindDirection` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `BrowserFindDirection`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum BrowserFindDirection { + Forward = "forward", + Backward = "backward", +} diff --git a/crates/web-sys/src/features/gen_Cache.rs b/crates/web-sys/src/features/gen_Cache.rs new file mode 100644 index 00000000..6331190d --- /dev/null +++ b/crates/web-sys/src/features/gen_Cache.rs @@ -0,0 +1,239 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Cache , typescript_type = "Cache" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Cache` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`*"] + pub type Cache; + #[cfg(feature = "Request")] + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"] + pub fn add_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`*"] + pub fn add_with_str(this: &Cache, request: &str) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = addAll ) ] + #[doc = "The `addAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/addAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`*"] + pub fn add_all_with_request_sequence( + this: &Cache, + requests: &::wasm_bindgen::JsValue, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = addAll ) ] + #[doc = "The `addAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/addAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`*"] + pub fn add_all_with_str_sequence( + this: &Cache, + requests: &::wasm_bindgen::JsValue, + ) -> ::js_sys::Promise; + #[cfg(feature = "Request")] + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = delete ) ] + #[doc = "The `delete()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"] + pub fn delete_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = delete ) ] + #[doc = "The `delete()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`*"] + pub fn delete_with_str(this: &Cache, request: &str) -> ::js_sys::Promise; + #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))] + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = delete ) ] + #[doc = "The `delete()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`, `Request`*"] + pub fn delete_with_request_and_options( + this: &Cache, + request: &Request, + options: &CacheQueryOptions, + ) -> ::js_sys::Promise; + #[cfg(feature = "CacheQueryOptions")] + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = delete ) ] + #[doc = "The `delete()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/delete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`*"] + pub fn delete_with_str_and_options( + this: &Cache, + request: &str, + options: &CacheQueryOptions, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = keys ) ] + #[doc = "The `keys()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`*"] + pub fn keys(this: &Cache) -> ::js_sys::Promise; + #[cfg(feature = "Request")] + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = keys ) ] + #[doc = "The `keys()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"] + pub fn keys_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = keys ) ] + #[doc = "The `keys()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`*"] + pub fn keys_with_str(this: &Cache, request: &str) -> ::js_sys::Promise; + #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))] + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = keys ) ] + #[doc = "The `keys()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`, `Request`*"] + pub fn keys_with_request_and_options( + this: &Cache, + request: &Request, + options: &CacheQueryOptions, + ) -> ::js_sys::Promise; + #[cfg(feature = "CacheQueryOptions")] + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = keys ) ] + #[doc = "The `keys()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/keys)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`*"] + pub fn keys_with_str_and_options( + this: &Cache, + request: &str, + options: &CacheQueryOptions, + ) -> ::js_sys::Promise; + #[cfg(feature = "Request")] + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = match ) ] + #[doc = "The `match()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"] + pub fn match_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = match ) ] + #[doc = "The `match()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`*"] + pub fn match_with_str(this: &Cache, request: &str) -> ::js_sys::Promise; + #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))] + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = match ) ] + #[doc = "The `match()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`, `Request`*"] + pub fn match_with_request_and_options( + this: &Cache, + request: &Request, + options: &CacheQueryOptions, + ) -> ::js_sys::Promise; + #[cfg(feature = "CacheQueryOptions")] + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = match ) ] + #[doc = "The `match()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/match)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`*"] + pub fn match_with_str_and_options( + this: &Cache, + request: &str, + options: &CacheQueryOptions, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = matchAll ) ] + #[doc = "The `matchAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`*"] + pub fn match_all(this: &Cache) -> ::js_sys::Promise; + #[cfg(feature = "Request")] + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = matchAll ) ] + #[doc = "The `matchAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`*"] + pub fn match_all_with_request(this: &Cache, request: &Request) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = matchAll ) ] + #[doc = "The `matchAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`*"] + pub fn match_all_with_str(this: &Cache, request: &str) -> ::js_sys::Promise; + #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))] + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = matchAll ) ] + #[doc = "The `matchAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`, `Request`*"] + pub fn match_all_with_request_and_options( + this: &Cache, + request: &Request, + options: &CacheQueryOptions, + ) -> ::js_sys::Promise; + #[cfg(feature = "CacheQueryOptions")] + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = matchAll ) ] + #[doc = "The `matchAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/matchAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`, `CacheQueryOptions`*"] + pub fn match_all_with_str_and_options( + this: &Cache, + request: &str, + options: &CacheQueryOptions, + ) -> ::js_sys::Promise; + #[cfg(all(feature = "Request", feature = "Response",))] + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = put ) ] + #[doc = "The `put()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/put)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`, `Request`, `Response`*"] + pub fn put_with_request( + this: &Cache, + request: &Request, + response: &Response, + ) -> ::js_sys::Promise; + #[cfg(feature = "Response")] + # [ wasm_bindgen ( method , structural , js_class = "Cache" , js_name = put ) ] + #[doc = "The `put()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Cache/put)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Cache`, `Response`*"] + pub fn put_with_str(this: &Cache, request: &str, response: &Response) -> ::js_sys::Promise; +} diff --git a/crates/web-sys/src/features/gen_CacheBatchOperation.rs b/crates/web-sys/src/features/gen_CacheBatchOperation.rs new file mode 100644 index 00000000..aee10c7f --- /dev/null +++ b/crates/web-sys/src/features/gen_CacheBatchOperation.rs @@ -0,0 +1,89 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CacheBatchOperation ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CacheBatchOperation` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`*"] + pub type CacheBatchOperation; +} +impl CacheBatchOperation { + #[doc = "Construct a new `CacheBatchOperation`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "CacheQueryOptions")] + #[doc = "Change the `options` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`, `CacheQueryOptions`*"] + pub fn options(&mut self, val: &CacheQueryOptions) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("options"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Request")] + #[doc = "Change the `request` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`, `Request`*"] + pub fn request(&mut self, val: &Request) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("request"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Response")] + #[doc = "Change the `response` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`, `Response`*"] + pub fn response(&mut self, val: &Response) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("response"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheBatchOperation`*"] + pub fn type_(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_CacheQueryOptions.rs b/crates/web-sys/src/features/gen_CacheQueryOptions.rs new file mode 100644 index 00000000..dd2ed077 --- /dev/null +++ b/crates/web-sys/src/features/gen_CacheQueryOptions.rs @@ -0,0 +1,90 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CacheQueryOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CacheQueryOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] + pub type CacheQueryOptions; +} +impl CacheQueryOptions { + #[doc = "Construct a new `CacheQueryOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `cacheName` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] + pub fn cache_name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cacheName"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ignoreMethod` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] + pub fn ignore_method(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("ignoreMethod"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ignoreSearch` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] + pub fn ignore_search(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("ignoreSearch"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ignoreVary` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`*"] + pub fn ignore_vary(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("ignoreVary"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_CacheStorage.rs b/crates/web-sys/src/features/gen_CacheStorage.rs new file mode 100644 index 00000000..936502ff --- /dev/null +++ b/crates/web-sys/src/features/gen_CacheStorage.rs @@ -0,0 +1,81 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CacheStorage , typescript_type = "CacheStorage" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CacheStorage` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"] + pub type CacheStorage; + # [ wasm_bindgen ( method , structural , js_class = "CacheStorage" , js_name = delete ) ] + #[doc = "The `delete()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/delete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"] + pub fn delete(this: &CacheStorage, cache_name: &str) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "CacheStorage" , js_name = has ) ] + #[doc = "The `has()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/has)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"] + pub fn has(this: &CacheStorage, cache_name: &str) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "CacheStorage" , js_name = keys ) ] + #[doc = "The `keys()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/keys)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"] + pub fn keys(this: &CacheStorage) -> ::js_sys::Promise; + #[cfg(feature = "Request")] + # [ wasm_bindgen ( method , structural , js_class = "CacheStorage" , js_name = match ) ] + #[doc = "The `match()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/match)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheStorage`, `Request`*"] + pub fn match_with_request(this: &CacheStorage, request: &Request) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "CacheStorage" , js_name = match ) ] + #[doc = "The `match()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/match)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"] + pub fn match_with_str(this: &CacheStorage, request: &str) -> ::js_sys::Promise; + #[cfg(all(feature = "CacheQueryOptions", feature = "Request",))] + # [ wasm_bindgen ( method , structural , js_class = "CacheStorage" , js_name = match ) ] + #[doc = "The `match()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/match)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`, `CacheStorage`, `Request`*"] + pub fn match_with_request_and_options( + this: &CacheStorage, + request: &Request, + options: &CacheQueryOptions, + ) -> ::js_sys::Promise; + #[cfg(feature = "CacheQueryOptions")] + # [ wasm_bindgen ( method , structural , js_class = "CacheStorage" , js_name = match ) ] + #[doc = "The `match()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/match)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheQueryOptions`, `CacheStorage`*"] + pub fn match_with_str_and_options( + this: &CacheStorage, + request: &str, + options: &CacheQueryOptions, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "CacheStorage" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheStorage`*"] + pub fn open(this: &CacheStorage, cache_name: &str) -> ::js_sys::Promise; +} diff --git a/crates/web-sys/src/features/gen_CacheStorageNamespace.rs b/crates/web-sys/src/features/gen_CacheStorageNamespace.rs new file mode 100644 index 00000000..ace039c4 --- /dev/null +++ b/crates/web-sys/src/features/gen_CacheStorageNamespace.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `CacheStorageNamespace` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `CacheStorageNamespace`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum CacheStorageNamespace { + Content = "content", + Chrome = "chrome", +} diff --git a/crates/web-sys/src/features/gen_CanvasCaptureMediaStream.rs b/crates/web-sys/src/features/gen_CanvasCaptureMediaStream.rs new file mode 100644 index 00000000..e9e76491 --- /dev/null +++ b/crates/web-sys/src/features/gen_CanvasCaptureMediaStream.rs @@ -0,0 +1,29 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = MediaStream , extends = EventTarget , extends = :: js_sys :: Object , js_name = CanvasCaptureMediaStream , typescript_type = "CanvasCaptureMediaStream" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CanvasCaptureMediaStream` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStream)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasCaptureMediaStream`*"] + pub type CanvasCaptureMediaStream; + #[cfg(feature = "HtmlCanvasElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasCaptureMediaStream" , js_name = canvas ) ] + #[doc = "Getter for the `canvas` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStream/canvas)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasCaptureMediaStream`, `HtmlCanvasElement`*"] + pub fn canvas(this: &CanvasCaptureMediaStream) -> HtmlCanvasElement; + # [ wasm_bindgen ( method , structural , js_class = "CanvasCaptureMediaStream" , js_name = requestFrame ) ] + #[doc = "The `requestFrame()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasCaptureMediaStream/requestFrame)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasCaptureMediaStream`*"] + pub fn request_frame(this: &CanvasCaptureMediaStream); +} diff --git a/crates/web-sys/src/features/gen_CanvasGradient.rs b/crates/web-sys/src/features/gen_CanvasGradient.rs new file mode 100644 index 00000000..14fd3c72 --- /dev/null +++ b/crates/web-sys/src/features/gen_CanvasGradient.rs @@ -0,0 +1,21 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CanvasGradient , typescript_type = "CanvasGradient" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CanvasGradient` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`*"] + pub type CanvasGradient; + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasGradient" , js_name = addColorStop ) ] + #[doc = "The `addColorStop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasGradient/addColorStop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`*"] + pub fn add_color_stop(this: &CanvasGradient, offset: f32, color: &str) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_CanvasPattern.rs b/crates/web-sys/src/features/gen_CanvasPattern.rs new file mode 100644 index 00000000..6becd84b --- /dev/null +++ b/crates/web-sys/src/features/gen_CanvasPattern.rs @@ -0,0 +1,22 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CanvasPattern , typescript_type = "CanvasPattern" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CanvasPattern` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`*"] + pub type CanvasPattern; + #[cfg(feature = "SvgMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "CanvasPattern" , js_name = setTransform ) ] + #[doc = "The `setTransform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasPattern/setTransform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `SvgMatrix`*"] + pub fn set_transform(this: &CanvasPattern, matrix: &SvgMatrix); +} diff --git a/crates/web-sys/src/features/gen_CanvasRenderingContext2d.rs b/crates/web-sys/src/features/gen_CanvasRenderingContext2d.rs new file mode 100644 index 00000000..91b3a3fe --- /dev/null +++ b/crates/web-sys/src/features/gen_CanvasRenderingContext2d.rs @@ -0,0 +1,1246 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CanvasRenderingContext2D , typescript_type = "CanvasRenderingContext2D" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CanvasRenderingContext2d` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub type CanvasRenderingContext2d; + #[cfg(feature = "HtmlCanvasElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = canvas ) ] + #[doc = "Getter for the `canvas` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/canvas)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlCanvasElement`*"] + pub fn canvas(this: &CanvasRenderingContext2d) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = globalAlpha ) ] + #[doc = "Getter for the `globalAlpha` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalAlpha)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn global_alpha(this: &CanvasRenderingContext2d) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = globalAlpha ) ] + #[doc = "Setter for the `globalAlpha` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalAlpha)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_global_alpha(this: &CanvasRenderingContext2d, value: f64); + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "CanvasRenderingContext2D" , js_name = globalCompositeOperation ) ] + #[doc = "Getter for the `globalCompositeOperation` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn global_composite_operation(this: &CanvasRenderingContext2d) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "CanvasRenderingContext2D" , js_name = globalCompositeOperation ) ] + #[doc = "Setter for the `globalCompositeOperation` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/globalCompositeOperation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_global_composite_operation( + this: &CanvasRenderingContext2d, + value: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = strokeStyle ) ] + #[doc = "Getter for the `strokeStyle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeStyle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn stroke_style(this: &CanvasRenderingContext2d) -> ::wasm_bindgen::JsValue; + # [ wasm_bindgen ( structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = strokeStyle ) ] + #[doc = "Setter for the `strokeStyle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeStyle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_stroke_style(this: &CanvasRenderingContext2d, value: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = fillStyle ) ] + #[doc = "Getter for the `fillStyle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillStyle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn fill_style(this: &CanvasRenderingContext2d) -> ::wasm_bindgen::JsValue; + # [ wasm_bindgen ( structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = fillStyle ) ] + #[doc = "Setter for the `fillStyle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillStyle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_fill_style(this: &CanvasRenderingContext2d, value: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = filter ) ] + #[doc = "Getter for the `filter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn filter(this: &CanvasRenderingContext2d) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = filter ) ] + #[doc = "Setter for the `filter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/filter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_filter(this: &CanvasRenderingContext2d, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = imageSmoothingEnabled ) ] + #[doc = "Getter for the `imageSmoothingEnabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn image_smoothing_enabled(this: &CanvasRenderingContext2d) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = imageSmoothingEnabled ) ] + #[doc = "Setter for the `imageSmoothingEnabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/imageSmoothingEnabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_image_smoothing_enabled(this: &CanvasRenderingContext2d, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = lineWidth ) ] + #[doc = "Getter for the `lineWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn line_width(this: &CanvasRenderingContext2d) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = lineWidth ) ] + #[doc = "Setter for the `lineWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_line_width(this: &CanvasRenderingContext2d, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = lineCap ) ] + #[doc = "Getter for the `lineCap` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn line_cap(this: &CanvasRenderingContext2d) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = lineCap ) ] + #[doc = "Setter for the `lineCap` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineCap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_line_cap(this: &CanvasRenderingContext2d, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = lineJoin ) ] + #[doc = "Getter for the `lineJoin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn line_join(this: &CanvasRenderingContext2d) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = lineJoin ) ] + #[doc = "Setter for the `lineJoin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineJoin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_line_join(this: &CanvasRenderingContext2d, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = miterLimit ) ] + #[doc = "Getter for the `miterLimit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/miterLimit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn miter_limit(this: &CanvasRenderingContext2d) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = miterLimit ) ] + #[doc = "Setter for the `miterLimit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/miterLimit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_miter_limit(this: &CanvasRenderingContext2d, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = lineDashOffset ) ] + #[doc = "Getter for the `lineDashOffset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn line_dash_offset(this: &CanvasRenderingContext2d) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = lineDashOffset ) ] + #[doc = "Setter for the `lineDashOffset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineDashOffset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_line_dash_offset(this: &CanvasRenderingContext2d, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = shadowOffsetX ) ] + #[doc = "Getter for the `shadowOffsetX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn shadow_offset_x(this: &CanvasRenderingContext2d) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = shadowOffsetX ) ] + #[doc = "Setter for the `shadowOffsetX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_shadow_offset_x(this: &CanvasRenderingContext2d, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = shadowOffsetY ) ] + #[doc = "Getter for the `shadowOffsetY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn shadow_offset_y(this: &CanvasRenderingContext2d) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = shadowOffsetY ) ] + #[doc = "Setter for the `shadowOffsetY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowOffsetY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_shadow_offset_y(this: &CanvasRenderingContext2d, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = shadowBlur ) ] + #[doc = "Getter for the `shadowBlur` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowBlur)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn shadow_blur(this: &CanvasRenderingContext2d) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = shadowBlur ) ] + #[doc = "Setter for the `shadowBlur` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowBlur)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_shadow_blur(this: &CanvasRenderingContext2d, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = shadowColor ) ] + #[doc = "Getter for the `shadowColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn shadow_color(this: &CanvasRenderingContext2d) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = shadowColor ) ] + #[doc = "Setter for the `shadowColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/shadowColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_shadow_color(this: &CanvasRenderingContext2d, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = font ) ] + #[doc = "Getter for the `font` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/font)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn font(this: &CanvasRenderingContext2d) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = font ) ] + #[doc = "Setter for the `font` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/font)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_font(this: &CanvasRenderingContext2d, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = textAlign ) ] + #[doc = "Getter for the `textAlign` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textAlign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn text_align(this: &CanvasRenderingContext2d) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = textAlign ) ] + #[doc = "Setter for the `textAlign` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textAlign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_text_align(this: &CanvasRenderingContext2d, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CanvasRenderingContext2D" , js_name = textBaseline ) ] + #[doc = "Getter for the `textBaseline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textBaseline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn text_baseline(this: &CanvasRenderingContext2d) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CanvasRenderingContext2D" , js_name = textBaseline ) ] + #[doc = "Setter for the `textBaseline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/textBaseline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_text_baseline(this: &CanvasRenderingContext2d, value: &str); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawWindow ) ] + #[doc = "The `drawWindow()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawWindow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Window`*"] + pub fn draw_window( + this: &CanvasRenderingContext2d, + window: &Window, + x: f64, + y: f64, + w: f64, + h: f64, + bg_color: &str, + ) -> Result<(), JsValue>; + #[cfg(feature = "Window")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawWindow ) ] + #[doc = "The `drawWindow()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawWindow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Window`*"] + pub fn draw_window_with_flags( + this: &CanvasRenderingContext2d, + window: &Window, + x: f64, + y: f64, + w: f64, + h: f64, + bg_color: &str, + flags: u32, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage ) ] + #[doc = "The `drawImage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlImageElement`*"] + pub fn draw_image_with_html_image_element( + this: &CanvasRenderingContext2d, + image: &HtmlImageElement, + dx: f64, + dy: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "SvgImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage ) ] + #[doc = "The `drawImage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `SvgImageElement`*"] + pub fn draw_image_with_svg_image_element( + this: &CanvasRenderingContext2d, + image: &SvgImageElement, + dx: f64, + dy: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlCanvasElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage ) ] + #[doc = "The `drawImage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlCanvasElement`*"] + pub fn draw_image_with_html_canvas_element( + this: &CanvasRenderingContext2d, + image: &HtmlCanvasElement, + dx: f64, + dy: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlVideoElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage ) ] + #[doc = "The `drawImage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlVideoElement`*"] + pub fn draw_image_with_html_video_element( + this: &CanvasRenderingContext2d, + image: &HtmlVideoElement, + dx: f64, + dy: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage ) ] + #[doc = "The `drawImage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `ImageBitmap`*"] + pub fn draw_image_with_image_bitmap( + this: &CanvasRenderingContext2d, + image: &ImageBitmap, + dx: f64, + dy: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage ) ] + #[doc = "The `drawImage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlImageElement`*"] + pub fn draw_image_with_html_image_element_and_dw_and_dh( + this: &CanvasRenderingContext2d, + image: &HtmlImageElement, + dx: f64, + dy: f64, + dw: f64, + dh: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "SvgImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage ) ] + #[doc = "The `drawImage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `SvgImageElement`*"] + pub fn draw_image_with_svg_image_element_and_dw_and_dh( + this: &CanvasRenderingContext2d, + image: &SvgImageElement, + dx: f64, + dy: f64, + dw: f64, + dh: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlCanvasElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage ) ] + #[doc = "The `drawImage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlCanvasElement`*"] + pub fn draw_image_with_html_canvas_element_and_dw_and_dh( + this: &CanvasRenderingContext2d, + image: &HtmlCanvasElement, + dx: f64, + dy: f64, + dw: f64, + dh: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlVideoElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage ) ] + #[doc = "The `drawImage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlVideoElement`*"] + pub fn draw_image_with_html_video_element_and_dw_and_dh( + this: &CanvasRenderingContext2d, + image: &HtmlVideoElement, + dx: f64, + dy: f64, + dw: f64, + dh: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage ) ] + #[doc = "The `drawImage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `ImageBitmap`*"] + pub fn draw_image_with_image_bitmap_and_dw_and_dh( + this: &CanvasRenderingContext2d, + image: &ImageBitmap, + dx: f64, + dy: f64, + dw: f64, + dh: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage ) ] + #[doc = "The `drawImage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlImageElement`*"] + pub fn draw_image_with_html_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( + this: &CanvasRenderingContext2d, + image: &HtmlImageElement, + sx: f64, + sy: f64, + sw: f64, + sh: f64, + dx: f64, + dy: f64, + dw: f64, + dh: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "SvgImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage ) ] + #[doc = "The `drawImage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `SvgImageElement`*"] + pub fn draw_image_with_svg_image_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( + this: &CanvasRenderingContext2d, + image: &SvgImageElement, + sx: f64, + sy: f64, + sw: f64, + sh: f64, + dx: f64, + dy: f64, + dw: f64, + dh: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlCanvasElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage ) ] + #[doc = "The `drawImage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlCanvasElement`*"] + pub fn draw_image_with_html_canvas_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( + this: &CanvasRenderingContext2d, + image: &HtmlCanvasElement, + sx: f64, + sy: f64, + sw: f64, + sh: f64, + dx: f64, + dy: f64, + dw: f64, + dh: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlVideoElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage ) ] + #[doc = "The `drawImage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HtmlVideoElement`*"] + pub fn draw_image_with_html_video_element_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( + this: &CanvasRenderingContext2d, + image: &HtmlVideoElement, + sx: f64, + sy: f64, + sw: f64, + sh: f64, + dx: f64, + dy: f64, + dw: f64, + dh: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawImage ) ] + #[doc = "The `drawImage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawImage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `ImageBitmap`*"] + pub fn draw_image_with_image_bitmap_and_sw_and_sh_and_dx_and_dy_and_dw_and_dh( + this: &CanvasRenderingContext2d, + image: &ImageBitmap, + sx: f64, + sy: f64, + sw: f64, + sh: f64, + dx: f64, + dy: f64, + dw: f64, + dh: f64, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = beginPath ) ] + #[doc = "The `beginPath()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/beginPath)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn begin_path(this: &CanvasRenderingContext2d); + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = clip ) ] + #[doc = "The `clip()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clip)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn clip(this: &CanvasRenderingContext2d); + #[cfg(feature = "CanvasWindingRule")] + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = clip ) ] + #[doc = "The `clip()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clip)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `CanvasWindingRule`*"] + pub fn clip_with_canvas_winding_rule( + this: &CanvasRenderingContext2d, + winding: CanvasWindingRule, + ); + #[cfg(feature = "Path2d")] + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = clip ) ] + #[doc = "The `clip()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clip)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Path2d`*"] + pub fn clip_with_path_2d(this: &CanvasRenderingContext2d, path: &Path2d); + #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))] + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = clip ) ] + #[doc = "The `clip()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clip)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `CanvasWindingRule`, `Path2d`*"] + pub fn clip_with_path_2d_and_winding( + this: &CanvasRenderingContext2d, + path: &Path2d, + winding: CanvasWindingRule, + ); + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = fill ) ] + #[doc = "The `fill()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn fill(this: &CanvasRenderingContext2d); + #[cfg(feature = "CanvasWindingRule")] + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = fill ) ] + #[doc = "The `fill()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `CanvasWindingRule`*"] + pub fn fill_with_canvas_winding_rule( + this: &CanvasRenderingContext2d, + winding: CanvasWindingRule, + ); + #[cfg(feature = "Path2d")] + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = fill ) ] + #[doc = "The `fill()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Path2d`*"] + pub fn fill_with_path_2d(this: &CanvasRenderingContext2d, path: &Path2d); + #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))] + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = fill ) ] + #[doc = "The `fill()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fill)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `CanvasWindingRule`, `Path2d`*"] + pub fn fill_with_path_2d_and_winding( + this: &CanvasRenderingContext2d, + path: &Path2d, + winding: CanvasWindingRule, + ); + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInPath ) ] + #[doc = "The `isPointInPath()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn is_point_in_path_with_f64(this: &CanvasRenderingContext2d, x: f64, y: f64) -> bool; + #[cfg(feature = "CanvasWindingRule")] + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInPath ) ] + #[doc = "The `isPointInPath()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `CanvasWindingRule`*"] + pub fn is_point_in_path_with_f64_and_canvas_winding_rule( + this: &CanvasRenderingContext2d, + x: f64, + y: f64, + winding: CanvasWindingRule, + ) -> bool; + #[cfg(feature = "Path2d")] + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInPath ) ] + #[doc = "The `isPointInPath()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Path2d`*"] + pub fn is_point_in_path_with_path_2d_and_f64( + this: &CanvasRenderingContext2d, + path: &Path2d, + x: f64, + y: f64, + ) -> bool; + #[cfg(all(feature = "CanvasWindingRule", feature = "Path2d",))] + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInPath ) ] + #[doc = "The `isPointInPath()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInPath)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `CanvasWindingRule`, `Path2d`*"] + pub fn is_point_in_path_with_path_2d_and_f64_and_winding( + this: &CanvasRenderingContext2d, + path: &Path2d, + x: f64, + y: f64, + winding: CanvasWindingRule, + ) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInStroke ) ] + #[doc = "The `isPointInStroke()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInStroke)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn is_point_in_stroke_with_x_and_y(this: &CanvasRenderingContext2d, x: f64, y: f64) + -> bool; + #[cfg(feature = "Path2d")] + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = isPointInStroke ) ] + #[doc = "The `isPointInStroke()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/isPointInStroke)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Path2d`*"] + pub fn is_point_in_stroke_with_path_and_x_and_y( + this: &CanvasRenderingContext2d, + path: &Path2d, + x: f64, + y: f64, + ) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = stroke ) ] + #[doc = "The `stroke()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/stroke)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn stroke(this: &CanvasRenderingContext2d); + #[cfg(feature = "Path2d")] + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = stroke ) ] + #[doc = "The `stroke()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/stroke)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Path2d`*"] + pub fn stroke_with_path(this: &CanvasRenderingContext2d, path: &Path2d); + #[cfg(feature = "CanvasGradient")] + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = createLinearGradient ) ] + #[doc = "The `createLinearGradient()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createLinearGradient)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`, `CanvasRenderingContext2d`*"] + pub fn create_linear_gradient( + this: &CanvasRenderingContext2d, + x0: f64, + y0: f64, + x1: f64, + y1: f64, + ) -> CanvasGradient; + #[cfg(all(feature = "CanvasPattern", feature = "HtmlImageElement",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createPattern ) ] + #[doc = "The `createPattern()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `CanvasRenderingContext2d`, `HtmlImageElement`*"] + pub fn create_pattern_with_html_image_element( + this: &CanvasRenderingContext2d, + image: &HtmlImageElement, + repetition: &str, + ) -> Result, JsValue>; + #[cfg(all(feature = "CanvasPattern", feature = "SvgImageElement",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createPattern ) ] + #[doc = "The `createPattern()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `CanvasRenderingContext2d`, `SvgImageElement`*"] + pub fn create_pattern_with_svg_image_element( + this: &CanvasRenderingContext2d, + image: &SvgImageElement, + repetition: &str, + ) -> Result, JsValue>; + #[cfg(all(feature = "CanvasPattern", feature = "HtmlCanvasElement",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createPattern ) ] + #[doc = "The `createPattern()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `CanvasRenderingContext2d`, `HtmlCanvasElement`*"] + pub fn create_pattern_with_html_canvas_element( + this: &CanvasRenderingContext2d, + image: &HtmlCanvasElement, + repetition: &str, + ) -> Result, JsValue>; + #[cfg(all(feature = "CanvasPattern", feature = "HtmlVideoElement",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createPattern ) ] + #[doc = "The `createPattern()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `CanvasRenderingContext2d`, `HtmlVideoElement`*"] + pub fn create_pattern_with_html_video_element( + this: &CanvasRenderingContext2d, + image: &HtmlVideoElement, + repetition: &str, + ) -> Result, JsValue>; + #[cfg(all(feature = "CanvasPattern", feature = "ImageBitmap",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createPattern ) ] + #[doc = "The `createPattern()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createPattern)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasPattern`, `CanvasRenderingContext2d`, `ImageBitmap`*"] + pub fn create_pattern_with_image_bitmap( + this: &CanvasRenderingContext2d, + image: &ImageBitmap, + repetition: &str, + ) -> Result, JsValue>; + #[cfg(feature = "CanvasGradient")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createRadialGradient ) ] + #[doc = "The `createRadialGradient()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createRadialGradient)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasGradient`, `CanvasRenderingContext2d`*"] + pub fn create_radial_gradient( + this: &CanvasRenderingContext2d, + x0: f64, + y0: f64, + r0: f64, + x1: f64, + y1: f64, + r1: f64, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = addHitRegion ) ] + #[doc = "The `addHitRegion()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/addHitRegion)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn add_hit_region(this: &CanvasRenderingContext2d) -> Result<(), JsValue>; + #[cfg(feature = "HitRegionOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = addHitRegion ) ] + #[doc = "The `addHitRegion()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/addHitRegion)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `HitRegionOptions`*"] + pub fn add_hit_region_with_options( + this: &CanvasRenderingContext2d, + options: &HitRegionOptions, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = clearHitRegions ) ] + #[doc = "The `clearHitRegions()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clearHitRegions)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn clear_hit_regions(this: &CanvasRenderingContext2d); + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = removeHitRegion ) ] + #[doc = "The `removeHitRegion()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/removeHitRegion)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn remove_hit_region(this: &CanvasRenderingContext2d, id: &str); + #[cfg(feature = "ImageData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createImageData ) ] + #[doc = "The `createImageData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createImageData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `ImageData`*"] + pub fn create_image_data_with_sw_and_sh( + this: &CanvasRenderingContext2d, + sw: f64, + sh: f64, + ) -> Result; + #[cfg(feature = "ImageData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = createImageData ) ] + #[doc = "The `createImageData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/createImageData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `ImageData`*"] + pub fn create_image_data_with_imagedata( + this: &CanvasRenderingContext2d, + imagedata: &ImageData, + ) -> Result; + #[cfg(feature = "ImageData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = getImageData ) ] + #[doc = "The `getImageData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getImageData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `ImageData`*"] + pub fn get_image_data( + this: &CanvasRenderingContext2d, + sx: f64, + sy: f64, + sw: f64, + sh: f64, + ) -> Result; + #[cfg(feature = "ImageData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = putImageData ) ] + #[doc = "The `putImageData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/putImageData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `ImageData`*"] + pub fn put_image_data( + this: &CanvasRenderingContext2d, + imagedata: &ImageData, + dx: f64, + dy: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = putImageData ) ] + #[doc = "The `putImageData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/putImageData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `ImageData`*"] + pub fn put_image_data_with_dirty_x_and_dirty_y_and_dirty_width_and_dirty_height( + this: &CanvasRenderingContext2d, + imagedata: &ImageData, + dx: f64, + dy: f64, + dirty_x: f64, + dirty_y: f64, + dirty_width: f64, + dirty_height: f64, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = getLineDash ) ] + #[doc = "The `getLineDash()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getLineDash)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn get_line_dash(this: &CanvasRenderingContext2d) -> ::js_sys::Array; + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = setLineDash ) ] + #[doc = "The `setLineDash()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_line_dash( + this: &CanvasRenderingContext2d, + segments: &::wasm_bindgen::JsValue, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = arc ) ] + #[doc = "The `arc()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/arc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn arc( + this: &CanvasRenderingContext2d, + x: f64, + y: f64, + radius: f64, + start_angle: f64, + end_angle: f64, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = arc ) ] + #[doc = "The `arc()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/arc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn arc_with_anticlockwise( + this: &CanvasRenderingContext2d, + x: f64, + y: f64, + radius: f64, + start_angle: f64, + end_angle: f64, + anticlockwise: bool, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = arcTo ) ] + #[doc = "The `arcTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/arcTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn arc_to( + this: &CanvasRenderingContext2d, + x1: f64, + y1: f64, + x2: f64, + y2: f64, + radius: f64, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = bezierCurveTo ) ] + #[doc = "The `bezierCurveTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/bezierCurveTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn bezier_curve_to( + this: &CanvasRenderingContext2d, + cp1x: f64, + cp1y: f64, + cp2x: f64, + cp2y: f64, + x: f64, + y: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = closePath ) ] + #[doc = "The `closePath()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/closePath)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn close_path(this: &CanvasRenderingContext2d); + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = ellipse ) ] + #[doc = "The `ellipse()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/ellipse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn ellipse( + this: &CanvasRenderingContext2d, + x: f64, + y: f64, + radius_x: f64, + radius_y: f64, + rotation: f64, + start_angle: f64, + end_angle: f64, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = ellipse ) ] + #[doc = "The `ellipse()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/ellipse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn ellipse_with_anticlockwise( + this: &CanvasRenderingContext2d, + x: f64, + y: f64, + radius_x: f64, + radius_y: f64, + rotation: f64, + start_angle: f64, + end_angle: f64, + anticlockwise: bool, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = lineTo ) ] + #[doc = "The `lineTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/lineTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn line_to(this: &CanvasRenderingContext2d, x: f64, y: f64); + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = moveTo ) ] + #[doc = "The `moveTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/moveTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn move_to(this: &CanvasRenderingContext2d, x: f64, y: f64); + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = quadraticCurveTo ) ] + #[doc = "The `quadraticCurveTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/quadraticCurveTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn quadratic_curve_to(this: &CanvasRenderingContext2d, cpx: f64, cpy: f64, x: f64, y: f64); + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = rect ) ] + #[doc = "The `rect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/rect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn rect(this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64); + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = clearRect ) ] + #[doc = "The `clearRect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/clearRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn clear_rect(this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64); + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = fillRect ) ] + #[doc = "The `fillRect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn fill_rect(this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64); + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = strokeRect ) ] + #[doc = "The `strokeRect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn stroke_rect(this: &CanvasRenderingContext2d, x: f64, y: f64, w: f64, h: f64); + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = restore ) ] + #[doc = "The `restore()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/restore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn restore(this: &CanvasRenderingContext2d); + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = save ) ] + #[doc = "The `save()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/save)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn save(this: &CanvasRenderingContext2d); + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = fillText ) ] + #[doc = "The `fillText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn fill_text( + this: &CanvasRenderingContext2d, + text: &str, + x: f64, + y: f64, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = fillText ) ] + #[doc = "The `fillText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn fill_text_with_max_width( + this: &CanvasRenderingContext2d, + text: &str, + x: f64, + y: f64, + max_width: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "TextMetrics")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = measureText ) ] + #[doc = "The `measureText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/measureText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `TextMetrics`*"] + pub fn measure_text( + this: &CanvasRenderingContext2d, + text: &str, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = strokeText ) ] + #[doc = "The `strokeText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn stroke_text( + this: &CanvasRenderingContext2d, + text: &str, + x: f64, + y: f64, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = strokeText ) ] + #[doc = "The `strokeText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/strokeText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn stroke_text_with_max_width( + this: &CanvasRenderingContext2d, + text: &str, + x: f64, + y: f64, + max_width: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = getTransform ) ] + #[doc = "The `getTransform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/getTransform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `DomMatrix`*"] + pub fn get_transform(this: &CanvasRenderingContext2d) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = resetTransform ) ] + #[doc = "The `resetTransform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/resetTransform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn reset_transform(this: &CanvasRenderingContext2d) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = rotate ) ] + #[doc = "The `rotate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/rotate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn rotate(this: &CanvasRenderingContext2d, angle: f64) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = scale ) ] + #[doc = "The `scale()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/scale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn scale(this: &CanvasRenderingContext2d, x: f64, y: f64) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = setTransform ) ] + #[doc = "The `setTransform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setTransform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn set_transform( + this: &CanvasRenderingContext2d, + a: f64, + b: f64, + c: f64, + d: f64, + e: f64, + f: f64, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = transform ) ] + #[doc = "The `transform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/transform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn transform( + this: &CanvasRenderingContext2d, + a: f64, + b: f64, + c: f64, + d: f64, + e: f64, + f: f64, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = translate ) ] + #[doc = "The `translate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/translate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub fn translate(this: &CanvasRenderingContext2d, x: f64, y: f64) -> Result<(), JsValue>; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawCustomFocusRing ) ] + #[doc = "The `drawCustomFocusRing()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawCustomFocusRing)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Element`*"] + pub fn draw_custom_focus_ring(this: &CanvasRenderingContext2d, element: &Element) -> bool; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CanvasRenderingContext2D" , js_name = drawFocusIfNeeded ) ] + #[doc = "The `drawFocusIfNeeded()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/drawFocusIfNeeded)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Element`*"] + pub fn draw_focus_if_needed( + this: &CanvasRenderingContext2d, + element: &Element, + ) -> Result<(), JsValue>; +} +impl CanvasRenderingContext2d { + #[doc = "The `CanvasRenderingContext2D.DRAWWINDOW_DRAW_CARET` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub const DRAWWINDOW_DRAW_CARET: u32 = 1u64 as u32; + #[doc = "The `CanvasRenderingContext2D.DRAWWINDOW_DO_NOT_FLUSH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub const DRAWWINDOW_DO_NOT_FLUSH: u32 = 2u64 as u32; + #[doc = "The `CanvasRenderingContext2D.DRAWWINDOW_DRAW_VIEW` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub const DRAWWINDOW_DRAW_VIEW: u32 = 4u64 as u32; + #[doc = "The `CanvasRenderingContext2D.DRAWWINDOW_USE_WIDGET_LAYERS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub const DRAWWINDOW_USE_WIDGET_LAYERS: u32 = 8u64 as u32; + #[doc = "The `CanvasRenderingContext2D.DRAWWINDOW_ASYNC_DECODE_IMAGES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`*"] + pub const DRAWWINDOW_ASYNC_DECODE_IMAGES: u32 = 16u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_CanvasWindingRule.rs b/crates/web-sys/src/features/gen_CanvasWindingRule.rs new file mode 100644 index 00000000..35493d4d --- /dev/null +++ b/crates/web-sys/src/features/gen_CanvasWindingRule.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `CanvasWindingRule` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `CanvasWindingRule`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum CanvasWindingRule { + Nonzero = "nonzero", + Evenodd = "evenodd", +} diff --git a/crates/web-sys/src/features/gen_CaretChangedReason.rs b/crates/web-sys/src/features/gen_CaretChangedReason.rs new file mode 100644 index 00000000..60d24f0d --- /dev/null +++ b/crates/web-sys/src/features/gen_CaretChangedReason.rs @@ -0,0 +1,16 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `CaretChangedReason` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `CaretChangedReason`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum CaretChangedReason { + Visibilitychange = "visibilitychange", + Updateposition = "updateposition", + Longpressonemptycontent = "longpressonemptycontent", + Taponcaret = "taponcaret", + Presscaret = "presscaret", + Releasecaret = "releasecaret", + Scroll = "scroll", +} diff --git a/crates/web-sys/src/features/gen_CaretPosition.rs b/crates/web-sys/src/features/gen_CaretPosition.rs new file mode 100644 index 00000000..356956bd --- /dev/null +++ b/crates/web-sys/src/features/gen_CaretPosition.rs @@ -0,0 +1,37 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CaretPosition , typescript_type = "CaretPosition" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CaretPosition` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CaretPosition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretPosition`*"] + pub type CaretPosition; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CaretPosition" , js_name = offsetNode ) ] + #[doc = "Getter for the `offsetNode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CaretPosition/offsetNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretPosition`, `Node`*"] + pub fn offset_node(this: &CaretPosition) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "CaretPosition" , js_name = offset ) ] + #[doc = "Getter for the `offset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CaretPosition/offset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretPosition`*"] + pub fn offset(this: &CaretPosition) -> u32; + #[cfg(feature = "DomRect")] + # [ wasm_bindgen ( method , structural , js_class = "CaretPosition" , js_name = getClientRect ) ] + #[doc = "The `getClientRect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CaretPosition/getClientRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretPosition`, `DomRect`*"] + pub fn get_client_rect(this: &CaretPosition) -> Option; +} diff --git a/crates/web-sys/src/features/gen_CaretStateChangedEventInit.rs b/crates/web-sys/src/features/gen_CaretStateChangedEventInit.rs new file mode 100644 index 00000000..790d5a3f --- /dev/null +++ b/crates/web-sys/src/features/gen_CaretStateChangedEventInit.rs @@ -0,0 +1,208 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CaretStateChangedEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CaretStateChangedEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] + pub type CaretStateChangedEventInit; +} +impl CaretStateChangedEventInit { + #[doc = "Construct a new `CaretStateChangedEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "DomRectReadOnly")] + #[doc = "Change the `boundingClientRect` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`, `DomRectReadOnly`*"] + pub fn bounding_client_rect(&mut self, val: Option<&DomRectReadOnly>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("boundingClientRect"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `caretVisible` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] + pub fn caret_visible(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("caretVisible"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `caretVisuallyVisible` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] + pub fn caret_visually_visible(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("caretVisuallyVisible"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `collapsed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] + pub fn collapsed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("collapsed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "CaretChangedReason")] + #[doc = "Change the `reason` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretChangedReason`, `CaretStateChangedEventInit`*"] + pub fn reason(&mut self, val: CaretChangedReason) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("reason"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `selectedTextContent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] + pub fn selected_text_content(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("selectedTextContent"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `selectionEditable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] + pub fn selection_editable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("selectionEditable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `selectionVisible` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretStateChangedEventInit`*"] + pub fn selection_visible(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("selectionVisible"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_CdataSection.rs b/crates/web-sys/src/features/gen_CdataSection.rs new file mode 100644 index 00000000..90d649b2 --- /dev/null +++ b/crates/web-sys/src/features/gen_CdataSection.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Text , extends = CharacterData , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = CDATASection , typescript_type = "CDATASection" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CdataSection` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CDATASection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CdataSection`*"] + pub type CdataSection; +} diff --git a/crates/web-sys/src/features/gen_ChannelCountMode.rs b/crates/web-sys/src/features/gen_ChannelCountMode.rs new file mode 100644 index 00000000..f4646345 --- /dev/null +++ b/crates/web-sys/src/features/gen_ChannelCountMode.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ChannelCountMode` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ChannelCountMode { + Max = "max", + ClampedMax = "clamped-max", + Explicit = "explicit", +} diff --git a/crates/web-sys/src/features/gen_ChannelInterpretation.rs b/crates/web-sys/src/features/gen_ChannelInterpretation.rs new file mode 100644 index 00000000..2fe84632 --- /dev/null +++ b/crates/web-sys/src/features/gen_ChannelInterpretation.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ChannelInterpretation` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ChannelInterpretation { + Speakers = "speakers", + Discrete = "discrete", +} diff --git a/crates/web-sys/src/features/gen_ChannelMergerNode.rs b/crates/web-sys/src/features/gen_ChannelMergerNode.rs new file mode 100644 index 00000000..140f985c --- /dev/null +++ b/crates/web-sys/src/features/gen_ChannelMergerNode.rs @@ -0,0 +1,33 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = ChannelMergerNode , typescript_type = "ChannelMergerNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ChannelMergerNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChannelMergerNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelMergerNode`*"] + pub type ChannelMergerNode; + #[cfg(feature = "BaseAudioContext")] + #[wasm_bindgen(catch, constructor, js_class = "ChannelMergerNode")] + #[doc = "The `new ChannelMergerNode(..)` constructor, creating a new instance of `ChannelMergerNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChannelMergerNode/ChannelMergerNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelMergerNode`*"] + pub fn new(context: &BaseAudioContext) -> Result; + #[cfg(all(feature = "BaseAudioContext", feature = "ChannelMergerOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "ChannelMergerNode")] + #[doc = "The `new ChannelMergerNode(..)` constructor, creating a new instance of `ChannelMergerNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChannelMergerNode/ChannelMergerNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelMergerNode`, `ChannelMergerOptions`*"] + pub fn new_with_options( + context: &BaseAudioContext, + options: &ChannelMergerOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_ChannelMergerOptions.rs b/crates/web-sys/src/features/gen_ChannelMergerOptions.rs new file mode 100644 index 00000000..6cd0954d --- /dev/null +++ b/crates/web-sys/src/features/gen_ChannelMergerOptions.rs @@ -0,0 +1,92 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ChannelMergerOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ChannelMergerOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelMergerOptions`*"] + pub type ChannelMergerOptions; +} +impl ChannelMergerOptions { + #[doc = "Construct a new `ChannelMergerOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelMergerOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelMergerOptions`*"] + pub fn channel_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelCountMode")] + #[doc = "Change the `channelCountMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `ChannelMergerOptions`*"] + pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCountMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelInterpretation")] + #[doc = "Change the `channelInterpretation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `ChannelMergerOptions`*"] + pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelInterpretation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `numberOfInputs` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelMergerOptions`*"] + pub fn number_of_inputs(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("numberOfInputs"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ChannelPixelLayout.rs b/crates/web-sys/src/features/gen_ChannelPixelLayout.rs new file mode 100644 index 00000000..529c8400 --- /dev/null +++ b/crates/web-sys/src/features/gen_ChannelPixelLayout.rs @@ -0,0 +1,122 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ChannelPixelLayout ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ChannelPixelLayout` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayout`*"] + pub type ChannelPixelLayout; +} +impl ChannelPixelLayout { + #[cfg(feature = "ChannelPixelLayoutDataType")] + #[doc = "Construct a new `ChannelPixelLayout`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayout`, `ChannelPixelLayoutDataType`*"] + pub fn new( + data_type: ChannelPixelLayoutDataType, + height: u32, + offset: u32, + skip: u32, + stride: u32, + width: u32, + ) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.data_type(data_type); + ret.height(height); + ret.offset(offset); + ret.skip(skip); + ret.stride(stride); + ret.width(width); + ret + } + #[cfg(feature = "ChannelPixelLayoutDataType")] + #[doc = "Change the `dataType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayout`, `ChannelPixelLayoutDataType`*"] + pub fn data_type(&mut self, val: ChannelPixelLayoutDataType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("dataType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `height` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayout`*"] + pub fn height(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `offset` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayout`*"] + pub fn offset(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `skip` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayout`*"] + pub fn skip(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("skip"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `stride` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayout`*"] + pub fn stride(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("stride"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `width` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayout`*"] + pub fn width(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ChannelPixelLayoutDataType.rs b/crates/web-sys/src/features/gen_ChannelPixelLayoutDataType.rs new file mode 100644 index 00000000..d9ddd587 --- /dev/null +++ b/crates/web-sys/src/features/gen_ChannelPixelLayoutDataType.rs @@ -0,0 +1,17 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ChannelPixelLayoutDataType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ChannelPixelLayoutDataType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ChannelPixelLayoutDataType { + Uint8 = "uint8", + Int8 = "int8", + Uint16 = "uint16", + Int16 = "int16", + Uint32 = "uint32", + Int32 = "int32", + Float32 = "float32", + Float64 = "float64", +} diff --git a/crates/web-sys/src/features/gen_ChannelSplitterNode.rs b/crates/web-sys/src/features/gen_ChannelSplitterNode.rs new file mode 100644 index 00000000..74459810 --- /dev/null +++ b/crates/web-sys/src/features/gen_ChannelSplitterNode.rs @@ -0,0 +1,33 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = ChannelSplitterNode , typescript_type = "ChannelSplitterNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ChannelSplitterNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChannelSplitterNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterNode`*"] + pub type ChannelSplitterNode; + #[cfg(feature = "BaseAudioContext")] + #[wasm_bindgen(catch, constructor, js_class = "ChannelSplitterNode")] + #[doc = "The `new ChannelSplitterNode(..)` constructor, creating a new instance of `ChannelSplitterNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChannelSplitterNode/ChannelSplitterNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelSplitterNode`*"] + pub fn new(context: &BaseAudioContext) -> Result; + #[cfg(all(feature = "BaseAudioContext", feature = "ChannelSplitterOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "ChannelSplitterNode")] + #[doc = "The `new ChannelSplitterNode(..)` constructor, creating a new instance of `ChannelSplitterNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChannelSplitterNode/ChannelSplitterNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ChannelSplitterNode`, `ChannelSplitterOptions`*"] + pub fn new_with_options( + context: &BaseAudioContext, + options: &ChannelSplitterOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_ChannelSplitterOptions.rs b/crates/web-sys/src/features/gen_ChannelSplitterOptions.rs new file mode 100644 index 00000000..dc70a57a --- /dev/null +++ b/crates/web-sys/src/features/gen_ChannelSplitterOptions.rs @@ -0,0 +1,92 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ChannelSplitterOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ChannelSplitterOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterOptions`*"] + pub type ChannelSplitterOptions; +} +impl ChannelSplitterOptions { + #[doc = "Construct a new `ChannelSplitterOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterOptions`*"] + pub fn channel_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelCountMode")] + #[doc = "Change the `channelCountMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `ChannelSplitterOptions`*"] + pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCountMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelInterpretation")] + #[doc = "Change the `channelInterpretation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `ChannelSplitterOptions`*"] + pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelInterpretation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `numberOfOutputs` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterOptions`*"] + pub fn number_of_outputs(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("numberOfOutputs"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_CharacterData.rs b/crates/web-sys/src/features/gen_CharacterData.rs new file mode 100644 index 00000000..7b537b02 --- /dev/null +++ b/crates/web-sys/src/features/gen_CharacterData.rs @@ -0,0 +1,717 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = CharacterData , typescript_type = "CharacterData" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CharacterData` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub type CharacterData; + # [ wasm_bindgen ( structural , method , getter , js_class = "CharacterData" , js_name = data ) ] + #[doc = "Getter for the `data` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/data)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn data(this: &CharacterData) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CharacterData" , js_name = data ) ] + #[doc = "Setter for the `data` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/data)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn set_data(this: &CharacterData, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CharacterData" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn length(this: &CharacterData) -> u32; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CharacterData" , js_name = previousElementSibling ) ] + #[doc = "Getter for the `previousElementSibling` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/previousElementSibling)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`, `Element`*"] + pub fn previous_element_sibling(this: &CharacterData) -> Option; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CharacterData" , js_name = nextElementSibling ) ] + #[doc = "Getter for the `nextElementSibling` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/nextElementSibling)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`, `Element`*"] + pub fn next_element_sibling(this: &CharacterData) -> Option; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = appendData ) ] + #[doc = "The `appendData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/appendData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn append_data(this: &CharacterData, data: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = deleteData ) ] + #[doc = "The `deleteData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/deleteData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn delete_data(this: &CharacterData, offset: u32, count: u32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = insertData ) ] + #[doc = "The `insertData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/insertData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn insert_data(this: &CharacterData, offset: u32, data: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = replaceData ) ] + #[doc = "The `replaceData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_data( + this: &CharacterData, + offset: u32, + count: u32, + data: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = substringData ) ] + #[doc = "The `substringData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/substringData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn substring_data(this: &CharacterData, offset: u32, count: u32) + -> Result; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_node(this: &CharacterData, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_node_0(this: &CharacterData) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_node_1(this: &CharacterData, nodes_1: &Node) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_node_2( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_node_3( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_node_4( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_node_5( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_node_6( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_node_7( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + nodes_7: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_str(this: &CharacterData, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_str_0(this: &CharacterData) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_str_1(this: &CharacterData, nodes_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_str_2( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_str_3( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_str_4( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_str_5( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_str_6( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn after_with_str_7( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + nodes_7: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_node(this: &CharacterData, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_node_0(this: &CharacterData) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_node_1(this: &CharacterData, nodes_1: &Node) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_node_2( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_node_3( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_node_4( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_node_5( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_node_6( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_node_7( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + nodes_7: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_str(this: &CharacterData, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_str_0(this: &CharacterData) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_str_1(this: &CharacterData, nodes_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_str_2( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_str_3( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_str_4( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_str_5( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_str_6( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn before_with_str_7( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + nodes_7: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "CharacterData" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn remove(this: &CharacterData); + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_node( + this: &CharacterData, + nodes: &::js_sys::Array, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_node_0(this: &CharacterData) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_node_1(this: &CharacterData, nodes_1: &Node) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_node_2( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_node_3( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_node_4( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_node_5( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_node_6( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_node_7( + this: &CharacterData, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + nodes_7: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_str( + this: &CharacterData, + nodes: &::js_sys::Array, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_str_0(this: &CharacterData) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_str_1(this: &CharacterData, nodes_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_str_2( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_str_3( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_str_4( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_str_5( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_str_6( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CharacterData" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CharacterData/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CharacterData`*"] + pub fn replace_with_with_str_7( + this: &CharacterData, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + nodes_7: &str, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_CheckerboardReason.rs b/crates/web-sys/src/features/gen_CheckerboardReason.rs new file mode 100644 index 00000000..a978a6c9 --- /dev/null +++ b/crates/web-sys/src/features/gen_CheckerboardReason.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `CheckerboardReason` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `CheckerboardReason`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum CheckerboardReason { + Severe = "severe", + Recent = "recent", +} diff --git a/crates/web-sys/src/features/gen_CheckerboardReport.rs b/crates/web-sys/src/features/gen_CheckerboardReport.rs new file mode 100644 index 00000000..ac94525e --- /dev/null +++ b/crates/web-sys/src/features/gen_CheckerboardReport.rs @@ -0,0 +1,84 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CheckerboardReport ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CheckerboardReport` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] + pub type CheckerboardReport; +} +impl CheckerboardReport { + #[doc = "Construct a new `CheckerboardReport`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `log` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] + pub fn log(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("log"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "CheckerboardReason")] + #[doc = "Change the `reason` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CheckerboardReason`, `CheckerboardReport`*"] + pub fn reason(&mut self, val: CheckerboardReason) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("reason"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `severity` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] + pub fn severity(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("severity"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CheckerboardReport`*"] + pub fn timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_CheckerboardReportService.rs b/crates/web-sys/src/features/gen_CheckerboardReportService.rs new file mode 100644 index 00000000..263cde2a --- /dev/null +++ b/crates/web-sys/src/features/gen_CheckerboardReportService.rs @@ -0,0 +1,49 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CheckerboardReportService , typescript_type = "CheckerboardReportService" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CheckerboardReportService` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"] + pub type CheckerboardReportService; + #[wasm_bindgen(catch, constructor, js_class = "CheckerboardReportService")] + #[doc = "The `new CheckerboardReportService(..)` constructor, creating a new instance of `CheckerboardReportService`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/CheckerboardReportService)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"] + pub fn new() -> Result; + # [ wasm_bindgen ( method , structural , js_class = "CheckerboardReportService" , js_name = flushActiveReports ) ] + #[doc = "The `flushActiveReports()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/flushActiveReports)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"] + pub fn flush_active_reports(this: &CheckerboardReportService); + # [ wasm_bindgen ( method , structural , js_class = "CheckerboardReportService" , js_name = getReports ) ] + #[doc = "The `getReports()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/getReports)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"] + pub fn get_reports(this: &CheckerboardReportService) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "CheckerboardReportService" , js_name = isRecordingEnabled ) ] + #[doc = "The `isRecordingEnabled()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/isRecordingEnabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"] + pub fn is_recording_enabled(this: &CheckerboardReportService) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "CheckerboardReportService" , js_name = setRecordingEnabled ) ] + #[doc = "The `setRecordingEnabled()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CheckerboardReportService/setRecordingEnabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CheckerboardReportService`*"] + pub fn set_recording_enabled(this: &CheckerboardReportService, a_enabled: bool); +} diff --git a/crates/web-sys/src/features/gen_ChromeFilePropertyBag.rs b/crates/web-sys/src/features/gen_ChromeFilePropertyBag.rs new file mode 100644 index 00000000..1a0af3fe --- /dev/null +++ b/crates/web-sys/src/features/gen_ChromeFilePropertyBag.rs @@ -0,0 +1,82 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ChromeFilePropertyBag ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ChromeFilePropertyBag` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] + pub type ChromeFilePropertyBag; +} +impl ChromeFilePropertyBag { + #[doc = "Construct a new `ChromeFilePropertyBag`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `lastModified` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] + pub fn last_modified(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("lastModified"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] + pub fn type_(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `existenceCheck` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] + pub fn existence_check(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("existenceCheck"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChromeFilePropertyBag`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ChromeWorker.rs b/crates/web-sys/src/features/gen_ChromeWorker.rs new file mode 100644 index 00000000..0dda5ec6 --- /dev/null +++ b/crates/web-sys/src/features/gen_ChromeWorker.rs @@ -0,0 +1,21 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Worker , extends = EventTarget , extends = :: js_sys :: Object , js_name = ChromeWorker , typescript_type = "ChromeWorker" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ChromeWorker` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChromeWorker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChromeWorker`*"] + pub type ChromeWorker; + #[wasm_bindgen(catch, constructor, js_class = "ChromeWorker")] + #[doc = "The `new ChromeWorker(..)` constructor, creating a new instance of `ChromeWorker`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ChromeWorker/ChromeWorker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChromeWorker`*"] + pub fn new(script_url: &str) -> Result; +} diff --git a/crates/web-sys/src/features/gen_Client.rs b/crates/web-sys/src/features/gen_Client.rs new file mode 100644 index 00000000..09f1b085 --- /dev/null +++ b/crates/web-sys/src/features/gen_Client.rs @@ -0,0 +1,62 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Client , typescript_type = "Client" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Client` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Client`*"] + pub type Client; + # [ wasm_bindgen ( structural , method , getter , js_class = "Client" , js_name = url ) ] + #[doc = "Getter for the `url` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/url)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Client`*"] + pub fn url(this: &Client) -> String; + #[cfg(feature = "FrameType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Client" , js_name = frameType ) ] + #[doc = "Getter for the `frameType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/frameType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Client`, `FrameType`*"] + pub fn frame_type(this: &Client) -> FrameType; + #[cfg(feature = "ClientType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Client" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Client`, `ClientType`*"] + pub fn type_(this: &Client) -> ClientType; + # [ wasm_bindgen ( structural , method , getter , js_class = "Client" , js_name = id ) ] + #[doc = "Getter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Client`*"] + pub fn id(this: &Client) -> String; + # [ wasm_bindgen ( catch , method , structural , js_class = "Client" , js_name = postMessage ) ] + #[doc = "The `postMessage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/postMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Client`*"] + pub fn post_message(this: &Client, message: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Client" , js_name = postMessage ) ] + #[doc = "The `postMessage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Client/postMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Client`*"] + pub fn post_message_with_transfer( + this: &Client, + message: &::wasm_bindgen::JsValue, + transfer: &::wasm_bindgen::JsValue, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_ClientQueryOptions.rs b/crates/web-sys/src/features/gen_ClientQueryOptions.rs new file mode 100644 index 00000000..e60784b1 --- /dev/null +++ b/crates/web-sys/src/features/gen_ClientQueryOptions.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ClientQueryOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ClientQueryOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClientQueryOptions`*"] + pub type ClientQueryOptions; +} +impl ClientQueryOptions { + #[doc = "Construct a new `ClientQueryOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClientQueryOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `includeUncontrolled` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClientQueryOptions`*"] + pub fn include_uncontrolled(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("includeUncontrolled"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ClientType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClientQueryOptions`, `ClientType`*"] + pub fn type_(&mut self, val: ClientType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ClientRectsAndTexts.rs b/crates/web-sys/src/features/gen_ClientRectsAndTexts.rs new file mode 100644 index 00000000..406cb985 --- /dev/null +++ b/crates/web-sys/src/features/gen_ClientRectsAndTexts.rs @@ -0,0 +1,60 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ClientRectsAndTexts ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ClientRectsAndTexts` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClientRectsAndTexts`*"] + pub type ClientRectsAndTexts; +} +impl ClientRectsAndTexts { + #[cfg(feature = "DomRectList")] + #[doc = "Construct a new `ClientRectsAndTexts`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClientRectsAndTexts`, `DomRectList`*"] + pub fn new(rect_list: &DomRectList, text_list: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.rect_list(rect_list); + ret.text_list(text_list); + ret + } + #[cfg(feature = "DomRectList")] + #[doc = "Change the `rectList` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClientRectsAndTexts`, `DomRectList`*"] + pub fn rect_list(&mut self, val: &DomRectList) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("rectList"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `textList` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClientRectsAndTexts`*"] + pub fn text_list(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("textList"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ClientType.rs b/crates/web-sys/src/features/gen_ClientType.rs new file mode 100644 index 00000000..fa617a52 --- /dev/null +++ b/crates/web-sys/src/features/gen_ClientType.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ClientType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ClientType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ClientType { + Window = "window", + Worker = "worker", + Sharedworker = "sharedworker", + Serviceworker = "serviceworker", + All = "all", +} diff --git a/crates/web-sys/src/features/gen_Clients.rs b/crates/web-sys/src/features/gen_Clients.rs new file mode 100644 index 00000000..01ddb0f5 --- /dev/null +++ b/crates/web-sys/src/features/gen_Clients.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Clients , typescript_type = "Clients" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Clients` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Clients`*"] + pub type Clients; + # [ wasm_bindgen ( method , structural , js_class = "Clients" , js_name = claim ) ] + #[doc = "The `claim()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/claim)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Clients`*"] + pub fn claim(this: &Clients) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "Clients" , js_name = get ) ] + #[doc = "The `get()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/get)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Clients`*"] + pub fn get(this: &Clients, id: &str) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "Clients" , js_name = matchAll ) ] + #[doc = "The `matchAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/matchAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Clients`*"] + pub fn match_all(this: &Clients) -> ::js_sys::Promise; + #[cfg(feature = "ClientQueryOptions")] + # [ wasm_bindgen ( method , structural , js_class = "Clients" , js_name = matchAll ) ] + #[doc = "The `matchAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/matchAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClientQueryOptions`, `Clients`*"] + pub fn match_all_with_options( + this: &Clients, + options: &ClientQueryOptions, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "Clients" , js_name = openWindow ) ] + #[doc = "The `openWindow()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Clients/openWindow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Clients`*"] + pub fn open_window(this: &Clients, url: &str) -> ::js_sys::Promise; +} diff --git a/crates/web-sys/src/features/gen_ClipboardEvent.rs b/crates/web-sys/src/features/gen_ClipboardEvent.rs new file mode 100644 index 00000000..fa86798c --- /dev/null +++ b/crates/web-sys/src/features/gen_ClipboardEvent.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = ClipboardEvent , typescript_type = "ClipboardEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ClipboardEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClipboardEvent`*"] + pub type ClipboardEvent; + #[cfg(feature = "DataTransfer")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ClipboardEvent" , js_name = clipboardData ) ] + #[doc = "Getter for the `clipboardData` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent/clipboardData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClipboardEvent`, `DataTransfer`*"] + pub fn clipboard_data(this: &ClipboardEvent) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "ClipboardEvent")] + #[doc = "The `new ClipboardEvent(..)` constructor, creating a new instance of `ClipboardEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent/ClipboardEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClipboardEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "ClipboardEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "ClipboardEvent")] + #[doc = "The `new ClipboardEvent(..)` constructor, creating a new instance of `ClipboardEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent/ClipboardEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClipboardEvent`, `ClipboardEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &ClipboardEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_ClipboardEventInit.rs b/crates/web-sys/src/features/gen_ClipboardEventInit.rs new file mode 100644 index 00000000..83c97981 --- /dev/null +++ b/crates/web-sys/src/features/gen_ClipboardEventInit.rs @@ -0,0 +1,103 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ClipboardEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ClipboardEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] + pub type ClipboardEventInit; +} +impl ClipboardEventInit { + #[doc = "Construct a new `ClipboardEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `data` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] + pub fn data(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `dataType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ClipboardEventInit`*"] + pub fn data_type(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("dataType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_CloseEvent.rs b/crates/web-sys/src/features/gen_CloseEvent.rs new file mode 100644 index 00000000..77916319 --- /dev/null +++ b/crates/web-sys/src/features/gen_CloseEvent.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = CloseEvent , typescript_type = "CloseEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CloseEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CloseEvent`*"] + pub type CloseEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "CloseEvent" , js_name = wasClean ) ] + #[doc = "Getter for the `wasClean` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/wasClean)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CloseEvent`*"] + pub fn was_clean(this: &CloseEvent) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "CloseEvent" , js_name = code ) ] + #[doc = "Getter for the `code` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/code)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CloseEvent`*"] + pub fn code(this: &CloseEvent) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "CloseEvent" , js_name = reason ) ] + #[doc = "Getter for the `reason` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/reason)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CloseEvent`*"] + pub fn reason(this: &CloseEvent) -> String; + #[wasm_bindgen(catch, constructor, js_class = "CloseEvent")] + #[doc = "The `new CloseEvent(..)` constructor, creating a new instance of `CloseEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/CloseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CloseEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "CloseEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "CloseEvent")] + #[doc = "The `new CloseEvent(..)` constructor, creating a new instance of `CloseEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent/CloseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CloseEvent`, `CloseEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &CloseEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_CloseEventInit.rs b/crates/web-sys/src/features/gen_CloseEventInit.rs new file mode 100644 index 00000000..0a80dedb --- /dev/null +++ b/crates/web-sys/src/features/gen_CloseEventInit.rs @@ -0,0 +1,117 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CloseEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CloseEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] + pub type CloseEventInit; +} +impl CloseEventInit { + #[doc = "Construct a new `CloseEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `code` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] + pub fn code(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("code"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `reason` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] + pub fn reason(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("reason"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `wasClean` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CloseEventInit`*"] + pub fn was_clean(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("wasClean"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_CollectedClientData.rs b/crates/web-sys/src/features/gen_CollectedClientData.rs new file mode 100644 index 00000000..a23723a5 --- /dev/null +++ b/crates/web-sys/src/features/gen_CollectedClientData.rs @@ -0,0 +1,122 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CollectedClientData ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CollectedClientData` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] + pub type CollectedClientData; +} +impl CollectedClientData { + #[doc = "Construct a new `CollectedClientData`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] + pub fn new(challenge: &str, hash_algorithm: &str, origin: &str, type_: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.challenge(challenge); + ret.hash_algorithm(hash_algorithm); + ret.origin(origin); + ret.type_(type_); + ret + } + #[doc = "Change the `challenge` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] + pub fn challenge(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("challenge"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "AuthenticationExtensionsClientInputs")] + #[doc = "Change the `clientExtensions` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `CollectedClientData`*"] + pub fn client_extensions(&mut self, val: &AuthenticationExtensionsClientInputs) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("clientExtensions"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `hashAlgorithm` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] + pub fn hash_algorithm(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("hashAlgorithm"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `origin` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] + pub fn origin(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `tokenBindingId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] + pub fn token_binding_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("tokenBindingId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CollectedClientData`*"] + pub fn type_(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Comment.rs b/crates/web-sys/src/features/gen_Comment.rs new file mode 100644 index 00000000..a83551a5 --- /dev/null +++ b/crates/web-sys/src/features/gen_Comment.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = CharacterData , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = Comment , typescript_type = "Comment" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Comment` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Comment)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Comment`*"] + pub type Comment; + #[wasm_bindgen(catch, constructor, js_class = "Comment")] + #[doc = "The `new Comment(..)` constructor, creating a new instance of `Comment`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Comment/Comment)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Comment`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Comment")] + #[doc = "The `new Comment(..)` constructor, creating a new instance of `Comment`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Comment/Comment)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Comment`*"] + pub fn new_with_data(data: &str) -> Result; +} diff --git a/crates/web-sys/src/features/gen_CompositeOperation.rs b/crates/web-sys/src/features/gen_CompositeOperation.rs new file mode 100644 index 00000000..97f603f0 --- /dev/null +++ b/crates/web-sys/src/features/gen_CompositeOperation.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `CompositeOperation` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `CompositeOperation`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum CompositeOperation { + Replace = "replace", + Add = "add", + Accumulate = "accumulate", +} diff --git a/crates/web-sys/src/features/gen_CompositionEvent.rs b/crates/web-sys/src/features/gen_CompositionEvent.rs new file mode 100644 index 00000000..384f2244 --- /dev/null +++ b/crates/web-sys/src/features/gen_CompositionEvent.rs @@ -0,0 +1,121 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = CompositionEvent , typescript_type = "CompositionEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CompositionEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] + pub type CompositionEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "CompositionEvent" , js_name = data ) ] + #[doc = "Getter for the `data` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/data)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] + pub fn data(this: &CompositionEvent) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "CompositionEvent" , js_name = locale ) ] + #[doc = "Getter for the `locale` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/locale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] + pub fn locale(this: &CompositionEvent) -> String; + #[wasm_bindgen(catch, constructor, js_class = "CompositionEvent")] + #[doc = "The `new CompositionEvent(..)` constructor, creating a new instance of `CompositionEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/CompositionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "CompositionEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "CompositionEvent")] + #[doc = "The `new CompositionEvent(..)` constructor, creating a new instance of `CompositionEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/CompositionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`, `CompositionEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &CompositionEventInit, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent ) ] + #[doc = "The `initCompositionEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] + pub fn init_composition_event(this: &CompositionEvent, type_arg: &str); + # [ wasm_bindgen ( method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent ) ] + #[doc = "The `initCompositionEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] + pub fn init_composition_event_with_can_bubble_arg( + this: &CompositionEvent, + type_arg: &str, + can_bubble_arg: bool, + ); + # [ wasm_bindgen ( method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent ) ] + #[doc = "The `initCompositionEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`*"] + pub fn init_composition_event_with_can_bubble_arg_and_cancelable_arg( + this: &CompositionEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent ) ] + #[doc = "The `initCompositionEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`, `Window`*"] + pub fn init_composition_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg( + this: &CompositionEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent ) ] + #[doc = "The `initCompositionEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`, `Window`*"] + pub fn init_composition_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_data_arg( + this: &CompositionEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + data_arg: Option<&str>, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "CompositionEvent" , js_name = initCompositionEvent ) ] + #[doc = "The `initCompositionEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent/initCompositionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEvent`, `Window`*"] + pub fn init_composition_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_data_arg_and_locale_arg( + this: &CompositionEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + data_arg: Option<&str>, + locale_arg: &str, + ); +} diff --git a/crates/web-sys/src/features/gen_CompositionEventInit.rs b/crates/web-sys/src/features/gen_CompositionEventInit.rs new file mode 100644 index 00000000..92959af5 --- /dev/null +++ b/crates/web-sys/src/features/gen_CompositionEventInit.rs @@ -0,0 +1,114 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CompositionEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CompositionEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] + pub type CompositionEventInit; +} +impl CompositionEventInit { + #[doc = "Construct a new `CompositionEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `detail` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] + pub fn detail(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Window")] + #[doc = "Change the `view` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`, `Window`*"] + pub fn view(&mut self, val: Option<&Window>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `data` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositionEventInit`*"] + pub fn data(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ComputedEffectTiming.rs b/crates/web-sys/src/features/gen_ComputedEffectTiming.rs new file mode 100644 index 00000000..38f66155 --- /dev/null +++ b/crates/web-sys/src/features/gen_ComputedEffectTiming.rs @@ -0,0 +1,234 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ComputedEffectTiming ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ComputedEffectTiming` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] + pub type ComputedEffectTiming; +} +impl ComputedEffectTiming { + #[doc = "Construct a new `ComputedEffectTiming`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `delay` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] + pub fn delay(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("delay"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "PlaybackDirection")] + #[doc = "Change the `direction` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`, `PlaybackDirection`*"] + pub fn direction(&mut self, val: PlaybackDirection) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("direction"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `duration` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] + pub fn duration(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("duration"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `easing` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] + pub fn easing(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("easing"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `endDelay` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] + pub fn end_delay(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("endDelay"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "FillMode")] + #[doc = "Change the `fill` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`, `FillMode`*"] + pub fn fill(&mut self, val: FillMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("fill"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `iterationStart` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] + pub fn iteration_start(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iterationStart"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `iterations` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] + pub fn iterations(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iterations"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `activeDuration` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] + pub fn active_duration(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("activeDuration"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `currentIteration` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] + pub fn current_iteration(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("currentIteration"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `endTime` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] + pub fn end_time(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("endTime"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `localTime` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] + pub fn local_time(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("localTime"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `progress` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ComputedEffectTiming`*"] + pub fn progress(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("progress"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ConnStatusDict.rs b/crates/web-sys/src/features/gen_ConnStatusDict.rs new file mode 100644 index 00000000..2a913feb --- /dev/null +++ b/crates/web-sys/src/features/gen_ConnStatusDict.rs @@ -0,0 +1,36 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ConnStatusDict ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConnStatusDict` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConnStatusDict`*"] + pub type ConnStatusDict; +} +impl ConnStatusDict { + #[doc = "Construct a new `ConnStatusDict`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConnStatusDict`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `status` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConnStatusDict`*"] + pub fn status(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("status"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ConnectionType.rs b/crates/web-sys/src/features/gen_ConnectionType.rs new file mode 100644 index 00000000..910915f7 --- /dev/null +++ b/crates/web-sys/src/features/gen_ConnectionType.rs @@ -0,0 +1,16 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ConnectionType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ConnectionType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ConnectionType { + Cellular = "cellular", + Bluetooth = "bluetooth", + Ethernet = "ethernet", + Wifi = "wifi", + Other = "other", + None = "none", + Unknown = "unknown", +} diff --git a/crates/web-sys/src/features/gen_ConsoleCounter.rs b/crates/web-sys/src/features/gen_ConsoleCounter.rs new file mode 100644 index 00000000..0259d0b5 --- /dev/null +++ b/crates/web-sys/src/features/gen_ConsoleCounter.rs @@ -0,0 +1,48 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ConsoleCounter ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConsoleCounter` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleCounter`*"] + pub type ConsoleCounter; +} +impl ConsoleCounter { + #[doc = "Construct a new `ConsoleCounter`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleCounter`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `count` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleCounter`*"] + pub fn count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("count"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleCounter`*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ConsoleCounterError.rs b/crates/web-sys/src/features/gen_ConsoleCounterError.rs new file mode 100644 index 00000000..23fddd57 --- /dev/null +++ b/crates/web-sys/src/features/gen_ConsoleCounterError.rs @@ -0,0 +1,48 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ConsoleCounterError ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConsoleCounterError` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleCounterError`*"] + pub type ConsoleCounterError; +} +impl ConsoleCounterError { + #[doc = "Construct a new `ConsoleCounterError`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleCounterError`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `error` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleCounterError`*"] + pub fn error(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleCounterError`*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ConsoleEvent.rs b/crates/web-sys/src/features/gen_ConsoleEvent.rs new file mode 100644 index 00000000..e46520cf --- /dev/null +++ b/crates/web-sys/src/features/gen_ConsoleEvent.rs @@ -0,0 +1,293 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ConsoleEvent ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConsoleEvent` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub type ConsoleEvent; +} +impl ConsoleEvent { + #[doc = "Construct a new `ConsoleEvent`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `ID` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ID"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `addonId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn addon_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("addonId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `arguments` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn arguments(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("arguments"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `columnNumber` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn column_number(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("columnNumber"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `consoleID` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn console_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("consoleID"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `counter` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn counter(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("counter"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `filename` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn filename(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("filename"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `functionName` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn function_name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("functionName"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `groupName` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn group_name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("groupName"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `innerID` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn inner_id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("innerID"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `level` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn level(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("level"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `lineNumber` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn line_number(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("lineNumber"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `prefix` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn prefix(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("prefix"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `private` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn private(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("private"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `styles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn styles(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("styles"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timeStamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn time_stamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timeStamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timer` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleEvent`*"] + pub fn timer(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("timer"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ConsoleInstance.rs b/crates/web-sys/src/features/gen_ConsoleInstance.rs new file mode 100644 index 00000000..729a5d65 --- /dev/null +++ b/crates/web-sys/src/features/gen_ConsoleInstance.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ConsoleInstance , typescript_type = "ConsoleInstance" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConsoleInstance` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConsoleInstance)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleInstance`*"] + pub type ConsoleInstance; +} diff --git a/crates/web-sys/src/features/gen_ConsoleInstanceOptions.rs b/crates/web-sys/src/features/gen_ConsoleInstanceOptions.rs new file mode 100644 index 00000000..93efda27 --- /dev/null +++ b/crates/web-sys/src/features/gen_ConsoleInstanceOptions.rs @@ -0,0 +1,118 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ConsoleInstanceOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConsoleInstanceOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] + pub type ConsoleInstanceOptions; +} +impl ConsoleInstanceOptions { + #[doc = "Construct a new `ConsoleInstanceOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `consoleID` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] + pub fn console_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("consoleID"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `dump` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] + pub fn dump(&mut self, val: &::js_sys::Function) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dump"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `innerID` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] + pub fn inner_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("innerID"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ConsoleLogLevel")] + #[doc = "Change the `maxLogLevel` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`, `ConsoleLogLevel`*"] + pub fn max_log_level(&mut self, val: ConsoleLogLevel) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maxLogLevel"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `maxLogLevelPref` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] + pub fn max_log_level_pref(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maxLogLevelPref"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `prefix` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleInstanceOptions`*"] + pub fn prefix(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("prefix"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ConsoleLevel.rs b/crates/web-sys/src/features/gen_ConsoleLevel.rs new file mode 100644 index 00000000..a60bbd0e --- /dev/null +++ b/crates/web-sys/src/features/gen_ConsoleLevel.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ConsoleLevel` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ConsoleLevel`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ConsoleLevel { + Log = "log", + Warning = "warning", + Error = "error", +} diff --git a/crates/web-sys/src/features/gen_ConsoleLogLevel.rs b/crates/web-sys/src/features/gen_ConsoleLogLevel.rs new file mode 100644 index 00000000..6d396e06 --- /dev/null +++ b/crates/web-sys/src/features/gen_ConsoleLogLevel.rs @@ -0,0 +1,27 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ConsoleLogLevel` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ConsoleLogLevel`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ConsoleLogLevel { + All = "All", + Debug = "Debug", + Log = "Log", + Info = "Info", + Clear = "Clear", + Trace = "Trace", + TimeLog = "TimeLog", + TimeEnd = "TimeEnd", + Time = "Time", + Group = "Group", + GroupEnd = "GroupEnd", + Profile = "Profile", + ProfileEnd = "ProfileEnd", + Dir = "Dir", + Dirxml = "Dirxml", + Warn = "Warn", + Error = "Error", + Off = "Off", +} diff --git a/crates/web-sys/src/features/gen_ConsoleProfileEvent.rs b/crates/web-sys/src/features/gen_ConsoleProfileEvent.rs new file mode 100644 index 00000000..63d2f04d --- /dev/null +++ b/crates/web-sys/src/features/gen_ConsoleProfileEvent.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ConsoleProfileEvent ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConsoleProfileEvent` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleProfileEvent`*"] + pub type ConsoleProfileEvent; +} +impl ConsoleProfileEvent { + #[doc = "Construct a new `ConsoleProfileEvent`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleProfileEvent`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `action` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleProfileEvent`*"] + pub fn action(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("action"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `arguments` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleProfileEvent`*"] + pub fn arguments(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("arguments"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ConsoleStackEntry.rs b/crates/web-sys/src/features/gen_ConsoleStackEntry.rs new file mode 100644 index 00000000..4162f249 --- /dev/null +++ b/crates/web-sys/src/features/gen_ConsoleStackEntry.rs @@ -0,0 +1,107 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ConsoleStackEntry ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConsoleStackEntry` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] + pub type ConsoleStackEntry; +} +impl ConsoleStackEntry { + #[doc = "Construct a new `ConsoleStackEntry`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `asyncCause` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] + pub fn async_cause(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("asyncCause"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `columnNumber` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] + pub fn column_number(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("columnNumber"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `filename` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] + pub fn filename(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("filename"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `functionName` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] + pub fn function_name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("functionName"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `lineNumber` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleStackEntry`*"] + pub fn line_number(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("lineNumber"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ConsoleTimerError.rs b/crates/web-sys/src/features/gen_ConsoleTimerError.rs new file mode 100644 index 00000000..80ff9c4a --- /dev/null +++ b/crates/web-sys/src/features/gen_ConsoleTimerError.rs @@ -0,0 +1,48 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ConsoleTimerError ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConsoleTimerError` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerError`*"] + pub type ConsoleTimerError; +} +impl ConsoleTimerError { + #[doc = "Construct a new `ConsoleTimerError`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerError`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `error` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerError`*"] + pub fn error(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerError`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ConsoleTimerLogOrEnd.rs b/crates/web-sys/src/features/gen_ConsoleTimerLogOrEnd.rs new file mode 100644 index 00000000..a0756569 --- /dev/null +++ b/crates/web-sys/src/features/gen_ConsoleTimerLogOrEnd.rs @@ -0,0 +1,52 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ConsoleTimerLogOrEnd ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConsoleTimerLogOrEnd` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerLogOrEnd`*"] + pub type ConsoleTimerLogOrEnd; +} +impl ConsoleTimerLogOrEnd { + #[doc = "Construct a new `ConsoleTimerLogOrEnd`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerLogOrEnd`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `duration` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerLogOrEnd`*"] + pub fn duration(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("duration"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerLogOrEnd`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ConsoleTimerStart.rs b/crates/web-sys/src/features/gen_ConsoleTimerStart.rs new file mode 100644 index 00000000..cc386e87 --- /dev/null +++ b/crates/web-sys/src/features/gen_ConsoleTimerStart.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ConsoleTimerStart ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConsoleTimerStart` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerStart`*"] + pub type ConsoleTimerStart; +} +impl ConsoleTimerStart { + #[doc = "Construct a new `ConsoleTimerStart`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerStart`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConsoleTimerStart`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ConstantSourceNode.rs b/crates/web-sys/src/features/gen_ConstantSourceNode.rs new file mode 100644 index 00000000..57098754 --- /dev/null +++ b/crates/web-sys/src/features/gen_ConstantSourceNode.rs @@ -0,0 +1,83 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioScheduledSourceNode , extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = ConstantSourceNode , typescript_type = "ConstantSourceNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConstantSourceNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] + pub type ConstantSourceNode; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ConstantSourceNode" , js_name = offset ) ] + #[doc = "Getter for the `offset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/offset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `ConstantSourceNode`*"] + pub fn offset(this: &ConstantSourceNode) -> AudioParam; + # [ wasm_bindgen ( structural , method , getter , js_class = "ConstantSourceNode" , js_name = onended ) ] + #[doc = "Getter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] + pub fn onended(this: &ConstantSourceNode) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ConstantSourceNode" , js_name = onended ) ] + #[doc = "Setter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] + pub fn set_onended(this: &ConstantSourceNode, value: Option<&::js_sys::Function>); + #[cfg(feature = "BaseAudioContext")] + #[wasm_bindgen(catch, constructor, js_class = "ConstantSourceNode")] + #[doc = "The `new ConstantSourceNode(..)` constructor, creating a new instance of `ConstantSourceNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/ConstantSourceNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConstantSourceNode`*"] + pub fn new(context: &BaseAudioContext) -> Result; + #[cfg(all(feature = "BaseAudioContext", feature = "ConstantSourceOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "ConstantSourceNode")] + #[doc = "The `new ConstantSourceNode(..)` constructor, creating a new instance of `ConstantSourceNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/ConstantSourceNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConstantSourceNode`, `ConstantSourceOptions`*"] + pub fn new_with_options( + context: &BaseAudioContext, + options: &ConstantSourceOptions, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "ConstantSourceNode" , js_name = start ) ] + #[doc = "The `start()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] + pub fn start(this: &ConstantSourceNode) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "ConstantSourceNode" , js_name = start ) ] + #[doc = "The `start()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] + pub fn start_with_when(this: &ConstantSourceNode, when: f64) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "ConstantSourceNode" , js_name = stop ) ] + #[doc = "The `stop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/stop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] + pub fn stop(this: &ConstantSourceNode) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "ConstantSourceNode" , js_name = stop ) ] + #[doc = "The `stop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConstantSourceNode/stop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`*"] + pub fn stop_with_when(this: &ConstantSourceNode, when: f64) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_ConstantSourceOptions.rs b/crates/web-sys/src/features/gen_ConstantSourceOptions.rs new file mode 100644 index 00000000..056a360b --- /dev/null +++ b/crates/web-sys/src/features/gen_ConstantSourceOptions.rs @@ -0,0 +1,36 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ConstantSourceOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConstantSourceOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstantSourceOptions`*"] + pub type ConstantSourceOptions; +} +impl ConstantSourceOptions { + #[doc = "Construct a new `ConstantSourceOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstantSourceOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `offset` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstantSourceOptions`*"] + pub fn offset(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ConstrainBooleanParameters.rs b/crates/web-sys/src/features/gen_ConstrainBooleanParameters.rs new file mode 100644 index 00000000..823a6748 --- /dev/null +++ b/crates/web-sys/src/features/gen_ConstrainBooleanParameters.rs @@ -0,0 +1,48 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ConstrainBooleanParameters ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConstrainBooleanParameters` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainBooleanParameters`*"] + pub type ConstrainBooleanParameters; +} +impl ConstrainBooleanParameters { + #[doc = "Construct a new `ConstrainBooleanParameters`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainBooleanParameters`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `exact` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainBooleanParameters`*"] + pub fn exact(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("exact"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ideal` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainBooleanParameters`*"] + pub fn ideal(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ideal"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ConstrainDomStringParameters.rs b/crates/web-sys/src/features/gen_ConstrainDomStringParameters.rs new file mode 100644 index 00000000..eb0a7282 --- /dev/null +++ b/crates/web-sys/src/features/gen_ConstrainDomStringParameters.rs @@ -0,0 +1,48 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ConstrainDOMStringParameters ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConstrainDomStringParameters` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"] + pub type ConstrainDomStringParameters; +} +impl ConstrainDomStringParameters { + #[doc = "Construct a new `ConstrainDomStringParameters`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `exact` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"] + pub fn exact(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("exact"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ideal` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainDomStringParameters`*"] + pub fn ideal(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ideal"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ConstrainDoubleRange.rs b/crates/web-sys/src/features/gen_ConstrainDoubleRange.rs new file mode 100644 index 00000000..99fb5ac6 --- /dev/null +++ b/crates/web-sys/src/features/gen_ConstrainDoubleRange.rs @@ -0,0 +1,74 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ConstrainDoubleRange ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConstrainDoubleRange` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] + pub type ConstrainDoubleRange; +} +impl ConstrainDoubleRange { + #[doc = "Construct a new `ConstrainDoubleRange`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `exact` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] + pub fn exact(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("exact"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ideal` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] + pub fn ideal(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ideal"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `max` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] + pub fn max(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("max"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `min` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainDoubleRange`*"] + pub fn min(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("min"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ConstrainLongRange.rs b/crates/web-sys/src/features/gen_ConstrainLongRange.rs new file mode 100644 index 00000000..522cac12 --- /dev/null +++ b/crates/web-sys/src/features/gen_ConstrainLongRange.rs @@ -0,0 +1,74 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ConstrainLongRange ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConstrainLongRange` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] + pub type ConstrainLongRange; +} +impl ConstrainLongRange { + #[doc = "Construct a new `ConstrainLongRange`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `exact` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] + pub fn exact(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("exact"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ideal` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] + pub fn ideal(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ideal"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `max` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] + pub fn max(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("max"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `min` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstrainLongRange`*"] + pub fn min(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("min"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ContextAttributes2d.rs b/crates/web-sys/src/features/gen_ContextAttributes2d.rs new file mode 100644 index 00000000..fe213622 --- /dev/null +++ b/crates/web-sys/src/features/gen_ContextAttributes2d.rs @@ -0,0 +1,52 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ContextAttributes2D ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ContextAttributes2d` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ContextAttributes2d`*"] + pub type ContextAttributes2d; +} +impl ContextAttributes2d { + #[doc = "Construct a new `ContextAttributes2d`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ContextAttributes2d`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `alpha` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ContextAttributes2d`*"] + pub fn alpha(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("alpha"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `willReadFrequently` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ContextAttributes2d`*"] + pub fn will_read_frequently(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("willReadFrequently"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ConvertCoordinateOptions.rs b/crates/web-sys/src/features/gen_ConvertCoordinateOptions.rs new file mode 100644 index 00000000..e15795f3 --- /dev/null +++ b/crates/web-sys/src/features/gen_ConvertCoordinateOptions.rs @@ -0,0 +1,54 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ConvertCoordinateOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConvertCoordinateOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`*"] + pub type ConvertCoordinateOptions; +} +impl ConvertCoordinateOptions { + #[doc = "Construct a new `ConvertCoordinateOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "CssBoxType")] + #[doc = "Change the `fromBox` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `CssBoxType`*"] + pub fn from_box(&mut self, val: CssBoxType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("fromBox"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "CssBoxType")] + #[doc = "Change the `toBox` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `CssBoxType`*"] + pub fn to_box(&mut self, val: CssBoxType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("toBox"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ConvolverNode.rs b/crates/web-sys/src/features/gen_ConvolverNode.rs new file mode 100644 index 00000000..d95fa6ee --- /dev/null +++ b/crates/web-sys/src/features/gen_ConvolverNode.rs @@ -0,0 +1,63 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = ConvolverNode , typescript_type = "ConvolverNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConvolverNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvolverNode`*"] + pub type ConvolverNode; + #[cfg(feature = "AudioBuffer")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ConvolverNode" , js_name = buffer ) ] + #[doc = "Getter for the `buffer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/buffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `ConvolverNode`*"] + pub fn buffer(this: &ConvolverNode) -> Option; + #[cfg(feature = "AudioBuffer")] + # [ wasm_bindgen ( structural , method , setter , js_class = "ConvolverNode" , js_name = buffer ) ] + #[doc = "Setter for the `buffer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/buffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `ConvolverNode`*"] + pub fn set_buffer(this: &ConvolverNode, value: Option<&AudioBuffer>); + # [ wasm_bindgen ( structural , method , getter , js_class = "ConvolverNode" , js_name = normalize ) ] + #[doc = "Getter for the `normalize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/normalize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvolverNode`*"] + pub fn normalize(this: &ConvolverNode) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "ConvolverNode" , js_name = normalize ) ] + #[doc = "Setter for the `normalize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/normalize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvolverNode`*"] + pub fn set_normalize(this: &ConvolverNode, value: bool); + #[cfg(feature = "BaseAudioContext")] + #[wasm_bindgen(catch, constructor, js_class = "ConvolverNode")] + #[doc = "The `new ConvolverNode(..)` constructor, creating a new instance of `ConvolverNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/ConvolverNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConvolverNode`*"] + pub fn new(context: &BaseAudioContext) -> Result; + #[cfg(all(feature = "BaseAudioContext", feature = "ConvolverOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "ConvolverNode")] + #[doc = "The `new ConvolverNode(..)` constructor, creating a new instance of `ConvolverNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ConvolverNode/ConvolverNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `ConvolverNode`, `ConvolverOptions`*"] + pub fn new_with_options( + context: &BaseAudioContext, + options: &ConvolverOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_ConvolverOptions.rs b/crates/web-sys/src/features/gen_ConvolverOptions.rs new file mode 100644 index 00000000..493519b7 --- /dev/null +++ b/crates/web-sys/src/features/gen_ConvolverOptions.rs @@ -0,0 +1,107 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ConvolverOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ConvolverOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvolverOptions`*"] + pub type ConvolverOptions; +} +impl ConvolverOptions { + #[doc = "Construct a new `ConvolverOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvolverOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvolverOptions`*"] + pub fn channel_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelCountMode")] + #[doc = "Change the `channelCountMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `ConvolverOptions`*"] + pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCountMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelInterpretation")] + #[doc = "Change the `channelInterpretation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `ConvolverOptions`*"] + pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelInterpretation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "AudioBuffer")] + #[doc = "Change the `buffer` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `ConvolverOptions`*"] + pub fn buffer(&mut self, val: Option<&AudioBuffer>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("buffer"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `disableNormalization` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvolverOptions`*"] + pub fn disable_normalization(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("disableNormalization"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Coordinates.rs b/crates/web-sys/src/features/gen_Coordinates.rs new file mode 100644 index 00000000..44132248 --- /dev/null +++ b/crates/web-sys/src/features/gen_Coordinates.rs @@ -0,0 +1,63 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = Coordinates , typescript_type = "Coordinates" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Coordinates` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] + pub type Coordinates; + # [ wasm_bindgen ( structural , method , getter , js_class = "Coordinates" , js_name = latitude ) ] + #[doc = "Getter for the `latitude` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/latitude)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] + pub fn latitude(this: &Coordinates) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "Coordinates" , js_name = longitude ) ] + #[doc = "Getter for the `longitude` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/longitude)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] + pub fn longitude(this: &Coordinates) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "Coordinates" , js_name = altitude ) ] + #[doc = "Getter for the `altitude` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/altitude)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] + pub fn altitude(this: &Coordinates) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Coordinates" , js_name = accuracy ) ] + #[doc = "Getter for the `accuracy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/accuracy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] + pub fn accuracy(this: &Coordinates) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "Coordinates" , js_name = altitudeAccuracy ) ] + #[doc = "Getter for the `altitudeAccuracy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/altitudeAccuracy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] + pub fn altitude_accuracy(this: &Coordinates) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Coordinates" , js_name = heading ) ] + #[doc = "Getter for the `heading` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/heading)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] + pub fn heading(this: &Coordinates) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Coordinates" , js_name = speed ) ] + #[doc = "Getter for the `speed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Coordinates/speed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Coordinates`*"] + pub fn speed(this: &Coordinates) -> Option; +} diff --git a/crates/web-sys/src/features/gen_Credential.rs b/crates/web-sys/src/features/gen_Credential.rs new file mode 100644 index 00000000..19ee95ee --- /dev/null +++ b/crates/web-sys/src/features/gen_Credential.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Credential , typescript_type = "Credential" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Credential` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Credential)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Credential`*"] + pub type Credential; + # [ wasm_bindgen ( structural , method , getter , js_class = "Credential" , js_name = id ) ] + #[doc = "Getter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Credential/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Credential`*"] + pub fn id(this: &Credential) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Credential" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Credential/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Credential`*"] + pub fn type_(this: &Credential) -> String; +} diff --git a/crates/web-sys/src/features/gen_CredentialCreationOptions.rs b/crates/web-sys/src/features/gen_CredentialCreationOptions.rs new file mode 100644 index 00000000..23b7d8d3 --- /dev/null +++ b/crates/web-sys/src/features/gen_CredentialCreationOptions.rs @@ -0,0 +1,55 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CredentialCreationOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CredentialCreationOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CredentialCreationOptions`*"] + pub type CredentialCreationOptions; +} +impl CredentialCreationOptions { + #[doc = "Construct a new `CredentialCreationOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CredentialCreationOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "PublicKeyCredentialCreationOptions")] + #[doc = "Change the `publicKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CredentialCreationOptions`, `PublicKeyCredentialCreationOptions`*"] + pub fn public_key(&mut self, val: &PublicKeyCredentialCreationOptions) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("publicKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "AbortSignal")] + #[doc = "Change the `signal` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `CredentialCreationOptions`*"] + pub fn signal(&mut self, val: &AbortSignal) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("signal"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_CredentialRequestOptions.rs b/crates/web-sys/src/features/gen_CredentialRequestOptions.rs new file mode 100644 index 00000000..51e2c6df --- /dev/null +++ b/crates/web-sys/src/features/gen_CredentialRequestOptions.rs @@ -0,0 +1,55 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CredentialRequestOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CredentialRequestOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CredentialRequestOptions`*"] + pub type CredentialRequestOptions; +} +impl CredentialRequestOptions { + #[doc = "Construct a new `CredentialRequestOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CredentialRequestOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "PublicKeyCredentialRequestOptions")] + #[doc = "Change the `publicKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CredentialRequestOptions`, `PublicKeyCredentialRequestOptions`*"] + pub fn public_key(&mut self, val: &PublicKeyCredentialRequestOptions) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("publicKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "AbortSignal")] + #[doc = "Change the `signal` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `CredentialRequestOptions`*"] + pub fn signal(&mut self, val: &AbortSignal) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("signal"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_CredentialsContainer.rs b/crates/web-sys/src/features/gen_CredentialsContainer.rs new file mode 100644 index 00000000..97d69f57 --- /dev/null +++ b/crates/web-sys/src/features/gen_CredentialsContainer.rs @@ -0,0 +1,69 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CredentialsContainer , typescript_type = "CredentialsContainer" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CredentialsContainer` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`*"] + pub type CredentialsContainer; + # [ wasm_bindgen ( catch , method , structural , js_class = "CredentialsContainer" , js_name = create ) ] + #[doc = "The `create()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/create)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`*"] + pub fn create(this: &CredentialsContainer) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CredentialCreationOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CredentialsContainer" , js_name = create ) ] + #[doc = "The `create()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/create)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CredentialCreationOptions`, `CredentialsContainer`*"] + pub fn create_with_options( + this: &CredentialsContainer, + options: &CredentialCreationOptions, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CredentialsContainer" , js_name = get ) ] + #[doc = "The `get()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/get)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`*"] + pub fn get(this: &CredentialsContainer) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CredentialRequestOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CredentialsContainer" , js_name = get ) ] + #[doc = "The `get()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/get)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CredentialRequestOptions`, `CredentialsContainer`*"] + pub fn get_with_options( + this: &CredentialsContainer, + options: &CredentialRequestOptions, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CredentialsContainer" , js_name = preventSilentAccess ) ] + #[doc = "The `preventSilentAccess()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/preventSilentAccess)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`*"] + pub fn prevent_silent_access(this: &CredentialsContainer) + -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "Credential")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CredentialsContainer" , js_name = store ) ] + #[doc = "The `store()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CredentialsContainer/store)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Credential`, `CredentialsContainer`*"] + pub fn store( + this: &CredentialsContainer, + credential: &Credential, + ) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_Crypto.rs b/crates/web-sys/src/features/gen_Crypto.rs new file mode 100644 index 00000000..a768b654 --- /dev/null +++ b/crates/web-sys/src/features/gen_Crypto.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Crypto , typescript_type = "Crypto" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Crypto` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Crypto)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Crypto`*"] + pub type Crypto; + #[cfg(feature = "SubtleCrypto")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Crypto" , js_name = subtle ) ] + #[doc = "Getter for the `subtle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/subtle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Crypto`, `SubtleCrypto`*"] + pub fn subtle(this: &Crypto) -> SubtleCrypto; + # [ wasm_bindgen ( catch , method , structural , js_class = "Crypto" , js_name = getRandomValues ) ] + #[doc = "The `getRandomValues()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Crypto`*"] + pub fn get_random_values_with_array_buffer_view( + this: &Crypto, + array: &::js_sys::Object, + ) -> Result<::js_sys::Object, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Crypto" , js_name = getRandomValues ) ] + #[doc = "The `getRandomValues()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Crypto`*"] + pub fn get_random_values_with_u8_array( + this: &Crypto, + array: &mut [u8], + ) -> Result<::js_sys::Object, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_CryptoKey.rs b/crates/web-sys/src/features/gen_CryptoKey.rs new file mode 100644 index 00000000..ec92d4d2 --- /dev/null +++ b/crates/web-sys/src/features/gen_CryptoKey.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CryptoKey , typescript_type = "CryptoKey" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CryptoKey` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`*"] + pub type CryptoKey; + # [ wasm_bindgen ( structural , method , getter , js_class = "CryptoKey" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`*"] + pub fn type_(this: &CryptoKey) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "CryptoKey" , js_name = extractable ) ] + #[doc = "Getter for the `extractable` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey/extractable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`*"] + pub fn extractable(this: &CryptoKey) -> bool; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "CryptoKey" , js_name = algorithm ) ] + #[doc = "Getter for the `algorithm` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey/algorithm)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`*"] + pub fn algorithm(this: &CryptoKey) -> Result<::js_sys::Object, JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "CryptoKey" , js_name = usages ) ] + #[doc = "Getter for the `usages` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey/usages)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`*"] + pub fn usages(this: &CryptoKey) -> ::js_sys::Array; +} diff --git a/crates/web-sys/src/features/gen_CryptoKeyPair.rs b/crates/web-sys/src/features/gen_CryptoKeyPair.rs new file mode 100644 index 00000000..9e605ec0 --- /dev/null +++ b/crates/web-sys/src/features/gen_CryptoKeyPair.rs @@ -0,0 +1,61 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CryptoKeyPair ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CryptoKeyPair` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKeyPair`*"] + pub type CryptoKeyPair; +} +impl CryptoKeyPair { + #[cfg(feature = "CryptoKey")] + #[doc = "Construct a new `CryptoKeyPair`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `CryptoKeyPair`*"] + pub fn new(private_key: &CryptoKey, public_key: &CryptoKey) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.private_key(private_key); + ret.public_key(public_key); + ret + } + #[cfg(feature = "CryptoKey")] + #[doc = "Change the `privateKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `CryptoKeyPair`*"] + pub fn private_key(&mut self, val: &CryptoKey) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("privateKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "CryptoKey")] + #[doc = "Change the `publicKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `CryptoKeyPair`*"] + pub fn public_key(&mut self, val: &CryptoKey) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("publicKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Csp.rs b/crates/web-sys/src/features/gen_Csp.rs new file mode 100644 index 00000000..033ee57a --- /dev/null +++ b/crates/web-sys/src/features/gen_Csp.rs @@ -0,0 +1,396 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CSP ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Csp` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub type Csp; +} +impl Csp { + #[doc = "Construct a new `Csp`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `base-uri` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn base_uri(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("base-uri"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `block-all-mixed-content` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn block_all_mixed_content(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("block-all-mixed-content"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `child-src` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn child_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("child-src"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `connect-src` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn connect_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("connect-src"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `default-src` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn default_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("default-src"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `font-src` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn font_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("font-src"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `form-action` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn form_action(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("form-action"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `frame-ancestors` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn frame_ancestors(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("frame-ancestors"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `frame-src` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn frame_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("frame-src"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `img-src` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn img_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("img-src"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `manifest-src` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn manifest_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("manifest-src"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `media-src` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn media_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("media-src"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `object-src` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn object_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("object-src"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `referrer` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn referrer(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("referrer"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `report-only` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn report_only(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("report-only"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `report-uri` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn report_uri(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("report-uri"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `require-sri-for` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn require_sri_for(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("require-sri-for"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `sandbox` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn sandbox(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sandbox"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `script-src` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn script_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("script-src"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `style-src` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn style_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("style-src"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `upgrade-insecure-requests` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn upgrade_insecure_requests(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("upgrade-insecure-requests"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `worker-src` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Csp`*"] + pub fn worker_src(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("worker-src"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_CspPolicies.rs b/crates/web-sys/src/features/gen_CspPolicies.rs new file mode 100644 index 00000000..b86bff1d --- /dev/null +++ b/crates/web-sys/src/features/gen_CspPolicies.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CSPPolicies ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CspPolicies` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CspPolicies`*"] + pub type CspPolicies; +} +impl CspPolicies { + #[doc = "Construct a new `CspPolicies`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CspPolicies`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `csp-policies` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CspPolicies`*"] + pub fn csp_policies(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("csp-policies"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_CspReport.rs b/crates/web-sys/src/features/gen_CspReport.rs new file mode 100644 index 00000000..5606784e --- /dev/null +++ b/crates/web-sys/src/features/gen_CspReport.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CSPReport ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CspReport` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CspReport`*"] + pub type CspReport; +} +impl CspReport { + #[doc = "Construct a new `CspReport`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CspReport`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "CspReportProperties")] + #[doc = "Change the `csp-report` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CspReport`, `CspReportProperties`*"] + pub fn csp_report(&mut self, val: &CspReportProperties) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("csp-report"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_CspReportProperties.rs b/crates/web-sys/src/features/gen_CspReportProperties.rs new file mode 100644 index 00000000..fdd3b8c8 --- /dev/null +++ b/crates/web-sys/src/features/gen_CspReportProperties.rs @@ -0,0 +1,175 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CSPReportProperties ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CspReportProperties` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] + pub type CspReportProperties; +} +impl CspReportProperties { + #[doc = "Construct a new `CspReportProperties`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `blocked-uri` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] + pub fn blocked_uri(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("blocked-uri"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `column-number` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] + pub fn column_number(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("column-number"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `document-uri` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] + pub fn document_uri(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("document-uri"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `line-number` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] + pub fn line_number(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("line-number"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `original-policy` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] + pub fn original_policy(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("original-policy"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `referrer` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] + pub fn referrer(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("referrer"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `script-sample` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] + pub fn script_sample(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("script-sample"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `source-file` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] + pub fn source_file(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("source-file"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `violated-directive` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CspReportProperties`*"] + pub fn violated_directive(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("violated-directive"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_CssAnimation.rs b/crates/web-sys/src/features/gen_CssAnimation.rs new file mode 100644 index 00000000..8f72d0f5 --- /dev/null +++ b/crates/web-sys/src/features/gen_CssAnimation.rs @@ -0,0 +1,21 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Animation , extends = EventTarget , extends = :: js_sys :: Object , js_name = CSSAnimation , typescript_type = "CSSAnimation" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssAnimation` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSAnimation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssAnimation`*"] + pub type CssAnimation; + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSAnimation" , js_name = animationName ) ] + #[doc = "Getter for the `animationName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSAnimation/animationName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssAnimation`*"] + pub fn animation_name(this: &CssAnimation) -> String; +} diff --git a/crates/web-sys/src/features/gen_CssBoxType.rs b/crates/web-sys/src/features/gen_CssBoxType.rs new file mode 100644 index 00000000..c72b966f --- /dev/null +++ b/crates/web-sys/src/features/gen_CssBoxType.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `CssBoxType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `CssBoxType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum CssBoxType { + Margin = "margin", + Border = "border", + Padding = "padding", + Content = "content", +} diff --git a/crates/web-sys/src/features/gen_CssConditionRule.rs b/crates/web-sys/src/features/gen_CssConditionRule.rs new file mode 100644 index 00000000..239e2cbd --- /dev/null +++ b/crates/web-sys/src/features/gen_CssConditionRule.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = CssGroupingRule , extends = CssRule , extends = :: js_sys :: Object , js_name = CSSConditionRule , typescript_type = "CSSConditionRule" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssConditionRule` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSConditionRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssConditionRule`*"] + pub type CssConditionRule; + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSConditionRule" , js_name = conditionText ) ] + #[doc = "Getter for the `conditionText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSConditionRule/conditionText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssConditionRule`*"] + pub fn condition_text(this: &CssConditionRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSConditionRule" , js_name = conditionText ) ] + #[doc = "Setter for the `conditionText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSConditionRule/conditionText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssConditionRule`*"] + pub fn set_condition_text(this: &CssConditionRule, value: &str); +} diff --git a/crates/web-sys/src/features/gen_CssCounterStyleRule.rs b/crates/web-sys/src/features/gen_CssCounterStyleRule.rs new file mode 100644 index 00000000..3e3dc93e --- /dev/null +++ b/crates/web-sys/src/features/gen_CssCounterStyleRule.rs @@ -0,0 +1,168 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = CssRule , extends = :: js_sys :: Object , js_name = CSSCounterStyleRule , typescript_type = "CSSCounterStyleRule" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssCounterStyleRule` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub type CssCounterStyleRule; + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn name(this: &CssCounterStyleRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn set_name(this: &CssCounterStyleRule, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = system ) ] + #[doc = "Getter for the `system` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/system)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn system(this: &CssCounterStyleRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = system ) ] + #[doc = "Setter for the `system` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/system)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn set_system(this: &CssCounterStyleRule, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = symbols ) ] + #[doc = "Getter for the `symbols` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/symbols)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn symbols(this: &CssCounterStyleRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = symbols ) ] + #[doc = "Setter for the `symbols` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/symbols)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn set_symbols(this: &CssCounterStyleRule, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = additiveSymbols ) ] + #[doc = "Getter for the `additiveSymbols` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/additiveSymbols)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn additive_symbols(this: &CssCounterStyleRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = additiveSymbols ) ] + #[doc = "Setter for the `additiveSymbols` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/additiveSymbols)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn set_additive_symbols(this: &CssCounterStyleRule, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = negative ) ] + #[doc = "Getter for the `negative` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/negative)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn negative(this: &CssCounterStyleRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = negative ) ] + #[doc = "Setter for the `negative` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/negative)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn set_negative(this: &CssCounterStyleRule, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = prefix ) ] + #[doc = "Getter for the `prefix` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/prefix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn prefix(this: &CssCounterStyleRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = prefix ) ] + #[doc = "Setter for the `prefix` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/prefix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn set_prefix(this: &CssCounterStyleRule, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = suffix ) ] + #[doc = "Getter for the `suffix` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/suffix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn suffix(this: &CssCounterStyleRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = suffix ) ] + #[doc = "Setter for the `suffix` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/suffix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn set_suffix(this: &CssCounterStyleRule, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = range ) ] + #[doc = "Getter for the `range` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/range)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn range(this: &CssCounterStyleRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = range ) ] + #[doc = "Setter for the `range` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/range)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn set_range(this: &CssCounterStyleRule, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = pad ) ] + #[doc = "Getter for the `pad` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/pad)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn pad(this: &CssCounterStyleRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = pad ) ] + #[doc = "Setter for the `pad` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/pad)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn set_pad(this: &CssCounterStyleRule, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = speakAs ) ] + #[doc = "Getter for the `speakAs` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/speakAs)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn speak_as(this: &CssCounterStyleRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = speakAs ) ] + #[doc = "Setter for the `speakAs` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/speakAs)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn set_speak_as(this: &CssCounterStyleRule, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSCounterStyleRule" , js_name = fallback ) ] + #[doc = "Getter for the `fallback` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/fallback)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn fallback(this: &CssCounterStyleRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSCounterStyleRule" , js_name = fallback ) ] + #[doc = "Setter for the `fallback` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSCounterStyleRule/fallback)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssCounterStyleRule`*"] + pub fn set_fallback(this: &CssCounterStyleRule, value: &str); +} diff --git a/crates/web-sys/src/features/gen_CssFontFaceRule.rs b/crates/web-sys/src/features/gen_CssFontFaceRule.rs new file mode 100644 index 00000000..86087f28 --- /dev/null +++ b/crates/web-sys/src/features/gen_CssFontFaceRule.rs @@ -0,0 +1,22 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = CssRule , extends = :: js_sys :: Object , js_name = CSSFontFaceRule , typescript_type = "CSSFontFaceRule" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssFontFaceRule` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFaceRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssFontFaceRule`*"] + pub type CssFontFaceRule; + #[cfg(feature = "CssStyleDeclaration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSFontFaceRule" , js_name = style ) ] + #[doc = "Getter for the `style` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFaceRule/style)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssFontFaceRule`, `CssStyleDeclaration`*"] + pub fn style(this: &CssFontFaceRule) -> CssStyleDeclaration; +} diff --git a/crates/web-sys/src/features/gen_CssFontFeatureValuesRule.rs b/crates/web-sys/src/features/gen_CssFontFeatureValuesRule.rs new file mode 100644 index 00000000..c461e51d --- /dev/null +++ b/crates/web-sys/src/features/gen_CssFontFeatureValuesRule.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = CssRule , extends = :: js_sys :: Object , js_name = CSSFontFeatureValuesRule , typescript_type = "CSSFontFeatureValuesRule" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssFontFeatureValuesRule` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"] + pub type CssFontFeatureValuesRule; + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSFontFeatureValuesRule" , js_name = fontFamily ) ] + #[doc = "Getter for the `fontFamily` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule/fontFamily)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"] + pub fn font_family(this: &CssFontFeatureValuesRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSFontFeatureValuesRule" , js_name = fontFamily ) ] + #[doc = "Setter for the `fontFamily` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule/fontFamily)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"] + pub fn set_font_family(this: &CssFontFeatureValuesRule, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSFontFeatureValuesRule" , js_name = valueText ) ] + #[doc = "Getter for the `valueText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule/valueText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"] + pub fn value_text(this: &CssFontFeatureValuesRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSFontFeatureValuesRule" , js_name = valueText ) ] + #[doc = "Setter for the `valueText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSFontFeatureValuesRule/valueText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssFontFeatureValuesRule`*"] + pub fn set_value_text(this: &CssFontFeatureValuesRule, value: &str); +} diff --git a/crates/web-sys/src/features/gen_CssGroupingRule.rs b/crates/web-sys/src/features/gen_CssGroupingRule.rs new file mode 100644 index 00000000..7cfd479c --- /dev/null +++ b/crates/web-sys/src/features/gen_CssGroupingRule.rs @@ -0,0 +1,47 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = CssRule , extends = :: js_sys :: Object , js_name = CSSGroupingRule , typescript_type = "CSSGroupingRule" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssGroupingRule` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"] + pub type CssGroupingRule; + #[cfg(feature = "CssRuleList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSGroupingRule" , js_name = cssRules ) ] + #[doc = "Getter for the `cssRules` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/cssRules)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`, `CssRuleList`*"] + pub fn css_rules(this: &CssGroupingRule) -> CssRuleList; + # [ wasm_bindgen ( catch , method , structural , js_class = "CSSGroupingRule" , js_name = deleteRule ) ] + #[doc = "The `deleteRule()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/deleteRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"] + pub fn delete_rule(this: &CssGroupingRule, index: u32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CSSGroupingRule" , js_name = insertRule ) ] + #[doc = "The `insertRule()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/insertRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"] + pub fn insert_rule(this: &CssGroupingRule, rule: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "CSSGroupingRule" , js_name = insertRule ) ] + #[doc = "The `insertRule()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSGroupingRule/insertRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssGroupingRule`*"] + pub fn insert_rule_with_index( + this: &CssGroupingRule, + rule: &str, + index: u32, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_CssImportRule.rs b/crates/web-sys/src/features/gen_CssImportRule.rs new file mode 100644 index 00000000..20975bbd --- /dev/null +++ b/crates/web-sys/src/features/gen_CssImportRule.rs @@ -0,0 +1,37 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = CssRule , extends = :: js_sys :: Object , js_name = CSSImportRule , typescript_type = "CSSImportRule" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssImportRule` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssImportRule`*"] + pub type CssImportRule; + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSImportRule" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssImportRule`*"] + pub fn href(this: &CssImportRule) -> String; + #[cfg(feature = "MediaList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSImportRule" , js_name = media ) ] + #[doc = "Getter for the `media` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule/media)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssImportRule`, `MediaList`*"] + pub fn media(this: &CssImportRule) -> Option; + #[cfg(feature = "CssStyleSheet")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSImportRule" , js_name = styleSheet ) ] + #[doc = "Getter for the `styleSheet` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSImportRule/styleSheet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssImportRule`, `CssStyleSheet`*"] + pub fn style_sheet(this: &CssImportRule) -> Option; +} diff --git a/crates/web-sys/src/features/gen_CssKeyframeRule.rs b/crates/web-sys/src/features/gen_CssKeyframeRule.rs new file mode 100644 index 00000000..ac2a5e2b --- /dev/null +++ b/crates/web-sys/src/features/gen_CssKeyframeRule.rs @@ -0,0 +1,36 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = CssRule , extends = :: js_sys :: Object , js_name = CSSKeyframeRule , typescript_type = "CSSKeyframeRule" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssKeyframeRule` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssKeyframeRule`*"] + pub type CssKeyframeRule; + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSKeyframeRule" , js_name = keyText ) ] + #[doc = "Getter for the `keyText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule/keyText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssKeyframeRule`*"] + pub fn key_text(this: &CssKeyframeRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSKeyframeRule" , js_name = keyText ) ] + #[doc = "Setter for the `keyText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule/keyText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssKeyframeRule`*"] + pub fn set_key_text(this: &CssKeyframeRule, value: &str); + #[cfg(feature = "CssStyleDeclaration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSKeyframeRule" , js_name = style ) ] + #[doc = "Getter for the `style` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframeRule/style)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssKeyframeRule`, `CssStyleDeclaration`*"] + pub fn style(this: &CssKeyframeRule) -> CssStyleDeclaration; +} diff --git a/crates/web-sys/src/features/gen_CssKeyframesRule.rs b/crates/web-sys/src/features/gen_CssKeyframesRule.rs new file mode 100644 index 00000000..0a1ad32e --- /dev/null +++ b/crates/web-sys/src/features/gen_CssKeyframesRule.rs @@ -0,0 +1,58 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = CssRule , extends = :: js_sys :: Object , js_name = CSSKeyframesRule , typescript_type = "CSSKeyframesRule" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssKeyframesRule` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`*"] + pub type CssKeyframesRule; + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSKeyframesRule" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`*"] + pub fn name(this: &CssKeyframesRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSKeyframesRule" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`*"] + pub fn set_name(this: &CssKeyframesRule, value: &str); + #[cfg(feature = "CssRuleList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSKeyframesRule" , js_name = cssRules ) ] + #[doc = "Getter for the `cssRules` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/cssRules)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`, `CssRuleList`*"] + pub fn css_rules(this: &CssKeyframesRule) -> CssRuleList; + # [ wasm_bindgen ( method , structural , js_class = "CSSKeyframesRule" , js_name = appendRule ) ] + #[doc = "The `appendRule()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/appendRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`*"] + pub fn append_rule(this: &CssKeyframesRule, rule: &str); + # [ wasm_bindgen ( method , structural , js_class = "CSSKeyframesRule" , js_name = deleteRule ) ] + #[doc = "The `deleteRule()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/deleteRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssKeyframesRule`*"] + pub fn delete_rule(this: &CssKeyframesRule, select: &str); + #[cfg(feature = "CssKeyframeRule")] + # [ wasm_bindgen ( method , structural , js_class = "CSSKeyframesRule" , js_name = findRule ) ] + #[doc = "The `findRule()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSKeyframesRule/findRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssKeyframeRule`, `CssKeyframesRule`*"] + pub fn find_rule(this: &CssKeyframesRule, select: &str) -> Option; +} diff --git a/crates/web-sys/src/features/gen_CssMediaRule.rs b/crates/web-sys/src/features/gen_CssMediaRule.rs new file mode 100644 index 00000000..58472bc8 --- /dev/null +++ b/crates/web-sys/src/features/gen_CssMediaRule.rs @@ -0,0 +1,22 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = CssConditionRule , extends = CssGroupingRule , extends = CssRule , extends = :: js_sys :: Object , js_name = CSSMediaRule , typescript_type = "CSSMediaRule" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssMediaRule` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSMediaRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssMediaRule`*"] + pub type CssMediaRule; + #[cfg(feature = "MediaList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSMediaRule" , js_name = media ) ] + #[doc = "Getter for the `media` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSMediaRule/media)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssMediaRule`, `MediaList`*"] + pub fn media(this: &CssMediaRule) -> MediaList; +} diff --git a/crates/web-sys/src/features/gen_CssNamespaceRule.rs b/crates/web-sys/src/features/gen_CssNamespaceRule.rs new file mode 100644 index 00000000..0feccf40 --- /dev/null +++ b/crates/web-sys/src/features/gen_CssNamespaceRule.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = CssRule , extends = :: js_sys :: Object , js_name = CSSNamespaceRule , typescript_type = "CSSNamespaceRule" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssNamespaceRule` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSNamespaceRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssNamespaceRule`*"] + pub type CssNamespaceRule; + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSNamespaceRule" , js_name = namespaceURI ) ] + #[doc = "Getter for the `namespaceURI` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSNamespaceRule/namespaceURI)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssNamespaceRule`*"] + pub fn namespace_uri(this: &CssNamespaceRule) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSNamespaceRule" , js_name = prefix ) ] + #[doc = "Getter for the `prefix` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSNamespaceRule/prefix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssNamespaceRule`*"] + pub fn prefix(this: &CssNamespaceRule) -> String; +} diff --git a/crates/web-sys/src/features/gen_CssPageRule.rs b/crates/web-sys/src/features/gen_CssPageRule.rs new file mode 100644 index 00000000..99660b27 --- /dev/null +++ b/crates/web-sys/src/features/gen_CssPageRule.rs @@ -0,0 +1,22 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = CssRule , extends = :: js_sys :: Object , js_name = CSSPageRule , typescript_type = "CSSPageRule" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssPageRule` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPageRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssPageRule`*"] + pub type CssPageRule; + #[cfg(feature = "CssStyleDeclaration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSPageRule" , js_name = style ) ] + #[doc = "Getter for the `style` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPageRule/style)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssPageRule`, `CssStyleDeclaration`*"] + pub fn style(this: &CssPageRule) -> CssStyleDeclaration; +} diff --git a/crates/web-sys/src/features/gen_CssPseudoElement.rs b/crates/web-sys/src/features/gen_CssPseudoElement.rs new file mode 100644 index 00000000..e8208656 --- /dev/null +++ b/crates/web-sys/src/features/gen_CssPseudoElement.rs @@ -0,0 +1,29 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CSSPseudoElement , typescript_type = "CSSPseudoElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssPseudoElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`*"] + pub type CssPseudoElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSPseudoElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`*"] + pub fn type_(this: &CssPseudoElement) -> String; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSPseudoElement" , js_name = parentElement ) ] + #[doc = "Getter for the `parentElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSPseudoElement/parentElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`, `Element`*"] + pub fn parent_element(this: &CssPseudoElement) -> Element; +} diff --git a/crates/web-sys/src/features/gen_CssRule.rs b/crates/web-sys/src/features/gen_CssRule.rs new file mode 100644 index 00000000..432dfede --- /dev/null +++ b/crates/web-sys/src/features/gen_CssRule.rs @@ -0,0 +1,100 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CSSRule , typescript_type = "CSSRule" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssRule` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] + pub type CssRule; + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSRule" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] + pub fn type_(this: &CssRule) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSRule" , js_name = cssText ) ] + #[doc = "Getter for the `cssText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule/cssText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] + pub fn css_text(this: &CssRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSRule" , js_name = cssText ) ] + #[doc = "Setter for the `cssText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule/cssText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] + pub fn set_css_text(this: &CssRule, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSRule" , js_name = parentRule ) ] + #[doc = "Getter for the `parentRule` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule/parentRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] + pub fn parent_rule(this: &CssRule) -> Option; + #[cfg(feature = "CssStyleSheet")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSRule" , js_name = parentStyleSheet ) ] + #[doc = "Getter for the `parentStyleSheet` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRule/parentStyleSheet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`, `CssStyleSheet`*"] + pub fn parent_style_sheet(this: &CssRule) -> Option; +} +impl CssRule { + #[doc = "The `CSSRule.STYLE_RULE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] + pub const STYLE_RULE: u16 = 1u64 as u16; + #[doc = "The `CSSRule.CHARSET_RULE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] + pub const CHARSET_RULE: u16 = 2u64 as u16; + #[doc = "The `CSSRule.IMPORT_RULE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] + pub const IMPORT_RULE: u16 = 3u64 as u16; + #[doc = "The `CSSRule.MEDIA_RULE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] + pub const MEDIA_RULE: u16 = 4u64 as u16; + #[doc = "The `CSSRule.FONT_FACE_RULE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] + pub const FONT_FACE_RULE: u16 = 5u64 as u16; + #[doc = "The `CSSRule.PAGE_RULE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] + pub const PAGE_RULE: u16 = 6u64 as u16; + #[doc = "The `CSSRule.NAMESPACE_RULE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] + pub const NAMESPACE_RULE: u16 = 10u64 as u16; + #[doc = "The `CSSRule.KEYFRAMES_RULE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] + pub const KEYFRAMES_RULE: u16 = 7u64 as u16; + #[doc = "The `CSSRule.KEYFRAME_RULE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] + pub const KEYFRAME_RULE: u16 = 8u64 as u16; + #[doc = "The `CSSRule.COUNTER_STYLE_RULE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] + pub const COUNTER_STYLE_RULE: u16 = 11u64 as u16; + #[doc = "The `CSSRule.SUPPORTS_RULE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] + pub const SUPPORTS_RULE: u16 = 12u64 as u16; + #[doc = "The `CSSRule.FONT_FEATURE_VALUES_RULE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`*"] + pub const FONT_FEATURE_VALUES_RULE: u16 = 14u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_CssRuleList.rs b/crates/web-sys/src/features/gen_CssRuleList.rs new file mode 100644 index 00000000..206a4026 --- /dev/null +++ b/crates/web-sys/src/features/gen_CssRuleList.rs @@ -0,0 +1,37 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CSSRuleList , typescript_type = "CSSRuleList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssRuleList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRuleList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRuleList`*"] + pub type CssRuleList; + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSRuleList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRuleList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRuleList`*"] + pub fn length(this: &CssRuleList) -> u32; + #[cfg(feature = "CssRule")] + # [ wasm_bindgen ( method , structural , js_class = "CSSRuleList" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSRuleList/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`, `CssRuleList`*"] + pub fn item(this: &CssRuleList, index: u32) -> Option; + #[cfg(feature = "CssRule")] + #[wasm_bindgen(method, structural, js_class = "CSSRuleList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`, `CssRuleList`*"] + pub fn get(this: &CssRuleList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_CssStyleDeclaration.rs b/crates/web-sys/src/features/gen_CssStyleDeclaration.rs new file mode 100644 index 00000000..4f16944a --- /dev/null +++ b/crates/web-sys/src/features/gen_CssStyleDeclaration.rs @@ -0,0 +1,104 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CSSStyleDeclaration , typescript_type = "CSSStyleDeclaration" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssStyleDeclaration` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] + pub type CssStyleDeclaration; + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSStyleDeclaration" , js_name = cssText ) ] + #[doc = "Getter for the `cssText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/cssText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] + pub fn css_text(this: &CssStyleDeclaration) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSStyleDeclaration" , js_name = cssText ) ] + #[doc = "Setter for the `cssText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/cssText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] + pub fn set_css_text(this: &CssStyleDeclaration, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSStyleDeclaration" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] + pub fn length(this: &CssStyleDeclaration) -> u32; + #[cfg(feature = "CssRule")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSStyleDeclaration" , js_name = parentRule ) ] + #[doc = "Getter for the `parentRule` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/parentRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`, `CssStyleDeclaration`*"] + pub fn parent_rule(this: &CssStyleDeclaration) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "CSSStyleDeclaration" , js_name = getPropertyPriority ) ] + #[doc = "The `getPropertyPriority()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/getPropertyPriority)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] + pub fn get_property_priority(this: &CssStyleDeclaration, property: &str) -> String; + # [ wasm_bindgen ( catch , method , structural , js_class = "CSSStyleDeclaration" , js_name = getPropertyValue ) ] + #[doc = "The `getPropertyValue()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/getPropertyValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] + pub fn get_property_value( + this: &CssStyleDeclaration, + property: &str, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "CSSStyleDeclaration" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] + pub fn item(this: &CssStyleDeclaration, index: u32) -> String; + # [ wasm_bindgen ( catch , method , structural , js_class = "CSSStyleDeclaration" , js_name = removeProperty ) ] + #[doc = "The `removeProperty()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/removeProperty)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] + pub fn remove_property(this: &CssStyleDeclaration, property: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "CSSStyleDeclaration" , js_name = setProperty ) ] + #[doc = "The `setProperty()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/setProperty)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] + pub fn set_property( + this: &CssStyleDeclaration, + property: &str, + value: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CSSStyleDeclaration" , js_name = setProperty ) ] + #[doc = "The `setProperty()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleDeclaration/setProperty)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] + pub fn set_property_with_priority( + this: &CssStyleDeclaration, + property: &str, + value: &str, + priority: &str, + ) -> Result<(), JsValue>; + #[wasm_bindgen(method, structural, js_class = "CSSStyleDeclaration", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`*"] + pub fn get(this: &CssStyleDeclaration, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_CssStyleRule.rs b/crates/web-sys/src/features/gen_CssStyleRule.rs new file mode 100644 index 00000000..7e18ea85 --- /dev/null +++ b/crates/web-sys/src/features/gen_CssStyleRule.rs @@ -0,0 +1,36 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = CssRule , extends = :: js_sys :: Object , js_name = CSSStyleRule , typescript_type = "CSSStyleRule" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssStyleRule` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleRule`*"] + pub type CssStyleRule; + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSStyleRule" , js_name = selectorText ) ] + #[doc = "Getter for the `selectorText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/selectorText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleRule`*"] + pub fn selector_text(this: &CssStyleRule) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "CSSStyleRule" , js_name = selectorText ) ] + #[doc = "Setter for the `selectorText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/selectorText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleRule`*"] + pub fn set_selector_text(this: &CssStyleRule, value: &str); + #[cfg(feature = "CssStyleDeclaration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSStyleRule" , js_name = style ) ] + #[doc = "Getter for the `style` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleRule/style)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`, `CssStyleRule`*"] + pub fn style(this: &CssStyleRule) -> CssStyleDeclaration; +} diff --git a/crates/web-sys/src/features/gen_CssStyleSheet.rs b/crates/web-sys/src/features/gen_CssStyleSheet.rs new file mode 100644 index 00000000..9e5fb3ab --- /dev/null +++ b/crates/web-sys/src/features/gen_CssStyleSheet.rs @@ -0,0 +1,55 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = StyleSheet , extends = :: js_sys :: Object , js_name = CSSStyleSheet , typescript_type = "CSSStyleSheet" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssStyleSheet` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"] + pub type CssStyleSheet; + #[cfg(feature = "CssRule")] + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSStyleSheet" , js_name = ownerRule ) ] + #[doc = "Getter for the `ownerRule` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/ownerRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`, `CssStyleSheet`*"] + pub fn owner_rule(this: &CssStyleSheet) -> Option; + #[cfg(feature = "CssRuleList")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "CSSStyleSheet" , js_name = cssRules ) ] + #[doc = "Getter for the `cssRules` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/cssRules)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRuleList`, `CssStyleSheet`*"] + pub fn css_rules(this: &CssStyleSheet) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "CSSStyleSheet" , js_name = deleteRule ) ] + #[doc = "The `deleteRule()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/deleteRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"] + pub fn delete_rule(this: &CssStyleSheet, index: u32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "CSSStyleSheet" , js_name = insertRule ) ] + #[doc = "The `insertRule()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"] + pub fn insert_rule(this: &CssStyleSheet, rule: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "CSSStyleSheet" , js_name = insertRule ) ] + #[doc = "The `insertRule()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet/insertRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`*"] + pub fn insert_rule_with_index( + this: &CssStyleSheet, + rule: &str, + index: u32, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_CssStyleSheetParsingMode.rs b/crates/web-sys/src/features/gen_CssStyleSheetParsingMode.rs new file mode 100644 index 00000000..9db3f605 --- /dev/null +++ b/crates/web-sys/src/features/gen_CssStyleSheetParsingMode.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `CssStyleSheetParsingMode` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `CssStyleSheetParsingMode`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum CssStyleSheetParsingMode { + Author = "author", + User = "user", + Agent = "agent", +} diff --git a/crates/web-sys/src/features/gen_CssSupportsRule.rs b/crates/web-sys/src/features/gen_CssSupportsRule.rs new file mode 100644 index 00000000..06e484f9 --- /dev/null +++ b/crates/web-sys/src/features/gen_CssSupportsRule.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = CssConditionRule , extends = CssGroupingRule , extends = CssRule , extends = :: js_sys :: Object , js_name = CSSSupportsRule , typescript_type = "CSSSupportsRule" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssSupportsRule` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSSupportsRule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssSupportsRule`*"] + pub type CssSupportsRule; +} diff --git a/crates/web-sys/src/features/gen_CssTransition.rs b/crates/web-sys/src/features/gen_CssTransition.rs new file mode 100644 index 00000000..261599cb --- /dev/null +++ b/crates/web-sys/src/features/gen_CssTransition.rs @@ -0,0 +1,21 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Animation , extends = EventTarget , extends = :: js_sys :: Object , js_name = CSSTransition , typescript_type = "CSSTransition" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CssTransition` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSTransition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssTransition`*"] + pub type CssTransition; + # [ wasm_bindgen ( structural , method , getter , js_class = "CSSTransition" , js_name = transitionProperty ) ] + #[doc = "Getter for the `transitionProperty` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSSTransition/transitionProperty)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssTransition`*"] + pub fn transition_property(this: &CssTransition) -> String; +} diff --git a/crates/web-sys/src/features/gen_CustomElementRegistry.rs b/crates/web-sys/src/features/gen_CustomElementRegistry.rs new file mode 100644 index 00000000..f79f7fe2 --- /dev/null +++ b/crates/web-sys/src/features/gen_CustomElementRegistry.rs @@ -0,0 +1,63 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CustomElementRegistry , typescript_type = "CustomElementRegistry" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CustomElementRegistry` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`*"] + pub type CustomElementRegistry; + # [ wasm_bindgen ( catch , method , structural , js_class = "CustomElementRegistry" , js_name = define ) ] + #[doc = "The `define()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`*"] + pub fn define( + this: &CustomElementRegistry, + name: &str, + function_constructor: &::js_sys::Function, + ) -> Result<(), JsValue>; + #[cfg(feature = "ElementDefinitionOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "CustomElementRegistry" , js_name = define ) ] + #[doc = "The `define()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`, `ElementDefinitionOptions`*"] + pub fn define_with_options( + this: &CustomElementRegistry, + name: &str, + function_constructor: &::js_sys::Function, + options: &ElementDefinitionOptions, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "CustomElementRegistry" , js_name = get ) ] + #[doc = "The `get()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/get)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`*"] + pub fn get(this: &CustomElementRegistry, name: &str) -> ::wasm_bindgen::JsValue; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( method , structural , js_class = "CustomElementRegistry" , js_name = upgrade ) ] + #[doc = "The `upgrade()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/upgrade)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`, `Node`*"] + pub fn upgrade(this: &CustomElementRegistry, root: &Node); + # [ wasm_bindgen ( catch , method , structural , js_class = "CustomElementRegistry" , js_name = whenDefined ) ] + #[doc = "The `whenDefined()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/whenDefined)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`*"] + pub fn when_defined( + this: &CustomElementRegistry, + name: &str, + ) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_CustomEvent.rs b/crates/web-sys/src/features/gen_CustomEvent.rs new file mode 100644 index 00000000..9eb171ea --- /dev/null +++ b/crates/web-sys/src/features/gen_CustomEvent.rs @@ -0,0 +1,78 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = CustomEvent , typescript_type = "CustomEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CustomEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomEvent`*"] + pub type CustomEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "CustomEvent" , js_name = detail ) ] + #[doc = "Getter for the `detail` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/detail)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomEvent`*"] + pub fn detail(this: &CustomEvent) -> ::wasm_bindgen::JsValue; + #[wasm_bindgen(catch, constructor, js_class = "CustomEvent")] + #[doc = "The `new CustomEvent(..)` constructor, creating a new instance of `CustomEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "CustomEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "CustomEvent")] + #[doc = "The `new CustomEvent(..)` constructor, creating a new instance of `CustomEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/CustomEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomEvent`, `CustomEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &CustomEventInit, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "CustomEvent" , js_name = initCustomEvent ) ] + #[doc = "The `initCustomEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/initCustomEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomEvent`*"] + pub fn init_custom_event(this: &CustomEvent, type_: &str); + # [ wasm_bindgen ( method , structural , js_class = "CustomEvent" , js_name = initCustomEvent ) ] + #[doc = "The `initCustomEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/initCustomEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomEvent`*"] + pub fn init_custom_event_with_can_bubble(this: &CustomEvent, type_: &str, can_bubble: bool); + # [ wasm_bindgen ( method , structural , js_class = "CustomEvent" , js_name = initCustomEvent ) ] + #[doc = "The `initCustomEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/initCustomEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomEvent`*"] + pub fn init_custom_event_with_can_bubble_and_cancelable( + this: &CustomEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + ); + # [ wasm_bindgen ( method , structural , js_class = "CustomEvent" , js_name = initCustomEvent ) ] + #[doc = "The `initCustomEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent/initCustomEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomEvent`*"] + pub fn init_custom_event_with_can_bubble_and_cancelable_and_detail( + this: &CustomEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + detail: &::wasm_bindgen::JsValue, + ); +} diff --git a/crates/web-sys/src/features/gen_CustomEventInit.rs b/crates/web-sys/src/features/gen_CustomEventInit.rs new file mode 100644 index 00000000..5eb72aa6 --- /dev/null +++ b/crates/web-sys/src/features/gen_CustomEventInit.rs @@ -0,0 +1,87 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = CustomEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `CustomEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] + pub type CustomEventInit; +} +impl CustomEventInit { + #[doc = "Construct a new `CustomEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `detail` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomEventInit`*"] + pub fn detail(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DataTransfer.rs b/crates/web-sys/src/features/gen_DataTransfer.rs new file mode 100644 index 00000000..05415bd6 --- /dev/null +++ b/crates/web-sys/src/features/gen_DataTransfer.rs @@ -0,0 +1,132 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DataTransfer , typescript_type = "DataTransfer" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DataTransfer` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub type DataTransfer; + # [ wasm_bindgen ( structural , method , getter , js_class = "DataTransfer" , js_name = dropEffect ) ] + #[doc = "Getter for the `dropEffect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/dropEffect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn drop_effect(this: &DataTransfer) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "DataTransfer" , js_name = dropEffect ) ] + #[doc = "Setter for the `dropEffect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/dropEffect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn set_drop_effect(this: &DataTransfer, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "DataTransfer" , js_name = effectAllowed ) ] + #[doc = "Getter for the `effectAllowed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/effectAllowed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn effect_allowed(this: &DataTransfer) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "DataTransfer" , js_name = effectAllowed ) ] + #[doc = "Setter for the `effectAllowed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/effectAllowed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn set_effect_allowed(this: &DataTransfer, value: &str); + #[cfg(feature = "DataTransferItemList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DataTransfer" , js_name = items ) ] + #[doc = "Getter for the `items` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/items)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `DataTransferItemList`*"] + pub fn items(this: &DataTransfer) -> DataTransferItemList; + # [ wasm_bindgen ( structural , method , getter , js_class = "DataTransfer" , js_name = types ) ] + #[doc = "Getter for the `types` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/types)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn types(this: &DataTransfer) -> ::js_sys::Array; + #[cfg(feature = "FileList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DataTransfer" , js_name = files ) ] + #[doc = "Getter for the `files` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/files)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `FileList`*"] + pub fn files(this: &DataTransfer) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "DataTransfer")] + #[doc = "The `new DataTransfer(..)` constructor, creating a new instance of `DataTransfer`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/DataTransfer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn new() -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "DataTransfer" , js_name = clearData ) ] + #[doc = "The `clearData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/clearData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn clear_data(this: &DataTransfer) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DataTransfer" , js_name = clearData ) ] + #[doc = "The `clearData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/clearData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn clear_data_with_format(this: &DataTransfer, format: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DataTransfer" , js_name = getData ) ] + #[doc = "The `getData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn get_data(this: &DataTransfer, format: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "DataTransfer" , js_name = getFiles ) ] + #[doc = "The `getFiles()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getFiles)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn get_files(this: &DataTransfer) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DataTransfer" , js_name = getFiles ) ] + #[doc = "The `getFiles()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getFiles)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn get_files_with_recursive_flag( + this: &DataTransfer, + recursive_flag: bool, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DataTransfer" , js_name = getFilesAndDirectories ) ] + #[doc = "The `getFilesAndDirectories()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/getFilesAndDirectories)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn get_files_and_directories(this: &DataTransfer) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DataTransfer" , js_name = setData ) ] + #[doc = "The `setData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/setData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`*"] + pub fn set_data(this: &DataTransfer, format: &str, data: &str) -> Result<(), JsValue>; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( method , structural , js_class = "DataTransfer" , js_name = setDragImage ) ] + #[doc = "The `setDragImage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/setDragImage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `Element`*"] + pub fn set_drag_image(this: &DataTransfer, image: &Element, x: i32, y: i32); +} diff --git a/crates/web-sys/src/features/gen_DataTransferItem.rs b/crates/web-sys/src/features/gen_DataTransferItem.rs new file mode 100644 index 00000000..5ad652a8 --- /dev/null +++ b/crates/web-sys/src/features/gen_DataTransferItem.rs @@ -0,0 +1,55 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DataTransferItem , typescript_type = "DataTransferItem" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DataTransferItem` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`*"] + pub type DataTransferItem; + # [ wasm_bindgen ( structural , method , getter , js_class = "DataTransferItem" , js_name = kind ) ] + #[doc = "Getter for the `kind` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/kind)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`*"] + pub fn kind(this: &DataTransferItem) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "DataTransferItem" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`*"] + pub fn type_(this: &DataTransferItem) -> String; + #[cfg(feature = "File")] + # [ wasm_bindgen ( catch , method , structural , js_class = "DataTransferItem" , js_name = getAsFile ) ] + #[doc = "The `getAsFile()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/getAsFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`, `File`*"] + pub fn get_as_file(this: &DataTransferItem) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DataTransferItem" , js_name = getAsString ) ] + #[doc = "The `getAsString()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/getAsString)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`*"] + pub fn get_as_string( + this: &DataTransferItem, + callback: Option<&::js_sys::Function>, + ) -> Result<(), JsValue>; + #[cfg(feature = "FileSystemEntry")] + # [ wasm_bindgen ( catch , method , structural , js_class = "DataTransferItem" , js_name = webkitGetAsEntry ) ] + #[doc = "The `webkitGetAsEntry()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItem/webkitGetAsEntry)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`, `FileSystemEntry`*"] + pub fn webkit_get_as_entry(this: &DataTransferItem) + -> Result, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_DataTransferItemList.rs b/crates/web-sys/src/features/gen_DataTransferItemList.rs new file mode 100644 index 00000000..2d15c2e2 --- /dev/null +++ b/crates/web-sys/src/features/gen_DataTransferItemList.rs @@ -0,0 +1,66 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DataTransferItemList , typescript_type = "DataTransferItemList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DataTransferItemList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransferItemList`*"] + pub type DataTransferItemList; + # [ wasm_bindgen ( structural , method , getter , js_class = "DataTransferItemList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransferItemList`*"] + pub fn length(this: &DataTransferItemList) -> u32; + #[cfg(feature = "DataTransferItem")] + # [ wasm_bindgen ( catch , method , structural , js_class = "DataTransferItemList" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`, `DataTransferItemList`*"] + pub fn add_with_str_and_type( + this: &DataTransferItemList, + data: &str, + type_: &str, + ) -> Result, JsValue>; + #[cfg(all(feature = "DataTransferItem", feature = "File",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "DataTransferItemList" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`, `DataTransferItemList`, `File`*"] + pub fn add_with_file( + this: &DataTransferItemList, + data: &File, + ) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DataTransferItemList" , js_name = clear ) ] + #[doc = "The `clear()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList/clear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransferItemList`*"] + pub fn clear(this: &DataTransferItemList) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DataTransferItemList" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DataTransferItemList/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransferItemList`*"] + pub fn remove(this: &DataTransferItemList, index: u32) -> Result<(), JsValue>; + #[cfg(feature = "DataTransferItem")] + #[wasm_bindgen(method, structural, js_class = "DataTransferItemList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransferItem`, `DataTransferItemList`*"] + pub fn get(this: &DataTransferItemList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_DateTimeValue.rs b/crates/web-sys/src/features/gen_DateTimeValue.rs new file mode 100644 index 00000000..cd6a33da --- /dev/null +++ b/crates/web-sys/src/features/gen_DateTimeValue.rs @@ -0,0 +1,88 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DateTimeValue ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DateTimeValue` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] + pub type DateTimeValue; +} +impl DateTimeValue { + #[doc = "Construct a new `DateTimeValue`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `day` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] + pub fn day(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("day"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `hour` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] + pub fn hour(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hour"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `minute` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] + pub fn minute(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("minute"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `month` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] + pub fn month(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("month"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `year` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DateTimeValue`*"] + pub fn year(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("year"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DecoderDoctorNotification.rs b/crates/web-sys/src/features/gen_DecoderDoctorNotification.rs new file mode 100644 index 00000000..05aa1713 --- /dev/null +++ b/crates/web-sys/src/features/gen_DecoderDoctorNotification.rs @@ -0,0 +1,143 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DecoderDoctorNotification ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DecoderDoctorNotification` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] + pub type DecoderDoctorNotification; +} +impl DecoderDoctorNotification { + #[cfg(feature = "DecoderDoctorNotificationType")] + #[doc = "Construct a new `DecoderDoctorNotification`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`, `DecoderDoctorNotificationType`*"] + pub fn new( + decoder_doctor_report_id: &str, + is_solved: bool, + type_: DecoderDoctorNotificationType, + ) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.decoder_doctor_report_id(decoder_doctor_report_id); + ret.is_solved(is_solved); + ret.type_(type_); + ret + } + #[doc = "Change the `decodeIssue` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] + pub fn decode_issue(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("decodeIssue"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `decoderDoctorReportId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] + pub fn decoder_doctor_report_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("decoderDoctorReportId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `docURL` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] + pub fn doc_url(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("docURL"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `formats` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] + pub fn formats(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("formats"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `isSolved` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] + pub fn is_solved(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("isSolved"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `resourceURL` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`*"] + pub fn resource_url(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("resourceURL"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "DecoderDoctorNotificationType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotification`, `DecoderDoctorNotificationType`*"] + pub fn type_(&mut self, val: DecoderDoctorNotificationType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DecoderDoctorNotificationType.rs b/crates/web-sys/src/features/gen_DecoderDoctorNotificationType.rs new file mode 100644 index 00000000..adec72fe --- /dev/null +++ b/crates/web-sys/src/features/gen_DecoderDoctorNotificationType.rs @@ -0,0 +1,16 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `DecoderDoctorNotificationType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `DecoderDoctorNotificationType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum DecoderDoctorNotificationType { + CannotPlay = "cannot-play", + PlatformDecoderNotFound = "platform-decoder-not-found", + CanPlayButSomeMissingDecoders = "can-play-but-some-missing-decoders", + CannotInitializePulseaudio = "cannot-initialize-pulseaudio", + UnsupportedLibavcodec = "unsupported-libavcodec", + DecodeError = "decode-error", + DecodeWarning = "decode-warning", +} diff --git a/crates/web-sys/src/features/gen_DedicatedWorkerGlobalScope.rs b/crates/web-sys/src/features/gen_DedicatedWorkerGlobalScope.rs new file mode 100644 index 00000000..8e1b5696 --- /dev/null +++ b/crates/web-sys/src/features/gen_DedicatedWorkerGlobalScope.rs @@ -0,0 +1,80 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = WorkerGlobalScope , extends = EventTarget , extends = :: js_sys :: Object , js_name = DedicatedWorkerGlobalScope , typescript_type = "DedicatedWorkerGlobalScope" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DedicatedWorkerGlobalScope` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] + pub type DedicatedWorkerGlobalScope; + # [ wasm_bindgen ( structural , method , getter , js_class = "DedicatedWorkerGlobalScope" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] + pub fn name(this: &DedicatedWorkerGlobalScope) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "DedicatedWorkerGlobalScope" , js_name = onmessage ) ] + #[doc = "Getter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] + pub fn onmessage(this: &DedicatedWorkerGlobalScope) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "DedicatedWorkerGlobalScope" , js_name = onmessage ) ] + #[doc = "Setter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] + pub fn set_onmessage(this: &DedicatedWorkerGlobalScope, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "DedicatedWorkerGlobalScope" , js_name = onmessageerror ) ] + #[doc = "Getter for the `onmessageerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onmessageerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] + pub fn onmessageerror(this: &DedicatedWorkerGlobalScope) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "DedicatedWorkerGlobalScope" , js_name = onmessageerror ) ] + #[doc = "Setter for the `onmessageerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/onmessageerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] + pub fn set_onmessageerror( + this: &DedicatedWorkerGlobalScope, + value: Option<&::js_sys::Function>, + ); + # [ wasm_bindgen ( method , structural , js_class = "DedicatedWorkerGlobalScope" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] + pub fn close(this: &DedicatedWorkerGlobalScope); + # [ wasm_bindgen ( catch , method , structural , js_class = "DedicatedWorkerGlobalScope" , js_name = postMessage ) ] + #[doc = "The `postMessage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] + pub fn post_message( + this: &DedicatedWorkerGlobalScope, + message: &::wasm_bindgen::JsValue, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DedicatedWorkerGlobalScope" , js_name = postMessage ) ] + #[doc = "The `postMessage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/postMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DedicatedWorkerGlobalScope`*"] + pub fn post_message_with_transfer( + this: &DedicatedWorkerGlobalScope, + message: &::wasm_bindgen::JsValue, + transfer: &::wasm_bindgen::JsValue, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_DelayNode.rs b/crates/web-sys/src/features/gen_DelayNode.rs new file mode 100644 index 00000000..2eab071f --- /dev/null +++ b/crates/web-sys/src/features/gen_DelayNode.rs @@ -0,0 +1,41 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = DelayNode , typescript_type = "DelayNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DelayNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DelayNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DelayNode`*"] + pub type DelayNode; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DelayNode" , js_name = delayTime ) ] + #[doc = "Getter for the `delayTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DelayNode/delayTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DelayNode`*"] + pub fn delay_time(this: &DelayNode) -> AudioParam; + #[cfg(feature = "BaseAudioContext")] + #[wasm_bindgen(catch, constructor, js_class = "DelayNode")] + #[doc = "The `new DelayNode(..)` constructor, creating a new instance of `DelayNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DelayNode/DelayNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DelayNode`*"] + pub fn new(context: &BaseAudioContext) -> Result; + #[cfg(all(feature = "BaseAudioContext", feature = "DelayOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "DelayNode")] + #[doc = "The `new DelayNode(..)` constructor, creating a new instance of `DelayNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DelayNode/DelayNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DelayNode`, `DelayOptions`*"] + pub fn new_with_options( + context: &BaseAudioContext, + options: &DelayOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_DelayOptions.rs b/crates/web-sys/src/features/gen_DelayOptions.rs new file mode 100644 index 00000000..8d2653bf --- /dev/null +++ b/crates/web-sys/src/features/gen_DelayOptions.rs @@ -0,0 +1,109 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DelayOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DelayOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DelayOptions`*"] + pub type DelayOptions; +} +impl DelayOptions { + #[doc = "Construct a new `DelayOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DelayOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DelayOptions`*"] + pub fn channel_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelCountMode")] + #[doc = "Change the `channelCountMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `DelayOptions`*"] + pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCountMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelInterpretation")] + #[doc = "Change the `channelInterpretation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `DelayOptions`*"] + pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelInterpretation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `delayTime` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DelayOptions`*"] + pub fn delay_time(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("delayTime"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `maxDelayTime` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DelayOptions`*"] + pub fn max_delay_time(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maxDelayTime"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DeviceAcceleration.rs b/crates/web-sys/src/features/gen_DeviceAcceleration.rs new file mode 100644 index 00000000..160a05db --- /dev/null +++ b/crates/web-sys/src/features/gen_DeviceAcceleration.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = DeviceAcceleration , typescript_type = "DeviceAcceleration" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DeviceAcceleration` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"] + pub type DeviceAcceleration; + # [ wasm_bindgen ( structural , method , getter , js_class = "DeviceAcceleration" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"] + pub fn x(this: &DeviceAcceleration) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "DeviceAcceleration" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"] + pub fn y(this: &DeviceAcceleration) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "DeviceAcceleration" , js_name = z ) ] + #[doc = "Getter for the `z` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceAcceleration/z)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`*"] + pub fn z(this: &DeviceAcceleration) -> Option; +} diff --git a/crates/web-sys/src/features/gen_DeviceAccelerationInit.rs b/crates/web-sys/src/features/gen_DeviceAccelerationInit.rs new file mode 100644 index 00000000..6451db5d --- /dev/null +++ b/crates/web-sys/src/features/gen_DeviceAccelerationInit.rs @@ -0,0 +1,61 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DeviceAccelerationInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DeviceAccelerationInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`*"] + pub type DeviceAccelerationInit; +} +impl DeviceAccelerationInit { + #[doc = "Construct a new `DeviceAccelerationInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `x` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`*"] + pub fn x(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("x"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `y` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`*"] + pub fn y(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("y"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `z` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`*"] + pub fn z(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("z"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DeviceLightEvent.rs b/crates/web-sys/src/features/gen_DeviceLightEvent.rs new file mode 100644 index 00000000..03973617 --- /dev/null +++ b/crates/web-sys/src/features/gen_DeviceLightEvent.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = DeviceLightEvent , typescript_type = "DeviceLightEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DeviceLightEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceLightEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceLightEvent`*"] + pub type DeviceLightEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "DeviceLightEvent" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceLightEvent/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceLightEvent`*"] + pub fn value(this: &DeviceLightEvent) -> f64; + #[wasm_bindgen(catch, constructor, js_class = "DeviceLightEvent")] + #[doc = "The `new DeviceLightEvent(..)` constructor, creating a new instance of `DeviceLightEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceLightEvent/DeviceLightEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceLightEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "DeviceLightEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "DeviceLightEvent")] + #[doc = "The `new DeviceLightEvent(..)` constructor, creating a new instance of `DeviceLightEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceLightEvent/DeviceLightEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceLightEvent`, `DeviceLightEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &DeviceLightEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_DeviceLightEventInit.rs b/crates/web-sys/src/features/gen_DeviceLightEventInit.rs new file mode 100644 index 00000000..4356d73e --- /dev/null +++ b/crates/web-sys/src/features/gen_DeviceLightEventInit.rs @@ -0,0 +1,86 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DeviceLightEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DeviceLightEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] + pub type DeviceLightEventInit; +} +impl DeviceLightEventInit { + #[doc = "Construct a new `DeviceLightEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `value` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceLightEventInit`*"] + pub fn value(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DeviceMotionEvent.rs b/crates/web-sys/src/features/gen_DeviceMotionEvent.rs new file mode 100644 index 00000000..59eaf86a --- /dev/null +++ b/crates/web-sys/src/features/gen_DeviceMotionEvent.rs @@ -0,0 +1,63 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = DeviceMotionEvent , typescript_type = "DeviceMotionEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DeviceMotionEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEvent`*"] + pub type DeviceMotionEvent; + #[cfg(feature = "DeviceAcceleration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DeviceMotionEvent" , js_name = acceleration ) ] + #[doc = "Getter for the `acceleration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/acceleration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`, `DeviceMotionEvent`*"] + pub fn acceleration(this: &DeviceMotionEvent) -> Option; + #[cfg(feature = "DeviceAcceleration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DeviceMotionEvent" , js_name = accelerationIncludingGravity ) ] + #[doc = "Getter for the `accelerationIncludingGravity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/accelerationIncludingGravity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceAcceleration`, `DeviceMotionEvent`*"] + pub fn acceleration_including_gravity(this: &DeviceMotionEvent) -> Option; + #[cfg(feature = "DeviceRotationRate")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DeviceMotionEvent" , js_name = rotationRate ) ] + #[doc = "Getter for the `rotationRate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/rotationRate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEvent`, `DeviceRotationRate`*"] + pub fn rotation_rate(this: &DeviceMotionEvent) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "DeviceMotionEvent" , js_name = interval ) ] + #[doc = "Getter for the `interval` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/interval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEvent`*"] + pub fn interval(this: &DeviceMotionEvent) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "DeviceMotionEvent")] + #[doc = "The `new DeviceMotionEvent(..)` constructor, creating a new instance of `DeviceMotionEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/DeviceMotionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "DeviceMotionEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "DeviceMotionEvent")] + #[doc = "The `new DeviceMotionEvent(..)` constructor, creating a new instance of `DeviceMotionEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceMotionEvent/DeviceMotionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEvent`, `DeviceMotionEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &DeviceMotionEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_DeviceMotionEventInit.rs b/crates/web-sys/src/features/gen_DeviceMotionEventInit.rs new file mode 100644 index 00000000..726585ce --- /dev/null +++ b/crates/web-sys/src/features/gen_DeviceMotionEventInit.rs @@ -0,0 +1,144 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DeviceMotionEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DeviceMotionEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] + pub type DeviceMotionEventInit; +} +impl DeviceMotionEventInit { + #[doc = "Construct a new `DeviceMotionEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "DeviceAccelerationInit")] + #[doc = "Change the `acceleration` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`, `DeviceMotionEventInit`*"] + pub fn acceleration(&mut self, val: &DeviceAccelerationInit) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("acceleration"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "DeviceAccelerationInit")] + #[doc = "Change the `accelerationIncludingGravity` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceAccelerationInit`, `DeviceMotionEventInit`*"] + pub fn acceleration_including_gravity(&mut self, val: &DeviceAccelerationInit) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("accelerationIncludingGravity"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `interval` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`*"] + pub fn interval(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("interval"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "DeviceRotationRateInit")] + #[doc = "Change the `rotationRate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceMotionEventInit`, `DeviceRotationRateInit`*"] + pub fn rotation_rate(&mut self, val: &DeviceRotationRateInit) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("rotationRate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DeviceOrientationEvent.rs b/crates/web-sys/src/features/gen_DeviceOrientationEvent.rs new file mode 100644 index 00000000..aa2a2d76 --- /dev/null +++ b/crates/web-sys/src/features/gen_DeviceOrientationEvent.rs @@ -0,0 +1,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; + # [ 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; + # [ 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; + # [ 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; + #[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; + # [ 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, + ); + # [ 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, + beta: Option, + ); + # [ 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, + beta: Option, + gamma: Option, + ); + # [ 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, + beta: Option, + gamma: Option, + absolute: bool, + ); +} diff --git a/crates/web-sys/src/features/gen_DeviceOrientationEventInit.rs b/crates/web-sys/src/features/gen_DeviceOrientationEventInit.rs new file mode 100644 index 00000000..1b6c85b0 --- /dev/null +++ b/crates/web-sys/src/features/gen_DeviceOrientationEventInit.rs @@ -0,0 +1,129 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DeviceOrientationEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DeviceOrientationEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] + pub type DeviceOrientationEventInit; +} +impl DeviceOrientationEventInit { + #[doc = "Construct a new `DeviceOrientationEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `absolute` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] + pub fn absolute(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("absolute"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `alpha` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] + pub fn alpha(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("alpha"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `beta` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] + pub fn beta(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("beta"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `gamma` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceOrientationEventInit`*"] + pub fn gamma(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("gamma"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DeviceProximityEvent.rs b/crates/web-sys/src/features/gen_DeviceProximityEvent.rs new file mode 100644 index 00000000..6beeb2ea --- /dev/null +++ b/crates/web-sys/src/features/gen_DeviceProximityEvent.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = DeviceProximityEvent , typescript_type = "DeviceProximityEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DeviceProximityEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"] + pub type DeviceProximityEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "DeviceProximityEvent" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"] + pub fn value(this: &DeviceProximityEvent) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DeviceProximityEvent" , js_name = min ) ] + #[doc = "Getter for the `min` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent/min)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"] + pub fn min(this: &DeviceProximityEvent) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DeviceProximityEvent" , js_name = max ) ] + #[doc = "Getter for the `max` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent/max)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"] + pub fn max(this: &DeviceProximityEvent) -> f64; + #[wasm_bindgen(catch, constructor, js_class = "DeviceProximityEvent")] + #[doc = "The `new DeviceProximityEvent(..)` constructor, creating a new instance of `DeviceProximityEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent/DeviceProximityEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "DeviceProximityEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "DeviceProximityEvent")] + #[doc = "The `new DeviceProximityEvent(..)` constructor, creating a new instance of `DeviceProximityEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceProximityEvent/DeviceProximityEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEvent`, `DeviceProximityEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &DeviceProximityEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_DeviceProximityEventInit.rs b/crates/web-sys/src/features/gen_DeviceProximityEventInit.rs new file mode 100644 index 00000000..3be8dfe5 --- /dev/null +++ b/crates/web-sys/src/features/gen_DeviceProximityEventInit.rs @@ -0,0 +1,112 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DeviceProximityEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DeviceProximityEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] + pub type DeviceProximityEventInit; +} +impl DeviceProximityEventInit { + #[doc = "Construct a new `DeviceProximityEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `max` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] + pub fn max(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("max"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `min` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] + pub fn min(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("min"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `value` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceProximityEventInit`*"] + pub fn value(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DeviceRotationRate.rs b/crates/web-sys/src/features/gen_DeviceRotationRate.rs new file mode 100644 index 00000000..7797b28c --- /dev/null +++ b/crates/web-sys/src/features/gen_DeviceRotationRate.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = DeviceRotationRate , typescript_type = "DeviceRotationRate" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DeviceRotationRate` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DeviceRotationRate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRate`*"] + pub type DeviceRotationRate; + # [ wasm_bindgen ( structural , method , getter , js_class = "DeviceRotationRate" , 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/DeviceRotationRate/alpha)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRate`*"] + pub fn alpha(this: &DeviceRotationRate) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "DeviceRotationRate" , 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/DeviceRotationRate/beta)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRate`*"] + pub fn beta(this: &DeviceRotationRate) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "DeviceRotationRate" , 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/DeviceRotationRate/gamma)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRate`*"] + pub fn gamma(this: &DeviceRotationRate) -> Option; +} diff --git a/crates/web-sys/src/features/gen_DeviceRotationRateInit.rs b/crates/web-sys/src/features/gen_DeviceRotationRateInit.rs new file mode 100644 index 00000000..1023260f --- /dev/null +++ b/crates/web-sys/src/features/gen_DeviceRotationRateInit.rs @@ -0,0 +1,61 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DeviceRotationRateInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DeviceRotationRateInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"] + pub type DeviceRotationRateInit; +} +impl DeviceRotationRateInit { + #[doc = "Construct a new `DeviceRotationRateInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `alpha` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"] + pub fn alpha(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("alpha"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `beta` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"] + pub fn beta(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("beta"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `gamma` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DeviceRotationRateInit`*"] + pub fn gamma(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("gamma"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DhKeyDeriveParams.rs b/crates/web-sys/src/features/gen_DhKeyDeriveParams.rs new file mode 100644 index 00000000..3b3c9adc --- /dev/null +++ b/crates/web-sys/src/features/gen_DhKeyDeriveParams.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DhKeyDeriveParams ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DhKeyDeriveParams` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DhKeyDeriveParams`*"] + pub type DhKeyDeriveParams; +} +impl DhKeyDeriveParams { + #[cfg(feature = "CryptoKey")] + #[doc = "Construct a new `DhKeyDeriveParams`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `DhKeyDeriveParams`*"] + pub fn new(name: &str, public: &CryptoKey) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.public(public); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DhKeyDeriveParams`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "CryptoKey")] + #[doc = "Change the `public` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `DhKeyDeriveParams`*"] + pub fn public(&mut self, val: &CryptoKey) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("public"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DirectionSetting.rs b/crates/web-sys/src/features/gen_DirectionSetting.rs new file mode 100644 index 00000000..087bac82 --- /dev/null +++ b/crates/web-sys/src/features/gen_DirectionSetting.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `DirectionSetting` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `DirectionSetting`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum DirectionSetting { + None = "", + Rl = "rl", + Lr = "lr", +} diff --git a/crates/web-sys/src/features/gen_Directory.rs b/crates/web-sys/src/features/gen_Directory.rs new file mode 100644 index 00000000..4158c039 --- /dev/null +++ b/crates/web-sys/src/features/gen_Directory.rs @@ -0,0 +1,52 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Directory , typescript_type = "Directory" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Directory` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Directory`*"] + pub type Directory; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Directory" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Directory`*"] + pub fn name(this: &Directory) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Directory" , js_name = path ) ] + #[doc = "Getter for the `path` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/path)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Directory`*"] + pub fn path(this: &Directory) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Directory" , js_name = getFiles ) ] + #[doc = "The `getFiles()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/getFiles)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Directory`*"] + pub fn get_files(this: &Directory) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Directory" , js_name = getFiles ) ] + #[doc = "The `getFiles()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/getFiles)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Directory`*"] + pub fn get_files_with_recursive_flag( + this: &Directory, + recursive_flag: bool, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Directory" , js_name = getFilesAndDirectories ) ] + #[doc = "The `getFilesAndDirectories()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Directory/getFilesAndDirectories)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Directory`*"] + pub fn get_files_and_directories(this: &Directory) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_DisplayNameOptions.rs b/crates/web-sys/src/features/gen_DisplayNameOptions.rs new file mode 100644 index 00000000..3af98a07 --- /dev/null +++ b/crates/web-sys/src/features/gen_DisplayNameOptions.rs @@ -0,0 +1,48 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DisplayNameOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DisplayNameOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DisplayNameOptions`*"] + pub type DisplayNameOptions; +} +impl DisplayNameOptions { + #[doc = "Construct a new `DisplayNameOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DisplayNameOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `keys` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DisplayNameOptions`*"] + pub fn keys(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("keys"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `style` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DisplayNameOptions`*"] + pub fn style(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("style"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DisplayNameResult.rs b/crates/web-sys/src/features/gen_DisplayNameResult.rs new file mode 100644 index 00000000..b75d08be --- /dev/null +++ b/crates/web-sys/src/features/gen_DisplayNameResult.rs @@ -0,0 +1,49 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DisplayNameResult ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DisplayNameResult` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] + pub type DisplayNameResult; +} +impl DisplayNameResult { + #[doc = "Construct a new `DisplayNameResult`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `locale` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] + pub fn locale(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("locale"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `style` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`*"] + pub fn style(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("style"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DistanceModelType.rs b/crates/web-sys/src/features/gen_DistanceModelType.rs new file mode 100644 index 00000000..fd628781 --- /dev/null +++ b/crates/web-sys/src/features/gen_DistanceModelType.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `DistanceModelType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `DistanceModelType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum DistanceModelType { + Linear = "linear", + Inverse = "inverse", + Exponential = "exponential", +} diff --git a/crates/web-sys/src/features/gen_DnsCacheDict.rs b/crates/web-sys/src/features/gen_DnsCacheDict.rs new file mode 100644 index 00000000..e539eb39 --- /dev/null +++ b/crates/web-sys/src/features/gen_DnsCacheDict.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DNSCacheDict ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DnsCacheDict` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DnsCacheDict`*"] + pub type DnsCacheDict; +} +impl DnsCacheDict { + #[doc = "Construct a new `DnsCacheDict`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DnsCacheDict`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `entries` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DnsCacheDict`*"] + pub fn entries(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("entries"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DnsCacheEntry.rs b/crates/web-sys/src/features/gen_DnsCacheEntry.rs new file mode 100644 index 00000000..b8cab658 --- /dev/null +++ b/crates/web-sys/src/features/gen_DnsCacheEntry.rs @@ -0,0 +1,100 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DnsCacheEntry ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DnsCacheEntry` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] + pub type DnsCacheEntry; +} +impl DnsCacheEntry { + #[doc = "Construct a new `DnsCacheEntry`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `expiration` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] + pub fn expiration(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("expiration"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `family` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] + pub fn family(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("family"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `hostaddr` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] + pub fn hostaddr(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("hostaddr"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `hostname` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] + pub fn hostname(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("hostname"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `trr` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DnsCacheEntry`*"] + pub fn trr(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("trr"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DnsLookupDict.rs b/crates/web-sys/src/features/gen_DnsLookupDict.rs new file mode 100644 index 00000000..1567c2aa --- /dev/null +++ b/crates/web-sys/src/features/gen_DnsLookupDict.rs @@ -0,0 +1,66 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DNSLookupDict ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DnsLookupDict` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] + pub type DnsLookupDict; +} +impl DnsLookupDict { + #[doc = "Construct a new `DnsLookupDict`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `address` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] + pub fn address(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("address"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `answer` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] + pub fn answer(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("answer"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `error` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DnsLookupDict`*"] + pub fn error(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Document.rs b/crates/web-sys/src/features/gen_Document.rs new file mode 100644 index 00000000..24a50690 --- /dev/null +++ b/crates/web-sys/src/features/gen_Document.rs @@ -0,0 +1,2988 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = Document , typescript_type = "Document" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Document` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub type Document; + #[cfg(feature = "DomImplementation")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Document" , js_name = implementation ) ] + #[doc = "Getter for the `implementation` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/implementation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomImplementation`*"] + pub fn implementation(this: &Document) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Document" , js_name = URL ) ] + #[doc = "Getter for the `URL` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/URL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn url(this: &Document) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Document" , js_name = documentURI ) ] + #[doc = "Getter for the `documentURI` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/documentURI)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn document_uri(this: &Document) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = compatMode ) ] + #[doc = "Getter for the `compatMode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/compatMode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn compat_mode(this: &Document) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = characterSet ) ] + #[doc = "Getter for the `characterSet` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/characterSet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn character_set(this: &Document) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = charset ) ] + #[doc = "Getter for the `charset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/charset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn charset(this: &Document) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = inputEncoding ) ] + #[doc = "Getter for the `inputEncoding` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/inputEncoding)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn input_encoding(this: &Document) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = contentType ) ] + #[doc = "Getter for the `contentType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/contentType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn content_type(this: &Document) -> String; + #[cfg(feature = "DocumentType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = doctype ) ] + #[doc = "Getter for the `doctype` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/doctype)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentType`*"] + pub fn doctype(this: &Document) -> Option; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = documentElement ) ] + #[doc = "Getter for the `documentElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/documentElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] + pub fn document_element(this: &Document) -> Option; + #[cfg(feature = "Location")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = location ) ] + #[doc = "Getter for the `location` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/location)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Location`*"] + pub fn location(this: &Document) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = referrer ) ] + #[doc = "Getter for the `referrer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/referrer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn referrer(this: &Document) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = lastModified ) ] + #[doc = "Getter for the `lastModified` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/lastModified)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn last_modified(this: &Document) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = readyState ) ] + #[doc = "Getter for the `readyState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/readyState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ready_state(this: &Document) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = title ) ] + #[doc = "Getter for the `title` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/title)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn title(this: &Document) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = title ) ] + #[doc = "Setter for the `title` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/title)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_title(this: &Document, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = dir ) ] + #[doc = "Getter for the `dir` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/dir)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn dir(this: &Document) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = dir ) ] + #[doc = "Setter for the `dir` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/dir)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_dir(this: &Document, value: &str); + #[cfg(feature = "HtmlElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = body ) ] + #[doc = "Getter for the `body` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/body)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlElement`*"] + pub fn body(this: &Document) -> Option; + #[cfg(feature = "HtmlElement")] + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = body ) ] + #[doc = "Setter for the `body` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/body)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlElement`*"] + pub fn set_body(this: &Document, value: Option<&HtmlElement>); + #[cfg(feature = "HtmlHeadElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = head ) ] + #[doc = "Getter for the `head` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/head)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlHeadElement`*"] + pub fn head(this: &Document) -> Option; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = images ) ] + #[doc = "Getter for the `images` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/images)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] + pub fn images(this: &Document) -> HtmlCollection; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = embeds ) ] + #[doc = "Getter for the `embeds` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/embeds)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] + pub fn embeds(this: &Document) -> HtmlCollection; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = plugins ) ] + #[doc = "Getter for the `plugins` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/plugins)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] + pub fn plugins(this: &Document) -> HtmlCollection; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = links ) ] + #[doc = "Getter for the `links` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/links)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] + pub fn links(this: &Document) -> HtmlCollection; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = forms ) ] + #[doc = "Getter for the `forms` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/forms)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] + pub fn forms(this: &Document) -> HtmlCollection; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = scripts ) ] + #[doc = "Getter for the `scripts` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/scripts)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] + pub fn scripts(this: &Document) -> HtmlCollection; + #[cfg(feature = "Window")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = defaultView ) ] + #[doc = "Getter for the `defaultView` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/defaultView)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Window`*"] + pub fn default_view(this: &Document) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onreadystatechange ) ] + #[doc = "Getter for the `onreadystatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onreadystatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onreadystatechange(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onreadystatechange ) ] + #[doc = "Setter for the `onreadystatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onreadystatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onreadystatechange(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onbeforescriptexecute ) ] + #[doc = "Getter for the `onbeforescriptexecute` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onbeforescriptexecute)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onbeforescriptexecute(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onbeforescriptexecute ) ] + #[doc = "Setter for the `onbeforescriptexecute` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onbeforescriptexecute)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onbeforescriptexecute(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onafterscriptexecute ) ] + #[doc = "Getter for the `onafterscriptexecute` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onafterscriptexecute)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onafterscriptexecute(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onafterscriptexecute ) ] + #[doc = "Setter for the `onafterscriptexecute` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onafterscriptexecute)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onafterscriptexecute(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onselectionchange ) ] + #[doc = "Getter for the `onselectionchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectionchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onselectionchange(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onselectionchange ) ] + #[doc = "Setter for the `onselectionchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectionchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onselectionchange(this: &Document, value: Option<&::js_sys::Function>); + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = currentScript ) ] + #[doc = "Getter for the `currentScript` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/currentScript)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] + pub fn current_script(this: &Document) -> Option; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = anchors ) ] + #[doc = "Getter for the `anchors` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/anchors)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] + pub fn anchors(this: &Document) -> HtmlCollection; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = applets ) ] + #[doc = "Getter for the `applets` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/applets)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] + pub fn applets(this: &Document) -> HtmlCollection; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = fullscreen ) ] + #[doc = "Getter for the `fullscreen` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn fullscreen(this: &Document) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = fullscreenEnabled ) ] + #[doc = "Getter for the `fullscreenEnabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreenEnabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn fullscreen_enabled(this: &Document) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onfullscreenchange ) ] + #[doc = "Getter for the `onfullscreenchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfullscreenchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onfullscreenchange(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onfullscreenchange ) ] + #[doc = "Setter for the `onfullscreenchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfullscreenchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onfullscreenchange(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onfullscreenerror ) ] + #[doc = "Getter for the `onfullscreenerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfullscreenerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onfullscreenerror(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onfullscreenerror ) ] + #[doc = "Setter for the `onfullscreenerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfullscreenerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onfullscreenerror(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onpointerlockchange ) ] + #[doc = "Getter for the `onpointerlockchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerlockchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onpointerlockchange(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onpointerlockchange ) ] + #[doc = "Setter for the `onpointerlockchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerlockchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onpointerlockchange(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onpointerlockerror ) ] + #[doc = "Getter for the `onpointerlockerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerlockerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onpointerlockerror(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onpointerlockerror ) ] + #[doc = "Setter for the `onpointerlockerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerlockerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onpointerlockerror(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = hidden ) ] + #[doc = "Getter for the `hidden` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/hidden)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn hidden(this: &Document) -> bool; + #[cfg(feature = "VisibilityState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = visibilityState ) ] + #[doc = "Getter for the `visibilityState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilityState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `VisibilityState`*"] + pub fn visibility_state(this: &Document) -> VisibilityState; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onvisibilitychange ) ] + #[doc = "Getter for the `onvisibilitychange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onvisibilitychange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onvisibilitychange(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onvisibilitychange ) ] + #[doc = "Setter for the `onvisibilitychange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onvisibilitychange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onvisibilitychange(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = selectedStyleSheetSet ) ] + #[doc = "Getter for the `selectedStyleSheetSet` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/selectedStyleSheetSet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn selected_style_sheet_set(this: &Document) -> Option; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = selectedStyleSheetSet ) ] + #[doc = "Setter for the `selectedStyleSheetSet` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/selectedStyleSheetSet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_selected_style_sheet_set(this: &Document, value: Option<&str>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = lastStyleSheetSet ) ] + #[doc = "Getter for the `lastStyleSheetSet` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/lastStyleSheetSet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn last_style_sheet_set(this: &Document) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = preferredStyleSheetSet ) ] + #[doc = "Getter for the `preferredStyleSheetSet` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/preferredStyleSheetSet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn preferred_style_sheet_set(this: &Document) -> Option; + #[cfg(feature = "DomStringList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = styleSheetSets ) ] + #[doc = "Getter for the `styleSheetSets` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/styleSheetSets)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomStringList`*"] + pub fn style_sheet_sets(this: &Document) -> DomStringList; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = scrollingElement ) ] + #[doc = "Getter for the `scrollingElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/scrollingElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] + pub fn scrolling_element(this: &Document) -> Option; + #[cfg(feature = "DocumentTimeline")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = timeline ) ] + #[doc = "Getter for the `timeline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/timeline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentTimeline`*"] + pub fn timeline(this: &Document) -> DocumentTimeline; + #[cfg(feature = "SvgsvgElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = rootElement ) ] + #[doc = "Getter for the `rootElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/rootElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `SvgsvgElement`*"] + pub fn root_element(this: &Document) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = oncopy ) ] + #[doc = "Getter for the `oncopy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncopy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn oncopy(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = oncopy ) ] + #[doc = "Setter for the `oncopy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncopy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_oncopy(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = oncut ) ] + #[doc = "Getter for the `oncut` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncut)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn oncut(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = oncut ) ] + #[doc = "Setter for the `oncut` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncut)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_oncut(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onpaste ) ] + #[doc = "Getter for the `onpaste` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpaste)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onpaste(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onpaste ) ] + #[doc = "Setter for the `onpaste` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpaste)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onpaste(this: &Document, value: Option<&::js_sys::Function>); + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = activeElement ) ] + #[doc = "Getter for the `activeElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/activeElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] + pub fn active_element(this: &Document) -> Option; + #[cfg(feature = "StyleSheetList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = styleSheets ) ] + #[doc = "Getter for the `styleSheets` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/styleSheets)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `StyleSheetList`*"] + pub fn style_sheets(this: &Document) -> StyleSheetList; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = pointerLockElement ) ] + #[doc = "Getter for the `pointerLockElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/pointerLockElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] + pub fn pointer_lock_element(this: &Document) -> Option; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = fullscreenElement ) ] + #[doc = "Getter for the `fullscreenElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/fullscreenElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] + pub fn fullscreen_element(this: &Document) -> Option; + #[cfg(feature = "FontFaceSet")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = fonts ) ] + #[doc = "Getter for the `fonts` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/fonts)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `FontFaceSet`*"] + pub fn fonts(this: &Document) -> FontFaceSet; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onabort ) ] + #[doc = "Getter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onabort(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onabort ) ] + #[doc = "Setter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onabort(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onblur ) ] + #[doc = "Getter for the `onblur` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onblur)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onblur(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onblur ) ] + #[doc = "Setter for the `onblur` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onblur)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onblur(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onfocus ) ] + #[doc = "Getter for the `onfocus` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfocus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onfocus(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onfocus ) ] + #[doc = "Setter for the `onfocus` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onfocus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onfocus(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onauxclick ) ] + #[doc = "Getter for the `onauxclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onauxclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onauxclick(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onauxclick ) ] + #[doc = "Setter for the `onauxclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onauxclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onauxclick(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = oncanplay ) ] + #[doc = "Getter for the `oncanplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncanplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn oncanplay(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = oncanplay ) ] + #[doc = "Setter for the `oncanplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncanplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_oncanplay(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = oncanplaythrough ) ] + #[doc = "Getter for the `oncanplaythrough` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncanplaythrough)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn oncanplaythrough(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = oncanplaythrough ) ] + #[doc = "Setter for the `oncanplaythrough` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncanplaythrough)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_oncanplaythrough(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onchange ) ] + #[doc = "Getter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onchange(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onchange ) ] + #[doc = "Setter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onchange(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onclick ) ] + #[doc = "Getter for the `onclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onclick(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onclick ) ] + #[doc = "Setter for the `onclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onclick(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onclose ) ] + #[doc = "Getter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onclose(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onclose ) ] + #[doc = "Setter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onclose(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = oncontextmenu ) ] + #[doc = "Getter for the `oncontextmenu` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncontextmenu)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn oncontextmenu(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = oncontextmenu ) ] + #[doc = "Setter for the `oncontextmenu` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oncontextmenu)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_oncontextmenu(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ondblclick ) ] + #[doc = "Getter for the `ondblclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondblclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ondblclick(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ondblclick ) ] + #[doc = "Setter for the `ondblclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondblclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ondblclick(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ondrag ) ] + #[doc = "Getter for the `ondrag` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondrag)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ondrag(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ondrag ) ] + #[doc = "Setter for the `ondrag` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondrag)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ondrag(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ondragend ) ] + #[doc = "Getter for the `ondragend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ondragend(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ondragend ) ] + #[doc = "Setter for the `ondragend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ondragend(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ondragenter ) ] + #[doc = "Getter for the `ondragenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ondragenter(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ondragenter ) ] + #[doc = "Setter for the `ondragenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ondragenter(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ondragexit ) ] + #[doc = "Getter for the `ondragexit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragexit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ondragexit(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ondragexit ) ] + #[doc = "Setter for the `ondragexit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragexit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ondragexit(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ondragleave ) ] + #[doc = "Getter for the `ondragleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ondragleave(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ondragleave ) ] + #[doc = "Setter for the `ondragleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ondragleave(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ondragover ) ] + #[doc = "Getter for the `ondragover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ondragover(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ondragover ) ] + #[doc = "Setter for the `ondragover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ondragover(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ondragstart ) ] + #[doc = "Getter for the `ondragstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ondragstart(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ondragstart ) ] + #[doc = "Setter for the `ondragstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondragstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ondragstart(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ondrop ) ] + #[doc = "Getter for the `ondrop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondrop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ondrop(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ondrop ) ] + #[doc = "Setter for the `ondrop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondrop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ondrop(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ondurationchange ) ] + #[doc = "Getter for the `ondurationchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondurationchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ondurationchange(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ondurationchange ) ] + #[doc = "Setter for the `ondurationchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ondurationchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ondurationchange(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onemptied ) ] + #[doc = "Getter for the `onemptied` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onemptied)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onemptied(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onemptied ) ] + #[doc = "Setter for the `onemptied` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onemptied)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onemptied(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onended ) ] + #[doc = "Getter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onended(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onended ) ] + #[doc = "Setter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onended(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = oninput ) ] + #[doc = "Getter for the `oninput` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oninput)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn oninput(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = oninput ) ] + #[doc = "Setter for the `oninput` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oninput)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_oninput(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = oninvalid ) ] + #[doc = "Getter for the `oninvalid` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oninvalid)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn oninvalid(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = oninvalid ) ] + #[doc = "Setter for the `oninvalid` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/oninvalid)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_oninvalid(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onkeydown ) ] + #[doc = "Getter for the `onkeydown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeydown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onkeydown(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onkeydown ) ] + #[doc = "Setter for the `onkeydown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeydown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onkeydown(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onkeypress ) ] + #[doc = "Getter for the `onkeypress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeypress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onkeypress(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onkeypress ) ] + #[doc = "Setter for the `onkeypress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeypress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onkeypress(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onkeyup ) ] + #[doc = "Getter for the `onkeyup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeyup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onkeyup(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onkeyup ) ] + #[doc = "Setter for the `onkeyup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onkeyup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onkeyup(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onload ) ] + #[doc = "Getter for the `onload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onload(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onload ) ] + #[doc = "Setter for the `onload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onload(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onloadeddata ) ] + #[doc = "Getter for the `onloadeddata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadeddata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onloadeddata(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onloadeddata ) ] + #[doc = "Setter for the `onloadeddata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadeddata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onloadeddata(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onloadedmetadata ) ] + #[doc = "Getter for the `onloadedmetadata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadedmetadata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onloadedmetadata(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onloadedmetadata ) ] + #[doc = "Setter for the `onloadedmetadata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadedmetadata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onloadedmetadata(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onloadend ) ] + #[doc = "Getter for the `onloadend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onloadend(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onloadend ) ] + #[doc = "Setter for the `onloadend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onloadend(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onloadstart ) ] + #[doc = "Getter for the `onloadstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onloadstart(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onloadstart ) ] + #[doc = "Setter for the `onloadstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onloadstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onloadstart(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onmousedown ) ] + #[doc = "Getter for the `onmousedown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmousedown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onmousedown(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onmousedown ) ] + #[doc = "Setter for the `onmousedown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmousedown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onmousedown(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onmouseenter ) ] + #[doc = "Getter for the `onmouseenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onmouseenter(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onmouseenter ) ] + #[doc = "Setter for the `onmouseenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onmouseenter(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onmouseleave ) ] + #[doc = "Getter for the `onmouseleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onmouseleave(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onmouseleave ) ] + #[doc = "Setter for the `onmouseleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onmouseleave(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onmousemove ) ] + #[doc = "Getter for the `onmousemove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmousemove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onmousemove(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onmousemove ) ] + #[doc = "Setter for the `onmousemove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmousemove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onmousemove(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onmouseout ) ] + #[doc = "Getter for the `onmouseout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onmouseout(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onmouseout ) ] + #[doc = "Setter for the `onmouseout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onmouseout(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onmouseover ) ] + #[doc = "Getter for the `onmouseover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onmouseover(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onmouseover ) ] + #[doc = "Setter for the `onmouseover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onmouseover(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onmouseup ) ] + #[doc = "Getter for the `onmouseup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onmouseup(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onmouseup ) ] + #[doc = "Setter for the `onmouseup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onmouseup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onmouseup(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onwheel ) ] + #[doc = "Getter for the `onwheel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwheel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onwheel(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onwheel ) ] + #[doc = "Setter for the `onwheel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwheel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onwheel(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onpause ) ] + #[doc = "Getter for the `onpause` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpause)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onpause(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onpause ) ] + #[doc = "Setter for the `onpause` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpause)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onpause(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onplay ) ] + #[doc = "Getter for the `onplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onplay(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onplay ) ] + #[doc = "Setter for the `onplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onplay(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onplaying ) ] + #[doc = "Getter for the `onplaying` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onplaying)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onplaying(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onplaying ) ] + #[doc = "Setter for the `onplaying` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onplaying)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onplaying(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onprogress ) ] + #[doc = "Getter for the `onprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onprogress(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onprogress ) ] + #[doc = "Setter for the `onprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onprogress(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onratechange ) ] + #[doc = "Getter for the `onratechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onratechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onratechange(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onratechange ) ] + #[doc = "Setter for the `onratechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onratechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onratechange(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onreset ) ] + #[doc = "Getter for the `onreset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onreset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onreset(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onreset ) ] + #[doc = "Setter for the `onreset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onreset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onreset(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onresize ) ] + #[doc = "Getter for the `onresize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onresize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onresize(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onresize ) ] + #[doc = "Setter for the `onresize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onresize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onresize(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onscroll ) ] + #[doc = "Getter for the `onscroll` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onscroll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onscroll(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onscroll ) ] + #[doc = "Setter for the `onscroll` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onscroll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onscroll(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onseeked ) ] + #[doc = "Getter for the `onseeked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onseeked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onseeked(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onseeked ) ] + #[doc = "Setter for the `onseeked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onseeked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onseeked(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onseeking ) ] + #[doc = "Getter for the `onseeking` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onseeking)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onseeking(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onseeking ) ] + #[doc = "Setter for the `onseeking` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onseeking)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onseeking(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onselect ) ] + #[doc = "Getter for the `onselect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onselect(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onselect ) ] + #[doc = "Setter for the `onselect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onselect(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onshow ) ] + #[doc = "Getter for the `onshow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onshow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onshow(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onshow ) ] + #[doc = "Setter for the `onshow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onshow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onshow(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onstalled ) ] + #[doc = "Getter for the `onstalled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onstalled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onstalled(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onstalled ) ] + #[doc = "Setter for the `onstalled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onstalled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onstalled(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onsubmit ) ] + #[doc = "Getter for the `onsubmit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onsubmit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onsubmit(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onsubmit ) ] + #[doc = "Setter for the `onsubmit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onsubmit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onsubmit(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onsuspend ) ] + #[doc = "Getter for the `onsuspend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onsuspend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onsuspend(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onsuspend ) ] + #[doc = "Setter for the `onsuspend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onsuspend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onsuspend(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ontimeupdate ) ] + #[doc = "Getter for the `ontimeupdate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontimeupdate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ontimeupdate(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ontimeupdate ) ] + #[doc = "Setter for the `ontimeupdate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontimeupdate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ontimeupdate(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onvolumechange ) ] + #[doc = "Getter for the `onvolumechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onvolumechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onvolumechange(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onvolumechange ) ] + #[doc = "Setter for the `onvolumechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onvolumechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onvolumechange(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onwaiting ) ] + #[doc = "Getter for the `onwaiting` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwaiting)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onwaiting(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onwaiting ) ] + #[doc = "Setter for the `onwaiting` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwaiting)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onwaiting(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onselectstart ) ] + #[doc = "Getter for the `onselectstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onselectstart(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onselectstart ) ] + #[doc = "Setter for the `onselectstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onselectstart(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ontoggle ) ] + #[doc = "Getter for the `ontoggle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontoggle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ontoggle(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ontoggle ) ] + #[doc = "Setter for the `ontoggle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontoggle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ontoggle(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onpointercancel ) ] + #[doc = "Getter for the `onpointercancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointercancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onpointercancel(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onpointercancel ) ] + #[doc = "Setter for the `onpointercancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointercancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onpointercancel(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onpointerdown ) ] + #[doc = "Getter for the `onpointerdown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerdown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onpointerdown(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onpointerdown ) ] + #[doc = "Setter for the `onpointerdown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerdown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onpointerdown(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onpointerup ) ] + #[doc = "Getter for the `onpointerup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onpointerup(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onpointerup ) ] + #[doc = "Setter for the `onpointerup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onpointerup(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onpointermove ) ] + #[doc = "Getter for the `onpointermove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointermove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onpointermove(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onpointermove ) ] + #[doc = "Setter for the `onpointermove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointermove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onpointermove(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onpointerout ) ] + #[doc = "Getter for the `onpointerout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onpointerout(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onpointerout ) ] + #[doc = "Setter for the `onpointerout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onpointerout(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onpointerover ) ] + #[doc = "Getter for the `onpointerover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onpointerover(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onpointerover ) ] + #[doc = "Setter for the `onpointerover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onpointerover(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onpointerenter ) ] + #[doc = "Getter for the `onpointerenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onpointerenter(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onpointerenter ) ] + #[doc = "Setter for the `onpointerenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onpointerenter(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onpointerleave ) ] + #[doc = "Getter for the `onpointerleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onpointerleave(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onpointerleave ) ] + #[doc = "Setter for the `onpointerleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onpointerleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onpointerleave(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ongotpointercapture ) ] + #[doc = "Getter for the `ongotpointercapture` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ongotpointercapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ongotpointercapture(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ongotpointercapture ) ] + #[doc = "Setter for the `ongotpointercapture` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ongotpointercapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ongotpointercapture(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onlostpointercapture ) ] + #[doc = "Getter for the `onlostpointercapture` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onlostpointercapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onlostpointercapture(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onlostpointercapture ) ] + #[doc = "Setter for the `onlostpointercapture` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onlostpointercapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onlostpointercapture(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onanimationcancel ) ] + #[doc = "Getter for the `onanimationcancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationcancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onanimationcancel(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onanimationcancel ) ] + #[doc = "Setter for the `onanimationcancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationcancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onanimationcancel(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onanimationend ) ] + #[doc = "Getter for the `onanimationend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onanimationend(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onanimationend ) ] + #[doc = "Setter for the `onanimationend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onanimationend(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onanimationiteration ) ] + #[doc = "Getter for the `onanimationiteration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationiteration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onanimationiteration(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onanimationiteration ) ] + #[doc = "Setter for the `onanimationiteration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationiteration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onanimationiteration(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onanimationstart ) ] + #[doc = "Getter for the `onanimationstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onanimationstart(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onanimationstart ) ] + #[doc = "Setter for the `onanimationstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onanimationstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onanimationstart(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ontransitioncancel ) ] + #[doc = "Getter for the `ontransitioncancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitioncancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ontransitioncancel(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ontransitioncancel ) ] + #[doc = "Setter for the `ontransitioncancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitioncancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ontransitioncancel(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ontransitionend ) ] + #[doc = "Getter for the `ontransitionend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ontransitionend(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ontransitionend ) ] + #[doc = "Setter for the `ontransitionend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ontransitionend(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ontransitionrun ) ] + #[doc = "Getter for the `ontransitionrun` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionrun)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ontransitionrun(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ontransitionrun ) ] + #[doc = "Setter for the `ontransitionrun` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionrun)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ontransitionrun(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ontransitionstart ) ] + #[doc = "Getter for the `ontransitionstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ontransitionstart(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ontransitionstart ) ] + #[doc = "Setter for the `ontransitionstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontransitionstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ontransitionstart(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onwebkitanimationend ) ] + #[doc = "Getter for the `onwebkitanimationend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onwebkitanimationend(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onwebkitanimationend ) ] + #[doc = "Setter for the `onwebkitanimationend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onwebkitanimationend(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onwebkitanimationiteration ) ] + #[doc = "Getter for the `onwebkitanimationiteration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationiteration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onwebkitanimationiteration(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onwebkitanimationiteration ) ] + #[doc = "Setter for the `onwebkitanimationiteration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationiteration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onwebkitanimationiteration(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onwebkitanimationstart ) ] + #[doc = "Getter for the `onwebkitanimationstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onwebkitanimationstart(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onwebkitanimationstart ) ] + #[doc = "Setter for the `onwebkitanimationstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkitanimationstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onwebkitanimationstart(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onwebkittransitionend ) ] + #[doc = "Getter for the `onwebkittransitionend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkittransitionend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onwebkittransitionend(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onwebkittransitionend ) ] + #[doc = "Setter for the `onwebkittransitionend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onwebkittransitionend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onwebkittransitionend(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn onerror(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_onerror(this: &Document, value: Option<&::js_sys::Function>); + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = children ) ] + #[doc = "Getter for the `children` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/children)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] + pub fn children(this: &Document) -> HtmlCollection; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = firstElementChild ) ] + #[doc = "Getter for the `firstElementChild` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/firstElementChild)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] + pub fn first_element_child(this: &Document) -> Option; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = lastElementChild ) ] + #[doc = "Getter for the `lastElementChild` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/lastElementChild)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] + pub fn last_element_child(this: &Document) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = childElementCount ) ] + #[doc = "Getter for the `childElementCount` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/childElementCount)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn child_element_count(this: &Document) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ontouchstart ) ] + #[doc = "Getter for the `ontouchstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ontouchstart(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ontouchstart ) ] + #[doc = "Setter for the `ontouchstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ontouchstart(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ontouchend ) ] + #[doc = "Getter for the `ontouchend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ontouchend(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ontouchend ) ] + #[doc = "Setter for the `ontouchend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ontouchend(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ontouchmove ) ] + #[doc = "Getter for the `ontouchmove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchmove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ontouchmove(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ontouchmove ) ] + #[doc = "Setter for the `ontouchmove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchmove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ontouchmove(this: &Document, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Document" , js_name = ontouchcancel ) ] + #[doc = "Getter for the `ontouchcancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchcancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn ontouchcancel(this: &Document) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Document" , js_name = ontouchcancel ) ] + #[doc = "Setter for the `ontouchcancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/ontouchcancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn set_ontouchcancel(this: &Document, value: Option<&::js_sys::Function>); + #[wasm_bindgen(catch, constructor, js_class = "Document")] + #[doc = "The `new Document(..)` constructor, creating a new instance of `Document`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/Document)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn new() -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = adoptNode ) ] + #[doc = "The `adoptNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/adoptNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn adopt_node(this: &Document, node: &Node) -> Result; + #[cfg(feature = "CaretPosition")] + # [ wasm_bindgen ( method , structural , js_class = "Document" , js_name = caretPositionFromPoint ) ] + #[doc = "The `caretPositionFromPoint()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/caretPositionFromPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CaretPosition`, `Document`*"] + pub fn caret_position_from_point(this: &Document, x: f32, y: f32) -> Option; + #[cfg(feature = "Attr")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createAttribute ) ] + #[doc = "The `createAttribute()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createAttribute)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`, `Document`*"] + pub fn create_attribute(this: &Document, name: &str) -> Result; + #[cfg(feature = "Attr")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createAttributeNS ) ] + #[doc = "The `createAttributeNS()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createAttributeNS)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`, `Document`*"] + pub fn create_attribute_ns( + this: &Document, + namespace: Option<&str>, + name: &str, + ) -> Result; + #[cfg(feature = "CdataSection")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createCDATASection ) ] + #[doc = "The `createCDATASection()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createCDATASection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CdataSection`, `Document`*"] + pub fn create_cdata_section(this: &Document, data: &str) -> Result; + #[cfg(feature = "Comment")] + # [ wasm_bindgen ( method , structural , js_class = "Document" , js_name = createComment ) ] + #[doc = "The `createComment()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createComment)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Comment`, `Document`*"] + pub fn create_comment(this: &Document, data: &str) -> Comment; + #[cfg(feature = "DocumentFragment")] + # [ wasm_bindgen ( method , structural , js_class = "Document" , js_name = createDocumentFragment ) ] + #[doc = "The `createDocumentFragment()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createDocumentFragment)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentFragment`*"] + pub fn create_document_fragment(this: &Document) -> DocumentFragment; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createElement ) ] + #[doc = "The `createElement()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] + pub fn create_element(this: &Document, local_name: &str) -> Result; + #[cfg(all(feature = "Element", feature = "ElementCreationOptions",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createElement ) ] + #[doc = "The `createElement()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`, `ElementCreationOptions`*"] + pub fn create_element_with_element_creation_options( + this: &Document, + local_name: &str, + options: &ElementCreationOptions, + ) -> Result; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createElement ) ] + #[doc = "The `createElement()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] + pub fn create_element_with_str( + this: &Document, + local_name: &str, + options: &str, + ) -> Result; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createElementNS ) ] + #[doc = "The `createElementNS()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElementNS)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] + pub fn create_element_ns( + this: &Document, + namespace: Option<&str>, + qualified_name: &str, + ) -> Result; + #[cfg(all(feature = "Element", feature = "ElementCreationOptions",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createElementNS ) ] + #[doc = "The `createElementNS()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElementNS)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`, `ElementCreationOptions`*"] + pub fn create_element_ns_with_element_creation_options( + this: &Document, + namespace: Option<&str>, + qualified_name: &str, + options: &ElementCreationOptions, + ) -> Result; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createElementNS ) ] + #[doc = "The `createElementNS()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createElementNS)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] + pub fn create_element_ns_with_str( + this: &Document, + namespace: Option<&str>, + qualified_name: &str, + options: &str, + ) -> Result; + #[cfg(feature = "Event")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createEvent ) ] + #[doc = "The `createEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Event`*"] + pub fn create_event(this: &Document, interface: &str) -> Result; + #[cfg(feature = "NodeIterator")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createNodeIterator ) ] + #[doc = "The `createNodeIterator()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createNodeIterator)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeIterator`*"] + pub fn create_node_iterator(this: &Document, root: &Node) -> Result; + #[cfg(feature = "NodeIterator")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createNodeIterator ) ] + #[doc = "The `createNodeIterator()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createNodeIterator)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeIterator`*"] + pub fn create_node_iterator_with_what_to_show( + this: &Document, + root: &Node, + what_to_show: u32, + ) -> Result; + #[cfg(all(feature = "NodeFilter", feature = "NodeIterator",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createNodeIterator ) ] + #[doc = "The `createNodeIterator()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createNodeIterator)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeFilter`, `NodeIterator`*"] + pub fn create_node_iterator_with_what_to_show_and_filter( + this: &Document, + root: &Node, + what_to_show: u32, + filter: Option<&NodeFilter>, + ) -> Result; + #[cfg(feature = "ProcessingInstruction")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createProcessingInstruction ) ] + #[doc = "The `createProcessingInstruction()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createProcessingInstruction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `ProcessingInstruction`*"] + pub fn create_processing_instruction( + this: &Document, + target: &str, + data: &str, + ) -> Result; + #[cfg(feature = "Range")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createRange ) ] + #[doc = "The `createRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Range`*"] + pub fn create_range(this: &Document) -> Result; + #[cfg(feature = "Text")] + # [ wasm_bindgen ( method , structural , js_class = "Document" , js_name = createTextNode ) ] + #[doc = "The `createTextNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTextNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Text`*"] + pub fn create_text_node(this: &Document, data: &str) -> Text; + #[cfg(feature = "TreeWalker")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createTreeWalker ) ] + #[doc = "The `createTreeWalker()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `TreeWalker`*"] + pub fn create_tree_walker(this: &Document, root: &Node) -> Result; + #[cfg(feature = "TreeWalker")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createTreeWalker ) ] + #[doc = "The `createTreeWalker()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `TreeWalker`*"] + pub fn create_tree_walker_with_what_to_show( + this: &Document, + root: &Node, + what_to_show: u32, + ) -> Result; + #[cfg(all(feature = "NodeFilter", feature = "TreeWalker",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createTreeWalker ) ] + #[doc = "The `createTreeWalker()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createTreeWalker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeFilter`, `TreeWalker`*"] + pub fn create_tree_walker_with_what_to_show_and_filter( + this: &Document, + root: &Node, + what_to_show: u32, + filter: Option<&NodeFilter>, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "Document" , js_name = enableStyleSheetsForSet ) ] + #[doc = "The `enableStyleSheetsForSet()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/enableStyleSheetsForSet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn enable_style_sheets_for_set(this: &Document, name: Option<&str>); + # [ wasm_bindgen ( method , structural , js_class = "Document" , js_name = exitFullscreen ) ] + #[doc = "The `exitFullscreen()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/exitFullscreen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn exit_fullscreen(this: &Document); + # [ wasm_bindgen ( method , structural , js_class = "Document" , js_name = exitPointerLock ) ] + #[doc = "The `exitPointerLock()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/exitPointerLock)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn exit_pointer_lock(this: &Document); + # [ wasm_bindgen ( method , structural , js_class = "Document" , js_name = getAnimations ) ] + #[doc = "The `getAnimations()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getAnimations)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn get_animations(this: &Document) -> ::js_sys::Array; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( method , structural , js_class = "Document" , js_name = getElementById ) ] + #[doc = "The `getElementById()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] + pub fn get_element_by_id(this: &Document, element_id: &str) -> Option; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( method , structural , js_class = "Document" , js_name = getElementsByClassName ) ] + #[doc = "The `getElementsByClassName()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] + pub fn get_elements_by_class_name(this: &Document, class_names: &str) -> HtmlCollection; + #[cfg(feature = "NodeList")] + # [ wasm_bindgen ( method , structural , js_class = "Document" , js_name = getElementsByName ) ] + #[doc = "The `getElementsByName()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeList`*"] + pub fn get_elements_by_name(this: &Document, element_name: &str) -> NodeList; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( method , structural , js_class = "Document" , js_name = getElementsByTagName ) ] + #[doc = "The `getElementsByTagName()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByTagName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] + pub fn get_elements_by_tag_name(this: &Document, local_name: &str) -> HtmlCollection; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = getElementsByTagNameNS ) ] + #[doc = "The `getElementsByTagNameNS()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByTagNameNS)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlCollection`*"] + pub fn get_elements_by_tag_name_ns( + this: &Document, + namespace: Option<&str>, + local_name: &str, + ) -> Result; + #[cfg(feature = "Selection")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = getSelection ) ] + #[doc = "The `getSelection()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getSelection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Selection`*"] + pub fn get_selection(this: &Document) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = hasFocus ) ] + #[doc = "The `hasFocus()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/hasFocus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn has_focus(this: &Document) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = importNode ) ] + #[doc = "The `importNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/importNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn import_node(this: &Document, node: &Node) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = importNode ) ] + #[doc = "The `importNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/importNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn import_node_with_deep(this: &Document, node: &Node, deep: bool) + -> Result; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = querySelector ) ] + #[doc = "The `querySelector()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] + pub fn query_selector(this: &Document, selectors: &str) -> Result, JsValue>; + #[cfg(feature = "NodeList")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = querySelectorAll ) ] + #[doc = "The `querySelectorAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `NodeList`*"] + pub fn query_selector_all(this: &Document, selectors: &str) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "Document" , js_name = releaseCapture ) ] + #[doc = "The `releaseCapture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/releaseCapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn release_capture(this: &Document); + #[cfg(feature = "Element")] + # [ wasm_bindgen ( method , structural , js_class = "Document" , js_name = elementFromPoint ) ] + #[doc = "The `elementFromPoint()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/elementFromPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Element`*"] + pub fn element_from_point(this: &Document, x: f32, y: f32) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "Document" , js_name = elementsFromPoint ) ] + #[doc = "The `elementsFromPoint()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/elementsFromPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn elements_from_point(this: &Document, x: f32, y: f32) -> ::js_sys::Array; + #[cfg(all(feature = "DomPoint", feature = "DomPointInit", feature = "Text",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomPoint`, `DomPointInit`, `Text`*"] + pub fn convert_point_from_node_with_text( + this: &Document, + point: &DomPointInit, + from: &Text, + ) -> Result; + #[cfg(all(feature = "DomPoint", feature = "DomPointInit", feature = "Element",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomPoint`, `DomPointInit`, `Element`*"] + pub fn convert_point_from_node_with_element( + this: &Document, + point: &DomPointInit, + from: &Element, + ) -> Result; + #[cfg(all(feature = "DomPoint", feature = "DomPointInit",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomPoint`, `DomPointInit`*"] + pub fn convert_point_from_node_with_document( + this: &Document, + point: &DomPointInit, + from: &Document, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomPoint", + feature = "DomPointInit", + feature = "Text", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomPoint`, `DomPointInit`, `Text`*"] + pub fn convert_point_from_node_with_text_and_options( + this: &Document, + point: &DomPointInit, + from: &Text, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomPoint", + feature = "DomPointInit", + feature = "Element", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomPoint`, `DomPointInit`, `Element`*"] + pub fn convert_point_from_node_with_element_and_options( + this: &Document, + point: &DomPointInit, + from: &Element, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomPoint", + feature = "DomPointInit", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomPoint`, `DomPointInit`*"] + pub fn convert_point_from_node_with_document_and_options( + this: &Document, + point: &DomPointInit, + from: &Document, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all(feature = "DomQuad", feature = "Text",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `Text`*"] + pub fn convert_quad_from_node_with_text( + this: &Document, + quad: &DomQuad, + from: &Text, + ) -> Result; + #[cfg(all(feature = "DomQuad", feature = "Element",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `Element`*"] + pub fn convert_quad_from_node_with_element( + this: &Document, + quad: &DomQuad, + from: &Element, + ) -> Result; + #[cfg(feature = "DomQuad")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`*"] + pub fn convert_quad_from_node_with_document( + this: &Document, + quad: &DomQuad, + from: &Document, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomQuad", + feature = "Text", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `Text`*"] + pub fn convert_quad_from_node_with_text_and_options( + this: &Document, + quad: &DomQuad, + from: &Text, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomQuad", + feature = "Element", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `Element`*"] + pub fn convert_quad_from_node_with_element_and_options( + this: &Document, + quad: &DomQuad, + from: &Element, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all(feature = "ConvertCoordinateOptions", feature = "DomQuad",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`*"] + pub fn convert_quad_from_node_with_document_and_options( + this: &Document, + quad: &DomQuad, + from: &Document, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly", feature = "Text",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `DomRectReadOnly`, `Text`*"] + pub fn convert_rect_from_node_with_text( + this: &Document, + rect: &DomRectReadOnly, + from: &Text, + ) -> Result; + #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly", feature = "Element",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `DomRectReadOnly`, `Element`*"] + pub fn convert_rect_from_node_with_element( + this: &Document, + rect: &DomRectReadOnly, + from: &Element, + ) -> Result; + #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `DomRectReadOnly`*"] + pub fn convert_rect_from_node_with_document( + this: &Document, + rect: &DomRectReadOnly, + from: &Document, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomQuad", + feature = "DomRectReadOnly", + feature = "Text", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `DomRectReadOnly`, `Text`*"] + pub fn convert_rect_from_node_with_text_and_options( + this: &Document, + rect: &DomRectReadOnly, + from: &Text, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomQuad", + feature = "DomRectReadOnly", + feature = "Element", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `DomRectReadOnly`, `Element`*"] + pub fn convert_rect_from_node_with_element_and_options( + this: &Document, + rect: &DomRectReadOnly, + from: &Element, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomQuad", + feature = "DomRectReadOnly", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `DomRectReadOnly`*"] + pub fn convert_rect_from_node_with_document_and_options( + this: &Document, + rect: &DomRectReadOnly, + from: &Document, + options: &ConvertCoordinateOptions, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = getBoxQuads ) ] + #[doc = "The `getBoxQuads()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getBoxQuads)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn get_box_quads(this: &Document) -> Result<::js_sys::Array, JsValue>; + #[cfg(feature = "BoxQuadOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = getBoxQuads ) ] + #[doc = "The `getBoxQuads()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/getBoxQuads)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`, `Document`*"] + pub fn get_box_quads_with_options( + this: &Document, + options: &BoxQuadOptions, + ) -> Result<::js_sys::Array, JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_node(this: &Document, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_node_0(this: &Document) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_node_1(this: &Document, nodes_1: &Node) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_node_2( + this: &Document, + nodes_1: &Node, + nodes_2: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_node_3( + this: &Document, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_node_4( + this: &Document, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_node_5( + this: &Document, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_node_6( + this: &Document, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_node_7( + this: &Document, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + nodes_7: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_str(this: &Document, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_str_0(this: &Document) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_str_1(this: &Document, nodes_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_str_2(this: &Document, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_str_3( + this: &Document, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_str_4( + this: &Document, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_str_5( + this: &Document, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_str_6( + this: &Document, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn append_with_str_7( + this: &Document, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + nodes_7: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_node(this: &Document, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_node_0(this: &Document) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_node_1(this: &Document, nodes_1: &Node) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_node_2( + this: &Document, + nodes_1: &Node, + nodes_2: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_node_3( + this: &Document, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_node_4( + this: &Document, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_node_5( + this: &Document, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_node_6( + this: &Document, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_node_7( + this: &Document, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + nodes_7: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_str(this: &Document, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_str_0(this: &Document) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_str_1(this: &Document, nodes_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_str_2(this: &Document, nodes_1: &str, nodes_2: &str) + -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_str_3( + this: &Document, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_str_4( + this: &Document, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_str_5( + this: &Document, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_str_6( + this: &Document, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn prepend_with_str_7( + this: &Document, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + nodes_7: &str, + ) -> Result<(), JsValue>; + #[cfg(feature = "XPathExpression")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createExpression ) ] + #[doc = "The `createExpression()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createExpression)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathExpression`*"] + pub fn create_expression(this: &Document, expression: &str) + -> Result; + #[cfg(feature = "XPathExpression")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createExpression ) ] + #[doc = "The `createExpression()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createExpression)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathExpression`*"] + pub fn create_expression_with_opt_callback( + this: &Document, + expression: &str, + resolver: Option<&::js_sys::Function>, + ) -> Result; + #[cfg(all(feature = "XPathExpression", feature = "XPathNsResolver",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = createExpression ) ] + #[doc = "The `createExpression()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createExpression)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathExpression`, `XPathNsResolver`*"] + pub fn create_expression_with_opt_x_path_ns_resolver( + this: &Document, + expression: &str, + resolver: Option<&XPathNsResolver>, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "Document" , js_name = createNSResolver ) ] + #[doc = "The `createNSResolver()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/createNSResolver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`*"] + pub fn create_ns_resolver(this: &Document, node_resolver: &Node) -> Node; + #[cfg(feature = "XPathResult")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = evaluate ) ] + #[doc = "The `evaluate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathResult`*"] + pub fn evaluate( + this: &Document, + expression: &str, + context_node: &Node, + ) -> Result; + #[cfg(feature = "XPathResult")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = evaluate ) ] + #[doc = "The `evaluate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathResult`*"] + pub fn evaluate_with_opt_callback( + this: &Document, + expression: &str, + context_node: &Node, + resolver: Option<&::js_sys::Function>, + ) -> Result; + #[cfg(all(feature = "XPathNsResolver", feature = "XPathResult",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = evaluate ) ] + #[doc = "The `evaluate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathNsResolver`, `XPathResult`*"] + pub fn evaluate_with_opt_x_path_ns_resolver( + this: &Document, + expression: &str, + context_node: &Node, + resolver: Option<&XPathNsResolver>, + ) -> Result; + #[cfg(feature = "XPathResult")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = evaluate ) ] + #[doc = "The `evaluate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathResult`*"] + pub fn evaluate_with_opt_callback_and_type( + this: &Document, + expression: &str, + context_node: &Node, + resolver: Option<&::js_sys::Function>, + type_: u16, + ) -> Result; + #[cfg(all(feature = "XPathNsResolver", feature = "XPathResult",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = evaluate ) ] + #[doc = "The `evaluate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathNsResolver`, `XPathResult`*"] + pub fn evaluate_with_opt_x_path_ns_resolver_and_type( + this: &Document, + expression: &str, + context_node: &Node, + resolver: Option<&XPathNsResolver>, + type_: u16, + ) -> Result; + #[cfg(feature = "XPathResult")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = evaluate ) ] + #[doc = "The `evaluate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathResult`*"] + pub fn evaluate_with_opt_callback_and_type_and_result( + this: &Document, + expression: &str, + context_node: &Node, + resolver: Option<&::js_sys::Function>, + type_: u16, + result: Option<&::js_sys::Object>, + ) -> Result; + #[cfg(all(feature = "XPathNsResolver", feature = "XPathResult",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Document" , js_name = evaluate ) ] + #[doc = "The `evaluate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Document/evaluate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `XPathNsResolver`, `XPathResult`*"] + pub fn evaluate_with_opt_x_path_ns_resolver_and_type_and_result( + this: &Document, + expression: &str, + context_node: &Node, + resolver: Option<&XPathNsResolver>, + type_: u16, + result: Option<&::js_sys::Object>, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_DocumentFragment.rs b/crates/web-sys/src/features/gen_DocumentFragment.rs new file mode 100644 index 00000000..151af101 --- /dev/null +++ b/crates/web-sys/src/features/gen_DocumentFragment.rs @@ -0,0 +1,500 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = DocumentFragment , typescript_type = "DocumentFragment" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DocumentFragment` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub type DocumentFragment; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DocumentFragment" , js_name = children ) ] + #[doc = "Getter for the `children` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/children)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `HtmlCollection`*"] + pub fn children(this: &DocumentFragment) -> HtmlCollection; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DocumentFragment" , js_name = firstElementChild ) ] + #[doc = "Getter for the `firstElementChild` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/firstElementChild)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Element`*"] + pub fn first_element_child(this: &DocumentFragment) -> Option; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DocumentFragment" , js_name = lastElementChild ) ] + #[doc = "Getter for the `lastElementChild` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/lastElementChild)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Element`*"] + pub fn last_element_child(this: &DocumentFragment) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "DocumentFragment" , js_name = childElementCount ) ] + #[doc = "Getter for the `childElementCount` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/childElementCount)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn child_element_count(this: &DocumentFragment) -> u32; + #[wasm_bindgen(catch, constructor, js_class = "DocumentFragment")] + #[doc = "The `new DocumentFragment(..)` constructor, creating a new instance of `DocumentFragment`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/DocumentFragment)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn new() -> Result; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( method , structural , js_class = "DocumentFragment" , js_name = getElementById ) ] + #[doc = "The `getElementById()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/getElementById)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Element`*"] + pub fn get_element_by_id(this: &DocumentFragment, element_id: &str) -> Option; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = querySelector ) ] + #[doc = "The `querySelector()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/querySelector)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Element`*"] + pub fn query_selector( + this: &DocumentFragment, + selectors: &str, + ) -> Result, JsValue>; + #[cfg(feature = "NodeList")] + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = querySelectorAll ) ] + #[doc = "The `querySelectorAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/querySelectorAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `NodeList`*"] + pub fn query_selector_all( + this: &DocumentFragment, + selectors: &str, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_node( + this: &DocumentFragment, + nodes: &::js_sys::Array, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_node_0(this: &DocumentFragment) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_node_1(this: &DocumentFragment, nodes_1: &Node) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_node_2( + this: &DocumentFragment, + nodes_1: &Node, + nodes_2: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_node_3( + this: &DocumentFragment, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_node_4( + this: &DocumentFragment, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_node_5( + this: &DocumentFragment, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_node_6( + this: &DocumentFragment, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_node_7( + this: &DocumentFragment, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + nodes_7: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_str(this: &DocumentFragment, nodes: &::js_sys::Array) + -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_str_0(this: &DocumentFragment) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_str_1(this: &DocumentFragment, nodes_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_str_2( + this: &DocumentFragment, + nodes_1: &str, + nodes_2: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_str_3( + this: &DocumentFragment, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_str_4( + this: &DocumentFragment, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_str_5( + this: &DocumentFragment, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_str_6( + this: &DocumentFragment, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn append_with_str_7( + this: &DocumentFragment, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + nodes_7: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_node( + this: &DocumentFragment, + nodes: &::js_sys::Array, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_node_0(this: &DocumentFragment) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_node_1(this: &DocumentFragment, nodes_1: &Node) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_node_2( + this: &DocumentFragment, + nodes_1: &Node, + nodes_2: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_node_3( + this: &DocumentFragment, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_node_4( + this: &DocumentFragment, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_node_5( + this: &DocumentFragment, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_node_6( + this: &DocumentFragment, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_node_7( + this: &DocumentFragment, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + nodes_7: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_str( + this: &DocumentFragment, + nodes: &::js_sys::Array, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_str_0(this: &DocumentFragment) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_str_1(this: &DocumentFragment, nodes_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_str_2( + this: &DocumentFragment, + nodes_1: &str, + nodes_2: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_str_3( + this: &DocumentFragment, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_str_4( + this: &DocumentFragment, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_str_5( + this: &DocumentFragment, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_str_6( + this: &DocumentFragment, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentFragment" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`*"] + pub fn prepend_with_str_7( + this: &DocumentFragment, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + nodes_7: &str, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_DocumentTimeline.rs b/crates/web-sys/src/features/gen_DocumentTimeline.rs new file mode 100644 index 00000000..f34c7431 --- /dev/null +++ b/crates/web-sys/src/features/gen_DocumentTimeline.rs @@ -0,0 +1,30 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AnimationTimeline , extends = :: js_sys :: Object , js_name = DocumentTimeline , typescript_type = "DocumentTimeline" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DocumentTimeline` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentTimeline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentTimeline`*"] + pub type DocumentTimeline; + #[wasm_bindgen(catch, constructor, js_class = "DocumentTimeline")] + #[doc = "The `new DocumentTimeline(..)` constructor, creating a new instance of `DocumentTimeline`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentTimeline/DocumentTimeline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentTimeline`*"] + pub fn new() -> Result; + #[cfg(feature = "DocumentTimelineOptions")] + #[wasm_bindgen(catch, constructor, js_class = "DocumentTimeline")] + #[doc = "The `new DocumentTimeline(..)` constructor, creating a new instance of `DocumentTimeline`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentTimeline/DocumentTimeline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentTimeline`, `DocumentTimelineOptions`*"] + pub fn new_with_options(options: &DocumentTimelineOptions) + -> Result; +} diff --git a/crates/web-sys/src/features/gen_DocumentTimelineOptions.rs b/crates/web-sys/src/features/gen_DocumentTimelineOptions.rs new file mode 100644 index 00000000..b619f321 --- /dev/null +++ b/crates/web-sys/src/features/gen_DocumentTimelineOptions.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DocumentTimelineOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DocumentTimelineOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentTimelineOptions`*"] + pub type DocumentTimelineOptions; +} +impl DocumentTimelineOptions { + #[doc = "Construct a new `DocumentTimelineOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentTimelineOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `originTime` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentTimelineOptions`*"] + pub fn origin_time(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("originTime"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DocumentType.rs b/crates/web-sys/src/features/gen_DocumentType.rs new file mode 100644 index 00000000..252298d8 --- /dev/null +++ b/crates/web-sys/src/features/gen_DocumentType.rs @@ -0,0 +1,660 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = DocumentType , typescript_type = "DocumentType" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DocumentType` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub type DocumentType; + # [ wasm_bindgen ( structural , method , getter , js_class = "DocumentType" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn name(this: &DocumentType) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "DocumentType" , js_name = publicId ) ] + #[doc = "Getter for the `publicId` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/publicId)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn public_id(this: &DocumentType) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "DocumentType" , js_name = systemId ) ] + #[doc = "Getter for the `systemId` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/systemId)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn system_id(this: &DocumentType) -> String; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_node(this: &DocumentType, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_node_0(this: &DocumentType) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_node_1(this: &DocumentType, nodes_1: &Node) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_node_2( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_node_3( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_node_4( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_node_5( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_node_6( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_node_7( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + nodes_7: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_str(this: &DocumentType, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_str_0(this: &DocumentType) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_str_1(this: &DocumentType, nodes_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_str_2( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_str_3( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_str_4( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_str_5( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_str_6( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn after_with_str_7( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + nodes_7: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_node(this: &DocumentType, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_node_0(this: &DocumentType) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_node_1(this: &DocumentType, nodes_1: &Node) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_node_2( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_node_3( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_node_4( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_node_5( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_node_6( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_node_7( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + nodes_7: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_str(this: &DocumentType, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_str_0(this: &DocumentType) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_str_1(this: &DocumentType, nodes_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_str_2( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_str_3( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_str_4( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_str_5( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_str_6( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn before_with_str_7( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + nodes_7: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "DocumentType" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn remove(this: &DocumentType); + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_node( + this: &DocumentType, + nodes: &::js_sys::Array, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_node_0(this: &DocumentType) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_node_1(this: &DocumentType, nodes_1: &Node) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_node_2( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_node_3( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_node_4( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_node_5( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_node_6( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_node_7( + this: &DocumentType, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + nodes_7: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_str( + this: &DocumentType, + nodes: &::js_sys::Array, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_str_0(this: &DocumentType) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_str_1(this: &DocumentType, nodes_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_str_2( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_str_3( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_str_4( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_str_5( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_str_6( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DocumentType" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DocumentType/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`*"] + pub fn replace_with_with_str_7( + this: &DocumentType, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + nodes_7: &str, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_DomError.rs b/crates/web-sys/src/features/gen_DomError.rs new file mode 100644 index 00000000..a4eeb43b --- /dev/null +++ b/crates/web-sys/src/features/gen_DomError.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DOMError , typescript_type = "DOMError" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomError` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomError`*"] + pub type DomError; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMError" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMError/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomError`*"] + pub fn name(this: &DomError) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMError" , js_name = message ) ] + #[doc = "Getter for the `message` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMError/message)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomError`*"] + pub fn message(this: &DomError) -> String; + #[wasm_bindgen(catch, constructor, js_class = "DOMError")] + #[doc = "The `new DomError(..)` constructor, creating a new instance of `DomError`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMError/DOMError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomError`*"] + pub fn new(name: &str) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMError")] + #[doc = "The `new DomError(..)` constructor, creating a new instance of `DomError`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMError/DOMError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomError`*"] + pub fn new_with_message(name: &str, message: &str) -> Result; +} diff --git a/crates/web-sys/src/features/gen_DomException.rs b/crates/web-sys/src/features/gen_DomException.rs new file mode 100644 index 00000000..f5341f96 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomException.rs @@ -0,0 +1,200 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DOMException , typescript_type = "DOMException" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomException` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub type DomException; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMException" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub fn name(this: &DomException) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMException" , js_name = message ) ] + #[doc = "Getter for the `message` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/message)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub fn message(this: &DomException) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMException" , js_name = code ) ] + #[doc = "Getter for the `code` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/code)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub fn code(this: &DomException) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMException" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub fn result(this: &DomException) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMException" , js_name = filename ) ] + #[doc = "Getter for the `filename` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/filename)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub fn filename(this: &DomException) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMException" , js_name = lineNumber ) ] + #[doc = "Getter for the `lineNumber` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/lineNumber)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub fn line_number(this: &DomException) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMException" , js_name = columnNumber ) ] + #[doc = "Getter for the `columnNumber` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/columnNumber)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub fn column_number(this: &DomException) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMException" , js_name = data ) ] + #[doc = "Getter for the `data` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/data)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub fn data(this: &DomException) -> Option<::js_sys::Object>; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMException" , js_name = stack ) ] + #[doc = "Getter for the `stack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/stack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub fn stack(this: &DomException) -> String; + #[wasm_bindgen(catch, constructor, js_class = "DOMException")] + #[doc = "The `new DomException(..)` constructor, creating a new instance of `DomException`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/DOMException)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMException")] + #[doc = "The `new DomException(..)` constructor, creating a new instance of `DomException`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/DOMException)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub fn new_with_message(message: &str) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMException")] + #[doc = "The `new DomException(..)` constructor, creating a new instance of `DomException`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMException/DOMException)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub fn new_with_message_and_name(message: &str, name: &str) -> Result; +} +impl DomException { + #[doc = "The `DOMException.INDEX_SIZE_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const INDEX_SIZE_ERR: u16 = 1u64 as u16; + #[doc = "The `DOMException.DOMSTRING_SIZE_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const DOMSTRING_SIZE_ERR: u16 = 2u64 as u16; + #[doc = "The `DOMException.HIERARCHY_REQUEST_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const HIERARCHY_REQUEST_ERR: u16 = 3u64 as u16; + #[doc = "The `DOMException.WRONG_DOCUMENT_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const WRONG_DOCUMENT_ERR: u16 = 4u64 as u16; + #[doc = "The `DOMException.INVALID_CHARACTER_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const INVALID_CHARACTER_ERR: u16 = 5u64 as u16; + #[doc = "The `DOMException.NO_DATA_ALLOWED_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const NO_DATA_ALLOWED_ERR: u16 = 6u64 as u16; + #[doc = "The `DOMException.NO_MODIFICATION_ALLOWED_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const NO_MODIFICATION_ALLOWED_ERR: u16 = 7u64 as u16; + #[doc = "The `DOMException.NOT_FOUND_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const NOT_FOUND_ERR: u16 = 8u64 as u16; + #[doc = "The `DOMException.NOT_SUPPORTED_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const NOT_SUPPORTED_ERR: u16 = 9u64 as u16; + #[doc = "The `DOMException.INUSE_ATTRIBUTE_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const INUSE_ATTRIBUTE_ERR: u16 = 10u64 as u16; + #[doc = "The `DOMException.INVALID_STATE_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const INVALID_STATE_ERR: u16 = 11u64 as u16; + #[doc = "The `DOMException.SYNTAX_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const SYNTAX_ERR: u16 = 12u64 as u16; + #[doc = "The `DOMException.INVALID_MODIFICATION_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const INVALID_MODIFICATION_ERR: u16 = 13u64 as u16; + #[doc = "The `DOMException.NAMESPACE_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const NAMESPACE_ERR: u16 = 14u64 as u16; + #[doc = "The `DOMException.INVALID_ACCESS_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const INVALID_ACCESS_ERR: u16 = 15u64 as u16; + #[doc = "The `DOMException.VALIDATION_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const VALIDATION_ERR: u16 = 16u64 as u16; + #[doc = "The `DOMException.TYPE_MISMATCH_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const TYPE_MISMATCH_ERR: u16 = 17u64 as u16; + #[doc = "The `DOMException.SECURITY_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const SECURITY_ERR: u16 = 18u64 as u16; + #[doc = "The `DOMException.NETWORK_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const NETWORK_ERR: u16 = 19u64 as u16; + #[doc = "The `DOMException.ABORT_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const ABORT_ERR: u16 = 20u64 as u16; + #[doc = "The `DOMException.URL_MISMATCH_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const URL_MISMATCH_ERR: u16 = 21u64 as u16; + #[doc = "The `DOMException.QUOTA_EXCEEDED_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const QUOTA_EXCEEDED_ERR: u16 = 22u64 as u16; + #[doc = "The `DOMException.TIMEOUT_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const TIMEOUT_ERR: u16 = 23u64 as u16; + #[doc = "The `DOMException.INVALID_NODE_TYPE_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const INVALID_NODE_TYPE_ERR: u16 = 24u64 as u16; + #[doc = "The `DOMException.DATA_CLONE_ERR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`*"] + pub const DATA_CLONE_ERR: u16 = 25u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_DomImplementation.rs b/crates/web-sys/src/features/gen_DomImplementation.rs new file mode 100644 index 00000000..06f03e98 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomImplementation.rs @@ -0,0 +1,78 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DOMImplementation , typescript_type = "DOMImplementation" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomImplementation` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomImplementation`*"] + pub type DomImplementation; + #[cfg(feature = "Document")] + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMImplementation" , js_name = createDocument ) ] + #[doc = "The `createDocument()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocument)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomImplementation`*"] + pub fn create_document( + this: &DomImplementation, + namespace: Option<&str>, + qualified_name: &str, + ) -> Result; + #[cfg(all(feature = "Document", feature = "DocumentType",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMImplementation" , js_name = createDocument ) ] + #[doc = "The `createDocument()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocument)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentType`, `DomImplementation`*"] + pub fn create_document_with_doctype( + this: &DomImplementation, + namespace: Option<&str>, + qualified_name: &str, + doctype: Option<&DocumentType>, + ) -> Result; + #[cfg(feature = "DocumentType")] + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMImplementation" , js_name = createDocumentType ) ] + #[doc = "The `createDocumentType()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createDocumentType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentType`, `DomImplementation`*"] + pub fn create_document_type( + this: &DomImplementation, + qualified_name: &str, + public_id: &str, + system_id: &str, + ) -> Result; + #[cfg(feature = "Document")] + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMImplementation" , js_name = createHTMLDocument ) ] + #[doc = "The `createHTMLDocument()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createHTMLDocument)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomImplementation`*"] + pub fn create_html_document(this: &DomImplementation) -> Result; + #[cfg(feature = "Document")] + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMImplementation" , js_name = createHTMLDocument ) ] + #[doc = "The `createHTMLDocument()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/createHTMLDocument)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomImplementation`*"] + pub fn create_html_document_with_title( + this: &DomImplementation, + title: &str, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "DOMImplementation" , js_name = hasFeature ) ] + #[doc = "The `hasFeature()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/hasFeature)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomImplementation`*"] + pub fn has_feature(this: &DomImplementation) -> bool; +} diff --git a/crates/web-sys/src/features/gen_DomMatrix.rs b/crates/web-sys/src/features/gen_DomMatrix.rs new file mode 100644 index 00000000..c57eaca1 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomMatrix.rs @@ -0,0 +1,605 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = DomMatrixReadOnly , extends = :: js_sys :: Object , js_name = DOMMatrix , typescript_type = "DOMMatrix" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomMatrix` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub type DomMatrix; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = a ) ] + #[doc = "Getter for the `a` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/a)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn a(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = a ) ] + #[doc = "Setter for the `a` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/a)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_a(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = b ) ] + #[doc = "Getter for the `b` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/b)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn b(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = b ) ] + #[doc = "Setter for the `b` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/b)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_b(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = c ) ] + #[doc = "Getter for the `c` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/c)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn c(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = c ) ] + #[doc = "Setter for the `c` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/c)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_c(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = d ) ] + #[doc = "Getter for the `d` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/d)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn d(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = d ) ] + #[doc = "Setter for the `d` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/d)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_d(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = e ) ] + #[doc = "Getter for the `e` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/e)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn e(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = e ) ] + #[doc = "Setter for the `e` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/e)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_e(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = f ) ] + #[doc = "Getter for the `f` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn f(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = f ) ] + #[doc = "Setter for the `f` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_f(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = m11 ) ] + #[doc = "Getter for the `m11` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m11)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn m11(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = m11 ) ] + #[doc = "Setter for the `m11` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m11)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_m11(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = m12 ) ] + #[doc = "Getter for the `m12` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m12)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn m12(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = m12 ) ] + #[doc = "Setter for the `m12` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m12)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_m12(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = m13 ) ] + #[doc = "Getter for the `m13` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m13)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn m13(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = m13 ) ] + #[doc = "Setter for the `m13` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m13)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_m13(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = m14 ) ] + #[doc = "Getter for the `m14` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m14)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn m14(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = m14 ) ] + #[doc = "Setter for the `m14` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m14)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_m14(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = m21 ) ] + #[doc = "Getter for the `m21` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m21)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn m21(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = m21 ) ] + #[doc = "Setter for the `m21` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m21)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_m21(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = m22 ) ] + #[doc = "Getter for the `m22` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m22)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn m22(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = m22 ) ] + #[doc = "Setter for the `m22` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m22)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_m22(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = m23 ) ] + #[doc = "Getter for the `m23` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m23)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn m23(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = m23 ) ] + #[doc = "Setter for the `m23` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m23)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_m23(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = m24 ) ] + #[doc = "Getter for the `m24` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m24)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn m24(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = m24 ) ] + #[doc = "Setter for the `m24` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m24)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_m24(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = m31 ) ] + #[doc = "Getter for the `m31` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m31)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn m31(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = m31 ) ] + #[doc = "Setter for the `m31` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m31)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_m31(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = m32 ) ] + #[doc = "Getter for the `m32` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m32)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn m32(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = m32 ) ] + #[doc = "Setter for the `m32` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m32)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_m32(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = m33 ) ] + #[doc = "Getter for the `m33` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m33)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn m33(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = m33 ) ] + #[doc = "Setter for the `m33` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m33)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_m33(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = m34 ) ] + #[doc = "Getter for the `m34` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m34)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn m34(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = m34 ) ] + #[doc = "Setter for the `m34` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m34)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_m34(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = m41 ) ] + #[doc = "Getter for the `m41` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m41)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn m41(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = m41 ) ] + #[doc = "Setter for the `m41` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m41)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_m41(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = m42 ) ] + #[doc = "Getter for the `m42` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m42)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn m42(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = m42 ) ] + #[doc = "Setter for the `m42` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m42)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_m42(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = m43 ) ] + #[doc = "Getter for the `m43` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m43)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn m43(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = m43 ) ] + #[doc = "Setter for the `m43` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m43)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_m43(this: &DomMatrix, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrix" , js_name = m44 ) ] + #[doc = "Getter for the `m44` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m44)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn m44(this: &DomMatrix) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMMatrix" , js_name = m44 ) ] + #[doc = "Setter for the `m44` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/m44)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_m44(this: &DomMatrix, value: f64); + #[wasm_bindgen(catch, constructor, js_class = "DOMMatrix")] + #[doc = "The `new DomMatrix(..)` constructor, creating a new instance of `DomMatrix`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/DOMMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMMatrix")] + #[doc = "The `new DomMatrix(..)` constructor, creating a new instance of `DomMatrix`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/DOMMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn new_with_transform_list(transform_list: &str) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMMatrix")] + #[doc = "The `new DomMatrix(..)` constructor, creating a new instance of `DomMatrix`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/DOMMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn new_with_other(other: &DomMatrixReadOnly) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMMatrix")] + #[doc = "The `new DomMatrix(..)` constructor, creating a new instance of `DomMatrix`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/DOMMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn new_with_array32(array32: &mut [f32]) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMMatrix")] + #[doc = "The `new DomMatrix(..)` constructor, creating a new instance of `DomMatrix`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/DOMMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn new_with_array64(array64: &mut [f64]) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMMatrix")] + #[doc = "The `new DomMatrix(..)` constructor, creating a new instance of `DomMatrix`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/DOMMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn new_with_number_sequence( + number_sequence: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = invertSelf ) ] + #[doc = "The `invertSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/invertSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn invert_self(this: &DomMatrix) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = multiplySelf ) ] + #[doc = "The `multiplySelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/multiplySelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn multiply_self(this: &DomMatrix, other: &DomMatrix) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = preMultiplySelf ) ] + #[doc = "The `preMultiplySelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/preMultiplySelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn pre_multiply_self(this: &DomMatrix, other: &DomMatrix) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = rotateAxisAngleSelf ) ] + #[doc = "The `rotateAxisAngleSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/rotateAxisAngleSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn rotate_axis_angle_self( + this: &DomMatrix, + x: f64, + y: f64, + z: f64, + angle: f64, + ) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = rotateFromVectorSelf ) ] + #[doc = "The `rotateFromVectorSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/rotateFromVectorSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn rotate_from_vector_self(this: &DomMatrix, x: f64, y: f64) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = rotateSelf ) ] + #[doc = "The `rotateSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/rotateSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn rotate_self(this: &DomMatrix, angle: f64) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = rotateSelf ) ] + #[doc = "The `rotateSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/rotateSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn rotate_self_with_origin_x(this: &DomMatrix, angle: f64, origin_x: f64) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = rotateSelf ) ] + #[doc = "The `rotateSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/rotateSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn rotate_self_with_origin_x_and_origin_y( + this: &DomMatrix, + angle: f64, + origin_x: f64, + origin_y: f64, + ) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = scale3dSelf ) ] + #[doc = "The `scale3dSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scale3dSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn scale3d_self(this: &DomMatrix, scale: f64) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = scale3dSelf ) ] + #[doc = "The `scale3dSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scale3dSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn scale3d_self_with_origin_x(this: &DomMatrix, scale: f64, origin_x: f64) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = scale3dSelf ) ] + #[doc = "The `scale3dSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scale3dSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn scale3d_self_with_origin_x_and_origin_y( + this: &DomMatrix, + scale: f64, + origin_x: f64, + origin_y: f64, + ) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = scale3dSelf ) ] + #[doc = "The `scale3dSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scale3dSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn scale3d_self_with_origin_x_and_origin_y_and_origin_z( + this: &DomMatrix, + scale: f64, + origin_x: f64, + origin_y: f64, + origin_z: f64, + ) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf ) ] + #[doc = "The `scaleNonUniformSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn scale_non_uniform_self(this: &DomMatrix, scale_x: f64) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf ) ] + #[doc = "The `scaleNonUniformSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn scale_non_uniform_self_with_scale_y( + this: &DomMatrix, + scale_x: f64, + scale_y: f64, + ) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf ) ] + #[doc = "The `scaleNonUniformSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn scale_non_uniform_self_with_scale_y_and_scale_z( + this: &DomMatrix, + scale_x: f64, + scale_y: f64, + scale_z: f64, + ) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf ) ] + #[doc = "The `scaleNonUniformSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn scale_non_uniform_self_with_scale_y_and_scale_z_and_origin_x( + this: &DomMatrix, + scale_x: f64, + scale_y: f64, + scale_z: f64, + origin_x: f64, + ) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf ) ] + #[doc = "The `scaleNonUniformSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn scale_non_uniform_self_with_scale_y_and_scale_z_and_origin_x_and_origin_y( + this: &DomMatrix, + scale_x: f64, + scale_y: f64, + scale_z: f64, + origin_x: f64, + origin_y: f64, + ) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = scaleNonUniformSelf ) ] + #[doc = "The `scaleNonUniformSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleNonUniformSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn scale_non_uniform_self_with_scale_y_and_scale_z_and_origin_x_and_origin_y_and_origin_z( + this: &DomMatrix, + scale_x: f64, + scale_y: f64, + scale_z: f64, + origin_x: f64, + origin_y: f64, + origin_z: f64, + ) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = scaleSelf ) ] + #[doc = "The `scaleSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn scale_self(this: &DomMatrix, scale: f64) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = scaleSelf ) ] + #[doc = "The `scaleSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn scale_self_with_origin_x(this: &DomMatrix, scale: f64, origin_x: f64) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = scaleSelf ) ] + #[doc = "The `scaleSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/scaleSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn scale_self_with_origin_x_and_origin_y( + this: &DomMatrix, + scale: f64, + origin_x: f64, + origin_y: f64, + ) -> DomMatrix; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMMatrix" , js_name = setMatrixValue ) ] + #[doc = "The `setMatrixValue()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/setMatrixValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn set_matrix_value(this: &DomMatrix, transform_list: &str) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = skewXSelf ) ] + #[doc = "The `skewXSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/skewXSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn skew_x_self(this: &DomMatrix, sx: f64) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = skewYSelf ) ] + #[doc = "The `skewYSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/skewYSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn skew_y_self(this: &DomMatrix, sy: f64) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = translateSelf ) ] + #[doc = "The `translateSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/translateSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn translate_self(this: &DomMatrix, tx: f64, ty: f64) -> DomMatrix; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrix" , js_name = translateSelf ) ] + #[doc = "The `translateSelf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrix/translateSelf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`*"] + pub fn translate_self_with_tz(this: &DomMatrix, tx: f64, ty: f64, tz: f64) -> DomMatrix; +} diff --git a/crates/web-sys/src/features/gen_DomMatrixReadOnly.rs b/crates/web-sys/src/features/gen_DomMatrixReadOnly.rs new file mode 100644 index 00000000..0f2605f1 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomMatrixReadOnly.rs @@ -0,0 +1,507 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DOMMatrixReadOnly , typescript_type = "DOMMatrixReadOnly" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomMatrixReadOnly` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub type DomMatrixReadOnly; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = a ) ] + #[doc = "Getter for the `a` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/a)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn a(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = b ) ] + #[doc = "Getter for the `b` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/b)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn b(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = c ) ] + #[doc = "Getter for the `c` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/c)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn c(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = d ) ] + #[doc = "Getter for the `d` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/d)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn d(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = e ) ] + #[doc = "Getter for the `e` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/e)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn e(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = f ) ] + #[doc = "Getter for the `f` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn f(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m11 ) ] + #[doc = "Getter for the `m11` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m11)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn m11(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m12 ) ] + #[doc = "Getter for the `m12` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m12)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn m12(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m13 ) ] + #[doc = "Getter for the `m13` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m13)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn m13(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m14 ) ] + #[doc = "Getter for the `m14` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m14)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn m14(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m21 ) ] + #[doc = "Getter for the `m21` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m21)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn m21(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m22 ) ] + #[doc = "Getter for the `m22` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m22)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn m22(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m23 ) ] + #[doc = "Getter for the `m23` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m23)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn m23(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m24 ) ] + #[doc = "Getter for the `m24` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m24)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn m24(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m31 ) ] + #[doc = "Getter for the `m31` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m31)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn m31(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m32 ) ] + #[doc = "Getter for the `m32` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m32)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn m32(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m33 ) ] + #[doc = "Getter for the `m33` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m33)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn m33(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m34 ) ] + #[doc = "Getter for the `m34` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m34)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn m34(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m41 ) ] + #[doc = "Getter for the `m41` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m41)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn m41(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m42 ) ] + #[doc = "Getter for the `m42` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m42)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn m42(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m43 ) ] + #[doc = "Getter for the `m43` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m43)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn m43(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = m44 ) ] + #[doc = "Getter for the `m44` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/m44)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn m44(this: &DomMatrixReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = is2D ) ] + #[doc = "Getter for the `is2D` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/is2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn is_2d(this: &DomMatrixReadOnly) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMMatrixReadOnly" , js_name = isIdentity ) ] + #[doc = "Getter for the `isIdentity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/isIdentity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn is_identity(this: &DomMatrixReadOnly) -> bool; + #[wasm_bindgen(catch, constructor, js_class = "DOMMatrixReadOnly")] + #[doc = "The `new DomMatrixReadOnly(..)` constructor, creating a new instance of `DomMatrixReadOnly`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/DOMMatrixReadOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMMatrixReadOnly")] + #[doc = "The `new DomMatrixReadOnly(..)` constructor, creating a new instance of `DomMatrixReadOnly`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/DOMMatrixReadOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn new_with_str(init: &str) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMMatrixReadOnly")] + #[doc = "The `new DomMatrixReadOnly(..)` constructor, creating a new instance of `DomMatrixReadOnly`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/DOMMatrixReadOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn new_with_f64_sequence( + init: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = flipX ) ] + #[doc = "The `flipX()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/flipX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn flip_x(this: &DomMatrixReadOnly) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = flipY ) ] + #[doc = "The `flipY()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/flipY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn flip_y(this: &DomMatrixReadOnly) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = inverse ) ] + #[doc = "The `inverse()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/inverse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn inverse(this: &DomMatrixReadOnly) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = multiply ) ] + #[doc = "The `multiply()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/multiply)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn multiply(this: &DomMatrixReadOnly, other: &DomMatrix) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = rotate ) ] + #[doc = "The `rotate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/rotate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn rotate(this: &DomMatrixReadOnly, angle: f64) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = rotate ) ] + #[doc = "The `rotate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/rotate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn rotate_with_origin_x(this: &DomMatrixReadOnly, angle: f64, origin_x: f64) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = rotate ) ] + #[doc = "The `rotate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/rotate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn rotate_with_origin_x_and_origin_y( + this: &DomMatrixReadOnly, + angle: f64, + origin_x: f64, + origin_y: f64, + ) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = rotateAxisAngle ) ] + #[doc = "The `rotateAxisAngle()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/rotateAxisAngle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn rotate_axis_angle( + this: &DomMatrixReadOnly, + x: f64, + y: f64, + z: f64, + angle: f64, + ) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = rotateFromVector ) ] + #[doc = "The `rotateFromVector()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/rotateFromVector)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn rotate_from_vector(this: &DomMatrixReadOnly, x: f64, y: f64) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale ) ] + #[doc = "The `scale()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn scale(this: &DomMatrixReadOnly, scale: f64) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale ) ] + #[doc = "The `scale()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn scale_with_origin_x(this: &DomMatrixReadOnly, scale: f64, origin_x: f64) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale ) ] + #[doc = "The `scale()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn scale_with_origin_x_and_origin_y( + this: &DomMatrixReadOnly, + scale: f64, + origin_x: f64, + origin_y: f64, + ) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale3d ) ] + #[doc = "The `scale3d()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale3d)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn scale3d(this: &DomMatrixReadOnly, scale: f64) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale3d ) ] + #[doc = "The `scale3d()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale3d)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn scale3d_with_origin_x(this: &DomMatrixReadOnly, scale: f64, origin_x: f64) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale3d ) ] + #[doc = "The `scale3d()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale3d)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn scale3d_with_origin_x_and_origin_y( + this: &DomMatrixReadOnly, + scale: f64, + origin_x: f64, + origin_y: f64, + ) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = scale3d ) ] + #[doc = "The `scale3d()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scale3d)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn scale3d_with_origin_x_and_origin_y_and_origin_z( + this: &DomMatrixReadOnly, + scale: f64, + origin_x: f64, + origin_y: f64, + origin_z: f64, + ) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform ) ] + #[doc = "The `scaleNonUniform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn scale_non_uniform(this: &DomMatrixReadOnly, scale_x: f64) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform ) ] + #[doc = "The `scaleNonUniform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn scale_non_uniform_with_scale_y( + this: &DomMatrixReadOnly, + scale_x: f64, + scale_y: f64, + ) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform ) ] + #[doc = "The `scaleNonUniform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn scale_non_uniform_with_scale_y_and_scale_z( + this: &DomMatrixReadOnly, + scale_x: f64, + scale_y: f64, + scale_z: f64, + ) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform ) ] + #[doc = "The `scaleNonUniform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn scale_non_uniform_with_scale_y_and_scale_z_and_origin_x( + this: &DomMatrixReadOnly, + scale_x: f64, + scale_y: f64, + scale_z: f64, + origin_x: f64, + ) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform ) ] + #[doc = "The `scaleNonUniform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn scale_non_uniform_with_scale_y_and_scale_z_and_origin_x_and_origin_y( + this: &DomMatrixReadOnly, + scale_x: f64, + scale_y: f64, + scale_z: f64, + origin_x: f64, + origin_y: f64, + ) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = scaleNonUniform ) ] + #[doc = "The `scaleNonUniform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/scaleNonUniform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn scale_non_uniform_with_scale_y_and_scale_z_and_origin_x_and_origin_y_and_origin_z( + this: &DomMatrixReadOnly, + scale_x: f64, + scale_y: f64, + scale_z: f64, + origin_x: f64, + origin_y: f64, + origin_z: f64, + ) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = skewX ) ] + #[doc = "The `skewX()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/skewX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn skew_x(this: &DomMatrixReadOnly, sx: f64) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = skewY ) ] + #[doc = "The `skewY()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/skewY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn skew_y(this: &DomMatrixReadOnly, sy: f64) -> DomMatrix; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMMatrixReadOnly" , js_name = toFloat32Array ) ] + #[doc = "The `toFloat32Array()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/toFloat32Array)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn to_float32_array(this: &DomMatrixReadOnly) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMMatrixReadOnly" , js_name = toFloat64Array ) ] + #[doc = "The `toFloat64Array()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/toFloat64Array)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn to_float64_array(this: &DomMatrixReadOnly) -> Result, JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`*"] + pub fn to_json(this: &DomMatrixReadOnly) -> ::js_sys::Object; + #[cfg(feature = "DomPoint")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = transformPoint ) ] + #[doc = "The `transformPoint()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/transformPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`, `DomPoint`*"] + pub fn transform_point(this: &DomMatrixReadOnly) -> DomPoint; + #[cfg(all(feature = "DomPoint", feature = "DomPointInit",))] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = transformPoint ) ] + #[doc = "The `transformPoint()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/transformPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrixReadOnly`, `DomPoint`, `DomPointInit`*"] + pub fn transform_point_with_point(this: &DomMatrixReadOnly, point: &DomPointInit) -> DomPoint; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = translate ) ] + #[doc = "The `translate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/translate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn translate(this: &DomMatrixReadOnly, tx: f64, ty: f64) -> DomMatrix; + #[cfg(feature = "DomMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "DOMMatrixReadOnly" , js_name = translate ) ] + #[doc = "The `translate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMMatrixReadOnly/translate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomMatrix`, `DomMatrixReadOnly`*"] + pub fn translate_with_tz(this: &DomMatrixReadOnly, tx: f64, ty: f64, tz: f64) -> DomMatrix; +} diff --git a/crates/web-sys/src/features/gen_DomParser.rs b/crates/web-sys/src/features/gen_DomParser.rs new file mode 100644 index 00000000..06952844 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomParser.rs @@ -0,0 +1,33 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DOMParser , typescript_type = "DOMParser" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomParser` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomParser`*"] + pub type DomParser; + #[wasm_bindgen(catch, constructor, js_class = "DOMParser")] + #[doc = "The `new DomParser(..)` constructor, creating a new instance of `DomParser`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/DOMParser)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomParser`*"] + pub fn new() -> Result; + #[cfg(all(feature = "Document", feature = "SupportedType",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMParser" , js_name = parseFromString ) ] + #[doc = "The `parseFromString()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser/parseFromString)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomParser`, `SupportedType`*"] + pub fn parse_from_string( + this: &DomParser, + str: &str, + type_: SupportedType, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_DomPoint.rs b/crates/web-sys/src/features/gen_DomPoint.rs new file mode 100644 index 00000000..3e72ee10 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomPoint.rs @@ -0,0 +1,125 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = DomPointReadOnly , extends = :: js_sys :: Object , js_name = DOMPoint , typescript_type = "DOMPoint" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomPoint` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] + pub type DomPoint; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMPoint" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] + pub fn x(this: &DomPoint) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMPoint" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] + pub fn set_x(this: &DomPoint, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMPoint" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] + pub fn y(this: &DomPoint) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMPoint" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] + pub fn set_y(this: &DomPoint, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMPoint" , js_name = z ) ] + #[doc = "Getter for the `z` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/z)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] + pub fn z(this: &DomPoint) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMPoint" , js_name = z ) ] + #[doc = "Setter for the `z` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/z)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] + pub fn set_z(this: &DomPoint, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMPoint" , js_name = w ) ] + #[doc = "Getter for the `w` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/w)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] + pub fn w(this: &DomPoint) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMPoint" , js_name = w ) ] + #[doc = "Setter for the `w` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/w)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] + pub fn set_w(this: &DomPoint, value: f64); + #[wasm_bindgen(catch, constructor, js_class = "DOMPoint")] + #[doc = "The `new DomPoint(..)` constructor, creating a new instance of `DomPoint`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/DOMPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMPoint")] + #[doc = "The `new DomPoint(..)` constructor, creating a new instance of `DomPoint`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/DOMPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] + pub fn new_with_x(x: f64) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMPoint")] + #[doc = "The `new DomPoint(..)` constructor, creating a new instance of `DomPoint`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/DOMPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] + pub fn new_with_x_and_y(x: f64, y: f64) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMPoint")] + #[doc = "The `new DomPoint(..)` constructor, creating a new instance of `DomPoint`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/DOMPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] + pub fn new_with_x_and_y_and_z(x: f64, y: f64, z: f64) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMPoint")] + #[doc = "The `new DomPoint(..)` constructor, creating a new instance of `DomPoint`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/DOMPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] + pub fn new_with_x_and_y_and_z_and_w( + x: f64, + y: f64, + z: f64, + w: f64, + ) -> Result; + # [ wasm_bindgen ( static_method_of = DomPoint , js_class = "DOMPoint" , js_name = fromPoint ) ] + #[doc = "The `fromPoint()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/fromPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`*"] + pub fn from_point() -> DomPoint; + #[cfg(feature = "DomPointInit")] + # [ wasm_bindgen ( static_method_of = DomPoint , js_class = "DOMPoint" , js_name = fromPoint ) ] + #[doc = "The `fromPoint()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPoint/fromPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomPointInit`*"] + pub fn from_point_with_other(other: &DomPointInit) -> DomPoint; +} diff --git a/crates/web-sys/src/features/gen_DomPointInit.rs b/crates/web-sys/src/features/gen_DomPointInit.rs new file mode 100644 index 00000000..f1941204 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomPointInit.rs @@ -0,0 +1,74 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DOMPointInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomPointInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] + pub type DomPointInit; +} +impl DomPointInit { + #[doc = "Construct a new `DomPointInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `w` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] + pub fn w(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("w"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `x` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] + pub fn x(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("x"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `y` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] + pub fn y(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("y"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `z` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointInit`*"] + pub fn z(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("z"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DomPointReadOnly.rs b/crates/web-sys/src/features/gen_DomPointReadOnly.rs new file mode 100644 index 00000000..9ae3649b --- /dev/null +++ b/crates/web-sys/src/features/gen_DomPointReadOnly.rs @@ -0,0 +1,104 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DOMPointReadOnly , typescript_type = "DOMPointReadOnly" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomPointReadOnly` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] + pub type DomPointReadOnly; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMPointReadOnly" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] + pub fn x(this: &DomPointReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMPointReadOnly" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] + pub fn y(this: &DomPointReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMPointReadOnly" , js_name = z ) ] + #[doc = "Getter for the `z` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/z)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] + pub fn z(this: &DomPointReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMPointReadOnly" , js_name = w ) ] + #[doc = "Getter for the `w` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/w)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] + pub fn w(this: &DomPointReadOnly) -> f64; + #[wasm_bindgen(catch, constructor, js_class = "DOMPointReadOnly")] + #[doc = "The `new DomPointReadOnly(..)` constructor, creating a new instance of `DomPointReadOnly`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/DOMPointReadOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMPointReadOnly")] + #[doc = "The `new DomPointReadOnly(..)` constructor, creating a new instance of `DomPointReadOnly`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/DOMPointReadOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] + pub fn new_with_x(x: f64) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMPointReadOnly")] + #[doc = "The `new DomPointReadOnly(..)` constructor, creating a new instance of `DomPointReadOnly`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/DOMPointReadOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] + pub fn new_with_x_and_y(x: f64, y: f64) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMPointReadOnly")] + #[doc = "The `new DomPointReadOnly(..)` constructor, creating a new instance of `DomPointReadOnly`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/DOMPointReadOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] + pub fn new_with_x_and_y_and_z(x: f64, y: f64, z: f64) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMPointReadOnly")] + #[doc = "The `new DomPointReadOnly(..)` constructor, creating a new instance of `DomPointReadOnly`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/DOMPointReadOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] + pub fn new_with_x_and_y_and_z_and_w( + x: f64, + y: f64, + z: f64, + w: f64, + ) -> Result; + # [ wasm_bindgen ( static_method_of = DomPointReadOnly , js_class = "DOMPointReadOnly" , js_name = fromPoint ) ] + #[doc = "The `fromPoint()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/fromPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] + pub fn from_point() -> DomPointReadOnly; + #[cfg(feature = "DomPointInit")] + # [ wasm_bindgen ( static_method_of = DomPointReadOnly , js_class = "DOMPointReadOnly" , js_name = fromPoint ) ] + #[doc = "The `fromPoint()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/fromPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomPointReadOnly`*"] + pub fn from_point_with_other(other: &DomPointInit) -> DomPointReadOnly; + # [ wasm_bindgen ( method , structural , js_class = "DOMPointReadOnly" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMPointReadOnly/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointReadOnly`*"] + pub fn to_json(this: &DomPointReadOnly) -> ::js_sys::Object; +} diff --git a/crates/web-sys/src/features/gen_DomQuad.rs b/crates/web-sys/src/features/gen_DomQuad.rs new file mode 100644 index 00000000..043f0af9 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomQuad.rs @@ -0,0 +1,129 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DOMQuad , typescript_type = "DOMQuad" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomQuad` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuad`*"] + pub type DomQuad; + #[cfg(feature = "DomPoint")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMQuad" , js_name = p1 ) ] + #[doc = "Getter for the `p1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/p1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuad`*"] + pub fn p1(this: &DomQuad) -> DomPoint; + #[cfg(feature = "DomPoint")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMQuad" , js_name = p2 ) ] + #[doc = "Getter for the `p2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/p2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuad`*"] + pub fn p2(this: &DomQuad) -> DomPoint; + #[cfg(feature = "DomPoint")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMQuad" , js_name = p3 ) ] + #[doc = "Getter for the `p3` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/p3)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuad`*"] + pub fn p3(this: &DomQuad) -> DomPoint; + #[cfg(feature = "DomPoint")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMQuad" , js_name = p4 ) ] + #[doc = "Getter for the `p4` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/p4)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuad`*"] + pub fn p4(this: &DomQuad) -> DomPoint; + #[cfg(feature = "DomRectReadOnly")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMQuad" , js_name = bounds ) ] + #[doc = "Getter for the `bounds` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/bounds)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`*"] + pub fn bounds(this: &DomQuad) -> DomRectReadOnly; + #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")] + #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuad`*"] + pub fn new() -> Result; + #[cfg(feature = "DomPointInit")] + #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")] + #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuad`*"] + pub fn new_with_dom_point_init(p1: &DomPointInit) -> Result; + #[cfg(feature = "DomPointInit")] + #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")] + #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuad`*"] + pub fn new_with_dom_point_init_and_p2( + p1: &DomPointInit, + p2: &DomPointInit, + ) -> Result; + #[cfg(feature = "DomPointInit")] + #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")] + #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuad`*"] + pub fn new_with_dom_point_init_and_p2_and_p3( + p1: &DomPointInit, + p2: &DomPointInit, + p3: &DomPointInit, + ) -> Result; + #[cfg(feature = "DomPointInit")] + #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")] + #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuad`*"] + pub fn new_with_dom_point_init_and_p2_and_p3_and_p4( + p1: &DomPointInit, + p2: &DomPointInit, + p3: &DomPointInit, + p4: &DomPointInit, + ) -> Result; + #[cfg(feature = "DomRectReadOnly")] + #[wasm_bindgen(catch, constructor, js_class = "DOMQuad")] + #[doc = "The `new DomQuad(..)` constructor, creating a new instance of `DomQuad`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/DOMQuad)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`*"] + pub fn new_with_rect(rect: &DomRectReadOnly) -> Result; + #[cfg(feature = "DomRectReadOnly")] + # [ wasm_bindgen ( method , structural , js_class = "DOMQuad" , js_name = getBounds ) ] + #[doc = "The `getBounds()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/getBounds)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`*"] + pub fn get_bounds(this: &DomQuad) -> DomRectReadOnly; + #[cfg(feature = "DomQuadJson")] + # [ wasm_bindgen ( method , structural , js_class = "DOMQuad" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMQuad/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomQuadJson`*"] + pub fn to_json(this: &DomQuad) -> DomQuadJson; +} diff --git a/crates/web-sys/src/features/gen_DomQuadInit.rs b/crates/web-sys/src/features/gen_DomQuadInit.rs new file mode 100644 index 00000000..3b0faa96 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomQuadInit.rs @@ -0,0 +1,78 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DOMQuadInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomQuadInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuadInit`*"] + pub type DomQuadInit; +} +impl DomQuadInit { + #[doc = "Construct a new `DomQuadInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuadInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "DomPointInit")] + #[doc = "Change the `p1` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuadInit`*"] + pub fn p1(&mut self, val: &DomPointInit) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p1"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "DomPointInit")] + #[doc = "Change the `p2` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuadInit`*"] + pub fn p2(&mut self, val: &DomPointInit) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p2"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "DomPointInit")] + #[doc = "Change the `p3` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuadInit`*"] + pub fn p3(&mut self, val: &DomPointInit) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p3"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "DomPointInit")] + #[doc = "Change the `p4` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPointInit`, `DomQuadInit`*"] + pub fn p4(&mut self, val: &DomPointInit) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p4"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DomQuadJson.rs b/crates/web-sys/src/features/gen_DomQuadJson.rs new file mode 100644 index 00000000..65023fb2 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomQuadJson.rs @@ -0,0 +1,78 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DOMQuadJSON ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomQuadJson` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuadJson`*"] + pub type DomQuadJson; +} +impl DomQuadJson { + #[doc = "Construct a new `DomQuadJson`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuadJson`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "DomPoint")] + #[doc = "Change the `p1` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"] + pub fn p1(&mut self, val: &DomPoint) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p1"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "DomPoint")] + #[doc = "Change the `p2` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"] + pub fn p2(&mut self, val: &DomPoint) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p2"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "DomPoint")] + #[doc = "Change the `p3` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"] + pub fn p3(&mut self, val: &DomPoint) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p3"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "DomPoint")] + #[doc = "Change the `p4` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomQuadJson`*"] + pub fn p4(&mut self, val: &DomPoint) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p4"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DomRect.rs b/crates/web-sys/src/features/gen_DomRect.rs new file mode 100644 index 00000000..6bcd69c3 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomRect.rs @@ -0,0 +1,110 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = DomRectReadOnly , extends = :: js_sys :: Object , js_name = DOMRect , typescript_type = "DOMRect" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomRect` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] + pub type DomRect; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRect" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] + pub fn x(this: &DomRect) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMRect" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] + pub fn set_x(this: &DomRect, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRect" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] + pub fn y(this: &DomRect) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMRect" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] + pub fn set_y(this: &DomRect, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRect" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] + pub fn width(this: &DomRect) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMRect" , js_name = width ) ] + #[doc = "Setter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] + pub fn set_width(this: &DomRect, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRect" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] + pub fn height(this: &DomRect) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMRect" , js_name = height ) ] + #[doc = "Setter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] + pub fn set_height(this: &DomRect, value: f64); + #[wasm_bindgen(catch, constructor, js_class = "DOMRect")] + #[doc = "The `new DomRect(..)` constructor, creating a new instance of `DomRect`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/DOMRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMRect")] + #[doc = "The `new DomRect(..)` constructor, creating a new instance of `DomRect`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/DOMRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] + pub fn new_with_x(x: f64) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMRect")] + #[doc = "The `new DomRect(..)` constructor, creating a new instance of `DomRect`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/DOMRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] + pub fn new_with_x_and_y(x: f64, y: f64) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMRect")] + #[doc = "The `new DomRect(..)` constructor, creating a new instance of `DomRect`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/DOMRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] + pub fn new_with_x_and_y_and_width(x: f64, y: f64, width: f64) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMRect")] + #[doc = "The `new DomRect(..)` constructor, creating a new instance of `DomRect`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRect/DOMRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`*"] + pub fn new_with_x_and_y_and_width_and_height( + x: f64, + y: f64, + width: f64, + height: f64, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_DomRectInit.rs b/crates/web-sys/src/features/gen_DomRectInit.rs new file mode 100644 index 00000000..f6164a38 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomRectInit.rs @@ -0,0 +1,75 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DOMRectInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomRectInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] + pub type DomRectInit; +} +impl DomRectInit { + #[doc = "Construct a new `DomRectInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `height` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] + pub fn height(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `width` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] + pub fn width(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `x` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] + pub fn x(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("x"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `y` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectInit`*"] + pub fn y(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("y"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DomRectList.rs b/crates/web-sys/src/features/gen_DomRectList.rs new file mode 100644 index 00000000..f4946640 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomRectList.rs @@ -0,0 +1,37 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DOMRectList , typescript_type = "DOMRectList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomRectList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectList`*"] + pub type DomRectList; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRectList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectList`*"] + pub fn length(this: &DomRectList) -> u32; + #[cfg(feature = "DomRect")] + # [ wasm_bindgen ( method , structural , js_class = "DOMRectList" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectList/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`, `DomRectList`*"] + pub fn item(this: &DomRectList, index: u32) -> Option; + #[cfg(feature = "DomRect")] + #[wasm_bindgen(method, structural, js_class = "DOMRectList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`, `DomRectList`*"] + pub fn get(this: &DomRectList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_DomRectReadOnly.rs b/crates/web-sys/src/features/gen_DomRectReadOnly.rs new file mode 100644 index 00000000..de1edcd6 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomRectReadOnly.rs @@ -0,0 +1,121 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DOMRectReadOnly , typescript_type = "DOMRectReadOnly" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomRectReadOnly` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] + pub type DomRectReadOnly; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRectReadOnly" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] + pub fn x(this: &DomRectReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRectReadOnly" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] + pub fn y(this: &DomRectReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRectReadOnly" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] + pub fn width(this: &DomRectReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRectReadOnly" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] + pub fn height(this: &DomRectReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRectReadOnly" , js_name = top ) ] + #[doc = "Getter for the `top` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/top)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] + pub fn top(this: &DomRectReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRectReadOnly" , js_name = right ) ] + #[doc = "Getter for the `right` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/right)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] + pub fn right(this: &DomRectReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRectReadOnly" , js_name = bottom ) ] + #[doc = "Getter for the `bottom` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/bottom)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] + pub fn bottom(this: &DomRectReadOnly) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRectReadOnly" , js_name = left ) ] + #[doc = "Getter for the `left` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/left)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] + pub fn left(this: &DomRectReadOnly) -> f64; + #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")] + #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")] + #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] + pub fn new_with_x(x: f64) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")] + #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] + pub fn new_with_x_and_y(x: f64, y: f64) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")] + #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] + pub fn new_with_x_and_y_and_width( + x: f64, + y: f64, + width: f64, + ) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "DOMRectReadOnly")] + #[doc = "The `new DomRectReadOnly(..)` constructor, creating a new instance of `DomRectReadOnly`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/DOMRectReadOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] + pub fn new_with_x_and_y_and_width_and_height( + x: f64, + y: f64, + width: f64, + height: f64, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "DOMRectReadOnly" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRectReadOnly/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`*"] + pub fn to_json(this: &DomRectReadOnly) -> ::js_sys::Object; +} diff --git a/crates/web-sys/src/features/gen_DomRequest.rs b/crates/web-sys/src/features/gen_DomRequest.rs new file mode 100644 index 00000000..c2bdfea2 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomRequest.rs @@ -0,0 +1,93 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = DOMRequest , typescript_type = "DOMRequest" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomRequest` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] + pub type DomRequest; + #[cfg(feature = "DomRequestReadyState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRequest" , js_name = readyState ) ] + #[doc = "Getter for the `readyState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/readyState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRequest`, `DomRequestReadyState`*"] + pub fn ready_state(this: &DomRequest) -> DomRequestReadyState; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRequest" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] + pub fn result(this: &DomRequest) -> ::wasm_bindgen::JsValue; + #[cfg(feature = "DomException")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRequest" , js_name = error ) ] + #[doc = "Getter for the `error` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`, `DomRequest`*"] + pub fn error(this: &DomRequest) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRequest" , js_name = onsuccess ) ] + #[doc = "Getter for the `onsuccess` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onsuccess)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] + pub fn onsuccess(this: &DomRequest) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMRequest" , js_name = onsuccess ) ] + #[doc = "Setter for the `onsuccess` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onsuccess)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] + pub fn set_onsuccess(this: &DomRequest, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMRequest" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] + pub fn onerror(this: &DomRequest) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMRequest" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] + pub fn set_onerror(this: &DomRequest, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMRequest" , js_name = then ) ] + #[doc = "The `then()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/then)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] + pub fn then(this: &DomRequest) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMRequest" , js_name = then ) ] + #[doc = "The `then()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/then)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] + pub fn then_with_fulfill_callback( + this: &DomRequest, + fulfill_callback: Option<&::js_sys::Function>, + ) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMRequest" , js_name = then ) ] + #[doc = "The `then()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMRequest/then)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRequest`*"] + pub fn then_with_fulfill_callback_and_reject_callback( + this: &DomRequest, + fulfill_callback: Option<&::js_sys::Function>, + reject_callback: Option<&::js_sys::Function>, + ) -> Result<::wasm_bindgen::JsValue, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_DomRequestReadyState.rs b/crates/web-sys/src/features/gen_DomRequestReadyState.rs new file mode 100644 index 00000000..179f9478 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomRequestReadyState.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `DomRequestReadyState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `DomRequestReadyState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum DomRequestReadyState { + Pending = "pending", + Done = "done", +} diff --git a/crates/web-sys/src/features/gen_DomStringList.rs b/crates/web-sys/src/features/gen_DomStringList.rs new file mode 100644 index 00000000..c2e222e6 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomStringList.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DOMStringList , typescript_type = "DOMStringList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomStringList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"] + pub type DomStringList; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMStringList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"] + pub fn length(this: &DomStringList) -> u32; + # [ wasm_bindgen ( method , structural , js_class = "DOMStringList" , js_name = contains ) ] + #[doc = "The `contains()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList/contains)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"] + pub fn contains(this: &DomStringList, string: &str) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "DOMStringList" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringList/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"] + pub fn item(this: &DomStringList, index: u32) -> Option; + #[wasm_bindgen(method, structural, js_class = "DOMStringList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomStringList`*"] + pub fn get(this: &DomStringList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_DomStringMap.rs b/crates/web-sys/src/features/gen_DomStringMap.rs new file mode 100644 index 00000000..5cf0d4e8 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomStringMap.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DOMStringMap , typescript_type = "DOMStringMap" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomStringMap` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMStringMap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"] + pub type DomStringMap; + #[wasm_bindgen(method, structural, js_class = "DOMStringMap", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"] + pub fn get(this: &DomStringMap, name: &str) -> Option; + #[wasm_bindgen(catch, method, structural, js_class = "DOMStringMap", indexing_setter)] + #[doc = "Indexing setter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"] + pub fn set(this: &DomStringMap, name: &str, value: &str) -> Result<(), JsValue>; + #[wasm_bindgen(method, structural, js_class = "DOMStringMap", indexing_deleter)] + #[doc = "Indexing deleter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomStringMap`*"] + pub fn delete(this: &DomStringMap, name: &str); +} diff --git a/crates/web-sys/src/features/gen_DomTokenList.rs b/crates/web-sys/src/features/gen_DomTokenList.rs new file mode 100644 index 00000000..abd67423 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomTokenList.rs @@ -0,0 +1,284 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DOMTokenList , typescript_type = "DOMTokenList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomTokenList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub type DomTokenList; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMTokenList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn length(this: &DomTokenList) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "DOMTokenList" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn value(this: &DomTokenList) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "DOMTokenList" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn set_value(this: &DomTokenList, value: &str); + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "DOMTokenList" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn add(this: &DomTokenList, tokens: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn add_0(this: &DomTokenList) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn add_1(this: &DomTokenList, tokens_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn add_2(this: &DomTokenList, tokens_1: &str, tokens_2: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn add_3( + this: &DomTokenList, + tokens_1: &str, + tokens_2: &str, + tokens_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn add_4( + this: &DomTokenList, + tokens_1: &str, + tokens_2: &str, + tokens_3: &str, + tokens_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn add_5( + this: &DomTokenList, + tokens_1: &str, + tokens_2: &str, + tokens_3: &str, + tokens_4: &str, + tokens_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn add_6( + this: &DomTokenList, + tokens_1: &str, + tokens_2: &str, + tokens_3: &str, + tokens_4: &str, + tokens_5: &str, + tokens_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn add_7( + this: &DomTokenList, + tokens_1: &str, + tokens_2: &str, + tokens_3: &str, + tokens_4: &str, + tokens_5: &str, + tokens_6: &str, + tokens_7: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "DOMTokenList" , js_name = contains ) ] + #[doc = "The `contains()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/contains)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn contains(this: &DomTokenList, token: &str) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "DOMTokenList" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn item(this: &DomTokenList, index: u32) -> Option; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "DOMTokenList" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn remove(this: &DomTokenList, tokens: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn remove_0(this: &DomTokenList) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn remove_1(this: &DomTokenList, tokens_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn remove_2(this: &DomTokenList, tokens_1: &str, tokens_2: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn remove_3( + this: &DomTokenList, + tokens_1: &str, + tokens_2: &str, + tokens_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn remove_4( + this: &DomTokenList, + tokens_1: &str, + tokens_2: &str, + tokens_3: &str, + tokens_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn remove_5( + this: &DomTokenList, + tokens_1: &str, + tokens_2: &str, + tokens_3: &str, + tokens_4: &str, + tokens_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn remove_6( + this: &DomTokenList, + tokens_1: &str, + tokens_2: &str, + tokens_3: &str, + tokens_4: &str, + tokens_5: &str, + tokens_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn remove_7( + this: &DomTokenList, + tokens_1: &str, + tokens_2: &str, + tokens_3: &str, + tokens_4: &str, + tokens_5: &str, + tokens_6: &str, + tokens_7: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = replace ) ] + #[doc = "The `replace()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/replace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn replace(this: &DomTokenList, token: &str, new_token: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = supports ) ] + #[doc = "The `supports()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/supports)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn supports(this: &DomTokenList, token: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = toggle ) ] + #[doc = "The `toggle()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/toggle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn toggle(this: &DomTokenList, token: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "DOMTokenList" , js_name = toggle ) ] + #[doc = "The `toggle()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DOMTokenList/toggle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn toggle_with_force( + this: &DomTokenList, + token: &str, + force: bool, + ) -> Result; + #[wasm_bindgen(method, structural, js_class = "DOMTokenList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`*"] + pub fn get(this: &DomTokenList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_DomWindowResizeEventDetail.rs b/crates/web-sys/src/features/gen_DomWindowResizeEventDetail.rs new file mode 100644 index 00000000..4e7ea087 --- /dev/null +++ b/crates/web-sys/src/features/gen_DomWindowResizeEventDetail.rs @@ -0,0 +1,49 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DOMWindowResizeEventDetail ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DomWindowResizeEventDetail` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomWindowResizeEventDetail`*"] + pub type DomWindowResizeEventDetail; +} +impl DomWindowResizeEventDetail { + #[doc = "Construct a new `DomWindowResizeEventDetail`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomWindowResizeEventDetail`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `height` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomWindowResizeEventDetail`*"] + pub fn height(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `width` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomWindowResizeEventDetail`*"] + pub fn width(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DragEvent.rs b/crates/web-sys/src/features/gen_DragEvent.rs new file mode 100644 index 00000000..099e26fd --- /dev/null +++ b/crates/web-sys/src/features/gen_DragEvent.rs @@ -0,0 +1,326 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = MouseEvent , extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = DragEvent , typescript_type = "DragEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DragEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] + pub type DragEvent; + #[cfg(feature = "DataTransfer")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DragEvent" , js_name = dataTransfer ) ] + #[doc = "Getter for the `dataTransfer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/dataTransfer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `DragEvent`*"] + pub fn data_transfer(this: &DragEvent) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "DragEvent")] + #[doc = "The `new DragEvent(..)` constructor, creating a new instance of `DragEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/DragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "DragEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "DragEvent")] + #[doc = "The `new DragEvent(..)` constructor, creating a new instance of `DragEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/DragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `DragEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &DragEventInit, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "DragEvent" , js_name = initDragEvent ) ] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] + pub fn init_drag_event(this: &DragEvent, type_: &str); + # [ wasm_bindgen ( method , structural , js_class = "DragEvent" , js_name = initDragEvent ) ] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] + pub fn init_drag_event_with_can_bubble(this: &DragEvent, type_: &str, can_bubble: bool); + # [ wasm_bindgen ( method , structural , js_class = "DragEvent" , js_name = initDragEvent ) ] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "DragEvent" , js_name = initDragEvent ) ] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "DragEvent" , js_name = initDragEvent ) ] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "DragEvent" , js_name = initDragEvent ) ] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "DragEvent" , js_name = initDragEvent ) ] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "DragEvent" , js_name = initDragEvent ) ] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "DragEvent" , js_name = initDragEvent ) ] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + a_client_y: i32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "DragEvent" , js_name = initDragEvent ) ] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + a_client_y: i32, + a_ctrl_key: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "DragEvent" , js_name = initDragEvent ) ] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + a_client_y: i32, + a_ctrl_key: bool, + a_alt_key: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "DragEvent" , js_name = initDragEvent ) ] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key_and_a_shift_key( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + a_client_y: i32, + a_ctrl_key: bool, + a_alt_key: bool, + a_shift_key: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "DragEvent" , js_name = initDragEvent ) ] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key_and_a_shift_key_and_a_meta_key( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + a_client_y: i32, + a_ctrl_key: bool, + a_alt_key: bool, + a_shift_key: bool, + a_meta_key: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "DragEvent" , js_name = initDragEvent ) ] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key_and_a_shift_key_and_a_meta_key_and_a_button( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + a_client_y: i32, + a_ctrl_key: bool, + a_alt_key: bool, + a_shift_key: bool, + a_meta_key: bool, + a_button: u16, + ); + #[cfg(all(feature = "EventTarget", feature = "Window",))] + # [ wasm_bindgen ( method , structural , js_class = "DragEvent" , js_name = initDragEvent ) ] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEvent`, `EventTarget`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key_and_a_shift_key_and_a_meta_key_and_a_button_and_a_related_target( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + a_client_y: i32, + a_ctrl_key: bool, + a_alt_key: bool, + a_shift_key: bool, + a_meta_key: bool, + a_button: u16, + a_related_target: Option<&EventTarget>, + ); + #[cfg(all(feature = "DataTransfer", feature = "EventTarget", feature = "Window",))] + # [ wasm_bindgen ( method , structural , js_class = "DragEvent" , js_name = initDragEvent ) ] + #[doc = "The `initDragEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DragEvent/initDragEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `DragEvent`, `EventTarget`, `Window`*"] + pub fn init_drag_event_with_can_bubble_and_cancelable_and_a_view_and_a_detail_and_a_screen_x_and_a_screen_y_and_a_client_x_and_a_client_y_and_a_ctrl_key_and_a_alt_key_and_a_shift_key_and_a_meta_key_and_a_button_and_a_related_target_and_a_data_transfer( + this: &DragEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + a_screen_x: i32, + a_screen_y: i32, + a_client_x: i32, + a_client_y: i32, + a_ctrl_key: bool, + a_alt_key: bool, + a_shift_key: bool, + a_meta_key: bool, + a_button: u16, + a_related_target: Option<&EventTarget>, + a_data_transfer: Option<&DataTransfer>, + ); +} diff --git a/crates/web-sys/src/features/gen_DragEventInit.rs b/crates/web-sys/src/features/gen_DragEventInit.rs new file mode 100644 index 00000000..c6b3586d --- /dev/null +++ b/crates/web-sys/src/features/gen_DragEventInit.rs @@ -0,0 +1,488 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DragEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DragEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub type DragEventInit; +} +impl DragEventInit { + #[doc = "Construct a new `DragEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `detail` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn detail(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Window")] + #[doc = "Change the `view` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`, `Window`*"] + pub fn view(&mut self, val: Option<&Window>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `altKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn alt_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("altKey"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ctrlKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn ctrl_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("ctrlKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `metaKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn meta_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("metaKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierAltGraph` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierAltGraph"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierCapsLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierCapsLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierFn` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn modifier_fn(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierFn"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierFnLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierFnLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierNumLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierNumLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierOS` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn modifier_os(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierOS"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierScrollLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierScrollLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierSymbol` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierSymbol"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierSymbolLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierSymbolLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `shiftKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn shift_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("shiftKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `button` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn button(&mut self, val: i16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("button"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `buttons` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn buttons(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("buttons"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `clientX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn client_x(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("clientX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `clientY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn client_y(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("clientY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `movementX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn movement_x(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("movementX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `movementY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn movement_y(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("movementY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "EventTarget")] + #[doc = "Change the `relatedTarget` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`, `EventTarget`*"] + pub fn related_target(&mut self, val: Option<&EventTarget>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("relatedTarget"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `screenX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn screen_x(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("screenX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `screenY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DragEventInit`*"] + pub fn screen_y(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("screenY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "DataTransfer")] + #[doc = "Change the `dataTransfer` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `DragEventInit`*"] + pub fn data_transfer(&mut self, val: Option<&DataTransfer>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("dataTransfer"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_DynamicsCompressorNode.rs b/crates/web-sys/src/features/gen_DynamicsCompressorNode.rs new file mode 100644 index 00000000..d0e8a699 --- /dev/null +++ b/crates/web-sys/src/features/gen_DynamicsCompressorNode.rs @@ -0,0 +1,80 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = DynamicsCompressorNode , typescript_type = "DynamicsCompressorNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DynamicsCompressorNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorNode`*"] + pub type DynamicsCompressorNode; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = threshold ) ] + #[doc = "Getter for the `threshold` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/threshold)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"] + pub fn threshold(this: &DynamicsCompressorNode) -> AudioParam; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = knee ) ] + #[doc = "Getter for the `knee` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/knee)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"] + pub fn knee(this: &DynamicsCompressorNode) -> AudioParam; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = ratio ) ] + #[doc = "Getter for the `ratio` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/ratio)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"] + pub fn ratio(this: &DynamicsCompressorNode) -> AudioParam; + # [ wasm_bindgen ( structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = reduction ) ] + #[doc = "Getter for the `reduction` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/reduction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorNode`*"] + pub fn reduction(this: &DynamicsCompressorNode) -> f32; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = attack ) ] + #[doc = "Getter for the `attack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/attack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"] + pub fn attack(this: &DynamicsCompressorNode) -> AudioParam; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "DynamicsCompressorNode" , js_name = release ) ] + #[doc = "Getter for the `release` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/release)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `DynamicsCompressorNode`*"] + pub fn release(this: &DynamicsCompressorNode) -> AudioParam; + #[cfg(feature = "BaseAudioContext")] + #[wasm_bindgen(catch, constructor, js_class = "DynamicsCompressorNode")] + #[doc = "The `new DynamicsCompressorNode(..)` constructor, creating a new instance of `DynamicsCompressorNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/DynamicsCompressorNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DynamicsCompressorNode`*"] + pub fn new(context: &BaseAudioContext) -> Result; + #[cfg(all(feature = "BaseAudioContext", feature = "DynamicsCompressorOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "DynamicsCompressorNode")] + #[doc = "The `new DynamicsCompressorNode(..)` constructor, creating a new instance of `DynamicsCompressorNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/DynamicsCompressorNode/DynamicsCompressorNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `DynamicsCompressorNode`, `DynamicsCompressorOptions`*"] + pub fn new_with_options( + context: &BaseAudioContext, + options: &DynamicsCompressorOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_DynamicsCompressorOptions.rs b/crates/web-sys/src/features/gen_DynamicsCompressorOptions.rs new file mode 100644 index 00000000..b7cd2937 --- /dev/null +++ b/crates/web-sys/src/features/gen_DynamicsCompressorOptions.rs @@ -0,0 +1,149 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = DynamicsCompressorOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `DynamicsCompressorOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] + pub type DynamicsCompressorOptions; +} +impl DynamicsCompressorOptions { + #[doc = "Construct a new `DynamicsCompressorOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] + pub fn channel_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelCountMode")] + #[doc = "Change the `channelCountMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `DynamicsCompressorOptions`*"] + pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCountMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelInterpretation")] + #[doc = "Change the `channelInterpretation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `DynamicsCompressorOptions`*"] + pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelInterpretation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `attack` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] + pub fn attack(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("attack"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `knee` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] + pub fn knee(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("knee"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ratio` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] + pub fn ratio(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ratio"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `release` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] + pub fn release(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("release"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `threshold` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorOptions`*"] + pub fn threshold(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("threshold"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_EcKeyAlgorithm.rs b/crates/web-sys/src/features/gen_EcKeyAlgorithm.rs new file mode 100644 index 00000000..226c2928 --- /dev/null +++ b/crates/web-sys/src/features/gen_EcKeyAlgorithm.rs @@ -0,0 +1,54 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = EcKeyAlgorithm ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `EcKeyAlgorithm` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcKeyAlgorithm`*"] + pub type EcKeyAlgorithm; +} +impl EcKeyAlgorithm { + #[doc = "Construct a new `EcKeyAlgorithm`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcKeyAlgorithm`*"] + pub fn new(name: &str, named_curve: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.named_curve(named_curve); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcKeyAlgorithm`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `namedCurve` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcKeyAlgorithm`*"] + pub fn named_curve(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("namedCurve"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_EcKeyGenParams.rs b/crates/web-sys/src/features/gen_EcKeyGenParams.rs new file mode 100644 index 00000000..d4f709d6 --- /dev/null +++ b/crates/web-sys/src/features/gen_EcKeyGenParams.rs @@ -0,0 +1,54 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = EcKeyGenParams ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `EcKeyGenParams` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcKeyGenParams`*"] + pub type EcKeyGenParams; +} +impl EcKeyGenParams { + #[doc = "Construct a new `EcKeyGenParams`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcKeyGenParams`*"] + pub fn new(name: &str, named_curve: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.named_curve(named_curve); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcKeyGenParams`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `namedCurve` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcKeyGenParams`*"] + pub fn named_curve(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("namedCurve"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_EcKeyImportParams.rs b/crates/web-sys/src/features/gen_EcKeyImportParams.rs new file mode 100644 index 00000000..437a345b --- /dev/null +++ b/crates/web-sys/src/features/gen_EcKeyImportParams.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = EcKeyImportParams ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `EcKeyImportParams` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcKeyImportParams`*"] + pub type EcKeyImportParams; +} +impl EcKeyImportParams { + #[doc = "Construct a new `EcKeyImportParams`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcKeyImportParams`*"] + pub fn new(name: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcKeyImportParams`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `namedCurve` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcKeyImportParams`*"] + pub fn named_curve(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("namedCurve"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_EcdhKeyDeriveParams.rs b/crates/web-sys/src/features/gen_EcdhKeyDeriveParams.rs new file mode 100644 index 00000000..034bd066 --- /dev/null +++ b/crates/web-sys/src/features/gen_EcdhKeyDeriveParams.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = EcdhKeyDeriveParams ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `EcdhKeyDeriveParams` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcdhKeyDeriveParams`*"] + pub type EcdhKeyDeriveParams; +} +impl EcdhKeyDeriveParams { + #[cfg(feature = "CryptoKey")] + #[doc = "Construct a new `EcdhKeyDeriveParams`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `EcdhKeyDeriveParams`*"] + pub fn new(name: &str, public: &CryptoKey) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.public(public); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcdhKeyDeriveParams`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "CryptoKey")] + #[doc = "Change the `public` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `EcdhKeyDeriveParams`*"] + pub fn public(&mut self, val: &CryptoKey) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("public"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_EcdsaParams.rs b/crates/web-sys/src/features/gen_EcdsaParams.rs new file mode 100644 index 00000000..6fcb119e --- /dev/null +++ b/crates/web-sys/src/features/gen_EcdsaParams.rs @@ -0,0 +1,50 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = EcdsaParams ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `EcdsaParams` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcdsaParams`*"] + pub type EcdsaParams; +} +impl EcdsaParams { + #[doc = "Construct a new `EcdsaParams`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcdsaParams`*"] + pub fn new(name: &str, hash: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.hash(hash); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcdsaParams`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `hash` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EcdsaParams`*"] + pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hash"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_EffectTiming.rs b/crates/web-sys/src/features/gen_EffectTiming.rs new file mode 100644 index 00000000..a25b2609 --- /dev/null +++ b/crates/web-sys/src/features/gen_EffectTiming.rs @@ -0,0 +1,149 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = EffectTiming ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `EffectTiming` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] + pub type EffectTiming; +} +impl EffectTiming { + #[doc = "Construct a new `EffectTiming`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `delay` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] + pub fn delay(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("delay"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "PlaybackDirection")] + #[doc = "Change the `direction` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EffectTiming`, `PlaybackDirection`*"] + pub fn direction(&mut self, val: PlaybackDirection) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("direction"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `duration` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] + pub fn duration(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("duration"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `easing` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] + pub fn easing(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("easing"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `endDelay` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] + pub fn end_delay(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("endDelay"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "FillMode")] + #[doc = "Change the `fill` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EffectTiming`, `FillMode`*"] + pub fn fill(&mut self, val: FillMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("fill"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `iterationStart` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] + pub fn iteration_start(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iterationStart"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `iterations` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EffectTiming`*"] + pub fn iterations(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iterations"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Element.rs b/crates/web-sys/src/features/gen_Element.rs new file mode 100644 index 00000000..24a7eb9e --- /dev/null +++ b/crates/web-sys/src/features/gen_Element.rs @@ -0,0 +1,1952 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = Element , typescript_type = "Element" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Element` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub type Element; + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = namespaceURI ) ] + #[doc = "Getter for the `namespaceURI` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/namespaceURI)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn namespace_uri(this: &Element) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = prefix ) ] + #[doc = "Getter for the `prefix` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prefix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prefix(this: &Element) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = localName ) ] + #[doc = "Getter for the `localName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/localName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn local_name(this: &Element) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = tagName ) ] + #[doc = "Getter for the `tagName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/tagName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn tag_name(this: &Element) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = id ) ] + #[doc = "Getter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn id(this: &Element) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "Element" , js_name = id ) ] + #[doc = "Setter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn set_id(this: &Element, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = className ) ] + #[doc = "Getter for the `className` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/className)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn class_name(this: &Element) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "Element" , js_name = className ) ] + #[doc = "Setter for the `className` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/className)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn set_class_name(this: &Element, value: &str); + #[cfg(feature = "DomTokenList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = classList ) ] + #[doc = "Getter for the `classList` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/classList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `Element`*"] + pub fn class_list(this: &Element) -> DomTokenList; + #[cfg(feature = "NamedNodeMap")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = attributes ) ] + #[doc = "Getter for the `attributes` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `NamedNodeMap`*"] + pub fn attributes(this: &Element) -> NamedNodeMap; + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = scrollTop ) ] + #[doc = "Getter for the `scrollTop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn scroll_top(this: &Element) -> i32; + # [ wasm_bindgen ( structural , method , setter , js_class = "Element" , js_name = scrollTop ) ] + #[doc = "Setter for the `scrollTop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn set_scroll_top(this: &Element, value: i32); + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = scrollLeft ) ] + #[doc = "Getter for the `scrollLeft` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn scroll_left(this: &Element) -> i32; + # [ wasm_bindgen ( structural , method , setter , js_class = "Element" , js_name = scrollLeft ) ] + #[doc = "Setter for the `scrollLeft` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn set_scroll_left(this: &Element, value: i32); + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = scrollWidth ) ] + #[doc = "Getter for the `scrollWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn scroll_width(this: &Element) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = scrollHeight ) ] + #[doc = "Getter for the `scrollHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn scroll_height(this: &Element) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = clientTop ) ] + #[doc = "Getter for the `clientTop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/clientTop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn client_top(this: &Element) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = clientLeft ) ] + #[doc = "Getter for the `clientLeft` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/clientLeft)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn client_left(this: &Element) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = clientWidth ) ] + #[doc = "Getter for the `clientWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/clientWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn client_width(this: &Element) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = clientHeight ) ] + #[doc = "Getter for the `clientHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/clientHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn client_height(this: &Element) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = innerHTML ) ] + #[doc = "Getter for the `innerHTML` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn inner_html(this: &Element) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "Element" , js_name = innerHTML ) ] + #[doc = "Setter for the `innerHTML` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn set_inner_html(this: &Element, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = outerHTML ) ] + #[doc = "Getter for the `outerHTML` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/outerHTML)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn outer_html(this: &Element) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "Element" , js_name = outerHTML ) ] + #[doc = "Setter for the `outerHTML` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/outerHTML)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn set_outer_html(this: &Element, value: &str); + #[cfg(feature = "ShadowRoot")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = shadowRoot ) ] + #[doc = "Getter for the `shadowRoot` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/shadowRoot)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] + pub fn shadow_root(this: &Element) -> Option; + #[cfg(feature = "HtmlSlotElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = assignedSlot ) ] + #[doc = "Getter for the `assignedSlot` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/assignedSlot)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlSlotElement`*"] + pub fn assigned_slot(this: &Element) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = slot ) ] + #[doc = "Getter for the `slot` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/slot)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn slot(this: &Element) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "Element" , js_name = slot ) ] + #[doc = "Setter for the `slot` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/slot)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn set_slot(this: &Element, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = previousElementSibling ) ] + #[doc = "Getter for the `previousElementSibling` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/previousElementSibling)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn previous_element_sibling(this: &Element) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = nextElementSibling ) ] + #[doc = "Getter for the `nextElementSibling` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/nextElementSibling)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn next_element_sibling(this: &Element) -> Option; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = children ) ] + #[doc = "Getter for the `children` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/children)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] + pub fn children(this: &Element) -> HtmlCollection; + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = firstElementChild ) ] + #[doc = "Getter for the `firstElementChild` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/firstElementChild)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn first_element_child(this: &Element) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = lastElementChild ) ] + #[doc = "Getter for the `lastElementChild` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/lastElementChild)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn last_element_child(this: &Element) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Element" , js_name = childElementCount ) ] + #[doc = "Getter for the `childElementCount` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/childElementCount)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn child_element_count(this: &Element) -> u32; + #[cfg(all(feature = "ShadowRoot", feature = "ShadowRootInit",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = attachShadow ) ] + #[doc = "The `attachShadow()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/attachShadow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`, `ShadowRootInit`*"] + pub fn attach_shadow( + this: &Element, + shadow_root_init_dict: &ShadowRootInit, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = closest ) ] + #[doc = "The `closest()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/closest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn closest(this: &Element, selector: &str) -> Result, JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = getAttribute ) ] + #[doc = "The `getAttribute()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttribute)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn get_attribute(this: &Element, name: &str) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = getAttributeNS ) ] + #[doc = "The `getAttributeNS()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttributeNS)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn get_attribute_ns( + this: &Element, + namespace: Option<&str>, + local_name: &str, + ) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = getAttributeNames ) ] + #[doc = "The `getAttributeNames()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttributeNames)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn get_attribute_names(this: &Element) -> ::js_sys::Array; + #[cfg(feature = "Attr")] + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = getAttributeNode ) ] + #[doc = "The `getAttributeNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttributeNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`, `Element`*"] + pub fn get_attribute_node(this: &Element, name: &str) -> Option; + #[cfg(feature = "Attr")] + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = getAttributeNodeNS ) ] + #[doc = "The `getAttributeNodeNS()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getAttributeNodeNS)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`, `Element`*"] + pub fn get_attribute_node_ns( + this: &Element, + namespace_uri: Option<&str>, + local_name: &str, + ) -> Option; + #[cfg(feature = "DomRect")] + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = getBoundingClientRect ) ] + #[doc = "The `getBoundingClientRect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`, `Element`*"] + pub fn get_bounding_client_rect(this: &Element) -> DomRect; + #[cfg(feature = "DomRectList")] + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = getClientRects ) ] + #[doc = "The `getClientRects()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getClientRects)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectList`, `Element`*"] + pub fn get_client_rects(this: &Element) -> DomRectList; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = getElementsByClassName ) ] + #[doc = "The `getElementsByClassName()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getElementsByClassName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] + pub fn get_elements_by_class_name(this: &Element, class_names: &str) -> HtmlCollection; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = getElementsByTagName ) ] + #[doc = "The `getElementsByTagName()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getElementsByTagName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] + pub fn get_elements_by_tag_name(this: &Element, local_name: &str) -> HtmlCollection; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = getElementsByTagNameNS ) ] + #[doc = "The `getElementsByTagNameNS()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getElementsByTagNameNS)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] + pub fn get_elements_by_tag_name_ns( + this: &Element, + namespace: Option<&str>, + local_name: &str, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = hasAttribute ) ] + #[doc = "The `hasAttribute()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttribute)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn has_attribute(this: &Element, name: &str) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = hasAttributeNS ) ] + #[doc = "The `hasAttributeNS()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttributeNS)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn has_attribute_ns(this: &Element, namespace: Option<&str>, local_name: &str) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = hasAttributes ) ] + #[doc = "The `hasAttributes()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/hasAttributes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn has_attributes(this: &Element) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = hasPointerCapture ) ] + #[doc = "The `hasPointerCapture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/hasPointerCapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn has_pointer_capture(this: &Element, pointer_id: i32) -> bool; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = insertAdjacentElement ) ] + #[doc = "The `insertAdjacentElement()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn insert_adjacent_element( + this: &Element, + where_: &str, + element: &Element, + ) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = insertAdjacentHTML ) ] + #[doc = "The `insertAdjacentHTML()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn insert_adjacent_html(this: &Element, position: &str, text: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = insertAdjacentText ) ] + #[doc = "The `insertAdjacentText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn insert_adjacent_text(this: &Element, where_: &str, data: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = matches ) ] + #[doc = "The `matches()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/matches)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn matches(this: &Element, selector: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = querySelector ) ] + #[doc = "The `querySelector()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/querySelector)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn query_selector(this: &Element, selectors: &str) -> Result, JsValue>; + #[cfg(feature = "NodeList")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = querySelectorAll ) ] + #[doc = "The `querySelectorAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/querySelectorAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `NodeList`*"] + pub fn query_selector_all(this: &Element, selectors: &str) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = releaseCapture ) ] + #[doc = "The `releaseCapture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/releaseCapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn release_capture(this: &Element); + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = releasePointerCapture ) ] + #[doc = "The `releasePointerCapture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/releasePointerCapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn release_pointer_capture(this: &Element, pointer_id: i32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = removeAttribute ) ] + #[doc = "The `removeAttribute()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttribute)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn remove_attribute(this: &Element, name: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = removeAttributeNS ) ] + #[doc = "The `removeAttributeNS()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttributeNS)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn remove_attribute_ns( + this: &Element, + namespace: Option<&str>, + local_name: &str, + ) -> Result<(), JsValue>; + #[cfg(feature = "Attr")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = removeAttributeNode ) ] + #[doc = "The `removeAttributeNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/removeAttributeNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`, `Element`*"] + pub fn remove_attribute_node(this: &Element, old_attr: &Attr) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = requestFullscreen ) ] + #[doc = "The `requestFullscreen()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullscreen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn request_fullscreen(this: &Element) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = requestPointerLock ) ] + #[doc = "The `requestPointerLock()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/requestPointerLock)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn request_pointer_lock(this: &Element); + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = scroll ) ] + #[doc = "The `scroll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scroll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn scroll_with_x_and_y(this: &Element, x: f64, y: f64); + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = scroll ) ] + #[doc = "The `scroll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scroll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn scroll(this: &Element); + #[cfg(feature = "ScrollToOptions")] + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = scroll ) ] + #[doc = "The `scroll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scroll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `ScrollToOptions`*"] + pub fn scroll_with_scroll_to_options(this: &Element, options: &ScrollToOptions); + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = scrollBy ) ] + #[doc = "The `scrollBy()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollBy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn scroll_by_with_x_and_y(this: &Element, x: f64, y: f64); + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = scrollBy ) ] + #[doc = "The `scrollBy()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollBy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn scroll_by(this: &Element); + #[cfg(feature = "ScrollToOptions")] + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = scrollBy ) ] + #[doc = "The `scrollBy()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollBy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `ScrollToOptions`*"] + pub fn scroll_by_with_scroll_to_options(this: &Element, options: &ScrollToOptions); + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = scrollIntoView ) ] + #[doc = "The `scrollIntoView()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn scroll_into_view(this: &Element); + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = scrollIntoView ) ] + #[doc = "The `scrollIntoView()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn scroll_into_view_with_bool(this: &Element, arg: bool); + #[cfg(feature = "ScrollIntoViewOptions")] + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = scrollIntoView ) ] + #[doc = "The `scrollIntoView()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `ScrollIntoViewOptions`*"] + pub fn scroll_into_view_with_scroll_into_view_options( + this: &Element, + arg: &ScrollIntoViewOptions, + ); + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = scrollTo ) ] + #[doc = "The `scrollTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn scroll_to_with_x_and_y(this: &Element, x: f64, y: f64); + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = scrollTo ) ] + #[doc = "The `scrollTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn scroll_to(this: &Element); + #[cfg(feature = "ScrollToOptions")] + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = scrollTo ) ] + #[doc = "The `scrollTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `ScrollToOptions`*"] + pub fn scroll_to_with_scroll_to_options(this: &Element, options: &ScrollToOptions); + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = setAttribute ) ] + #[doc = "The `setAttribute()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn set_attribute(this: &Element, name: &str, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = setAttributeNS ) ] + #[doc = "The `setAttributeNS()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttributeNS)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn set_attribute_ns( + this: &Element, + namespace: Option<&str>, + name: &str, + value: &str, + ) -> Result<(), JsValue>; + #[cfg(feature = "Attr")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = setAttributeNode ) ] + #[doc = "The `setAttributeNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttributeNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`, `Element`*"] + pub fn set_attribute_node(this: &Element, new_attr: &Attr) -> Result, JsValue>; + #[cfg(feature = "Attr")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = setAttributeNodeNS ) ] + #[doc = "The `setAttributeNodeNS()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttributeNodeNS)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`, `Element`*"] + pub fn set_attribute_node_ns(this: &Element, new_attr: &Attr) -> Result, JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = setCapture ) ] + #[doc = "The `setCapture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setCapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn set_capture(this: &Element); + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = setCapture ) ] + #[doc = "The `setCapture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setCapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn set_capture_with_retarget_to_element(this: &Element, retarget_to_element: bool); + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = setPointerCapture ) ] + #[doc = "The `setPointerCapture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/setPointerCapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn set_pointer_capture(this: &Element, pointer_id: i32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = toggleAttribute ) ] + #[doc = "The `toggleAttribute()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/toggleAttribute)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn toggle_attribute(this: &Element, name: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = toggleAttribute ) ] + #[doc = "The `toggleAttribute()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/toggleAttribute)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn toggle_attribute_with_force( + this: &Element, + name: &str, + force: bool, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = webkitMatchesSelector ) ] + #[doc = "The `webkitMatchesSelector()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/webkitMatchesSelector)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn webkit_matches_selector(this: &Element, selector: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_node(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_node_0(this: &Element) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_node_1(this: &Element, nodes_1: &Node) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_node_2(this: &Element, nodes_1: &Node, nodes_2: &Node) + -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_node_3( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_node_4( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_node_5( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_node_6( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_node_7( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + nodes_7: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_str(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_str_0(this: &Element) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_str_1(this: &Element, nodes_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_str_2(this: &Element, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_str_3( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_str_4( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_str_5( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_str_6( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = after ) ] + #[doc = "The `after()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/after)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn after_with_str_7( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + nodes_7: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_node(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_node_0(this: &Element) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_node_1(this: &Element, nodes_1: &Node) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_node_2( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_node_3( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_node_4( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_node_5( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_node_6( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_node_7( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + nodes_7: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_str(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_str_0(this: &Element) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_str_1(this: &Element, nodes_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_str_2(this: &Element, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_str_3( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_str_4( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_str_5( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_str_6( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = before ) ] + #[doc = "The `before()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/before)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn before_with_str_7( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + nodes_7: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "Element" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn remove(this: &Element); + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_node(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_node_0(this: &Element) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_node_1(this: &Element, nodes_1: &Node) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_node_2( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_node_3( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_node_4( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_node_5( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_node_6( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_node_7( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + nodes_7: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_str(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_str_0(this: &Element) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_str_1(this: &Element, nodes_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_str_2( + this: &Element, + nodes_1: &str, + nodes_2: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_str_3( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_str_4( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_str_5( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_str_6( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = replaceWith ) ] + #[doc = "The `replaceWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/replaceWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn replace_with_with_str_7( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + nodes_7: &str, + ) -> Result<(), JsValue>; + #[cfg(all(feature = "DomPoint", feature = "DomPointInit", feature = "Text",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomPointInit`, `Element`, `Text`*"] + pub fn convert_point_from_node_with_text( + this: &Element, + point: &DomPointInit, + from: &Text, + ) -> Result; + #[cfg(all(feature = "DomPoint", feature = "DomPointInit",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomPointInit`, `Element`*"] + pub fn convert_point_from_node_with_element( + this: &Element, + point: &DomPointInit, + from: &Element, + ) -> Result; + #[cfg(all(feature = "Document", feature = "DomPoint", feature = "DomPointInit",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomPoint`, `DomPointInit`, `Element`*"] + pub fn convert_point_from_node_with_document( + this: &Element, + point: &DomPointInit, + from: &Document, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomPoint", + feature = "DomPointInit", + feature = "Text", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomPoint`, `DomPointInit`, `Element`, `Text`*"] + pub fn convert_point_from_node_with_text_and_options( + this: &Element, + point: &DomPointInit, + from: &Text, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomPoint", + feature = "DomPointInit", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomPoint`, `DomPointInit`, `Element`*"] + pub fn convert_point_from_node_with_element_and_options( + this: &Element, + point: &DomPointInit, + from: &Element, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "Document", + feature = "DomPoint", + feature = "DomPointInit", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomPoint`, `DomPointInit`, `Element`*"] + pub fn convert_point_from_node_with_document_and_options( + this: &Element, + point: &DomPointInit, + from: &Document, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all(feature = "DomQuad", feature = "Text",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `Element`, `Text`*"] + pub fn convert_quad_from_node_with_text( + this: &Element, + quad: &DomQuad, + from: &Text, + ) -> Result; + #[cfg(feature = "DomQuad")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `Element`*"] + pub fn convert_quad_from_node_with_element( + this: &Element, + quad: &DomQuad, + from: &Element, + ) -> Result; + #[cfg(all(feature = "Document", feature = "DomQuad",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `Element`*"] + pub fn convert_quad_from_node_with_document( + this: &Element, + quad: &DomQuad, + from: &Document, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomQuad", + feature = "Text", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomQuad`, `Element`, `Text`*"] + pub fn convert_quad_from_node_with_text_and_options( + this: &Element, + quad: &DomQuad, + from: &Text, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all(feature = "ConvertCoordinateOptions", feature = "DomQuad",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomQuad`, `Element`*"] + pub fn convert_quad_from_node_with_element_and_options( + this: &Element, + quad: &DomQuad, + from: &Element, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "Document", + feature = "DomQuad", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `Element`*"] + pub fn convert_quad_from_node_with_document_and_options( + this: &Element, + quad: &DomQuad, + from: &Document, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly", feature = "Text",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`, `Element`, `Text`*"] + pub fn convert_rect_from_node_with_text( + this: &Element, + rect: &DomRectReadOnly, + from: &Text, + ) -> Result; + #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`, `Element`*"] + pub fn convert_rect_from_node_with_element( + this: &Element, + rect: &DomRectReadOnly, + from: &Element, + ) -> Result; + #[cfg(all(feature = "Document", feature = "DomQuad", feature = "DomRectReadOnly",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `DomRectReadOnly`, `Element`*"] + pub fn convert_rect_from_node_with_document( + this: &Element, + rect: &DomRectReadOnly, + from: &Document, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomQuad", + feature = "DomRectReadOnly", + feature = "Text", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomQuad`, `DomRectReadOnly`, `Element`, `Text`*"] + pub fn convert_rect_from_node_with_text_and_options( + this: &Element, + rect: &DomRectReadOnly, + from: &Text, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomQuad", + feature = "DomRectReadOnly", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomQuad`, `DomRectReadOnly`, `Element`*"] + pub fn convert_rect_from_node_with_element_and_options( + this: &Element, + rect: &DomRectReadOnly, + from: &Element, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "Document", + feature = "DomQuad", + feature = "DomRectReadOnly", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `DomRectReadOnly`, `Element`*"] + pub fn convert_rect_from_node_with_document_and_options( + this: &Element, + rect: &DomRectReadOnly, + from: &Document, + options: &ConvertCoordinateOptions, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = getBoxQuads ) ] + #[doc = "The `getBoxQuads()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoxQuads)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn get_box_quads(this: &Element) -> Result<::js_sys::Array, JsValue>; + #[cfg(feature = "BoxQuadOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = getBoxQuads ) ] + #[doc = "The `getBoxQuads()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoxQuads)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`, `Element`*"] + pub fn get_box_quads_with_options( + this: &Element, + options: &BoxQuadOptions, + ) -> Result<::js_sys::Array, JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_node(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_node_0(this: &Element) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_node_1(this: &Element, nodes_1: &Node) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_node_2( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_node_3( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_node_4( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_node_5( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_node_6( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_node_7( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + nodes_7: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_str(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_str_0(this: &Element) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_str_1(this: &Element, nodes_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_str_2(this: &Element, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_str_3( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_str_4( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_str_5( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_str_6( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn append_with_str_7( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + nodes_7: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_node(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_node_0(this: &Element) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_node_1(this: &Element, nodes_1: &Node) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_node_2( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_node_3( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_node_4( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_node_5( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_node_6( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_node_7( + this: &Element, + nodes_1: &Node, + nodes_2: &Node, + nodes_3: &Node, + nodes_4: &Node, + nodes_5: &Node, + nodes_6: &Node, + nodes_7: &Node, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_str(this: &Element, nodes: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_str_0(this: &Element) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_str_1(this: &Element, nodes_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_str_2(this: &Element, nodes_1: &str, nodes_2: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_str_3( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_str_4( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_str_5( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_str_6( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Element" , js_name = prepend ) ] + #[doc = "The `prepend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Element/prepend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`*"] + pub fn prepend_with_str_7( + this: &Element, + nodes_1: &str, + nodes_2: &str, + nodes_3: &str, + nodes_4: &str, + nodes_5: &str, + nodes_6: &str, + nodes_7: &str, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_ElementCreationOptions.rs b/crates/web-sys/src/features/gen_ElementCreationOptions.rs new file mode 100644 index 00000000..d28b0714 --- /dev/null +++ b/crates/web-sys/src/features/gen_ElementCreationOptions.rs @@ -0,0 +1,49 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ElementCreationOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ElementCreationOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ElementCreationOptions`*"] + pub type ElementCreationOptions; +} +impl ElementCreationOptions { + #[doc = "Construct a new `ElementCreationOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ElementCreationOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `is` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ElementCreationOptions`*"] + pub fn is(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("is"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pseudo` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ElementCreationOptions`*"] + pub fn pseudo(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("pseudo"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ElementDefinitionOptions.rs b/crates/web-sys/src/features/gen_ElementDefinitionOptions.rs new file mode 100644 index 00000000..fd48d4b0 --- /dev/null +++ b/crates/web-sys/src/features/gen_ElementDefinitionOptions.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ElementDefinitionOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ElementDefinitionOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ElementDefinitionOptions`*"] + pub type ElementDefinitionOptions; +} +impl ElementDefinitionOptions { + #[doc = "Construct a new `ElementDefinitionOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ElementDefinitionOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `extends` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ElementDefinitionOptions`*"] + pub fn extends(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("extends"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_EndingTypes.rs b/crates/web-sys/src/features/gen_EndingTypes.rs new file mode 100644 index 00000000..476f2296 --- /dev/null +++ b/crates/web-sys/src/features/gen_EndingTypes.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `EndingTypes` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `EndingTypes`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum EndingTypes { + Transparent = "transparent", + Native = "native", +} diff --git a/crates/web-sys/src/features/gen_ErrorCallback.rs b/crates/web-sys/src/features/gen_ErrorCallback.rs new file mode 100644 index 00000000..d5736b28 --- /dev/null +++ b/crates/web-sys/src/features/gen_ErrorCallback.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ErrorCallback ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ErrorCallback` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`*"] + pub type ErrorCallback; +} +impl ErrorCallback { + #[doc = "Construct a new `ErrorCallback`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `handleEvent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`*"] + pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("handleEvent"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ErrorEvent.rs b/crates/web-sys/src/features/gen_ErrorEvent.rs new file mode 100644 index 00000000..591f3f3d --- /dev/null +++ b/crates/web-sys/src/features/gen_ErrorEvent.rs @@ -0,0 +1,67 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = ErrorEvent , typescript_type = "ErrorEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ErrorEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] + pub type ErrorEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "ErrorEvent" , js_name = message ) ] + #[doc = "Getter for the `message` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/message)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] + pub fn message(this: &ErrorEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "ErrorEvent" , js_name = filename ) ] + #[doc = "Getter for the `filename` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/filename)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] + pub fn filename(this: &ErrorEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "ErrorEvent" , js_name = lineno ) ] + #[doc = "Getter for the `lineno` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/lineno)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] + pub fn lineno(this: &ErrorEvent) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "ErrorEvent" , js_name = colno ) ] + #[doc = "Getter for the `colno` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/colno)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] + pub fn colno(this: &ErrorEvent) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "ErrorEvent" , js_name = error ) ] + #[doc = "Getter for the `error` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] + pub fn error(this: &ErrorEvent) -> ::wasm_bindgen::JsValue; + #[wasm_bindgen(catch, constructor, js_class = "ErrorEvent")] + #[doc = "The `new ErrorEvent(..)` constructor, creating a new instance of `ErrorEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/ErrorEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "ErrorEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "ErrorEvent")] + #[doc = "The `new ErrorEvent(..)` constructor, creating a new instance of `ErrorEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ErrorEvent/ErrorEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEvent`, `ErrorEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &ErrorEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_ErrorEventInit.rs b/crates/web-sys/src/features/gen_ErrorEventInit.rs new file mode 100644 index 00000000..cb39fd33 --- /dev/null +++ b/crates/web-sys/src/features/gen_ErrorEventInit.rs @@ -0,0 +1,147 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ErrorEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ErrorEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] + pub type ErrorEventInit; +} +impl ErrorEventInit { + #[doc = "Construct a new `ErrorEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `colno` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] + pub fn colno(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("colno"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `error` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] + pub fn error(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `filename` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] + pub fn filename(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("filename"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `lineno` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] + pub fn lineno(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("lineno"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `message` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorEventInit`*"] + pub fn message(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("message"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Event.rs b/crates/web-sys/src/features/gen_Event.rs new file mode 100644 index 00000000..95ebd084 --- /dev/null +++ b/crates/web-sys/src/features/gen_Event.rs @@ -0,0 +1,190 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Event , typescript_type = "Event" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Event` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub type Event; + # [ wasm_bindgen ( structural , method , getter , js_class = "Event" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn type_(this: &Event) -> String; + #[cfg(feature = "EventTarget")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Event" , js_name = target ) ] + #[doc = "Getter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`, `EventTarget`*"] + pub fn target(this: &Event) -> Option; + #[cfg(feature = "EventTarget")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Event" , js_name = currentTarget ) ] + #[doc = "Getter for the `currentTarget` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/currentTarget)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`, `EventTarget`*"] + pub fn current_target(this: &Event) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Event" , js_name = eventPhase ) ] + #[doc = "Getter for the `eventPhase` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/eventPhase)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn event_phase(this: &Event) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "Event" , js_name = bubbles ) ] + #[doc = "Getter for the `bubbles` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/bubbles)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn bubbles(this: &Event) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "Event" , js_name = cancelable ) ] + #[doc = "Getter for the `cancelable` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn cancelable(this: &Event) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "Event" , js_name = defaultPrevented ) ] + #[doc = "Getter for the `defaultPrevented` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/defaultPrevented)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn default_prevented(this: &Event) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "Event" , js_name = composed ) ] + #[doc = "Getter for the `composed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/composed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn composed(this: &Event) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "Event" , js_name = isTrusted ) ] + #[doc = "Getter for the `isTrusted` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/isTrusted)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn is_trusted(this: &Event) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "Event" , js_name = timeStamp ) ] + #[doc = "Getter for the `timeStamp` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/timeStamp)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn time_stamp(this: &Event) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "Event" , js_name = cancelBubble ) ] + #[doc = "Getter for the `cancelBubble` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelBubble)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn cancel_bubble(this: &Event) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "Event" , js_name = cancelBubble ) ] + #[doc = "Setter for the `cancelBubble` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/cancelBubble)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn set_cancel_bubble(this: &Event, value: bool); + #[wasm_bindgen(catch, constructor, js_class = "Event")] + #[doc = "The `new Event(..)` constructor, creating a new instance of `Event`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/Event)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "EventInit")] + #[wasm_bindgen(catch, constructor, js_class = "Event")] + #[doc = "The `new Event(..)` constructor, creating a new instance of `Event`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/Event)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`, `EventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &EventInit, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "Event" , js_name = composedPath ) ] + #[doc = "The `composedPath()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/composedPath)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn composed_path(this: &Event) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "Event" , js_name = initEvent ) ] + #[doc = "The `initEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn init_event(this: &Event, type_: &str); + # [ wasm_bindgen ( method , structural , js_class = "Event" , js_name = initEvent ) ] + #[doc = "The `initEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn init_event_with_bubbles(this: &Event, type_: &str, bubbles: bool); + # [ wasm_bindgen ( method , structural , js_class = "Event" , js_name = initEvent ) ] + #[doc = "The `initEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/initEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn init_event_with_bubbles_and_cancelable( + this: &Event, + type_: &str, + bubbles: bool, + cancelable: bool, + ); + # [ wasm_bindgen ( method , structural , js_class = "Event" , js_name = preventDefault ) ] + #[doc = "The `preventDefault()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn prevent_default(this: &Event); + # [ wasm_bindgen ( method , structural , js_class = "Event" , js_name = stopImmediatePropagation ) ] + #[doc = "The `stopImmediatePropagation()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/stopImmediatePropagation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn stop_immediate_propagation(this: &Event); + # [ wasm_bindgen ( method , structural , js_class = "Event" , js_name = stopPropagation ) ] + #[doc = "The `stopPropagation()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub fn stop_propagation(this: &Event); +} +impl Event { + #[doc = "The `Event.NONE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub const NONE: u16 = 0i64 as u16; + #[doc = "The `Event.CAPTURING_PHASE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub const CAPTURING_PHASE: u16 = 1u64 as u16; + #[doc = "The `Event.AT_TARGET` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub const AT_TARGET: u16 = 2u64 as u16; + #[doc = "The `Event.BUBBLING_PHASE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`*"] + pub const BUBBLING_PHASE: u16 = 3u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_EventInit.rs b/crates/web-sys/src/features/gen_EventInit.rs new file mode 100644 index 00000000..c52198d2 --- /dev/null +++ b/crates/web-sys/src/features/gen_EventInit.rs @@ -0,0 +1,73 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = EventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `EventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventInit`*"] + pub type EventInit; +} +impl EventInit { + #[doc = "Construct a new `EventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_EventListener.rs b/crates/web-sys/src/features/gen_EventListener.rs new file mode 100644 index 00000000..71474475 --- /dev/null +++ b/crates/web-sys/src/features/gen_EventListener.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = EventListener ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `EventListener` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventListener`*"] + pub type EventListener; +} +impl EventListener { + #[doc = "Construct a new `EventListener`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventListener`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `handleEvent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventListener`*"] + pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("handleEvent"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_EventListenerOptions.rs b/crates/web-sys/src/features/gen_EventListenerOptions.rs new file mode 100644 index 00000000..c1573de8 --- /dev/null +++ b/crates/web-sys/src/features/gen_EventListenerOptions.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = EventListenerOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `EventListenerOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventListenerOptions`*"] + pub type EventListenerOptions; +} +impl EventListenerOptions { + #[doc = "Construct a new `EventListenerOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventListenerOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `capture` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventListenerOptions`*"] + pub fn capture(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("capture"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_EventModifierInit.rs b/crates/web-sys/src/features/gen_EventModifierInit.rs new file mode 100644 index 00000000..80660c23 --- /dev/null +++ b/crates/web-sys/src/features/gen_EventModifierInit.rs @@ -0,0 +1,319 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = EventModifierInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `EventModifierInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub type EventModifierInit; +} +impl EventModifierInit { + #[doc = "Construct a new `EventModifierInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `detail` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn detail(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Window")] + #[doc = "Change the `view` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`, `Window`*"] + pub fn view(&mut self, val: Option<&Window>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `altKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn alt_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("altKey"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ctrlKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn ctrl_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("ctrlKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `metaKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn meta_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("metaKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierAltGraph` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierAltGraph"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierCapsLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierCapsLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierFn` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn modifier_fn(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierFn"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierFnLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierFnLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierNumLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierNumLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierOS` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn modifier_os(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierOS"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierScrollLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierScrollLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierSymbol` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierSymbol"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierSymbolLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierSymbolLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `shiftKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventModifierInit`*"] + pub fn shift_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("shiftKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_EventSource.rs b/crates/web-sys/src/features/gen_EventSource.rs new file mode 100644 index 00000000..154c94a5 --- /dev/null +++ b/crates/web-sys/src/features/gen_EventSource.rs @@ -0,0 +1,116 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = EventSource , typescript_type = "EventSource" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `EventSource` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] + pub type EventSource; + # [ wasm_bindgen ( structural , method , getter , js_class = "EventSource" , js_name = url ) ] + #[doc = "Getter for the `url` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/url)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] + pub fn url(this: &EventSource) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "EventSource" , js_name = withCredentials ) ] + #[doc = "Getter for the `withCredentials` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/withCredentials)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] + pub fn with_credentials(this: &EventSource) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "EventSource" , js_name = readyState ) ] + #[doc = "Getter for the `readyState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/readyState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] + pub fn ready_state(this: &EventSource) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "EventSource" , js_name = onopen ) ] + #[doc = "Getter for the `onopen` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onopen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] + pub fn onopen(this: &EventSource) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "EventSource" , js_name = onopen ) ] + #[doc = "Setter for the `onopen` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onopen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] + pub fn set_onopen(this: &EventSource, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "EventSource" , js_name = onmessage ) ] + #[doc = "Getter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] + pub fn onmessage(this: &EventSource) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "EventSource" , js_name = onmessage ) ] + #[doc = "Setter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] + pub fn set_onmessage(this: &EventSource, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "EventSource" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] + pub fn onerror(this: &EventSource) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "EventSource" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] + pub fn set_onerror(this: &EventSource, value: Option<&::js_sys::Function>); + #[wasm_bindgen(catch, constructor, js_class = "EventSource")] + #[doc = "The `new EventSource(..)` constructor, creating a new instance of `EventSource`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/EventSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] + pub fn new(url: &str) -> Result; + #[cfg(feature = "EventSourceInit")] + #[wasm_bindgen(catch, constructor, js_class = "EventSource")] + #[doc = "The `new EventSource(..)` constructor, creating a new instance of `EventSource`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/EventSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSource`, `EventSourceInit`*"] + pub fn new_with_event_source_init_dict( + url: &str, + event_source_init_dict: &EventSourceInit, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "EventSource" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventSource/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] + pub fn close(this: &EventSource); +} +impl EventSource { + #[doc = "The `EventSource.CONNECTING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] + pub const CONNECTING: u16 = 0i64 as u16; + #[doc = "The `EventSource.OPEN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] + pub const OPEN: u16 = 1u64 as u16; + #[doc = "The `EventSource.CLOSED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSource`*"] + pub const CLOSED: u16 = 2u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_EventSourceInit.rs b/crates/web-sys/src/features/gen_EventSourceInit.rs new file mode 100644 index 00000000..2cd26a15 --- /dev/null +++ b/crates/web-sys/src/features/gen_EventSourceInit.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = EventSourceInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `EventSourceInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSourceInit`*"] + pub type EventSourceInit; +} +impl EventSourceInit { + #[doc = "Construct a new `EventSourceInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSourceInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `withCredentials` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventSourceInit`*"] + pub fn with_credentials(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("withCredentials"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_EventTarget.rs b/crates/web-sys/src/features/gen_EventTarget.rs new file mode 100644 index 00000000..1d455ee0 --- /dev/null +++ b/crates/web-sys/src/features/gen_EventTarget.rs @@ -0,0 +1,232 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = EventTarget , typescript_type = "EventTarget" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `EventTarget` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"] + pub type EventTarget; + #[wasm_bindgen(catch, constructor, js_class = "EventTarget")] + #[doc = "The `new EventTarget(..)` constructor, creating a new instance of `EventTarget`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/EventTarget)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"] + pub fn new() -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ] + #[doc = "The `addEventListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"] + pub fn add_event_listener_with_callback( + this: &EventTarget, + type_: &str, + listener: &::js_sys::Function, + ) -> Result<(), JsValue>; + #[cfg(feature = "EventListener")] + # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ] + #[doc = "The `addEventListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventTarget`*"] + pub fn add_event_listener_with_event_listener( + this: &EventTarget, + type_: &str, + listener: &EventListener, + ) -> Result<(), JsValue>; + #[cfg(feature = "AddEventListenerOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ] + #[doc = "The `addEventListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`, `EventTarget`*"] + pub fn add_event_listener_with_callback_and_add_event_listener_options( + this: &EventTarget, + type_: &str, + listener: &::js_sys::Function, + options: &AddEventListenerOptions, + ) -> Result<(), JsValue>; + #[cfg(all(feature = "AddEventListenerOptions", feature = "EventListener",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ] + #[doc = "The `addEventListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`, `EventListener`, `EventTarget`*"] + pub fn add_event_listener_with_event_listener_and_add_event_listener_options( + this: &EventTarget, + type_: &str, + listener: &EventListener, + options: &AddEventListenerOptions, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ] + #[doc = "The `addEventListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"] + pub fn add_event_listener_with_callback_and_bool( + this: &EventTarget, + type_: &str, + listener: &::js_sys::Function, + options: bool, + ) -> Result<(), JsValue>; + #[cfg(feature = "EventListener")] + # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ] + #[doc = "The `addEventListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventTarget`*"] + pub fn add_event_listener_with_event_listener_and_bool( + this: &EventTarget, + type_: &str, + listener: &EventListener, + options: bool, + ) -> Result<(), JsValue>; + #[cfg(feature = "AddEventListenerOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ] + #[doc = "The `addEventListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`, `EventTarget`*"] + pub fn add_event_listener_with_callback_and_add_event_listener_options_and_wants_untrusted( + this: &EventTarget, + type_: &str, + listener: &::js_sys::Function, + options: &AddEventListenerOptions, + wants_untrusted: Option, + ) -> Result<(), JsValue>; + #[cfg(all(feature = "AddEventListenerOptions", feature = "EventListener",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ] + #[doc = "The `addEventListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AddEventListenerOptions`, `EventListener`, `EventTarget`*"] + pub fn add_event_listener_with_event_listener_and_add_event_listener_options_and_wants_untrusted( + this: &EventTarget, + type_: &str, + listener: &EventListener, + options: &AddEventListenerOptions, + wants_untrusted: Option, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ] + #[doc = "The `addEventListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"] + pub fn add_event_listener_with_callback_and_bool_and_wants_untrusted( + this: &EventTarget, + type_: &str, + listener: &::js_sys::Function, + options: bool, + wants_untrusted: Option, + ) -> Result<(), JsValue>; + #[cfg(feature = "EventListener")] + # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = addEventListener ) ] + #[doc = "The `addEventListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventTarget`*"] + pub fn add_event_listener_with_event_listener_and_bool_and_wants_untrusted( + this: &EventTarget, + type_: &str, + listener: &EventListener, + options: bool, + wants_untrusted: Option, + ) -> Result<(), JsValue>; + #[cfg(feature = "Event")] + # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = dispatchEvent ) ] + #[doc = "The `dispatchEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/dispatchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Event`, `EventTarget`*"] + pub fn dispatch_event(this: &EventTarget, event: &Event) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener ) ] + #[doc = "The `removeEventListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"] + pub fn remove_event_listener_with_callback( + this: &EventTarget, + type_: &str, + listener: &::js_sys::Function, + ) -> Result<(), JsValue>; + #[cfg(feature = "EventListener")] + # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener ) ] + #[doc = "The `removeEventListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventTarget`*"] + pub fn remove_event_listener_with_event_listener( + this: &EventTarget, + type_: &str, + listener: &EventListener, + ) -> Result<(), JsValue>; + #[cfg(feature = "EventListenerOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener ) ] + #[doc = "The `removeEventListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventListenerOptions`, `EventTarget`*"] + pub fn remove_event_listener_with_callback_and_event_listener_options( + this: &EventTarget, + type_: &str, + listener: &::js_sys::Function, + options: &EventListenerOptions, + ) -> Result<(), JsValue>; + #[cfg(all(feature = "EventListener", feature = "EventListenerOptions",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener ) ] + #[doc = "The `removeEventListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventListenerOptions`, `EventTarget`*"] + pub fn remove_event_listener_with_event_listener_and_event_listener_options( + this: &EventTarget, + type_: &str, + listener: &EventListener, + options: &EventListenerOptions, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener ) ] + #[doc = "The `removeEventListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`*"] + pub fn remove_event_listener_with_callback_and_bool( + this: &EventTarget, + type_: &str, + listener: &::js_sys::Function, + options: bool, + ) -> Result<(), JsValue>; + #[cfg(feature = "EventListener")] + # [ wasm_bindgen ( catch , method , structural , js_class = "EventTarget" , js_name = removeEventListener ) ] + #[doc = "The `removeEventListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/removeEventListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventListener`, `EventTarget`*"] + pub fn remove_event_listener_with_event_listener_and_bool( + this: &EventTarget, + type_: &str, + listener: &EventListener, + options: bool, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_Exception.rs b/crates/web-sys/src/features/gen_Exception.rs new file mode 100644 index 00000000..e1e82a7b --- /dev/null +++ b/crates/web-sys/src/features/gen_Exception.rs @@ -0,0 +1,70 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = Exception , typescript_type = "Exception" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Exception` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Exception`*"] + pub type Exception; + # [ wasm_bindgen ( structural , method , getter , js_class = "Exception" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Exception`*"] + pub fn name(this: &Exception) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Exception" , js_name = message ) ] + #[doc = "Getter for the `message` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/message)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Exception`*"] + pub fn message(this: &Exception) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Exception" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Exception`*"] + pub fn result(this: &Exception) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Exception" , js_name = filename ) ] + #[doc = "Getter for the `filename` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/filename)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Exception`*"] + pub fn filename(this: &Exception) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Exception" , js_name = lineNumber ) ] + #[doc = "Getter for the `lineNumber` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/lineNumber)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Exception`*"] + pub fn line_number(this: &Exception) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Exception" , js_name = columnNumber ) ] + #[doc = "Getter for the `columnNumber` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/columnNumber)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Exception`*"] + pub fn column_number(this: &Exception) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Exception" , js_name = data ) ] + #[doc = "Getter for the `data` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/data)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Exception`*"] + pub fn data(this: &Exception) -> Option<::js_sys::Object>; + # [ wasm_bindgen ( structural , method , getter , js_class = "Exception" , js_name = stack ) ] + #[doc = "Getter for the `stack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Exception/stack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Exception`*"] + pub fn stack(this: &Exception) -> String; +} diff --git a/crates/web-sys/src/features/gen_ExtBlendMinmax.rs b/crates/web-sys/src/features/gen_ExtBlendMinmax.rs new file mode 100644 index 00000000..7e2b80d9 --- /dev/null +++ b/crates/web-sys/src/features/gen_ExtBlendMinmax.rs @@ -0,0 +1,24 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_blend_minmax , typescript_type = "EXT_blend_minmax" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ExtBlendMinmax` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_blend_minmax)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtBlendMinmax`*"] + pub type ExtBlendMinmax; +} +impl ExtBlendMinmax { + #[doc = "The `EXT_blend_minmax.MIN_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtBlendMinmax`*"] + pub const MIN_EXT: u32 = 32775u64 as u32; + #[doc = "The `EXT_blend_minmax.MAX_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtBlendMinmax`*"] + pub const MAX_EXT: u32 = 32776u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_ExtColorBufferFloat.rs b/crates/web-sys/src/features/gen_ExtColorBufferFloat.rs new file mode 100644 index 00000000..c4f86dd5 --- /dev/null +++ b/crates/web-sys/src/features/gen_ExtColorBufferFloat.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_color_buffer_float , typescript_type = "EXT_color_buffer_float" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ExtColorBufferFloat` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_color_buffer_float)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtColorBufferFloat`*"] + pub type ExtColorBufferFloat; +} diff --git a/crates/web-sys/src/features/gen_ExtColorBufferHalfFloat.rs b/crates/web-sys/src/features/gen_ExtColorBufferHalfFloat.rs new file mode 100644 index 00000000..495b5edb --- /dev/null +++ b/crates/web-sys/src/features/gen_ExtColorBufferHalfFloat.rs @@ -0,0 +1,32 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_color_buffer_half_float , typescript_type = "EXT_color_buffer_half_float" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ExtColorBufferHalfFloat` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_color_buffer_half_float)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtColorBufferHalfFloat`*"] + pub type ExtColorBufferHalfFloat; +} +impl ExtColorBufferHalfFloat { + #[doc = "The `EXT_color_buffer_half_float.RGBA16F_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtColorBufferHalfFloat`*"] + pub const RGBA16F_EXT: u32 = 34842u64 as u32; + #[doc = "The `EXT_color_buffer_half_float.RGB16F_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtColorBufferHalfFloat`*"] + pub const RGB16F_EXT: u32 = 34843u64 as u32; + #[doc = "The `EXT_color_buffer_half_float.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtColorBufferHalfFloat`*"] + pub const FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: u32 = 33297u64 as u32; + #[doc = "The `EXT_color_buffer_half_float.UNSIGNED_NORMALIZED_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtColorBufferHalfFloat`*"] + pub const UNSIGNED_NORMALIZED_EXT: u32 = 35863u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_ExtDisjointTimerQuery.rs b/crates/web-sys/src/features/gen_ExtDisjointTimerQuery.rs new file mode 100644 index 00000000..5efc9b1f --- /dev/null +++ b/crates/web-sys/src/features/gen_ExtDisjointTimerQuery.rs @@ -0,0 +1,114 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_disjoint_timer_query , typescript_type = "EXT_disjoint_timer_query" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ExtDisjointTimerQuery` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] + pub type ExtDisjointTimerQuery; + #[cfg(feature = "WebGlQuery")] + # [ wasm_bindgen ( method , structural , js_class = "EXT_disjoint_timer_query" , js_name = beginQueryEXT ) ] + #[doc = "The `beginQueryEXT()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/beginQueryEXT)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"] + pub fn begin_query_ext(this: &ExtDisjointTimerQuery, target: u32, query: &WebGlQuery); + #[cfg(feature = "WebGlQuery")] + # [ wasm_bindgen ( method , structural , js_class = "EXT_disjoint_timer_query" , js_name = createQueryEXT ) ] + #[doc = "The `createQueryEXT()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/createQueryEXT)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"] + pub fn create_query_ext(this: &ExtDisjointTimerQuery) -> Option; + #[cfg(feature = "WebGlQuery")] + # [ wasm_bindgen ( method , structural , js_class = "EXT_disjoint_timer_query" , js_name = deleteQueryEXT ) ] + #[doc = "The `deleteQueryEXT()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/deleteQueryEXT)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"] + pub fn delete_query_ext(this: &ExtDisjointTimerQuery, query: Option<&WebGlQuery>); + # [ wasm_bindgen ( method , structural , js_class = "EXT_disjoint_timer_query" , js_name = endQueryEXT ) ] + #[doc = "The `endQueryEXT()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/endQueryEXT)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] + pub fn end_query_ext(this: &ExtDisjointTimerQuery, target: u32); + # [ wasm_bindgen ( method , structural , js_class = "EXT_disjoint_timer_query" , js_name = getQueryEXT ) ] + #[doc = "The `getQueryEXT()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/getQueryEXT)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] + pub fn get_query_ext( + this: &ExtDisjointTimerQuery, + target: u32, + pname: u32, + ) -> ::wasm_bindgen::JsValue; + #[cfg(feature = "WebGlQuery")] + # [ wasm_bindgen ( method , structural , js_class = "EXT_disjoint_timer_query" , js_name = getQueryObjectEXT ) ] + #[doc = "The `getQueryObjectEXT()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/getQueryObjectEXT)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"] + pub fn get_query_object_ext( + this: &ExtDisjointTimerQuery, + query: &WebGlQuery, + pname: u32, + ) -> ::wasm_bindgen::JsValue; + #[cfg(feature = "WebGlQuery")] + # [ wasm_bindgen ( method , structural , js_class = "EXT_disjoint_timer_query" , js_name = isQueryEXT ) ] + #[doc = "The `isQueryEXT()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/isQueryEXT)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"] + pub fn is_query_ext(this: &ExtDisjointTimerQuery, query: Option<&WebGlQuery>) -> bool; + #[cfg(feature = "WebGlQuery")] + # [ wasm_bindgen ( method , structural , js_class = "EXT_disjoint_timer_query" , js_name = queryCounterEXT ) ] + #[doc = "The `queryCounterEXT()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_disjoint_timer_query/queryCounterEXT)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`, `WebGlQuery`*"] + pub fn query_counter_ext(this: &ExtDisjointTimerQuery, query: &WebGlQuery, target: u32); +} +impl ExtDisjointTimerQuery { + #[doc = "The `EXT_disjoint_timer_query.QUERY_COUNTER_BITS_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] + pub const QUERY_COUNTER_BITS_EXT: u32 = 34916u64 as u32; + #[doc = "The `EXT_disjoint_timer_query.CURRENT_QUERY_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] + pub const CURRENT_QUERY_EXT: u32 = 34917u64 as u32; + #[doc = "The `EXT_disjoint_timer_query.QUERY_RESULT_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] + pub const QUERY_RESULT_EXT: u32 = 34918u64 as u32; + #[doc = "The `EXT_disjoint_timer_query.QUERY_RESULT_AVAILABLE_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] + pub const QUERY_RESULT_AVAILABLE_EXT: u32 = 34919u64 as u32; + #[doc = "The `EXT_disjoint_timer_query.TIME_ELAPSED_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] + pub const TIME_ELAPSED_EXT: u32 = 35007u64 as u32; + #[doc = "The `EXT_disjoint_timer_query.TIMESTAMP_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] + pub const TIMESTAMP_EXT: u32 = 36392u64 as u32; + #[doc = "The `EXT_disjoint_timer_query.GPU_DISJOINT_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtDisjointTimerQuery`*"] + pub const GPU_DISJOINT_EXT: u32 = 36795u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_ExtFragDepth.rs b/crates/web-sys/src/features/gen_ExtFragDepth.rs new file mode 100644 index 00000000..c04ba765 --- /dev/null +++ b/crates/web-sys/src/features/gen_ExtFragDepth.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_frag_depth , typescript_type = "EXT_frag_depth" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ExtFragDepth` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_frag_depth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtFragDepth`*"] + pub type ExtFragDepth; +} diff --git a/crates/web-sys/src/features/gen_ExtSRgb.rs b/crates/web-sys/src/features/gen_ExtSRgb.rs new file mode 100644 index 00000000..f8dcabd2 --- /dev/null +++ b/crates/web-sys/src/features/gen_ExtSRgb.rs @@ -0,0 +1,32 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_sRGB , typescript_type = "EXT_sRGB" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ExtSRgb` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_sRGB)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtSRgb`*"] + pub type ExtSRgb; +} +impl ExtSRgb { + #[doc = "The `EXT_sRGB.SRGB_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtSRgb`*"] + pub const SRGB_EXT: u32 = 35904u64 as u32; + #[doc = "The `EXT_sRGB.SRGB_ALPHA_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtSRgb`*"] + pub const SRGB_ALPHA_EXT: u32 = 35906u64 as u32; + #[doc = "The `EXT_sRGB.SRGB8_ALPHA8_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtSRgb`*"] + pub const SRGB8_ALPHA8_EXT: u32 = 35907u64 as u32; + #[doc = "The `EXT_sRGB.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtSRgb`*"] + pub const FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: u32 = 33296u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_ExtShaderTextureLod.rs b/crates/web-sys/src/features/gen_ExtShaderTextureLod.rs new file mode 100644 index 00000000..c417728c --- /dev/null +++ b/crates/web-sys/src/features/gen_ExtShaderTextureLod.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_shader_texture_lod , typescript_type = "EXT_shader_texture_lod" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ExtShaderTextureLod` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_shader_texture_lod)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtShaderTextureLod`*"] + pub type ExtShaderTextureLod; +} diff --git a/crates/web-sys/src/features/gen_ExtTextureFilterAnisotropic.rs b/crates/web-sys/src/features/gen_ExtTextureFilterAnisotropic.rs new file mode 100644 index 00000000..922bd787 --- /dev/null +++ b/crates/web-sys/src/features/gen_ExtTextureFilterAnisotropic.rs @@ -0,0 +1,24 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = EXT_texture_filter_anisotropic , typescript_type = "EXT_texture_filter_anisotropic" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ExtTextureFilterAnisotropic` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/EXT_texture_filter_anisotropic)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtTextureFilterAnisotropic`*"] + pub type ExtTextureFilterAnisotropic; +} +impl ExtTextureFilterAnisotropic { + #[doc = "The `EXT_texture_filter_anisotropic.TEXTURE_MAX_ANISOTROPY_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtTextureFilterAnisotropic`*"] + pub const TEXTURE_MAX_ANISOTROPY_EXT: u32 = 34046u64 as u32; + #[doc = "The `EXT_texture_filter_anisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtTextureFilterAnisotropic`*"] + pub const MAX_TEXTURE_MAX_ANISOTROPY_EXT: u32 = 34047u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_ExtendableEvent.rs b/crates/web-sys/src/features/gen_ExtendableEvent.rs new file mode 100644 index 00000000..c2f2b201 --- /dev/null +++ b/crates/web-sys/src/features/gen_ExtendableEvent.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = ExtendableEvent , typescript_type = "ExtendableEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ExtendableEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableEvent`*"] + pub type ExtendableEvent; + #[wasm_bindgen(catch, constructor, js_class = "ExtendableEvent")] + #[doc = "The `new ExtendableEvent(..)` constructor, creating a new instance of `ExtendableEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/ExtendableEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "ExtendableEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "ExtendableEvent")] + #[doc = "The `new ExtendableEvent(..)` constructor, creating a new instance of `ExtendableEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/ExtendableEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableEvent`, `ExtendableEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &ExtendableEventInit, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "ExtendableEvent" , js_name = waitUntil ) ] + #[doc = "The `waitUntil()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableEvent/waitUntil)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableEvent`*"] + pub fn wait_until(this: &ExtendableEvent, p: &::js_sys::Promise) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_ExtendableEventInit.rs b/crates/web-sys/src/features/gen_ExtendableEventInit.rs new file mode 100644 index 00000000..2be43dfd --- /dev/null +++ b/crates/web-sys/src/features/gen_ExtendableEventInit.rs @@ -0,0 +1,73 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ExtendableEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ExtendableEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableEventInit`*"] + pub type ExtendableEventInit; +} +impl ExtendableEventInit { + #[doc = "Construct a new `ExtendableEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ExtendableMessageEvent.rs b/crates/web-sys/src/features/gen_ExtendableMessageEvent.rs new file mode 100644 index 00000000..ef12ebba --- /dev/null +++ b/crates/web-sys/src/features/gen_ExtendableMessageEvent.rs @@ -0,0 +1,67 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = ExtendableEvent , extends = Event , extends = :: js_sys :: Object , js_name = ExtendableMessageEvent , typescript_type = "ExtendableMessageEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ExtendableMessageEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] + pub type ExtendableMessageEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = data ) ] + #[doc = "Getter for the `data` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/data)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] + pub fn data(this: &ExtendableMessageEvent) -> ::wasm_bindgen::JsValue; + # [ wasm_bindgen ( structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = origin ) ] + #[doc = "Getter for the `origin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/origin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] + pub fn origin(this: &ExtendableMessageEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = lastEventId ) ] + #[doc = "Getter for the `lastEventId` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/lastEventId)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] + pub fn last_event_id(this: &ExtendableMessageEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = source ) ] + #[doc = "Getter for the `source` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/source)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] + pub fn source(this: &ExtendableMessageEvent) -> Option<::js_sys::Object>; + # [ wasm_bindgen ( structural , method , getter , js_class = "ExtendableMessageEvent" , js_name = ports ) ] + #[doc = "Getter for the `ports` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/ports)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] + pub fn ports(this: &ExtendableMessageEvent) -> ::js_sys::Array; + #[wasm_bindgen(catch, constructor, js_class = "ExtendableMessageEvent")] + #[doc = "The `new ExtendableMessageEvent(..)` constructor, creating a new instance of `ExtendableMessageEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/ExtendableMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "ExtendableMessageEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "ExtendableMessageEvent")] + #[doc = "The `new ExtendableMessageEvent(..)` constructor, creating a new instance of `ExtendableMessageEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ExtendableMessageEvent/ExtendableMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEvent`, `ExtendableMessageEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &ExtendableMessageEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_ExtendableMessageEventInit.rs b/crates/web-sys/src/features/gen_ExtendableMessageEventInit.rs new file mode 100644 index 00000000..646853d8 --- /dev/null +++ b/crates/web-sys/src/features/gen_ExtendableMessageEventInit.rs @@ -0,0 +1,144 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ExtendableMessageEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ExtendableMessageEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] + pub type ExtendableMessageEventInit; +} +impl ExtendableMessageEventInit { + #[doc = "Construct a new `ExtendableMessageEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `data` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] + pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `lastEventId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] + pub fn last_event_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("lastEventId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `origin` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] + pub fn origin(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ports` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] + pub fn ports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ports"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `source` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ExtendableMessageEventInit`*"] + pub fn source(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_External.rs b/crates/web-sys/src/features/gen_External.rs new file mode 100644 index 00000000..3f3db52a --- /dev/null +++ b/crates/web-sys/src/features/gen_External.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = External , typescript_type = "External" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `External` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/External)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `External`*"] + pub type External; + # [ wasm_bindgen ( method , structural , js_class = "External" , js_name = AddSearchProvider ) ] + #[doc = "The `AddSearchProvider()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/External/AddSearchProvider)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `External`*"] + pub fn add_search_provider(this: &External, a_description_url: &str); + # [ wasm_bindgen ( method , structural , js_class = "External" , js_name = IsSearchProviderInstalled ) ] + #[doc = "The `IsSearchProviderInstalled()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/External/IsSearchProviderInstalled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `External`*"] + pub fn is_search_provider_installed(this: &External, a_search_url: &str) -> u32; +} diff --git a/crates/web-sys/src/features/gen_FakePluginMimeEntry.rs b/crates/web-sys/src/features/gen_FakePluginMimeEntry.rs new file mode 100644 index 00000000..4fc35402 --- /dev/null +++ b/crates/web-sys/src/features/gen_FakePluginMimeEntry.rs @@ -0,0 +1,70 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FakePluginMimeEntry ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FakePluginMimeEntry` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] + pub type FakePluginMimeEntry; +} +impl FakePluginMimeEntry { + #[doc = "Construct a new `FakePluginMimeEntry`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] + pub fn new(type_: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.type_(type_); + ret + } + #[doc = "Change the `description` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] + pub fn description(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("description"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `extension` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] + pub fn extension(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("extension"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FakePluginMimeEntry`*"] + pub fn type_(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_FakePluginTagInit.rs b/crates/web-sys/src/features/gen_FakePluginTagInit.rs new file mode 100644 index 00000000..db7481f1 --- /dev/null +++ b/crates/web-sys/src/features/gen_FakePluginTagInit.rs @@ -0,0 +1,173 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FakePluginTagInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FakePluginTagInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] + pub type FakePluginTagInit; +} +impl FakePluginTagInit { + #[doc = "Construct a new `FakePluginTagInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] + pub fn new(handler_uri: &str, mime_entries: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.handler_uri(handler_uri); + ret.mime_entries(mime_entries); + ret + } + #[doc = "Change the `description` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] + pub fn description(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("description"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `fileName` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] + pub fn file_name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("fileName"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `fullPath` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] + pub fn full_path(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("fullPath"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `handlerURI` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] + pub fn handler_uri(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("handlerURI"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mimeEntries` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] + pub fn mime_entries(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mimeEntries"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `niceName` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] + pub fn nice_name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("niceName"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `sandboxScript` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] + pub fn sandbox_script(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sandboxScript"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `version` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FakePluginTagInit`*"] + pub fn version(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("version"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_FetchEvent.rs b/crates/web-sys/src/features/gen_FetchEvent.rs new file mode 100644 index 00000000..0a75488e --- /dev/null +++ b/crates/web-sys/src/features/gen_FetchEvent.rs @@ -0,0 +1,51 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = ExtendableEvent , extends = Event , extends = :: js_sys :: Object , js_name = FetchEvent , typescript_type = "FetchEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FetchEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchEvent`*"] + pub type FetchEvent; + #[cfg(feature = "Request")] + # [ wasm_bindgen ( structural , method , getter , js_class = "FetchEvent" , js_name = request ) ] + #[doc = "Getter for the `request` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/request)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchEvent`, `Request`*"] + pub fn request(this: &FetchEvent) -> Request; + # [ wasm_bindgen ( structural , method , getter , js_class = "FetchEvent" , js_name = clientId ) ] + #[doc = "Getter for the `clientId` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/clientId)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchEvent`*"] + pub fn client_id(this: &FetchEvent) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "FetchEvent" , js_name = isReload ) ] + #[doc = "Getter for the `isReload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/isReload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchEvent`*"] + pub fn is_reload(this: &FetchEvent) -> bool; + #[cfg(feature = "FetchEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "FetchEvent")] + #[doc = "The `new FetchEvent(..)` constructor, creating a new instance of `FetchEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/FetchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchEvent`, `FetchEventInit`*"] + pub fn new(type_: &str, event_init_dict: &FetchEventInit) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "FetchEvent" , js_name = respondWith ) ] + #[doc = "The `respondWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchEvent/respondWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchEvent`*"] + pub fn respond_with(this: &FetchEvent, r: &::js_sys::Promise) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_FetchEventInit.rs b/crates/web-sys/src/features/gen_FetchEventInit.rs new file mode 100644 index 00000000..5545faeb --- /dev/null +++ b/crates/web-sys/src/features/gen_FetchEventInit.rs @@ -0,0 +1,127 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FetchEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FetchEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] + pub type FetchEventInit; +} +impl FetchEventInit { + #[cfg(feature = "Request")] + #[doc = "Construct a new `FetchEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`, `Request`*"] + pub fn new(request: &Request) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.request(request); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `clientId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] + pub fn client_id(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("clientId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `isReload` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`*"] + pub fn is_reload(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("isReload"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Request")] + #[doc = "Change the `request` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchEventInit`, `Request`*"] + pub fn request(&mut self, val: &Request) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("request"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_FetchObserver.rs b/crates/web-sys/src/features/gen_FetchObserver.rs new file mode 100644 index 00000000..defd8ea3 --- /dev/null +++ b/crates/web-sys/src/features/gen_FetchObserver.rs @@ -0,0 +1,64 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = FetchObserver , typescript_type = "FetchObserver" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FetchObserver` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] + pub type FetchObserver; + #[cfg(feature = "FetchState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "FetchObserver" , js_name = state ) ] + #[doc = "Getter for the `state` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/state)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchObserver`, `FetchState`*"] + pub fn state(this: &FetchObserver) -> FetchState; + # [ wasm_bindgen ( structural , method , getter , js_class = "FetchObserver" , js_name = onstatechange ) ] + #[doc = "Getter for the `onstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] + pub fn onstatechange(this: &FetchObserver) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "FetchObserver" , js_name = onstatechange ) ] + #[doc = "Setter for the `onstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] + pub fn set_onstatechange(this: &FetchObserver, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "FetchObserver" , js_name = onrequestprogress ) ] + #[doc = "Getter for the `onrequestprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onrequestprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] + pub fn onrequestprogress(this: &FetchObserver) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "FetchObserver" , js_name = onrequestprogress ) ] + #[doc = "Setter for the `onrequestprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onrequestprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] + pub fn set_onrequestprogress(this: &FetchObserver, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "FetchObserver" , js_name = onresponseprogress ) ] + #[doc = "Getter for the `onresponseprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onresponseprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] + pub fn onresponseprogress(this: &FetchObserver) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "FetchObserver" , js_name = onresponseprogress ) ] + #[doc = "Setter for the `onresponseprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FetchObserver/onresponseprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchObserver`*"] + pub fn set_onresponseprogress(this: &FetchObserver, value: Option<&::js_sys::Function>); +} diff --git a/crates/web-sys/src/features/gen_FetchReadableStreamReadDataArray.rs b/crates/web-sys/src/features/gen_FetchReadableStreamReadDataArray.rs new file mode 100644 index 00000000..f1b6b266 --- /dev/null +++ b/crates/web-sys/src/features/gen_FetchReadableStreamReadDataArray.rs @@ -0,0 +1,22 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FetchReadableStreamReadDataArray ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FetchReadableStreamReadDataArray` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchReadableStreamReadDataArray`*"] + pub type FetchReadableStreamReadDataArray; +} +impl FetchReadableStreamReadDataArray { + #[doc = "Construct a new `FetchReadableStreamReadDataArray`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchReadableStreamReadDataArray`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } +} diff --git a/crates/web-sys/src/features/gen_FetchReadableStreamReadDataDone.rs b/crates/web-sys/src/features/gen_FetchReadableStreamReadDataDone.rs new file mode 100644 index 00000000..827ccaf8 --- /dev/null +++ b/crates/web-sys/src/features/gen_FetchReadableStreamReadDataDone.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FetchReadableStreamReadDataDone ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FetchReadableStreamReadDataDone` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchReadableStreamReadDataDone`*"] + pub type FetchReadableStreamReadDataDone; +} +impl FetchReadableStreamReadDataDone { + #[doc = "Construct a new `FetchReadableStreamReadDataDone`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchReadableStreamReadDataDone`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `done` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FetchReadableStreamReadDataDone`*"] + pub fn done(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("done"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_FetchState.rs b/crates/web-sys/src/features/gen_FetchState.rs new file mode 100644 index 00000000..84ff3c6b --- /dev/null +++ b/crates/web-sys/src/features/gen_FetchState.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `FetchState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `FetchState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum FetchState { + Requesting = "requesting", + Responding = "responding", + Aborted = "aborted", + Errored = "errored", + Complete = "complete", +} diff --git a/crates/web-sys/src/features/gen_File.rs b/crates/web-sys/src/features/gen_File.rs new file mode 100644 index 00000000..5950e692 --- /dev/null +++ b/crates/web-sys/src/features/gen_File.rs @@ -0,0 +1,116 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Blob , extends = :: js_sys :: Object , js_name = File , typescript_type = "File" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `File` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `File`*"] + pub type File; + # [ wasm_bindgen ( structural , method , getter , js_class = "File" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `File`*"] + pub fn name(this: &File) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "File" , js_name = lastModified ) ] + #[doc = "Getter for the `lastModified` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/lastModified)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `File`*"] + pub fn last_modified(this: &File) -> f64; + #[wasm_bindgen(catch, constructor, js_class = "File")] + #[doc = "The `new File(..)` constructor, creating a new instance of `File`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/File)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `File`*"] + pub fn new_with_buffer_source_sequence( + file_bits: &::wasm_bindgen::JsValue, + file_name: &str, + ) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "File")] + #[doc = "The `new File(..)` constructor, creating a new instance of `File`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/File)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `File`*"] + pub fn new_with_u8_array_sequence( + file_bits: &::wasm_bindgen::JsValue, + file_name: &str, + ) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "File")] + #[doc = "The `new File(..)` constructor, creating a new instance of `File`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/File)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `File`*"] + pub fn new_with_blob_sequence( + file_bits: &::wasm_bindgen::JsValue, + file_name: &str, + ) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "File")] + #[doc = "The `new File(..)` constructor, creating a new instance of `File`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/File)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `File`*"] + pub fn new_with_str_sequence( + file_bits: &::wasm_bindgen::JsValue, + file_name: &str, + ) -> Result; + #[cfg(feature = "FilePropertyBag")] + #[wasm_bindgen(catch, constructor, js_class = "File")] + #[doc = "The `new File(..)` constructor, creating a new instance of `File`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/File)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `File`, `FilePropertyBag`*"] + pub fn new_with_buffer_source_sequence_and_options( + file_bits: &::wasm_bindgen::JsValue, + file_name: &str, + options: &FilePropertyBag, + ) -> Result; + #[cfg(feature = "FilePropertyBag")] + #[wasm_bindgen(catch, constructor, js_class = "File")] + #[doc = "The `new File(..)` constructor, creating a new instance of `File`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/File)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `File`, `FilePropertyBag`*"] + pub fn new_with_u8_array_sequence_and_options( + file_bits: &::wasm_bindgen::JsValue, + file_name: &str, + options: &FilePropertyBag, + ) -> Result; + #[cfg(feature = "FilePropertyBag")] + #[wasm_bindgen(catch, constructor, js_class = "File")] + #[doc = "The `new File(..)` constructor, creating a new instance of `File`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/File)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `File`, `FilePropertyBag`*"] + pub fn new_with_blob_sequence_and_options( + file_bits: &::wasm_bindgen::JsValue, + file_name: &str, + options: &FilePropertyBag, + ) -> Result; + #[cfg(feature = "FilePropertyBag")] + #[wasm_bindgen(catch, constructor, js_class = "File")] + #[doc = "The `new File(..)` constructor, creating a new instance of `File`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/File/File)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `File`, `FilePropertyBag`*"] + pub fn new_with_str_sequence_and_options( + file_bits: &::wasm_bindgen::JsValue, + file_name: &str, + options: &FilePropertyBag, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_FileCallback.rs b/crates/web-sys/src/features/gen_FileCallback.rs new file mode 100644 index 00000000..54ac87cf --- /dev/null +++ b/crates/web-sys/src/features/gen_FileCallback.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FileCallback ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FileCallback` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileCallback`*"] + pub type FileCallback; +} +impl FileCallback { + #[doc = "Construct a new `FileCallback`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileCallback`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `handleEvent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileCallback`*"] + pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("handleEvent"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_FileList.rs b/crates/web-sys/src/features/gen_FileList.rs new file mode 100644 index 00000000..89697b3e --- /dev/null +++ b/crates/web-sys/src/features/gen_FileList.rs @@ -0,0 +1,37 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FileList , typescript_type = "FileList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FileList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileList`*"] + pub type FileList; + # [ wasm_bindgen ( structural , method , getter , js_class = "FileList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileList`*"] + pub fn length(this: &FileList) -> u32; + #[cfg(feature = "File")] + # [ wasm_bindgen ( method , structural , js_class = "FileList" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileList/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `File`, `FileList`*"] + pub fn item(this: &FileList, index: u32) -> Option; + #[cfg(feature = "File")] + #[wasm_bindgen(method, structural, js_class = "FileList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `File`, `FileList`*"] + pub fn get(this: &FileList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_FilePropertyBag.rs b/crates/web-sys/src/features/gen_FilePropertyBag.rs new file mode 100644 index 00000000..e8041239 --- /dev/null +++ b/crates/web-sys/src/features/gen_FilePropertyBag.rs @@ -0,0 +1,52 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FilePropertyBag ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FilePropertyBag` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FilePropertyBag`*"] + pub type FilePropertyBag; +} +impl FilePropertyBag { + #[doc = "Construct a new `FilePropertyBag`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FilePropertyBag`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `lastModified` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FilePropertyBag`*"] + pub fn last_modified(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("lastModified"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FilePropertyBag`*"] + pub fn type_(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_FileReader.rs b/crates/web-sys/src/features/gen_FileReader.rs new file mode 100644 index 00000000..5f276ff3 --- /dev/null +++ b/crates/web-sys/src/features/gen_FileReader.rs @@ -0,0 +1,192 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = FileReader , typescript_type = "FileReader" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FileReader` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub type FileReader; + # [ wasm_bindgen ( structural , method , getter , js_class = "FileReader" , js_name = readyState ) ] + #[doc = "Getter for the `readyState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readyState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub fn ready_state(this: &FileReader) -> u16; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "FileReader" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub fn result(this: &FileReader) -> Result<::wasm_bindgen::JsValue, JsValue>; + #[cfg(feature = "DomException")] + # [ wasm_bindgen ( structural , method , getter , js_class = "FileReader" , js_name = error ) ] + #[doc = "Getter for the `error` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`, `FileReader`*"] + pub fn error(this: &FileReader) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "FileReader" , js_name = onloadstart ) ] + #[doc = "Getter for the `onloadstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onloadstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub fn onloadstart(this: &FileReader) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "FileReader" , js_name = onloadstart ) ] + #[doc = "Setter for the `onloadstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onloadstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub fn set_onloadstart(this: &FileReader, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "FileReader" , js_name = onprogress ) ] + #[doc = "Getter for the `onprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub fn onprogress(this: &FileReader) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "FileReader" , js_name = onprogress ) ] + #[doc = "Setter for the `onprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub fn set_onprogress(this: &FileReader, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "FileReader" , js_name = onload ) ] + #[doc = "Getter for the `onload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub fn onload(this: &FileReader) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "FileReader" , js_name = onload ) ] + #[doc = "Setter for the `onload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub fn set_onload(this: &FileReader, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "FileReader" , js_name = onabort ) ] + #[doc = "Getter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub fn onabort(this: &FileReader) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "FileReader" , js_name = onabort ) ] + #[doc = "Setter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub fn set_onabort(this: &FileReader, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "FileReader" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub fn onerror(this: &FileReader) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "FileReader" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub fn set_onerror(this: &FileReader, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "FileReader" , js_name = onloadend ) ] + #[doc = "Getter for the `onloadend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onloadend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub fn onloadend(this: &FileReader) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "FileReader" , js_name = onloadend ) ] + #[doc = "Setter for the `onloadend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/onloadend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub fn set_onloadend(this: &FileReader, value: Option<&::js_sys::Function>); + #[wasm_bindgen(catch, constructor, js_class = "FileReader")] + #[doc = "The `new FileReader(..)` constructor, creating a new instance of `FileReader`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/FileReader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub fn new() -> Result; + # [ wasm_bindgen ( method , structural , js_class = "FileReader" , js_name = abort ) ] + #[doc = "The `abort()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/abort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub fn abort(this: &FileReader); + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FileReader" , js_name = readAsArrayBuffer ) ] + #[doc = "The `readAsArrayBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsArrayBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReader`*"] + pub fn read_as_array_buffer(this: &FileReader, blob: &Blob) -> Result<(), JsValue>; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FileReader" , js_name = readAsBinaryString ) ] + #[doc = "The `readAsBinaryString()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsBinaryString)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReader`*"] + pub fn read_as_binary_string(this: &FileReader, filedata: &Blob) -> Result<(), JsValue>; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FileReader" , js_name = readAsDataURL ) ] + #[doc = "The `readAsDataURL()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsDataURL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReader`*"] + pub fn read_as_data_url(this: &FileReader, blob: &Blob) -> Result<(), JsValue>; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FileReader" , js_name = readAsText ) ] + #[doc = "The `readAsText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReader`*"] + pub fn read_as_text(this: &FileReader, blob: &Blob) -> Result<(), JsValue>; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FileReader" , js_name = readAsText ) ] + #[doc = "The `readAsText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReader/readAsText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReader`*"] + pub fn read_as_text_with_label( + this: &FileReader, + blob: &Blob, + label: &str, + ) -> Result<(), JsValue>; +} +impl FileReader { + #[doc = "The `FileReader.EMPTY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub const EMPTY: u16 = 0i64 as u16; + #[doc = "The `FileReader.LOADING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub const LOADING: u16 = 1u64 as u16; + #[doc = "The `FileReader.DONE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReader`*"] + pub const DONE: u16 = 2u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_FileReaderSync.rs b/crates/web-sys/src/features/gen_FileReaderSync.rs new file mode 100644 index 00000000..233084a8 --- /dev/null +++ b/crates/web-sys/src/features/gen_FileReaderSync.rs @@ -0,0 +1,68 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FileReaderSync , typescript_type = "FileReaderSync" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FileReaderSync` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReaderSync`*"] + pub type FileReaderSync; + #[wasm_bindgen(catch, constructor, js_class = "FileReaderSync")] + #[doc = "The `new FileReaderSync(..)` constructor, creating a new instance of `FileReaderSync`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/FileReaderSync)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileReaderSync`*"] + pub fn new() -> Result; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FileReaderSync" , js_name = readAsArrayBuffer ) ] + #[doc = "The `readAsArrayBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsArrayBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReaderSync`*"] + pub fn read_as_array_buffer( + this: &FileReaderSync, + blob: &Blob, + ) -> Result<::js_sys::ArrayBuffer, JsValue>; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FileReaderSync" , js_name = readAsBinaryString ) ] + #[doc = "The `readAsBinaryString()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsBinaryString)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReaderSync`*"] + pub fn read_as_binary_string(this: &FileReaderSync, blob: &Blob) -> Result; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FileReaderSync" , js_name = readAsDataURL ) ] + #[doc = "The `readAsDataURL()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsDataURL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReaderSync`*"] + pub fn read_as_data_url(this: &FileReaderSync, blob: &Blob) -> Result; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FileReaderSync" , js_name = readAsText ) ] + #[doc = "The `readAsText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReaderSync`*"] + pub fn read_as_text(this: &FileReaderSync, blob: &Blob) -> Result; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FileReaderSync" , js_name = readAsText ) ] + #[doc = "The `readAsText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileReaderSync/readAsText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `FileReaderSync`*"] + pub fn read_as_text_with_encoding( + this: &FileReaderSync, + blob: &Blob, + encoding: &str, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_FileSystem.rs b/crates/web-sys/src/features/gen_FileSystem.rs new file mode 100644 index 00000000..6bc11c9e --- /dev/null +++ b/crates/web-sys/src/features/gen_FileSystem.rs @@ -0,0 +1,29 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FileSystem , typescript_type = "FileSystem" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FileSystem` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystem`*"] + pub type FileSystem; + # [ wasm_bindgen ( structural , method , getter , js_class = "FileSystem" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystem/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystem`*"] + pub fn name(this: &FileSystem) -> String; + #[cfg(feature = "FileSystemDirectoryEntry")] + # [ wasm_bindgen ( structural , method , getter , js_class = "FileSystem" , js_name = root ) ] + #[doc = "Getter for the `root` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystem/root)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystem`, `FileSystemDirectoryEntry`*"] + pub fn root(this: &FileSystem) -> FileSystemDirectoryEntry; +} diff --git a/crates/web-sys/src/features/gen_FileSystemDirectoryEntry.rs b/crates/web-sys/src/features/gen_FileSystemDirectoryEntry.rs new file mode 100644 index 00000000..31c2e9d4 --- /dev/null +++ b/crates/web-sys/src/features/gen_FileSystemDirectoryEntry.rs @@ -0,0 +1,246 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = FileSystemEntry , extends = :: js_sys :: Object , js_name = FileSystemDirectoryEntry , typescript_type = "FileSystemDirectoryEntry" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FileSystemDirectoryEntry` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"] + pub type FileSystemDirectoryEntry; + #[cfg(feature = "FileSystemDirectoryReader")] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = createReader ) ] + #[doc = "The `createReader()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/createReader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemDirectoryReader`*"] + pub fn create_reader(this: &FileSystemDirectoryEntry) -> FileSystemDirectoryReader; + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory ) ] + #[doc = "The `getDirectory()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"] + pub fn get_directory(this: &FileSystemDirectoryEntry); + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory ) ] + #[doc = "The `getDirectory()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"] + pub fn get_directory_with_path(this: &FileSystemDirectoryEntry, path: Option<&str>); + #[cfg(feature = "FileSystemFlags")] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory ) ] + #[doc = "The `getDirectory()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"] + pub fn get_directory_with_path_and_options( + this: &FileSystemDirectoryEntry, + path: Option<&str>, + options: &FileSystemFlags, + ); + #[cfg(feature = "FileSystemFlags")] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory ) ] + #[doc = "The `getDirectory()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"] + pub fn get_directory_with_path_and_options_and_callback( + this: &FileSystemDirectoryEntry, + path: Option<&str>, + options: &FileSystemFlags, + success_callback: &::js_sys::Function, + ); + #[cfg(all(feature = "FileSystemEntryCallback", feature = "FileSystemFlags",))] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory ) ] + #[doc = "The `getDirectory()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"] + pub fn get_directory_with_path_and_options_and_file_system_entry_callback( + this: &FileSystemDirectoryEntry, + path: Option<&str>, + options: &FileSystemFlags, + success_callback: &FileSystemEntryCallback, + ); + #[cfg(feature = "FileSystemFlags")] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory ) ] + #[doc = "The `getDirectory()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"] + pub fn get_directory_with_path_and_options_and_callback_and_callback( + this: &FileSystemDirectoryEntry, + path: Option<&str>, + options: &FileSystemFlags, + success_callback: &::js_sys::Function, + error_callback: &::js_sys::Function, + ); + #[cfg(all(feature = "FileSystemEntryCallback", feature = "FileSystemFlags",))] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory ) ] + #[doc = "The `getDirectory()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"] + pub fn get_directory_with_path_and_options_and_file_system_entry_callback_and_callback( + this: &FileSystemDirectoryEntry, + path: Option<&str>, + options: &FileSystemFlags, + success_callback: &FileSystemEntryCallback, + error_callback: &::js_sys::Function, + ); + #[cfg(all(feature = "ErrorCallback", feature = "FileSystemFlags",))] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory ) ] + #[doc = "The `getDirectory()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryEntry`, `FileSystemFlags`*"] + pub fn get_directory_with_path_and_options_and_callback_and_error_callback( + this: &FileSystemDirectoryEntry, + path: Option<&str>, + options: &FileSystemFlags, + success_callback: &::js_sys::Function, + error_callback: &ErrorCallback, + ); + #[cfg(all( + feature = "ErrorCallback", + feature = "FileSystemEntryCallback", + feature = "FileSystemFlags", + ))] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getDirectory ) ] + #[doc = "The `getDirectory()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getDirectory)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"] + pub fn get_directory_with_path_and_options_and_file_system_entry_callback_and_error_callback( + this: &FileSystemDirectoryEntry, + path: Option<&str>, + options: &FileSystemFlags, + success_callback: &FileSystemEntryCallback, + error_callback: &ErrorCallback, + ); + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile ) ] + #[doc = "The `getFile()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"] + pub fn get_file(this: &FileSystemDirectoryEntry); + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile ) ] + #[doc = "The `getFile()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`*"] + pub fn get_file_with_path(this: &FileSystemDirectoryEntry, path: Option<&str>); + #[cfg(feature = "FileSystemFlags")] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile ) ] + #[doc = "The `getFile()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"] + pub fn get_file_with_path_and_options( + this: &FileSystemDirectoryEntry, + path: Option<&str>, + options: &FileSystemFlags, + ); + #[cfg(feature = "FileSystemFlags")] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile ) ] + #[doc = "The `getFile()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"] + pub fn get_file_with_path_and_options_and_callback( + this: &FileSystemDirectoryEntry, + path: Option<&str>, + options: &FileSystemFlags, + success_callback: &::js_sys::Function, + ); + #[cfg(all(feature = "FileSystemEntryCallback", feature = "FileSystemFlags",))] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile ) ] + #[doc = "The `getFile()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"] + pub fn get_file_with_path_and_options_and_file_system_entry_callback( + this: &FileSystemDirectoryEntry, + path: Option<&str>, + options: &FileSystemFlags, + success_callback: &FileSystemEntryCallback, + ); + #[cfg(feature = "FileSystemFlags")] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile ) ] + #[doc = "The `getFile()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemFlags`*"] + pub fn get_file_with_path_and_options_and_callback_and_callback( + this: &FileSystemDirectoryEntry, + path: Option<&str>, + options: &FileSystemFlags, + success_callback: &::js_sys::Function, + error_callback: &::js_sys::Function, + ); + #[cfg(all(feature = "FileSystemEntryCallback", feature = "FileSystemFlags",))] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile ) ] + #[doc = "The `getFile()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"] + pub fn get_file_with_path_and_options_and_file_system_entry_callback_and_callback( + this: &FileSystemDirectoryEntry, + path: Option<&str>, + options: &FileSystemFlags, + success_callback: &FileSystemEntryCallback, + error_callback: &::js_sys::Function, + ); + #[cfg(all(feature = "ErrorCallback", feature = "FileSystemFlags",))] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile ) ] + #[doc = "The `getFile()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryEntry`, `FileSystemFlags`*"] + pub fn get_file_with_path_and_options_and_callback_and_error_callback( + this: &FileSystemDirectoryEntry, + path: Option<&str>, + options: &FileSystemFlags, + success_callback: &::js_sys::Function, + error_callback: &ErrorCallback, + ); + #[cfg(all( + feature = "ErrorCallback", + feature = "FileSystemEntryCallback", + feature = "FileSystemFlags", + ))] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemDirectoryEntry" , js_name = getFile ) ] + #[doc = "The `getFile()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryEntry/getFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryEntry`, `FileSystemEntryCallback`, `FileSystemFlags`*"] + pub fn get_file_with_path_and_options_and_file_system_entry_callback_and_error_callback( + this: &FileSystemDirectoryEntry, + path: Option<&str>, + options: &FileSystemFlags, + success_callback: &FileSystemEntryCallback, + error_callback: &ErrorCallback, + ); +} diff --git a/crates/web-sys/src/features/gen_FileSystemDirectoryReader.rs b/crates/web-sys/src/features/gen_FileSystemDirectoryReader.rs new file mode 100644 index 00000000..3c459c00 --- /dev/null +++ b/crates/web-sys/src/features/gen_FileSystemDirectoryReader.rs @@ -0,0 +1,82 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FileSystemDirectoryReader , typescript_type = "FileSystemDirectoryReader" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FileSystemDirectoryReader` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryReader`*"] + pub type FileSystemDirectoryReader; + # [ wasm_bindgen ( catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries ) ] + #[doc = "The `readEntries()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryReader`*"] + pub fn read_entries_with_callback( + this: &FileSystemDirectoryReader, + success_callback: &::js_sys::Function, + ) -> Result<(), JsValue>; + #[cfg(feature = "FileSystemEntriesCallback")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries ) ] + #[doc = "The `readEntries()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryReader`, `FileSystemEntriesCallback`*"] + pub fn read_entries_with_file_system_entries_callback( + this: &FileSystemDirectoryReader, + success_callback: &FileSystemEntriesCallback, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries ) ] + #[doc = "The `readEntries()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryReader`*"] + pub fn read_entries_with_callback_and_callback( + this: &FileSystemDirectoryReader, + success_callback: &::js_sys::Function, + error_callback: &::js_sys::Function, + ) -> Result<(), JsValue>; + #[cfg(feature = "FileSystemEntriesCallback")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries ) ] + #[doc = "The `readEntries()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemDirectoryReader`, `FileSystemEntriesCallback`*"] + pub fn read_entries_with_file_system_entries_callback_and_callback( + this: &FileSystemDirectoryReader, + success_callback: &FileSystemEntriesCallback, + error_callback: &::js_sys::Function, + ) -> Result<(), JsValue>; + #[cfg(feature = "ErrorCallback")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries ) ] + #[doc = "The `readEntries()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryReader`*"] + pub fn read_entries_with_callback_and_error_callback( + this: &FileSystemDirectoryReader, + success_callback: &::js_sys::Function, + error_callback: &ErrorCallback, + ) -> Result<(), JsValue>; + #[cfg(all(feature = "ErrorCallback", feature = "FileSystemEntriesCallback",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "FileSystemDirectoryReader" , js_name = readEntries ) ] + #[doc = "The `readEntries()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryReader/readEntries)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemDirectoryReader`, `FileSystemEntriesCallback`*"] + pub fn read_entries_with_file_system_entries_callback_and_error_callback( + this: &FileSystemDirectoryReader, + success_callback: &FileSystemEntriesCallback, + error_callback: &ErrorCallback, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_FileSystemEntriesCallback.rs b/crates/web-sys/src/features/gen_FileSystemEntriesCallback.rs new file mode 100644 index 00000000..16d2215d --- /dev/null +++ b/crates/web-sys/src/features/gen_FileSystemEntriesCallback.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FileSystemEntriesCallback ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FileSystemEntriesCallback` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemEntriesCallback`*"] + pub type FileSystemEntriesCallback; +} +impl FileSystemEntriesCallback { + #[doc = "Construct a new `FileSystemEntriesCallback`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemEntriesCallback`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `handleEvent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemEntriesCallback`*"] + pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("handleEvent"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_FileSystemEntry.rs b/crates/web-sys/src/features/gen_FileSystemEntry.rs new file mode 100644 index 00000000..9325cff8 --- /dev/null +++ b/crates/web-sys/src/features/gen_FileSystemEntry.rs @@ -0,0 +1,122 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FileSystemEntry , typescript_type = "FileSystemEntry" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FileSystemEntry` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] + pub type FileSystemEntry; + # [ wasm_bindgen ( structural , method , getter , js_class = "FileSystemEntry" , js_name = isFile ) ] + #[doc = "Getter for the `isFile` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/isFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] + pub fn is_file(this: &FileSystemEntry) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "FileSystemEntry" , js_name = isDirectory ) ] + #[doc = "Getter for the `isDirectory` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/isDirectory)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] + pub fn is_directory(this: &FileSystemEntry) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "FileSystemEntry" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] + pub fn name(this: &FileSystemEntry) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "FileSystemEntry" , js_name = fullPath ) ] + #[doc = "Getter for the `fullPath` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/fullPath)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] + pub fn full_path(this: &FileSystemEntry) -> String; + #[cfg(feature = "FileSystem")] + # [ wasm_bindgen ( structural , method , getter , js_class = "FileSystemEntry" , js_name = filesystem ) ] + #[doc = "Getter for the `filesystem` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/filesystem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystem`, `FileSystemEntry`*"] + pub fn filesystem(this: &FileSystemEntry) -> FileSystem; + # [ wasm_bindgen ( method , structural , js_class = "FileSystemEntry" , js_name = getParent ) ] + #[doc = "The `getParent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] + pub fn get_parent(this: &FileSystemEntry); + # [ wasm_bindgen ( method , structural , js_class = "FileSystemEntry" , js_name = getParent ) ] + #[doc = "The `getParent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] + pub fn get_parent_with_callback(this: &FileSystemEntry, success_callback: &::js_sys::Function); + #[cfg(feature = "FileSystemEntryCallback")] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemEntry" , js_name = getParent ) ] + #[doc = "The `getParent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`, `FileSystemEntryCallback`*"] + pub fn get_parent_with_file_system_entry_callback( + this: &FileSystemEntry, + success_callback: &FileSystemEntryCallback, + ); + # [ wasm_bindgen ( method , structural , js_class = "FileSystemEntry" , js_name = getParent ) ] + #[doc = "The `getParent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`*"] + pub fn get_parent_with_callback_and_callback( + this: &FileSystemEntry, + success_callback: &::js_sys::Function, + error_callback: &::js_sys::Function, + ); + #[cfg(feature = "FileSystemEntryCallback")] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemEntry" , js_name = getParent ) ] + #[doc = "The `getParent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemEntry`, `FileSystemEntryCallback`*"] + pub fn get_parent_with_file_system_entry_callback_and_callback( + this: &FileSystemEntry, + success_callback: &FileSystemEntryCallback, + error_callback: &::js_sys::Function, + ); + #[cfg(feature = "ErrorCallback")] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemEntry" , js_name = getParent ) ] + #[doc = "The `getParent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemEntry`*"] + pub fn get_parent_with_callback_and_error_callback( + this: &FileSystemEntry, + success_callback: &::js_sys::Function, + error_callback: &ErrorCallback, + ); + #[cfg(all(feature = "ErrorCallback", feature = "FileSystemEntryCallback",))] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemEntry" , js_name = getParent ) ] + #[doc = "The `getParent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemEntry/getParent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemEntry`, `FileSystemEntryCallback`*"] + pub fn get_parent_with_file_system_entry_callback_and_error_callback( + this: &FileSystemEntry, + success_callback: &FileSystemEntryCallback, + error_callback: &ErrorCallback, + ); +} diff --git a/crates/web-sys/src/features/gen_FileSystemEntryCallback.rs b/crates/web-sys/src/features/gen_FileSystemEntryCallback.rs new file mode 100644 index 00000000..d9a44ba0 --- /dev/null +++ b/crates/web-sys/src/features/gen_FileSystemEntryCallback.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FileSystemEntryCallback ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FileSystemEntryCallback` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemEntryCallback`*"] + pub type FileSystemEntryCallback; +} +impl FileSystemEntryCallback { + #[doc = "Construct a new `FileSystemEntryCallback`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemEntryCallback`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `handleEvent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemEntryCallback`*"] + pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("handleEvent"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_FileSystemFileEntry.rs b/crates/web-sys/src/features/gen_FileSystemFileEntry.rs new file mode 100644 index 00000000..356bb3d5 --- /dev/null +++ b/crates/web-sys/src/features/gen_FileSystemFileEntry.rs @@ -0,0 +1,76 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = FileSystemEntry , extends = :: js_sys :: Object , js_name = FileSystemFileEntry , typescript_type = "FileSystemFileEntry" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FileSystemFileEntry` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemFileEntry`*"] + pub type FileSystemFileEntry; + # [ wasm_bindgen ( method , structural , js_class = "FileSystemFileEntry" , js_name = file ) ] + #[doc = "The `file()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemFileEntry`*"] + pub fn file_with_callback(this: &FileSystemFileEntry, success_callback: &::js_sys::Function); + #[cfg(feature = "FileCallback")] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemFileEntry" , js_name = file ) ] + #[doc = "The `file()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileCallback`, `FileSystemFileEntry`*"] + pub fn file_with_file_callback(this: &FileSystemFileEntry, success_callback: &FileCallback); + # [ wasm_bindgen ( method , structural , js_class = "FileSystemFileEntry" , js_name = file ) ] + #[doc = "The `file()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemFileEntry`*"] + pub fn file_with_callback_and_callback( + this: &FileSystemFileEntry, + success_callback: &::js_sys::Function, + error_callback: &::js_sys::Function, + ); + #[cfg(feature = "FileCallback")] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemFileEntry" , js_name = file ) ] + #[doc = "The `file()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileCallback`, `FileSystemFileEntry`*"] + pub fn file_with_file_callback_and_callback( + this: &FileSystemFileEntry, + success_callback: &FileCallback, + error_callback: &::js_sys::Function, + ); + #[cfg(feature = "ErrorCallback")] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemFileEntry" , js_name = file ) ] + #[doc = "The `file()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileSystemFileEntry`*"] + pub fn file_with_callback_and_error_callback( + this: &FileSystemFileEntry, + success_callback: &::js_sys::Function, + error_callback: &ErrorCallback, + ); + #[cfg(all(feature = "ErrorCallback", feature = "FileCallback",))] + # [ wasm_bindgen ( method , structural , js_class = "FileSystemFileEntry" , js_name = file ) ] + #[doc = "The `file()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemFileEntry/file)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ErrorCallback`, `FileCallback`, `FileSystemFileEntry`*"] + pub fn file_with_file_callback_and_error_callback( + this: &FileSystemFileEntry, + success_callback: &FileCallback, + error_callback: &ErrorCallback, + ); +} diff --git a/crates/web-sys/src/features/gen_FileSystemFlags.rs b/crates/web-sys/src/features/gen_FileSystemFlags.rs new file mode 100644 index 00000000..228ab4a8 --- /dev/null +++ b/crates/web-sys/src/features/gen_FileSystemFlags.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FileSystemFlags ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FileSystemFlags` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemFlags`*"] + pub type FileSystemFlags; +} +impl FileSystemFlags { + #[doc = "Construct a new `FileSystemFlags`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemFlags`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `create` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemFlags`*"] + pub fn create(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("create"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `exclusive` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileSystemFlags`*"] + pub fn exclusive(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("exclusive"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_FillMode.rs b/crates/web-sys/src/features/gen_FillMode.rs new file mode 100644 index 00000000..1e1001a6 --- /dev/null +++ b/crates/web-sys/src/features/gen_FillMode.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `FillMode` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `FillMode`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum FillMode { + None = "none", + Forwards = "forwards", + Backwards = "backwards", + Both = "both", + Auto = "auto", +} diff --git a/crates/web-sys/src/features/gen_FlashClassification.rs b/crates/web-sys/src/features/gen_FlashClassification.rs new file mode 100644 index 00000000..eecf9f8f --- /dev/null +++ b/crates/web-sys/src/features/gen_FlashClassification.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `FlashClassification` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `FlashClassification`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum FlashClassification { + Unclassified = "unclassified", + Unknown = "unknown", + Allowed = "allowed", + Denied = "denied", +} diff --git a/crates/web-sys/src/features/gen_FlexLineGrowthState.rs b/crates/web-sys/src/features/gen_FlexLineGrowthState.rs new file mode 100644 index 00000000..ee937531 --- /dev/null +++ b/crates/web-sys/src/features/gen_FlexLineGrowthState.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `FlexLineGrowthState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `FlexLineGrowthState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum FlexLineGrowthState { + Unchanged = "unchanged", + Shrinking = "shrinking", + Growing = "growing", +} diff --git a/crates/web-sys/src/features/gen_FocusEvent.rs b/crates/web-sys/src/features/gen_FocusEvent.rs new file mode 100644 index 00000000..200cee33 --- /dev/null +++ b/crates/web-sys/src/features/gen_FocusEvent.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = FocusEvent , typescript_type = "FocusEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FocusEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FocusEvent`*"] + pub type FocusEvent; + #[cfg(feature = "EventTarget")] + # [ wasm_bindgen ( structural , method , getter , js_class = "FocusEvent" , js_name = relatedTarget ) ] + #[doc = "Getter for the `relatedTarget` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/relatedTarget)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `FocusEvent`*"] + pub fn related_target(this: &FocusEvent) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "FocusEvent")] + #[doc = "The `new FocusEvent(..)` constructor, creating a new instance of `FocusEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/FocusEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FocusEvent`*"] + pub fn new(type_arg: &str) -> Result; + #[cfg(feature = "FocusEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "FocusEvent")] + #[doc = "The `new FocusEvent(..)` constructor, creating a new instance of `FocusEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FocusEvent/FocusEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FocusEvent`, `FocusEventInit`*"] + pub fn new_with_focus_event_init_dict( + type_arg: &str, + focus_event_init_dict: &FocusEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_FocusEventInit.rs b/crates/web-sys/src/features/gen_FocusEventInit.rs new file mode 100644 index 00000000..acc2cf79 --- /dev/null +++ b/crates/web-sys/src/features/gen_FocusEventInit.rs @@ -0,0 +1,119 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FocusEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FocusEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] + pub type FocusEventInit; +} +impl FocusEventInit { + #[doc = "Construct a new `FocusEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `detail` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`*"] + pub fn detail(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Window")] + #[doc = "Change the `view` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FocusEventInit`, `Window`*"] + pub fn view(&mut self, val: Option<&Window>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "EventTarget")] + #[doc = "Change the `relatedTarget` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `FocusEventInit`*"] + pub fn related_target(&mut self, val: Option<&EventTarget>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("relatedTarget"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_FontFace.rs b/crates/web-sys/src/features/gen_FontFace.rs new file mode 100644 index 00000000..c58f4dbe --- /dev/null +++ b/crates/web-sys/src/features/gen_FontFace.rs @@ -0,0 +1,244 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FontFace , typescript_type = "FontFace" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FontFace` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub type FontFace; + # [ wasm_bindgen ( structural , method , getter , js_class = "FontFace" , js_name = family ) ] + #[doc = "Getter for the `family` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/family)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn family(this: &FontFace) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "FontFace" , js_name = family ) ] + #[doc = "Setter for the `family` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/family)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn set_family(this: &FontFace, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "FontFace" , js_name = style ) ] + #[doc = "Getter for the `style` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/style)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn style(this: &FontFace) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "FontFace" , js_name = style ) ] + #[doc = "Setter for the `style` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/style)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn set_style(this: &FontFace, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "FontFace" , js_name = weight ) ] + #[doc = "Getter for the `weight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/weight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn weight(this: &FontFace) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "FontFace" , js_name = weight ) ] + #[doc = "Setter for the `weight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/weight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn set_weight(this: &FontFace, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "FontFace" , js_name = stretch ) ] + #[doc = "Getter for the `stretch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/stretch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn stretch(this: &FontFace) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "FontFace" , js_name = stretch ) ] + #[doc = "Setter for the `stretch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/stretch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn set_stretch(this: &FontFace, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "FontFace" , js_name = unicodeRange ) ] + #[doc = "Getter for the `unicodeRange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/unicodeRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn unicode_range(this: &FontFace) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "FontFace" , js_name = unicodeRange ) ] + #[doc = "Setter for the `unicodeRange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/unicodeRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn set_unicode_range(this: &FontFace, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "FontFace" , js_name = variant ) ] + #[doc = "Getter for the `variant` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/variant)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn variant(this: &FontFace) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "FontFace" , js_name = variant ) ] + #[doc = "Setter for the `variant` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/variant)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn set_variant(this: &FontFace, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "FontFace" , js_name = featureSettings ) ] + #[doc = "Getter for the `featureSettings` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/featureSettings)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn feature_settings(this: &FontFace) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "FontFace" , js_name = featureSettings ) ] + #[doc = "Setter for the `featureSettings` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/featureSettings)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn set_feature_settings(this: &FontFace, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "FontFace" , js_name = variationSettings ) ] + #[doc = "Getter for the `variationSettings` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/variationSettings)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn variation_settings(this: &FontFace) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "FontFace" , js_name = variationSettings ) ] + #[doc = "Setter for the `variationSettings` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/variationSettings)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn set_variation_settings(this: &FontFace, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "FontFace" , js_name = display ) ] + #[doc = "Getter for the `display` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/display)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn display(this: &FontFace) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "FontFace" , js_name = display ) ] + #[doc = "Setter for the `display` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/display)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn set_display(this: &FontFace, value: &str); + #[cfg(feature = "FontFaceLoadStatus")] + # [ wasm_bindgen ( structural , method , getter , js_class = "FontFace" , js_name = status ) ] + #[doc = "Getter for the `status` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/status)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceLoadStatus`*"] + pub fn status(this: &FontFace) -> FontFaceLoadStatus; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "FontFace" , js_name = loaded ) ] + #[doc = "Getter for the `loaded` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/loaded)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn loaded(this: &FontFace) -> Result<::js_sys::Promise, JsValue>; + #[wasm_bindgen(catch, constructor, js_class = "FontFace")] + #[doc = "The `new FontFace(..)` constructor, creating a new instance of `FontFace`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn new_with_str(family: &str, source: &str) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "FontFace")] + #[doc = "The `new FontFace(..)` constructor, creating a new instance of `FontFace`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn new_with_array_buffer( + family: &str, + source: &::js_sys::ArrayBuffer, + ) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "FontFace")] + #[doc = "The `new FontFace(..)` constructor, creating a new instance of `FontFace`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn new_with_array_buffer_view( + family: &str, + source: &::js_sys::Object, + ) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "FontFace")] + #[doc = "The `new FontFace(..)` constructor, creating a new instance of `FontFace`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn new_with_u8_array(family: &str, source: &mut [u8]) -> Result; + #[cfg(feature = "FontFaceDescriptors")] + #[wasm_bindgen(catch, constructor, js_class = "FontFace")] + #[doc = "The `new FontFace(..)` constructor, creating a new instance of `FontFace`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceDescriptors`*"] + pub fn new_with_str_and_descriptors( + family: &str, + source: &str, + descriptors: &FontFaceDescriptors, + ) -> Result; + #[cfg(feature = "FontFaceDescriptors")] + #[wasm_bindgen(catch, constructor, js_class = "FontFace")] + #[doc = "The `new FontFace(..)` constructor, creating a new instance of `FontFace`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceDescriptors`*"] + pub fn new_with_array_buffer_and_descriptors( + family: &str, + source: &::js_sys::ArrayBuffer, + descriptors: &FontFaceDescriptors, + ) -> Result; + #[cfg(feature = "FontFaceDescriptors")] + #[wasm_bindgen(catch, constructor, js_class = "FontFace")] + #[doc = "The `new FontFace(..)` constructor, creating a new instance of `FontFace`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceDescriptors`*"] + pub fn new_with_array_buffer_view_and_descriptors( + family: &str, + source: &::js_sys::Object, + descriptors: &FontFaceDescriptors, + ) -> Result; + #[cfg(feature = "FontFaceDescriptors")] + #[wasm_bindgen(catch, constructor, js_class = "FontFace")] + #[doc = "The `new FontFace(..)` constructor, creating a new instance of `FontFace`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/FontFace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceDescriptors`*"] + pub fn new_with_u8_array_and_descriptors( + family: &str, + source: &mut [u8], + descriptors: &FontFaceDescriptors, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "FontFace" , js_name = load ) ] + #[doc = "The `load()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFace/load)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`*"] + pub fn load(this: &FontFace) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_FontFaceDescriptors.rs b/crates/web-sys/src/features/gen_FontFaceDescriptors.rs new file mode 100644 index 00000000..e846875f --- /dev/null +++ b/crates/web-sys/src/features/gen_FontFaceDescriptors.rs @@ -0,0 +1,151 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FontFaceDescriptors ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FontFaceDescriptors` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] + pub type FontFaceDescriptors; +} +impl FontFaceDescriptors { + #[doc = "Construct a new `FontFaceDescriptors`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `display` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] + pub fn display(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("display"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `featureSettings` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] + pub fn feature_settings(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("featureSettings"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `stretch` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] + pub fn stretch(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("stretch"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `style` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] + pub fn style(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("style"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `unicodeRange` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] + pub fn unicode_range(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("unicodeRange"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `variant` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] + pub fn variant(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("variant"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `variationSettings` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] + pub fn variation_settings(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("variationSettings"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `weight` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceDescriptors`*"] + pub fn weight(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("weight"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_FontFaceLoadStatus.rs b/crates/web-sys/src/features/gen_FontFaceLoadStatus.rs new file mode 100644 index 00000000..f029f8cf --- /dev/null +++ b/crates/web-sys/src/features/gen_FontFaceLoadStatus.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `FontFaceLoadStatus` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `FontFaceLoadStatus`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum FontFaceLoadStatus { + Unloaded = "unloaded", + Loading = "loading", + Loaded = "loaded", + Error = "error", +} diff --git a/crates/web-sys/src/features/gen_FontFaceSet.rs b/crates/web-sys/src/features/gen_FontFaceSet.rs new file mode 100644 index 00000000..34fbfca8 --- /dev/null +++ b/crates/web-sys/src/features/gen_FontFaceSet.rs @@ -0,0 +1,171 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = FontFaceSet , typescript_type = "FontFaceSet" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FontFaceSet` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] + pub type FontFaceSet; + # [ wasm_bindgen ( structural , method , getter , js_class = "FontFaceSet" , js_name = size ) ] + #[doc = "Getter for the `size` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/size)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] + pub fn size(this: &FontFaceSet) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "FontFaceSet" , js_name = onloading ) ] + #[doc = "Getter for the `onloading` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloading)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] + pub fn onloading(this: &FontFaceSet) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "FontFaceSet" , js_name = onloading ) ] + #[doc = "Setter for the `onloading` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloading)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] + pub fn set_onloading(this: &FontFaceSet, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "FontFaceSet" , js_name = onloadingdone ) ] + #[doc = "Getter for the `onloadingdone` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingdone)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] + pub fn onloadingdone(this: &FontFaceSet) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "FontFaceSet" , js_name = onloadingdone ) ] + #[doc = "Setter for the `onloadingdone` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingdone)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] + pub fn set_onloadingdone(this: &FontFaceSet, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "FontFaceSet" , js_name = onloadingerror ) ] + #[doc = "Getter for the `onloadingerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] + pub fn onloadingerror(this: &FontFaceSet) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "FontFaceSet" , js_name = onloadingerror ) ] + #[doc = "Setter for the `onloadingerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/onloadingerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] + pub fn set_onloadingerror(this: &FontFaceSet, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "FontFaceSet" , js_name = ready ) ] + #[doc = "Getter for the `ready` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/ready)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] + pub fn ready(this: &FontFaceSet) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "FontFaceSetLoadStatus")] + # [ wasm_bindgen ( structural , method , getter , js_class = "FontFaceSet" , js_name = status ) ] + #[doc = "Getter for the `status` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/status)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`, `FontFaceSetLoadStatus`*"] + pub fn status(this: &FontFaceSet) -> FontFaceSetLoadStatus; + #[cfg(feature = "FontFace")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FontFaceSet" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceSet`*"] + pub fn add(this: &FontFaceSet, font: &FontFace) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "FontFaceSet" , js_name = check ) ] + #[doc = "The `check()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/check)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] + pub fn check(this: &FontFaceSet, font: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "FontFaceSet" , js_name = check ) ] + #[doc = "The `check()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/check)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] + pub fn check_with_text(this: &FontFaceSet, font: &str, text: &str) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "FontFaceSet" , js_name = clear ) ] + #[doc = "The `clear()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/clear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] + pub fn clear(this: &FontFaceSet); + #[cfg(feature = "FontFace")] + # [ wasm_bindgen ( method , structural , js_class = "FontFaceSet" , js_name = delete ) ] + #[doc = "The `delete()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/delete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceSet`*"] + pub fn delete(this: &FontFaceSet, font: &FontFace) -> bool; + #[cfg(feature = "FontFaceSetIterator")] + # [ wasm_bindgen ( method , structural , js_class = "FontFaceSet" , js_name = entries ) ] + #[doc = "The `entries()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/entries)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`, `FontFaceSetIterator`*"] + pub fn entries(this: &FontFaceSet) -> FontFaceSetIterator; + # [ wasm_bindgen ( catch , method , structural , js_class = "FontFaceSet" , js_name = forEach ) ] + #[doc = "The `forEach()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/forEach)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] + pub fn for_each(this: &FontFaceSet, cb: &::js_sys::Function) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "FontFaceSet" , js_name = forEach ) ] + #[doc = "The `forEach()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/forEach)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] + pub fn for_each_with_this_arg( + this: &FontFaceSet, + cb: &::js_sys::Function, + this_arg: &::wasm_bindgen::JsValue, + ) -> Result<(), JsValue>; + #[cfg(feature = "FontFace")] + # [ wasm_bindgen ( method , structural , js_class = "FontFaceSet" , js_name = has ) ] + #[doc = "The `has()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/has)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFace`, `FontFaceSet`*"] + pub fn has(this: &FontFaceSet, font: &FontFace) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "FontFaceSet" , js_name = load ) ] + #[doc = "The `load()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/load)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] + pub fn load(this: &FontFaceSet, font: &str) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "FontFaceSet" , js_name = load ) ] + #[doc = "The `load()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/load)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`*"] + pub fn load_with_text(this: &FontFaceSet, font: &str, text: &str) -> ::js_sys::Promise; + #[cfg(feature = "FontFaceSetIterator")] + # [ wasm_bindgen ( method , structural , js_class = "FontFaceSet" , js_name = values ) ] + #[doc = "The `values()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSet/values)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSet`, `FontFaceSetIterator`*"] + pub fn values(this: &FontFaceSet) -> FontFaceSetIterator; +} diff --git a/crates/web-sys/src/features/gen_FontFaceSetIterator.rs b/crates/web-sys/src/features/gen_FontFaceSetIterator.rs new file mode 100644 index 00000000..2f972fc2 --- /dev/null +++ b/crates/web-sys/src/features/gen_FontFaceSetIterator.rs @@ -0,0 +1,22 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = FontFaceSetIterator , typescript_type = "FontFaceSetIterator" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FontFaceSetIterator` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetIterator)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSetIterator`*"] + pub type FontFaceSetIterator; + #[cfg(feature = "FontFaceSetIteratorResult")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FontFaceSetIterator" , js_name = next ) ] + #[doc = "The `next()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetIterator/next)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSetIterator`, `FontFaceSetIteratorResult`*"] + pub fn next(this: &FontFaceSetIterator) -> Result; +} diff --git a/crates/web-sys/src/features/gen_FontFaceSetIteratorResult.rs b/crates/web-sys/src/features/gen_FontFaceSetIteratorResult.rs new file mode 100644 index 00000000..796cee10 --- /dev/null +++ b/crates/web-sys/src/features/gen_FontFaceSetIteratorResult.rs @@ -0,0 +1,50 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FontFaceSetIteratorResult ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FontFaceSetIteratorResult` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSetIteratorResult`*"] + pub type FontFaceSetIteratorResult; +} +impl FontFaceSetIteratorResult { + #[doc = "Construct a new `FontFaceSetIteratorResult`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSetIteratorResult`*"] + pub fn new(done: bool, value: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.done(done); + ret.value(value); + ret + } + #[doc = "Change the `done` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSetIteratorResult`*"] + pub fn done(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("done"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `value` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSetIteratorResult`*"] + pub fn value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_FontFaceSetLoadEvent.rs b/crates/web-sys/src/features/gen_FontFaceSetLoadEvent.rs new file mode 100644 index 00000000..cd93b717 --- /dev/null +++ b/crates/web-sys/src/features/gen_FontFaceSetLoadEvent.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = FontFaceSetLoadEvent , typescript_type = "FontFaceSetLoadEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FontFaceSetLoadEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetLoadEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEvent`*"] + pub type FontFaceSetLoadEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "FontFaceSetLoadEvent" , js_name = fontfaces ) ] + #[doc = "Getter for the `fontfaces` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetLoadEvent/fontfaces)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEvent`*"] + pub fn fontfaces(this: &FontFaceSetLoadEvent) -> ::js_sys::Array; + #[wasm_bindgen(catch, constructor, js_class = "FontFaceSetLoadEvent")] + #[doc = "The `new FontFaceSetLoadEvent(..)` constructor, creating a new instance of `FontFaceSetLoadEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetLoadEvent/FontFaceSetLoadEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "FontFaceSetLoadEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "FontFaceSetLoadEvent")] + #[doc = "The `new FontFaceSetLoadEvent(..)` constructor, creating a new instance of `FontFaceSetLoadEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FontFaceSetLoadEvent/FontFaceSetLoadEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEvent`, `FontFaceSetLoadEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &FontFaceSetLoadEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_FontFaceSetLoadEventInit.rs b/crates/web-sys/src/features/gen_FontFaceSetLoadEventInit.rs new file mode 100644 index 00000000..9a80e62c --- /dev/null +++ b/crates/web-sys/src/features/gen_FontFaceSetLoadEventInit.rs @@ -0,0 +1,90 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FontFaceSetLoadEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FontFaceSetLoadEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] + pub type FontFaceSetLoadEventInit; +} +impl FontFaceSetLoadEventInit { + #[doc = "Construct a new `FontFaceSetLoadEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `fontfaces` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadEventInit`*"] + pub fn fontfaces(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("fontfaces"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_FontFaceSetLoadStatus.rs b/crates/web-sys/src/features/gen_FontFaceSetLoadStatus.rs new file mode 100644 index 00000000..a97a1cef --- /dev/null +++ b/crates/web-sys/src/features/gen_FontFaceSetLoadStatus.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `FontFaceSetLoadStatus` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `FontFaceSetLoadStatus`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum FontFaceSetLoadStatus { + Loading = "loading", + Loaded = "loaded", +} diff --git a/crates/web-sys/src/features/gen_FormData.rs b/crates/web-sys/src/features/gen_FormData.rs new file mode 100644 index 00000000..1d67977c --- /dev/null +++ b/crates/web-sys/src/features/gen_FormData.rs @@ -0,0 +1,113 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FormData , typescript_type = "FormData" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FormData` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FormData`*"] + pub type FormData; + #[wasm_bindgen(catch, constructor, js_class = "FormData")] + #[doc = "The `new FormData(..)` constructor, creating a new instance of `FormData`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/FormData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FormData`*"] + pub fn new() -> Result; + #[cfg(feature = "HtmlFormElement")] + #[wasm_bindgen(catch, constructor, js_class = "FormData")] + #[doc = "The `new FormData(..)` constructor, creating a new instance of `FormData`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/FormData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FormData`, `HtmlFormElement`*"] + pub fn new_with_form(form: &HtmlFormElement) -> Result; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FormData" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `FormData`*"] + pub fn append_with_blob(this: &FormData, name: &str, value: &Blob) -> Result<(), JsValue>; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FormData" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `FormData`*"] + pub fn append_with_blob_and_filename( + this: &FormData, + name: &str, + value: &Blob, + filename: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "FormData" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FormData`*"] + pub fn append_with_str(this: &FormData, name: &str, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "FormData" , js_name = delete ) ] + #[doc = "The `delete()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/delete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FormData`*"] + pub fn delete(this: &FormData, name: &str); + # [ wasm_bindgen ( method , structural , js_class = "FormData" , js_name = get ) ] + #[doc = "The `get()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/get)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FormData`*"] + pub fn get(this: &FormData, name: &str) -> ::wasm_bindgen::JsValue; + # [ wasm_bindgen ( method , structural , js_class = "FormData" , js_name = getAll ) ] + #[doc = "The `getAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/getAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FormData`*"] + pub fn get_all(this: &FormData, name: &str) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "FormData" , js_name = has ) ] + #[doc = "The `has()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/has)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FormData`*"] + pub fn has(this: &FormData, name: &str) -> bool; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FormData" , js_name = set ) ] + #[doc = "The `set()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/set)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `FormData`*"] + pub fn set_with_blob(this: &FormData, name: &str, value: &Blob) -> Result<(), JsValue>; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "FormData" , js_name = set ) ] + #[doc = "The `set()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/set)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `FormData`*"] + pub fn set_with_blob_and_filename( + this: &FormData, + name: &str, + value: &Blob, + filename: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "FormData" , js_name = set ) ] + #[doc = "The `set()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FormData/set)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FormData`*"] + pub fn set_with_str(this: &FormData, name: &str, value: &str) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_FrameType.rs b/crates/web-sys/src/features/gen_FrameType.rs new file mode 100644 index 00000000..2e375342 --- /dev/null +++ b/crates/web-sys/src/features/gen_FrameType.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `FrameType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `FrameType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum FrameType { + Auxiliary = "auxiliary", + TopLevel = "top-level", + Nested = "nested", + None = "none", +} diff --git a/crates/web-sys/src/features/gen_FuzzingFunctions.rs b/crates/web-sys/src/features/gen_FuzzingFunctions.rs new file mode 100644 index 00000000..379e9768 --- /dev/null +++ b/crates/web-sys/src/features/gen_FuzzingFunctions.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = FuzzingFunctions , typescript_type = "FuzzingFunctions" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `FuzzingFunctions` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FuzzingFunctions)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FuzzingFunctions`*"] + pub type FuzzingFunctions; + # [ wasm_bindgen ( static_method_of = FuzzingFunctions , js_class = "FuzzingFunctions" , js_name = cycleCollect ) ] + #[doc = "The `cycleCollect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FuzzingFunctions/cycleCollect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FuzzingFunctions`*"] + pub fn cycle_collect(); + # [ wasm_bindgen ( catch , static_method_of = FuzzingFunctions , js_class = "FuzzingFunctions" , js_name = enableAccessibility ) ] + #[doc = "The `enableAccessibility()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FuzzingFunctions/enableAccessibility)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FuzzingFunctions`*"] + pub fn enable_accessibility() -> Result<(), JsValue>; + # [ wasm_bindgen ( static_method_of = FuzzingFunctions , js_class = "FuzzingFunctions" , js_name = garbageCollect ) ] + #[doc = "The `garbageCollect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/FuzzingFunctions/garbageCollect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FuzzingFunctions`*"] + pub fn garbage_collect(); +} diff --git a/crates/web-sys/src/features/gen_GainNode.rs b/crates/web-sys/src/features/gen_GainNode.rs new file mode 100644 index 00000000..ad15a262 --- /dev/null +++ b/crates/web-sys/src/features/gen_GainNode.rs @@ -0,0 +1,41 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = GainNode , typescript_type = "GainNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GainNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GainNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GainNode`*"] + pub type GainNode; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "GainNode" , js_name = gain ) ] + #[doc = "Getter for the `gain` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GainNode/gain)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `GainNode`*"] + pub fn gain(this: &GainNode) -> AudioParam; + #[cfg(feature = "BaseAudioContext")] + #[wasm_bindgen(catch, constructor, js_class = "GainNode")] + #[doc = "The `new GainNode(..)` constructor, creating a new instance of `GainNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GainNode/GainNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `GainNode`*"] + pub fn new(context: &BaseAudioContext) -> Result; + #[cfg(all(feature = "BaseAudioContext", feature = "GainOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "GainNode")] + #[doc = "The `new GainNode(..)` constructor, creating a new instance of `GainNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GainNode/GainNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `GainNode`, `GainOptions`*"] + pub fn new_with_options( + context: &BaseAudioContext, + options: &GainOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_GainOptions.rs b/crates/web-sys/src/features/gen_GainOptions.rs new file mode 100644 index 00000000..9bff344a --- /dev/null +++ b/crates/web-sys/src/features/gen_GainOptions.rs @@ -0,0 +1,88 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GainOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GainOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GainOptions`*"] + pub type GainOptions; +} +impl GainOptions { + #[doc = "Construct a new `GainOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GainOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GainOptions`*"] + pub fn channel_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelCountMode")] + #[doc = "Change the `channelCountMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `GainOptions`*"] + pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCountMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelInterpretation")] + #[doc = "Change the `channelInterpretation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `GainOptions`*"] + pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelInterpretation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `gain` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GainOptions`*"] + pub fn gain(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("gain"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Gamepad.rs b/crates/web-sys/src/features/gen_Gamepad.rs new file mode 100644 index 00000000..daa65bb4 --- /dev/null +++ b/crates/web-sys/src/features/gen_Gamepad.rs @@ -0,0 +1,94 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Gamepad , typescript_type = "Gamepad" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Gamepad` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] + pub type Gamepad; + # [ wasm_bindgen ( structural , method , getter , js_class = "Gamepad" , js_name = id ) ] + #[doc = "Getter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] + pub fn id(this: &Gamepad) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Gamepad" , js_name = index ) ] + #[doc = "Getter for the `index` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/index)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] + pub fn index(this: &Gamepad) -> u32; + #[cfg(feature = "GamepadMappingType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Gamepad" , js_name = mapping ) ] + #[doc = "Getter for the `mapping` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/mapping)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadMappingType`*"] + pub fn mapping(this: &Gamepad) -> GamepadMappingType; + #[cfg(feature = "GamepadHand")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Gamepad" , js_name = hand ) ] + #[doc = "Getter for the `hand` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hand)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadHand`*"] + pub fn hand(this: &Gamepad) -> GamepadHand; + # [ wasm_bindgen ( structural , method , getter , js_class = "Gamepad" , js_name = displayId ) ] + #[doc = "Getter for the `displayId` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/displayId)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] + pub fn display_id(this: &Gamepad) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Gamepad" , js_name = connected ) ] + #[doc = "Getter for the `connected` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/connected)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] + pub fn connected(this: &Gamepad) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "Gamepad" , js_name = buttons ) ] + #[doc = "Getter for the `buttons` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/buttons)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] + pub fn buttons(this: &Gamepad) -> ::js_sys::Array; + # [ wasm_bindgen ( structural , method , getter , js_class = "Gamepad" , js_name = axes ) ] + #[doc = "Getter for the `axes` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/axes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] + pub fn axes(this: &Gamepad) -> ::js_sys::Array; + # [ wasm_bindgen ( structural , method , getter , js_class = "Gamepad" , js_name = timestamp ) ] + #[doc = "Getter for the `timestamp` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/timestamp)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] + pub fn timestamp(this: &Gamepad) -> f64; + #[cfg(feature = "GamepadPose")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Gamepad" , js_name = pose ) ] + #[doc = "Getter for the `pose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/pose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadPose`*"] + pub fn pose(this: &Gamepad) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Gamepad" , js_name = hapticActuators ) ] + #[doc = "Getter for the `hapticActuators` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Gamepad/hapticActuators)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gamepad`*"] + pub fn haptic_actuators(this: &Gamepad) -> ::js_sys::Array; +} diff --git a/crates/web-sys/src/features/gen_GamepadAxisMoveEvent.rs b/crates/web-sys/src/features/gen_GamepadAxisMoveEvent.rs new file mode 100644 index 00000000..83bcfaf5 --- /dev/null +++ b/crates/web-sys/src/features/gen_GamepadAxisMoveEvent.rs @@ -0,0 +1,46 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = GamepadEvent , extends = Event , extends = :: js_sys :: Object , js_name = GamepadAxisMoveEvent , typescript_type = "GamepadAxisMoveEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GamepadAxisMoveEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadAxisMoveEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEvent`*"] + pub type GamepadAxisMoveEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "GamepadAxisMoveEvent" , js_name = axis ) ] + #[doc = "Getter for the `axis` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadAxisMoveEvent/axis)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEvent`*"] + pub fn axis(this: &GamepadAxisMoveEvent) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "GamepadAxisMoveEvent" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadAxisMoveEvent/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEvent`*"] + pub fn value(this: &GamepadAxisMoveEvent) -> f64; + #[wasm_bindgen(catch, constructor, js_class = "GamepadAxisMoveEvent")] + #[doc = "The `new GamepadAxisMoveEvent(..)` constructor, creating a new instance of `GamepadAxisMoveEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadAxisMoveEvent/GamepadAxisMoveEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "GamepadAxisMoveEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "GamepadAxisMoveEvent")] + #[doc = "The `new GamepadAxisMoveEvent(..)` constructor, creating a new instance of `GamepadAxisMoveEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadAxisMoveEvent/GamepadAxisMoveEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEvent`, `GamepadAxisMoveEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &GamepadAxisMoveEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_GamepadAxisMoveEventInit.rs b/crates/web-sys/src/features/gen_GamepadAxisMoveEventInit.rs new file mode 100644 index 00000000..8f864046 --- /dev/null +++ b/crates/web-sys/src/features/gen_GamepadAxisMoveEventInit.rs @@ -0,0 +1,117 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GamepadAxisMoveEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GamepadAxisMoveEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEventInit`*"] + pub type GamepadAxisMoveEventInit; +} +impl GamepadAxisMoveEventInit { + #[doc = "Construct a new `GamepadAxisMoveEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Gamepad")] + #[doc = "Change the `gamepad` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadAxisMoveEventInit`*"] + pub fn gamepad(&mut self, val: Option<&Gamepad>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("gamepad"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `axis` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEventInit`*"] + pub fn axis(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("axis"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `value` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadAxisMoveEventInit`*"] + pub fn value(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GamepadButton.rs b/crates/web-sys/src/features/gen_GamepadButton.rs new file mode 100644 index 00000000..0b6ff5f9 --- /dev/null +++ b/crates/web-sys/src/features/gen_GamepadButton.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GamepadButton , typescript_type = "GamepadButton" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GamepadButton` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"] + pub type GamepadButton; + # [ wasm_bindgen ( structural , method , getter , js_class = "GamepadButton" , js_name = pressed ) ] + #[doc = "Getter for the `pressed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/pressed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"] + pub fn pressed(this: &GamepadButton) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "GamepadButton" , js_name = touched ) ] + #[doc = "Getter for the `touched` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/touched)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"] + pub fn touched(this: &GamepadButton) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "GamepadButton" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButton/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadButton`*"] + pub fn value(this: &GamepadButton) -> f64; +} diff --git a/crates/web-sys/src/features/gen_GamepadButtonEvent.rs b/crates/web-sys/src/features/gen_GamepadButtonEvent.rs new file mode 100644 index 00000000..b0170312 --- /dev/null +++ b/crates/web-sys/src/features/gen_GamepadButtonEvent.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = GamepadEvent , extends = Event , extends = :: js_sys :: Object , js_name = GamepadButtonEvent , typescript_type = "GamepadButtonEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GamepadButtonEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButtonEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEvent`*"] + pub type GamepadButtonEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "GamepadButtonEvent" , js_name = button ) ] + #[doc = "Getter for the `button` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButtonEvent/button)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEvent`*"] + pub fn button(this: &GamepadButtonEvent) -> u32; + #[wasm_bindgen(catch, constructor, js_class = "GamepadButtonEvent")] + #[doc = "The `new GamepadButtonEvent(..)` constructor, creating a new instance of `GamepadButtonEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButtonEvent/GamepadButtonEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "GamepadButtonEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "GamepadButtonEvent")] + #[doc = "The `new GamepadButtonEvent(..)` constructor, creating a new instance of `GamepadButtonEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadButtonEvent/GamepadButtonEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEvent`, `GamepadButtonEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &GamepadButtonEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_GamepadButtonEventInit.rs b/crates/web-sys/src/features/gen_GamepadButtonEventInit.rs new file mode 100644 index 00000000..e53a149e --- /dev/null +++ b/crates/web-sys/src/features/gen_GamepadButtonEventInit.rs @@ -0,0 +1,105 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GamepadButtonEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GamepadButtonEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEventInit`*"] + pub type GamepadButtonEventInit; +} +impl GamepadButtonEventInit { + #[doc = "Construct a new `GamepadButtonEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Gamepad")] + #[doc = "Change the `gamepad` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadButtonEventInit`*"] + pub fn gamepad(&mut self, val: Option<&Gamepad>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("gamepad"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `button` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadButtonEventInit`*"] + pub fn button(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("button"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GamepadEvent.rs b/crates/web-sys/src/features/gen_GamepadEvent.rs new file mode 100644 index 00000000..b6121b53 --- /dev/null +++ b/crates/web-sys/src/features/gen_GamepadEvent.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = GamepadEvent , typescript_type = "GamepadEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GamepadEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadEvent`*"] + pub type GamepadEvent; + #[cfg(feature = "Gamepad")] + # [ wasm_bindgen ( structural , method , getter , js_class = "GamepadEvent" , js_name = gamepad ) ] + #[doc = "Getter for the `gamepad` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadEvent/gamepad)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadEvent`*"] + pub fn gamepad(this: &GamepadEvent) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "GamepadEvent")] + #[doc = "The `new GamepadEvent(..)` constructor, creating a new instance of `GamepadEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadEvent/GamepadEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "GamepadEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "GamepadEvent")] + #[doc = "The `new GamepadEvent(..)` constructor, creating a new instance of `GamepadEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadEvent/GamepadEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadEvent`, `GamepadEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &GamepadEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_GamepadEventInit.rs b/crates/web-sys/src/features/gen_GamepadEventInit.rs new file mode 100644 index 00000000..9498b327 --- /dev/null +++ b/crates/web-sys/src/features/gen_GamepadEventInit.rs @@ -0,0 +1,91 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GamepadEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GamepadEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadEventInit`*"] + pub type GamepadEventInit; +} +impl GamepadEventInit { + #[doc = "Construct a new `GamepadEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Gamepad")] + #[doc = "Change the `gamepad` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gamepad`, `GamepadEventInit`*"] + pub fn gamepad(&mut self, val: Option<&Gamepad>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("gamepad"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GamepadHand.rs b/crates/web-sys/src/features/gen_GamepadHand.rs new file mode 100644 index 00000000..88650f3c --- /dev/null +++ b/crates/web-sys/src/features/gen_GamepadHand.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `GamepadHand` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GamepadHand`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GamepadHand { + None = "", + Left = "left", + Right = "right", +} diff --git a/crates/web-sys/src/features/gen_GamepadHapticActuator.rs b/crates/web-sys/src/features/gen_GamepadHapticActuator.rs new file mode 100644 index 00000000..8ff9a868 --- /dev/null +++ b/crates/web-sys/src/features/gen_GamepadHapticActuator.rs @@ -0,0 +1,33 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GamepadHapticActuator , typescript_type = "GamepadHapticActuator" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GamepadHapticActuator` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadHapticActuator`*"] + pub type GamepadHapticActuator; + #[cfg(feature = "GamepadHapticActuatorType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "GamepadHapticActuator" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadHapticActuator`, `GamepadHapticActuatorType`*"] + pub fn type_(this: &GamepadHapticActuator) -> GamepadHapticActuatorType; + # [ wasm_bindgen ( catch , method , structural , js_class = "GamepadHapticActuator" , js_name = pulse ) ] + #[doc = "The `pulse()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadHapticActuator/pulse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadHapticActuator`*"] + pub fn pulse( + this: &GamepadHapticActuator, + value: f64, + duration: f64, + ) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_GamepadHapticActuatorType.rs b/crates/web-sys/src/features/gen_GamepadHapticActuatorType.rs new file mode 100644 index 00000000..cc6bf044 --- /dev/null +++ b/crates/web-sys/src/features/gen_GamepadHapticActuatorType.rs @@ -0,0 +1,10 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `GamepadHapticActuatorType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GamepadHapticActuatorType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GamepadHapticActuatorType { + Vibration = "vibration", +} diff --git a/crates/web-sys/src/features/gen_GamepadMappingType.rs b/crates/web-sys/src/features/gen_GamepadMappingType.rs new file mode 100644 index 00000000..14b69f24 --- /dev/null +++ b/crates/web-sys/src/features/gen_GamepadMappingType.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `GamepadMappingType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GamepadMappingType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GamepadMappingType { + None = "", + Standard = "standard", +} diff --git a/crates/web-sys/src/features/gen_GamepadPose.rs b/crates/web-sys/src/features/gen_GamepadPose.rs new file mode 100644 index 00000000..2fc87f0a --- /dev/null +++ b/crates/web-sys/src/features/gen_GamepadPose.rs @@ -0,0 +1,70 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GamepadPose , typescript_type = "GamepadPose" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GamepadPose` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] + pub type GamepadPose; + # [ wasm_bindgen ( structural , method , getter , js_class = "GamepadPose" , js_name = hasOrientation ) ] + #[doc = "Getter for the `hasOrientation` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/hasOrientation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] + pub fn has_orientation(this: &GamepadPose) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "GamepadPose" , js_name = hasPosition ) ] + #[doc = "Getter for the `hasPosition` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/hasPosition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] + pub fn has_position(this: &GamepadPose) -> bool; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "GamepadPose" , js_name = position ) ] + #[doc = "Getter for the `position` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/position)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] + pub fn position(this: &GamepadPose) -> Result>, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "GamepadPose" , js_name = linearVelocity ) ] + #[doc = "Getter for the `linearVelocity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/linearVelocity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] + pub fn linear_velocity(this: &GamepadPose) -> Result>, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "GamepadPose" , js_name = linearAcceleration ) ] + #[doc = "Getter for the `linearAcceleration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/linearAcceleration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] + pub fn linear_acceleration(this: &GamepadPose) -> Result>, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "GamepadPose" , js_name = orientation ) ] + #[doc = "Getter for the `orientation` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/orientation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] + pub fn orientation(this: &GamepadPose) -> Result>, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "GamepadPose" , js_name = angularVelocity ) ] + #[doc = "Getter for the `angularVelocity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/angularVelocity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] + pub fn angular_velocity(this: &GamepadPose) -> Result>, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "GamepadPose" , js_name = angularAcceleration ) ] + #[doc = "Getter for the `angularAcceleration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadPose/angularAcceleration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadPose`*"] + pub fn angular_acceleration(this: &GamepadPose) -> Result>, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_GamepadServiceTest.rs b/crates/web-sys/src/features/gen_GamepadServiceTest.rs new file mode 100644 index 00000000..467470f1 --- /dev/null +++ b/crates/web-sys/src/features/gen_GamepadServiceTest.rs @@ -0,0 +1,127 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GamepadServiceTest , typescript_type = "GamepadServiceTest" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GamepadServiceTest` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"] + pub type GamepadServiceTest; + #[cfg(feature = "GamepadMappingType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "GamepadServiceTest" , js_name = noMapping ) ] + #[doc = "Getter for the `noMapping` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/noMapping)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadMappingType`, `GamepadServiceTest`*"] + pub fn no_mapping(this: &GamepadServiceTest) -> GamepadMappingType; + #[cfg(feature = "GamepadMappingType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "GamepadServiceTest" , js_name = standardMapping ) ] + #[doc = "Getter for the `standardMapping` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/standardMapping)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadMappingType`, `GamepadServiceTest`*"] + pub fn standard_mapping(this: &GamepadServiceTest) -> GamepadMappingType; + #[cfg(feature = "GamepadHand")] + # [ wasm_bindgen ( structural , method , getter , js_class = "GamepadServiceTest" , js_name = noHand ) ] + #[doc = "Getter for the `noHand` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/noHand)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadHand`, `GamepadServiceTest`*"] + pub fn no_hand(this: &GamepadServiceTest) -> GamepadHand; + #[cfg(feature = "GamepadHand")] + # [ wasm_bindgen ( structural , method , getter , js_class = "GamepadServiceTest" , js_name = leftHand ) ] + #[doc = "Getter for the `leftHand` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/leftHand)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadHand`, `GamepadServiceTest`*"] + pub fn left_hand(this: &GamepadServiceTest) -> GamepadHand; + #[cfg(feature = "GamepadHand")] + # [ wasm_bindgen ( structural , method , getter , js_class = "GamepadServiceTest" , js_name = rightHand ) ] + #[doc = "Getter for the `rightHand` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/rightHand)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadHand`, `GamepadServiceTest`*"] + pub fn right_hand(this: &GamepadServiceTest) -> GamepadHand; + #[cfg(all(feature = "GamepadHand", feature = "GamepadMappingType",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "GamepadServiceTest" , js_name = addGamepad ) ] + #[doc = "The `addGamepad()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/addGamepad)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadHand`, `GamepadMappingType`, `GamepadServiceTest`*"] + pub fn add_gamepad( + this: &GamepadServiceTest, + id: &str, + mapping: GamepadMappingType, + hand: GamepadHand, + num_buttons: u32, + num_axes: u32, + num_haptics: u32, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "GamepadServiceTest" , js_name = newAxisMoveEvent ) ] + #[doc = "The `newAxisMoveEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/newAxisMoveEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"] + pub fn new_axis_move_event(this: &GamepadServiceTest, index: u32, axis: u32, value: f64); + # [ wasm_bindgen ( method , structural , js_class = "GamepadServiceTest" , js_name = newButtonEvent ) ] + #[doc = "The `newButtonEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/newButtonEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"] + pub fn new_button_event( + this: &GamepadServiceTest, + index: u32, + button: u32, + pressed: bool, + touched: bool, + ); + # [ wasm_bindgen ( method , structural , js_class = "GamepadServiceTest" , js_name = newButtonValueEvent ) ] + #[doc = "The `newButtonValueEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/newButtonValueEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"] + pub fn new_button_value_event( + this: &GamepadServiceTest, + index: u32, + button: u32, + pressed: bool, + touched: bool, + value: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "GamepadServiceTest" , js_name = newPoseMove ) ] + #[doc = "The `newPoseMove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/newPoseMove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"] + pub fn new_pose_move( + this: &GamepadServiceTest, + index: u32, + orient: Option<&mut [f32]>, + pos: Option<&mut [f32]>, + ang_velocity: Option<&mut [f32]>, + ang_acceleration: Option<&mut [f32]>, + lin_velocity: Option<&mut [f32]>, + lin_acceleration: Option<&mut [f32]>, + ); + # [ wasm_bindgen ( method , structural , js_class = "GamepadServiceTest" , js_name = removeGamepad ) ] + #[doc = "The `removeGamepad()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GamepadServiceTest/removeGamepad)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`*"] + pub fn remove_gamepad(this: &GamepadServiceTest, index: u32); +} diff --git a/crates/web-sys/src/features/gen_Geolocation.rs b/crates/web-sys/src/features/gen_Geolocation.rs new file mode 100644 index 00000000..02d3c19b --- /dev/null +++ b/crates/web-sys/src/features/gen_Geolocation.rs @@ -0,0 +1,89 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = Geolocation , typescript_type = "Geolocation" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Geolocation` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Geolocation`*"] + pub type Geolocation; + # [ wasm_bindgen ( method , structural , js_class = "Geolocation" , js_name = clearWatch ) ] + #[doc = "The `clearWatch()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/clearWatch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Geolocation`*"] + pub fn clear_watch(this: &Geolocation, watch_id: i32); + # [ wasm_bindgen ( catch , method , structural , js_class = "Geolocation" , js_name = getCurrentPosition ) ] + #[doc = "The `getCurrentPosition()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Geolocation`*"] + pub fn get_current_position( + this: &Geolocation, + success_callback: &::js_sys::Function, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Geolocation" , js_name = getCurrentPosition ) ] + #[doc = "The `getCurrentPosition()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Geolocation`*"] + pub fn get_current_position_with_error_callback( + this: &Geolocation, + success_callback: &::js_sys::Function, + error_callback: Option<&::js_sys::Function>, + ) -> Result<(), JsValue>; + #[cfg(feature = "PositionOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Geolocation" , js_name = getCurrentPosition ) ] + #[doc = "The `getCurrentPosition()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Geolocation`, `PositionOptions`*"] + pub fn get_current_position_with_error_callback_and_options( + this: &Geolocation, + success_callback: &::js_sys::Function, + error_callback: Option<&::js_sys::Function>, + options: &PositionOptions, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Geolocation" , js_name = watchPosition ) ] + #[doc = "The `watchPosition()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/watchPosition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Geolocation`*"] + pub fn watch_position( + this: &Geolocation, + success_callback: &::js_sys::Function, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Geolocation" , js_name = watchPosition ) ] + #[doc = "The `watchPosition()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/watchPosition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Geolocation`*"] + pub fn watch_position_with_error_callback( + this: &Geolocation, + success_callback: &::js_sys::Function, + error_callback: Option<&::js_sys::Function>, + ) -> Result; + #[cfg(feature = "PositionOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Geolocation" , js_name = watchPosition ) ] + #[doc = "The `watchPosition()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/watchPosition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Geolocation`, `PositionOptions`*"] + pub fn watch_position_with_error_callback_and_options( + this: &Geolocation, + success_callback: &::js_sys::Function, + error_callback: Option<&::js_sys::Function>, + options: &PositionOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_GetNotificationOptions.rs b/crates/web-sys/src/features/gen_GetNotificationOptions.rs new file mode 100644 index 00000000..b5ad93c2 --- /dev/null +++ b/crates/web-sys/src/features/gen_GetNotificationOptions.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GetNotificationOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GetNotificationOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetNotificationOptions`*"] + pub type GetNotificationOptions; +} +impl GetNotificationOptions { + #[doc = "Construct a new `GetNotificationOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetNotificationOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `tag` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetNotificationOptions`*"] + pub fn tag(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("tag"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GetRootNodeOptions.rs b/crates/web-sys/src/features/gen_GetRootNodeOptions.rs new file mode 100644 index 00000000..74844cdc --- /dev/null +++ b/crates/web-sys/src/features/gen_GetRootNodeOptions.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GetRootNodeOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GetRootNodeOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetRootNodeOptions`*"] + pub type GetRootNodeOptions; +} +impl GetRootNodeOptions { + #[doc = "Construct a new `GetRootNodeOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetRootNodeOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetRootNodeOptions`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GetUserMediaRequest.rs b/crates/web-sys/src/features/gen_GetUserMediaRequest.rs new file mode 100644 index 00000000..56b20e6d --- /dev/null +++ b/crates/web-sys/src/features/gen_GetUserMediaRequest.rs @@ -0,0 +1,71 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = GetUserMediaRequest , typescript_type = "GetUserMediaRequest" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GetUserMediaRequest` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] + pub type GetUserMediaRequest; + # [ wasm_bindgen ( structural , method , getter , js_class = "GetUserMediaRequest" , js_name = windowID ) ] + #[doc = "Getter for the `windowID` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/windowID)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] + pub fn window_id(this: &GetUserMediaRequest) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "GetUserMediaRequest" , js_name = innerWindowID ) ] + #[doc = "Getter for the `innerWindowID` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/innerWindowID)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] + pub fn inner_window_id(this: &GetUserMediaRequest) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "GetUserMediaRequest" , js_name = callID ) ] + #[doc = "Getter for the `callID` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/callID)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] + pub fn call_id(this: &GetUserMediaRequest) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "GetUserMediaRequest" , js_name = rawID ) ] + #[doc = "Getter for the `rawID` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/rawID)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] + pub fn raw_id(this: &GetUserMediaRequest) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "GetUserMediaRequest" , js_name = mediaSource ) ] + #[doc = "Getter for the `mediaSource` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/mediaSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] + pub fn media_source(this: &GetUserMediaRequest) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "GetUserMediaRequest" , js_name = isSecure ) ] + #[doc = "Getter for the `isSecure` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/isSecure)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] + pub fn is_secure(this: &GetUserMediaRequest) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "GetUserMediaRequest" , js_name = isHandlingUserInput ) ] + #[doc = "Getter for the `isHandlingUserInput` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/isHandlingUserInput)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`*"] + pub fn is_handling_user_input(this: &GetUserMediaRequest) -> bool; + #[cfg(feature = "MediaStreamConstraints")] + # [ wasm_bindgen ( method , structural , js_class = "GetUserMediaRequest" , js_name = getConstraints ) ] + #[doc = "The `getConstraints()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GetUserMediaRequest/getConstraints)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetUserMediaRequest`, `MediaStreamConstraints`*"] + pub fn get_constraints(this: &GetUserMediaRequest) -> MediaStreamConstraints; +} diff --git a/crates/web-sys/src/features/gen_Gpu.rs b/crates/web-sys/src/features/gen_Gpu.rs new file mode 100644 index 00000000..e323714d --- /dev/null +++ b/crates/web-sys/src/features/gen_Gpu.rs @@ -0,0 +1,44 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPU , typescript_type = "GPU" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Gpu` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gpu`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type Gpu; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPU" , js_name = requestAdapter ) ] + #[doc = "The `requestAdapter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU/requestAdapter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gpu`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn request_adapter(this: &Gpu) -> ::js_sys::Promise; + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuRequestAdapterOptions")] + # [ wasm_bindgen ( method , structural , js_class = "GPU" , js_name = requestAdapter ) ] + #[doc = "The `requestAdapter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPU/requestAdapter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gpu`, `GpuRequestAdapterOptions`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn request_adapter_with_options( + this: &Gpu, + options: &GpuRequestAdapterOptions, + ) -> ::js_sys::Promise; +} diff --git a/crates/web-sys/src/features/gen_GpuAdapter.rs b/crates/web-sys/src/features/gen_GpuAdapter.rs new file mode 100644 index 00000000..69e4411e --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuAdapter.rs @@ -0,0 +1,55 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUAdapter , typescript_type = "GPUAdapter" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuAdapter` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuAdapter`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuAdapter; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUAdapter" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuAdapter`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn name(this: &GpuAdapter) -> String; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUAdapter" , js_name = requestDevice ) ] + #[doc = "The `requestDevice()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/requestDevice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuAdapter`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn request_device(this: &GpuAdapter) -> ::js_sys::Promise; + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuDeviceDescriptor")] + # [ wasm_bindgen ( method , structural , js_class = "GPUAdapter" , js_name = requestDevice ) ] + #[doc = "The `requestDevice()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUAdapter/requestDevice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuAdapter`, `GpuDeviceDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn request_device_with_descriptor( + this: &GpuAdapter, + descriptor: &GpuDeviceDescriptor, + ) -> ::js_sys::Promise; +} diff --git a/crates/web-sys/src/features/gen_GpuAddressMode.rs b/crates/web-sys/src/features/gen_GpuAddressMode.rs new file mode 100644 index 00000000..b607dc09 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuAddressMode.rs @@ -0,0 +1,16 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuAddressMode` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuAddressMode { + ClampToEdge = "clamp-to-edge", + Repeat = "repeat", + MirrorRepeat = "mirror-repeat", +} diff --git a/crates/web-sys/src/features/gen_GpuBindGroup.rs b/crates/web-sys/src/features/gen_GpuBindGroup.rs new file mode 100644 index 00000000..7c7e22fa --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuBindGroup.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUBindGroup , typescript_type = "GPUBindGroup" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuBindGroup` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuBindGroup; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUBindGroup" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroup/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuBindGroup) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPUBindGroup" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroup/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuBindGroup, value: Option<&str>); +} diff --git a/crates/web-sys/src/features/gen_GpuBindGroupBinding.rs b/crates/web-sys/src/features/gen_GpuBindGroupBinding.rs new file mode 100644 index 00000000..9d4f3605 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuBindGroupBinding.rs @@ -0,0 +1,74 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUBindGroupBinding ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuBindGroupBinding` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupBinding`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuBindGroupBinding; +} +#[cfg(web_sys_unstable_apis)] +impl GpuBindGroupBinding { + #[doc = "Construct a new `GpuBindGroupBinding`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupBinding`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(binding: u32, resource: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.binding(binding); + ret.resource(resource); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `binding` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupBinding`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn binding(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("binding"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `resource` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupBinding`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn resource(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("resource"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuBindGroupDescriptor.rs b/crates/web-sys/src/features/gen_GpuBindGroupDescriptor.rs new file mode 100644 index 00000000..aadea278 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuBindGroupDescriptor.rs @@ -0,0 +1,90 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUBindGroupDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuBindGroupDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuBindGroupDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuBindGroupDescriptor { + #[cfg(feature = "GpuBindGroupLayout")] + #[doc = "Construct a new `GpuBindGroupDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`, `GpuBindGroupLayout`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(bindings: &::wasm_bindgen::JsValue, layout: &GpuBindGroupLayout) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.bindings(bindings); + ret.layout(layout); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `bindings` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn bindings(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bindings"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBindGroupLayout")] + #[doc = "Change the `layout` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupDescriptor`, `GpuBindGroupLayout`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn layout(&mut self, val: &GpuBindGroupLayout) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("layout"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuBindGroupLayout.rs b/crates/web-sys/src/features/gen_GpuBindGroupLayout.rs new file mode 100644 index 00000000..4db285bd --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuBindGroupLayout.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUBindGroupLayout , typescript_type = "GPUBindGroupLayout" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuBindGroupLayout` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroupLayout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayout`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuBindGroupLayout; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUBindGroupLayout" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroupLayout/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayout`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuBindGroupLayout) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPUBindGroupLayout" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBindGroupLayout/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayout`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuBindGroupLayout, value: Option<&str>); +} diff --git a/crates/web-sys/src/features/gen_GpuBindGroupLayoutBinding.rs b/crates/web-sys/src/features/gen_GpuBindGroupLayoutBinding.rs new file mode 100644 index 00000000..99442e73 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuBindGroupLayoutBinding.rs @@ -0,0 +1,180 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUBindGroupLayoutBinding ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuBindGroupLayoutBinding` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuBindGroupLayoutBinding; +} +#[cfg(web_sys_unstable_apis)] +impl GpuBindGroupLayoutBinding { + #[cfg(feature = "GpuBindingType")] + #[doc = "Construct a new `GpuBindGroupLayoutBinding`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding`, `GpuBindingType`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(binding: u32, type_: GpuBindingType, visibility: u32) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.binding(binding); + ret.type_(type_); + ret.visibility(visibility); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `binding` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn binding(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("binding"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `hasDynamicOffset` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn has_dynamic_offset(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("hasDynamicOffset"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `multisampled` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn multisampled(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("multisampled"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTextureComponentType")] + #[doc = "Change the `textureComponentType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding`, `GpuTextureComponentType`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn texture_component_type(&mut self, val: GpuTextureComponentType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("textureComponentType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTextureViewDimension")] + #[doc = "Change the `textureDimension` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding`, `GpuTextureViewDimension`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn texture_dimension(&mut self, val: GpuTextureViewDimension) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("textureDimension"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBindingType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding`, `GpuBindingType`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn type_(&mut self, val: GpuBindingType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `visibility` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutBinding`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn visibility(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("visibility"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuBindGroupLayoutDescriptor.rs b/crates/web-sys/src/features/gen_GpuBindGroupLayoutDescriptor.rs new file mode 100644 index 00000000..08ce1248 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuBindGroupLayoutDescriptor.rs @@ -0,0 +1,69 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUBindGroupLayoutDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuBindGroupLayoutDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuBindGroupLayoutDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuBindGroupLayoutDescriptor { + #[doc = "Construct a new `GpuBindGroupLayoutDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(bindings: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.bindings(bindings); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `bindings` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayoutDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn bindings(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bindings"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuBindingType.rs b/crates/web-sys/src/features/gen_GpuBindingType.rs new file mode 100644 index 00000000..6b5aec7c --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuBindingType.rs @@ -0,0 +1,19 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuBindingType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuBindingType`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuBindingType { + UniformBuffer = "uniform-buffer", + StorageBuffer = "storage-buffer", + ReadonlyStorageBuffer = "readonly-storage-buffer", + Sampler = "sampler", + SampledTexture = "sampled-texture", + StorageTexture = "storage-texture", +} diff --git a/crates/web-sys/src/features/gen_GpuBlendDescriptor.rs b/crates/web-sys/src/features/gen_GpuBlendDescriptor.rs new file mode 100644 index 00000000..bdf28894 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuBlendDescriptor.rs @@ -0,0 +1,96 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUBlendDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuBlendDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBlendDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuBlendDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuBlendDescriptor { + #[doc = "Construct a new `GpuBlendDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBlendDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBlendFactor")] + #[doc = "Change the `dstFactor` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBlendDescriptor`, `GpuBlendFactor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn dst_factor(&mut self, val: GpuBlendFactor) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("dstFactor"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBlendOperation")] + #[doc = "Change the `operation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBlendDescriptor`, `GpuBlendOperation`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn operation(&mut self, val: GpuBlendOperation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("operation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBlendFactor")] + #[doc = "Change the `srcFactor` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBlendDescriptor`, `GpuBlendFactor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn src_factor(&mut self, val: GpuBlendFactor) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("srcFactor"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuBlendFactor.rs b/crates/web-sys/src/features/gen_GpuBlendFactor.rs new file mode 100644 index 00000000..dbcd6624 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuBlendFactor.rs @@ -0,0 +1,26 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuBlendFactor` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuBlendFactor`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuBlendFactor { + Zero = "zero", + One = "one", + SrcColor = "src-color", + OneMinusSrcColor = "one-minus-src-color", + SrcAlpha = "src-alpha", + OneMinusSrcAlpha = "one-minus-src-alpha", + DstColor = "dst-color", + OneMinusDstColor = "one-minus-dst-color", + DstAlpha = "dst-alpha", + OneMinusDstAlpha = "one-minus-dst-alpha", + SrcAlphaSaturated = "src-alpha-saturated", + BlendColor = "blend-color", + OneMinusBlendColor = "one-minus-blend-color", +} diff --git a/crates/web-sys/src/features/gen_GpuBlendOperation.rs b/crates/web-sys/src/features/gen_GpuBlendOperation.rs new file mode 100644 index 00000000..69ae1f0a --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuBlendOperation.rs @@ -0,0 +1,18 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuBlendOperation` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuBlendOperation`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuBlendOperation { + Add = "add", + Subtract = "subtract", + ReverseSubtract = "reverse-subtract", + Min = "min", + Max = "max", +} diff --git a/crates/web-sys/src/features/gen_GpuBuffer.rs b/crates/web-sys/src/features/gen_GpuBuffer.rs new file mode 100644 index 00000000..e19011b8 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuBuffer.rs @@ -0,0 +1,84 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUBuffer , typescript_type = "GPUBuffer" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuBuffer` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuBuffer; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUBuffer" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuBuffer) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPUBuffer" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuBuffer, value: Option<&str>); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = destroy ) ] + #[doc = "The `destroy()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/destroy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn destroy(this: &GpuBuffer); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = mapReadAsync ) ] + #[doc = "The `mapReadAsync()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapReadAsync)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn map_read_async(this: &GpuBuffer) -> ::js_sys::Promise; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = mapWriteAsync ) ] + #[doc = "The `mapWriteAsync()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/mapWriteAsync)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn map_write_async(this: &GpuBuffer) -> ::js_sys::Promise; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUBuffer" , js_name = unmap ) ] + #[doc = "The `unmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBuffer/unmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn unmap(this: &GpuBuffer); +} diff --git a/crates/web-sys/src/features/gen_GpuBufferBinding.rs b/crates/web-sys/src/features/gen_GpuBufferBinding.rs new file mode 100644 index 00000000..321b7835 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuBufferBinding.rs @@ -0,0 +1,86 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUBufferBinding ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuBufferBinding` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferBinding`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuBufferBinding; +} +#[cfg(web_sys_unstable_apis)] +impl GpuBufferBinding { + #[cfg(feature = "GpuBuffer")] + #[doc = "Construct a new `GpuBufferBinding`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferBinding`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(buffer: &GpuBuffer) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.buffer(buffer); + ret + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + #[doc = "Change the `buffer` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferBinding`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn buffer(&mut self, val: &GpuBuffer) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("buffer"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `offset` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferBinding`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn offset(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `size` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferBinding`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn size(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("size"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuBufferCopyView.rs b/crates/web-sys/src/features/gen_GpuBufferCopyView.rs new file mode 100644 index 00000000..0d445f4f --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuBufferCopyView.rs @@ -0,0 +1,113 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUBufferCopyView ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuBufferCopyView` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuBufferCopyView; +} +#[cfg(web_sys_unstable_apis)] +impl GpuBufferCopyView { + #[cfg(feature = "GpuBuffer")] + #[doc = "Construct a new `GpuBufferCopyView`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(buffer: &GpuBuffer, image_height: u32, row_pitch: u32) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.buffer(buffer); + ret.image_height(image_height); + ret.row_pitch(row_pitch); + ret + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + #[doc = "Change the `buffer` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn buffer(&mut self, val: &GpuBuffer) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("buffer"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `imageHeight` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn image_height(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("imageHeight"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `offset` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn offset(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `rowPitch` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn row_pitch(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("rowPitch"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuBufferDescriptor.rs b/crates/web-sys/src/features/gen_GpuBufferDescriptor.rs new file mode 100644 index 00000000..fbcf8761 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuBufferDescriptor.rs @@ -0,0 +1,83 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUBufferDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuBufferDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuBufferDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuBufferDescriptor { + #[doc = "Construct a new `GpuBufferDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(size: f64, usage: u32) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.size(size); + ret.usage(usage); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `size` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn size(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("size"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `usage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn usage(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("usage"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuBufferUsage.rs b/crates/web-sys/src/features/gen_GpuBufferUsage.rs new file mode 100644 index 00000000..00f79147 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuBufferUsage.rs @@ -0,0 +1,93 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUBufferUsage , typescript_type = "GPUBufferUsage" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuBufferUsage` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUBufferUsage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuBufferUsage; +} +#[cfg(web_sys_unstable_apis)] +impl GpuBufferUsage { + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUBufferUsage.MAP_READ` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const MAP_READ: u32 = 1u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUBufferUsage.MAP_WRITE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const MAP_WRITE: u32 = 2u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUBufferUsage.COPY_SRC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const COPY_SRC: u32 = 4u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUBufferUsage.COPY_DST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const COPY_DST: u32 = 8u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUBufferUsage.INDEX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const INDEX: u32 = 16u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUBufferUsage.VERTEX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const VERTEX: u32 = 32u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUBufferUsage.UNIFORM` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const UNIFORM: u32 = 64u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUBufferUsage.STORAGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const STORAGE: u32 = 128u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUBufferUsage.INDIRECT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferUsage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const INDIRECT: u32 = 256u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_GpuCanvasContext.rs b/crates/web-sys/src/features/gen_GpuCanvasContext.rs new file mode 100644 index 00000000..9a22936b --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuCanvasContext.rs @@ -0,0 +1,48 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUCanvasContext , typescript_type = "GPUCanvasContext" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuCanvasContext` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCanvasContext`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuCanvasContext; + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuSwapChain", feature = "GpuSwapChainDescriptor",))] + # [ wasm_bindgen ( method , structural , js_class = "GPUCanvasContext" , js_name = configureSwapChain ) ] + #[doc = "The `configureSwapChain()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/configureSwapChain)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCanvasContext`, `GpuSwapChain`, `GpuSwapChainDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn configure_swap_chain( + this: &GpuCanvasContext, + descriptor: &GpuSwapChainDescriptor, + ) -> GpuSwapChain; + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuDevice")] + # [ wasm_bindgen ( method , structural , js_class = "GPUCanvasContext" , js_name = getSwapChainPreferredFormat ) ] + #[doc = "The `getSwapChainPreferredFormat()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCanvasContext/getSwapChainPreferredFormat)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCanvasContext`, `GpuDevice`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn get_swap_chain_preferred_format( + this: &GpuCanvasContext, + device: &GpuDevice, + ) -> ::js_sys::Promise; +} diff --git a/crates/web-sys/src/features/gen_GpuColorDict.rs b/crates/web-sys/src/features/gen_GpuColorDict.rs new file mode 100644 index 00000000..5988aeb9 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuColorDict.rs @@ -0,0 +1,102 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUColorDict ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuColorDict` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuColorDict; +} +#[cfg(web_sys_unstable_apis)] +impl GpuColorDict { + #[doc = "Construct a new `GpuColorDict`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(a: f64, b: f64, g: f64, r: f64) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.a(a); + ret.b(b); + ret.g(g); + ret.r(r); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `a` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn a(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("a"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `b` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn b(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("b"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `g` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn g(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("g"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `r` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuColorDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn r(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("r"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuColorStateDescriptor.rs b/crates/web-sys/src/features/gen_GpuColorStateDescriptor.rs new file mode 100644 index 00000000..33fa2681 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuColorStateDescriptor.rs @@ -0,0 +1,116 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUColorStateDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuColorStateDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuColorStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuColorStateDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuColorStateDescriptor { + #[cfg(feature = "GpuTextureFormat")] + #[doc = "Construct a new `GpuColorStateDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuColorStateDescriptor`, `GpuTextureFormat`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(format: GpuTextureFormat) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.format(format); + ret + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBlendDescriptor")] + #[doc = "Change the `alphaBlend` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBlendDescriptor`, `GpuColorStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn alpha_blend(&mut self, val: &GpuBlendDescriptor) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("alphaBlend"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBlendDescriptor")] + #[doc = "Change the `colorBlend` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBlendDescriptor`, `GpuColorStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn color_blend(&mut self, val: &GpuBlendDescriptor) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("colorBlend"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTextureFormat")] + #[doc = "Change the `format` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuColorStateDescriptor`, `GpuTextureFormat`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("format"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `writeMask` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuColorStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn write_mask(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("writeMask"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuColorWrite.rs b/crates/web-sys/src/features/gen_GpuColorWrite.rs new file mode 100644 index 00000000..435cdda6 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuColorWrite.rs @@ -0,0 +1,61 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUColorWrite , typescript_type = "GPUColorWrite" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuColorWrite` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUColorWrite)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuColorWrite; +} +#[cfg(web_sys_unstable_apis)] +impl GpuColorWrite { + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUColorWrite.RED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const RED: u32 = 1u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUColorWrite.GREEN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const GREEN: u32 = 2u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUColorWrite.BLUE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const BLUE: u32 = 4u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUColorWrite.ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const ALPHA: u32 = 8u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUColorWrite.ALL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuColorWrite`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const ALL: u32 = 15u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_GpuCommandBuffer.rs b/crates/web-sys/src/features/gen_GpuCommandBuffer.rs new file mode 100644 index 00000000..586b11a4 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuCommandBuffer.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUCommandBuffer , typescript_type = "GPUCommandBuffer" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuCommandBuffer` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuCommandBuffer; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUCommandBuffer" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandBuffer/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuCommandBuffer) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPUCommandBuffer" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandBuffer/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuCommandBuffer, value: Option<&str>); +} diff --git a/crates/web-sys/src/features/gen_GpuCommandBufferDescriptor.rs b/crates/web-sys/src/features/gen_GpuCommandBufferDescriptor.rs new file mode 100644 index 00000000..fc61dc57 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuCommandBufferDescriptor.rs @@ -0,0 +1,47 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUCommandBufferDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuCommandBufferDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandBufferDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuCommandBufferDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuCommandBufferDescriptor { + #[doc = "Construct a new `GpuCommandBufferDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandBufferDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandBufferDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuCommandEncoder.rs b/crates/web-sys/src/features/gen_GpuCommandEncoder.rs new file mode 100644 index 00000000..ba26383e --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuCommandEncoder.rs @@ -0,0 +1,407 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUCommandEncoder , typescript_type = "GPUCommandEncoder" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuCommandEncoder` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuCommandEncoder; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUCommandEncoder" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuCommandEncoder) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPUCommandEncoder" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuCommandEncoder, value: Option<&str>); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuComputePassEncoder")] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = beginComputePass ) ] + #[doc = "The `beginComputePass()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginComputePass)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn begin_compute_pass(this: &GpuCommandEncoder) -> GpuComputePassEncoder; + #[cfg(web_sys_unstable_apis)] + #[cfg(all( + feature = "GpuComputePassDescriptor", + feature = "GpuComputePassEncoder", + ))] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = beginComputePass ) ] + #[doc = "The `beginComputePass()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginComputePass)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuComputePassDescriptor`, `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn begin_compute_pass_with_descriptor( + this: &GpuCommandEncoder, + descriptor: &GpuComputePassDescriptor, + ) -> GpuComputePassEncoder; + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuRenderPassDescriptor", feature = "GpuRenderPassEncoder",))] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = beginRenderPass ) ] + #[doc = "The `beginRenderPass()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginRenderPass)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuRenderPassDescriptor`, `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn begin_render_pass( + this: &GpuCommandEncoder, + descriptor: &GpuRenderPassDescriptor, + ) -> GpuRenderPassEncoder; + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer ) ] + #[doc = "The `copyBufferToBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_buffer_to_buffer_with_u32_and_u32_and_u32( + this: &GpuCommandEncoder, + source: &GpuBuffer, + source_offset: u32, + destination: &GpuBuffer, + destination_offset: u32, + size: u32, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer ) ] + #[doc = "The `copyBufferToBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_buffer_to_buffer_with_f64_and_u32_and_u32( + this: &GpuCommandEncoder, + source: &GpuBuffer, + source_offset: f64, + destination: &GpuBuffer, + destination_offset: u32, + size: u32, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer ) ] + #[doc = "The `copyBufferToBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_buffer_to_buffer_with_u32_and_f64_and_u32( + this: &GpuCommandEncoder, + source: &GpuBuffer, + source_offset: u32, + destination: &GpuBuffer, + destination_offset: f64, + size: u32, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer ) ] + #[doc = "The `copyBufferToBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_buffer_to_buffer_with_f64_and_f64_and_u32( + this: &GpuCommandEncoder, + source: &GpuBuffer, + source_offset: f64, + destination: &GpuBuffer, + destination_offset: f64, + size: u32, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer ) ] + #[doc = "The `copyBufferToBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_buffer_to_buffer_with_u32_and_u32_and_f64( + this: &GpuCommandEncoder, + source: &GpuBuffer, + source_offset: u32, + destination: &GpuBuffer, + destination_offset: u32, + size: f64, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer ) ] + #[doc = "The `copyBufferToBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_buffer_to_buffer_with_f64_and_u32_and_f64( + this: &GpuCommandEncoder, + source: &GpuBuffer, + source_offset: f64, + destination: &GpuBuffer, + destination_offset: u32, + size: f64, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer ) ] + #[doc = "The `copyBufferToBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_buffer_to_buffer_with_u32_and_f64_and_f64( + this: &GpuCommandEncoder, + source: &GpuBuffer, + source_offset: u32, + destination: &GpuBuffer, + destination_offset: f64, + size: f64, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer ) ] + #[doc = "The `copyBufferToBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_buffer_to_buffer_with_f64_and_f64_and_f64( + this: &GpuCommandEncoder, + source: &GpuBuffer, + source_offset: f64, + destination: &GpuBuffer, + destination_offset: f64, + size: f64, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuBufferCopyView", feature = "GpuTextureCopyView",))] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture ) ] + #[doc = "The `copyBufferToTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferCopyView`, `GpuCommandEncoder`, `GpuTextureCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_buffer_to_texture_with_u32_sequence( + this: &GpuCommandEncoder, + source: &GpuBufferCopyView, + destination: &GpuTextureCopyView, + copy_size: &::wasm_bindgen::JsValue, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(all( + feature = "GpuBufferCopyView", + feature = "GpuExtent3dDict", + feature = "GpuTextureCopyView", + ))] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture ) ] + #[doc = "The `copyBufferToTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferCopyView`, `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTextureCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_buffer_to_texture_with_gpu_extent_3d_dict( + this: &GpuCommandEncoder, + source: &GpuBufferCopyView, + destination: &GpuTextureCopyView, + copy_size: &GpuExtent3dDict, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuBufferCopyView", feature = "GpuTextureCopyView",))] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer ) ] + #[doc = "The `copyTextureToBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferCopyView`, `GpuCommandEncoder`, `GpuTextureCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_texture_to_buffer_with_u32_sequence( + this: &GpuCommandEncoder, + source: &GpuTextureCopyView, + destination: &GpuBufferCopyView, + copy_size: &::wasm_bindgen::JsValue, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(all( + feature = "GpuBufferCopyView", + feature = "GpuExtent3dDict", + feature = "GpuTextureCopyView", + ))] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer ) ] + #[doc = "The `copyTextureToBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferCopyView`, `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTextureCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_texture_to_buffer_with_gpu_extent_3d_dict( + this: &GpuCommandEncoder, + source: &GpuTextureCopyView, + destination: &GpuBufferCopyView, + copy_size: &GpuExtent3dDict, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTextureCopyView")] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture ) ] + #[doc = "The `copyTextureToTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuTextureCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_texture_to_texture_with_u32_sequence( + this: &GpuCommandEncoder, + source: &GpuTextureCopyView, + destination: &GpuTextureCopyView, + copy_size: &::wasm_bindgen::JsValue, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuExtent3dDict", feature = "GpuTextureCopyView",))] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture ) ] + #[doc = "The `copyTextureToTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTextureCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_texture_to_texture_with_gpu_extent_3d_dict( + this: &GpuCommandEncoder, + source: &GpuTextureCopyView, + destination: &GpuTextureCopyView, + copy_size: &GpuExtent3dDict, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuCommandBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = finish ) ] + #[doc = "The `finish()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/finish)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`, `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn finish(this: &GpuCommandEncoder) -> GpuCommandBuffer; + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuCommandBuffer", feature = "GpuCommandBufferDescriptor",))] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = finish ) ] + #[doc = "The `finish()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/finish)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`, `GpuCommandBufferDescriptor`, `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn finish_with_descriptor( + this: &GpuCommandEncoder, + descriptor: &GpuCommandBufferDescriptor, + ) -> GpuCommandBuffer; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = insertDebugMarker ) ] + #[doc = "The `insertDebugMarker()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/insertDebugMarker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn insert_debug_marker(this: &GpuCommandEncoder, marker_label: &str); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = popDebugGroup ) ] + #[doc = "The `popDebugGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/popDebugGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn pop_debug_group(this: &GpuCommandEncoder); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = pushDebugGroup ) ] + #[doc = "The `pushDebugGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/pushDebugGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn push_debug_group(this: &GpuCommandEncoder, group_label: &str); +} diff --git a/crates/web-sys/src/features/gen_GpuCommandEncoderDescriptor.rs b/crates/web-sys/src/features/gen_GpuCommandEncoderDescriptor.rs new file mode 100644 index 00000000..d7f462c4 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuCommandEncoderDescriptor.rs @@ -0,0 +1,47 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUCommandEncoderDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuCommandEncoderDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoderDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuCommandEncoderDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuCommandEncoderDescriptor { + #[doc = "Construct a new `GpuCommandEncoderDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoderDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoderDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuCompareFunction.rs b/crates/web-sys/src/features/gen_GpuCompareFunction.rs new file mode 100644 index 00000000..cdbeaae6 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuCompareFunction.rs @@ -0,0 +1,21 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuCompareFunction` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuCompareFunction { + Never = "never", + Less = "less", + Equal = "equal", + LessEqual = "less-equal", + Greater = "greater", + NotEqual = "not-equal", + GreaterEqual = "greater-equal", + Always = "always", +} diff --git a/crates/web-sys/src/features/gen_GpuComputePassDescriptor.rs b/crates/web-sys/src/features/gen_GpuComputePassDescriptor.rs new file mode 100644 index 00000000..8cc26349 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuComputePassDescriptor.rs @@ -0,0 +1,47 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUComputePassDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuComputePassDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuComputePassDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuComputePassDescriptor { + #[doc = "Construct a new `GpuComputePassDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuComputePassEncoder.rs b/crates/web-sys/src/features/gen_GpuComputePassEncoder.rs new file mode 100644 index 00000000..193cec6f --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuComputePassEncoder.rs @@ -0,0 +1,228 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUComputePassEncoder , typescript_type = "GPUComputePassEncoder" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuComputePassEncoder` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuComputePassEncoder; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUComputePassEncoder" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuComputePassEncoder) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPUComputePassEncoder" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuComputePassEncoder, value: Option<&str>); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatch ) ] + #[doc = "The `dispatch()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn dispatch(this: &GpuComputePassEncoder, x: u32); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatch ) ] + #[doc = "The `dispatch()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn dispatch_with_y(this: &GpuComputePassEncoder, x: u32, y: u32); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatch ) ] + #[doc = "The `dispatch()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn dispatch_with_y_and_z(this: &GpuComputePassEncoder, x: u32, y: u32, z: u32); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchIndirect ) ] + #[doc = "The `dispatchIndirect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchIndirect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn dispatch_indirect_with_u32( + this: &GpuComputePassEncoder, + indirect_buffer: &GpuBuffer, + indirect_offset: u32, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = dispatchIndirect ) ] + #[doc = "The `dispatchIndirect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/dispatchIndirect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn dispatch_indirect_with_f64( + this: &GpuComputePassEncoder, + indirect_buffer: &GpuBuffer, + indirect_offset: f64, + ); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = endPass ) ] + #[doc = "The `endPass()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/endPass)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn end_pass(this: &GpuComputePassEncoder); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuComputePipeline")] + # [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = setPipeline ) ] + #[doc = "The `setPipeline()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setPipeline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`, `GpuComputePipeline`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_pipeline(this: &GpuComputePassEncoder, pipeline: &GpuComputePipeline); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = insertDebugMarker ) ] + #[doc = "The `insertDebugMarker()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/insertDebugMarker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn insert_debug_marker(this: &GpuComputePassEncoder, marker_label: &str); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = popDebugGroup ) ] + #[doc = "The `popDebugGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/popDebugGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn pop_debug_group(this: &GpuComputePassEncoder); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = pushDebugGroup ) ] + #[doc = "The `pushDebugGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/pushDebugGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn push_debug_group(this: &GpuComputePassEncoder, group_label: &str); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBindGroup")] + # [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup ) ] + #[doc = "The `setBindGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_bind_group(this: &GpuComputePassEncoder, index: u32, bind_group: &GpuBindGroup); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBindGroup")] + # [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup ) ] + #[doc = "The `setBindGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_bind_group_with_u32_sequence( + this: &GpuComputePassEncoder, + index: u32, + bind_group: &GpuBindGroup, + dynamic_offsets: &::wasm_bindgen::JsValue, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBindGroup")] + # [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup ) ] + #[doc = "The `setBindGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length( + this: &GpuComputePassEncoder, + index: u32, + bind_group: &GpuBindGroup, + dynamic_offsets_data: &mut [u32], + dynamic_offsets_data_start: u32, + dynamic_offsets_data_length: u32, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBindGroup")] + # [ wasm_bindgen ( method , structural , js_class = "GPUComputePassEncoder" , js_name = setBindGroup ) ] + #[doc = "The `setBindGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePassEncoder/setBindGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuComputePassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length( + this: &GpuComputePassEncoder, + index: u32, + bind_group: &GpuBindGroup, + dynamic_offsets_data: &mut [u32], + dynamic_offsets_data_start: f64, + dynamic_offsets_data_length: u32, + ); +} diff --git a/crates/web-sys/src/features/gen_GpuComputePipeline.rs b/crates/web-sys/src/features/gen_GpuComputePipeline.rs new file mode 100644 index 00000000..ddb862d4 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuComputePipeline.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUComputePipeline , typescript_type = "GPUComputePipeline" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuComputePipeline` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePipeline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePipeline`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuComputePipeline; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUComputePipeline" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePipeline/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePipeline`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuComputePipeline) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPUComputePipeline" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUComputePipeline/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePipeline`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuComputePipeline, value: Option<&str>); +} diff --git a/crates/web-sys/src/features/gen_GpuComputePipelineDescriptor.rs b/crates/web-sys/src/features/gen_GpuComputePipelineDescriptor.rs new file mode 100644 index 00000000..291c4e24 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuComputePipelineDescriptor.rs @@ -0,0 +1,94 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUComputePipelineDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuComputePipelineDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuComputePipelineDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuComputePipelineDescriptor { + #[cfg(all( + feature = "GpuPipelineLayout", + feature = "GpuProgrammableStageDescriptor", + ))] + #[doc = "Construct a new `GpuComputePipelineDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`, `GpuPipelineLayout`, `GpuProgrammableStageDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(layout: &GpuPipelineLayout, compute_stage: &GpuProgrammableStageDescriptor) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.layout(layout); + ret.compute_stage(compute_stage); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuPipelineLayout")] + #[doc = "Change the `layout` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`, `GpuPipelineLayout`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn layout(&mut self, val: &GpuPipelineLayout) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("layout"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuProgrammableStageDescriptor")] + #[doc = "Change the `computeStage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePipelineDescriptor`, `GpuProgrammableStageDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn compute_stage(&mut self, val: &GpuProgrammableStageDescriptor) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("computeStage"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuCullMode.rs b/crates/web-sys/src/features/gen_GpuCullMode.rs new file mode 100644 index 00000000..4c53e8e8 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuCullMode.rs @@ -0,0 +1,16 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuCullMode` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuCullMode`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuCullMode { + None = "none", + Front = "front", + Back = "back", +} diff --git a/crates/web-sys/src/features/gen_GpuDepthStencilStateDescriptor.rs b/crates/web-sys/src/features/gen_GpuDepthStencilStateDescriptor.rs new file mode 100644 index 00000000..b315461a --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuDepthStencilStateDescriptor.rs @@ -0,0 +1,180 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUDepthStencilStateDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuDepthStencilStateDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuDepthStencilStateDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuDepthStencilStateDescriptor { + #[cfg(feature = "GpuTextureFormat")] + #[doc = "Construct a new `GpuDepthStencilStateDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilStateDescriptor`, `GpuTextureFormat`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(format: GpuTextureFormat) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.format(format); + ret + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuCompareFunction")] + #[doc = "Change the `depthCompare` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`, `GpuDepthStencilStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn depth_compare(&mut self, val: GpuCompareFunction) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("depthCompare"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `depthWriteEnabled` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn depth_write_enabled(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("depthWriteEnabled"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTextureFormat")] + #[doc = "Change the `format` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilStateDescriptor`, `GpuTextureFormat`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("format"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuStencilStateFaceDescriptor")] + #[doc = "Change the `stencilBack` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilStateDescriptor`, `GpuStencilStateFaceDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn stencil_back(&mut self, val: &GpuStencilStateFaceDescriptor) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("stencilBack"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuStencilStateFaceDescriptor")] + #[doc = "Change the `stencilFront` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilStateDescriptor`, `GpuStencilStateFaceDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn stencil_front(&mut self, val: &GpuStencilStateFaceDescriptor) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("stencilFront"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `stencilReadMask` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn stencil_read_mask(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("stencilReadMask"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `stencilWriteMask` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn stencil_write_mask(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("stencilWriteMask"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuDevice.rs b/crates/web-sys/src/features/gen_GpuDevice.rs new file mode 100644 index 00000000..b883839d --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuDevice.rs @@ -0,0 +1,336 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = GPUDevice , typescript_type = "GPUDevice" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuDevice` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuDevice; + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuAdapter")] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUDevice" , js_name = adapter ) ] + #[doc = "Getter for the `adapter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/adapter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuAdapter`, `GpuDevice`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn adapter(this: &GpuDevice) -> GpuAdapter; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUDevice" , js_name = limits ) ] + #[doc = "Getter for the `limits` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/limits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn limits(this: &GpuDevice) -> ::js_sys::Object; + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuQueue")] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUDevice" , js_name = defaultQueue ) ] + #[doc = "Getter for the `defaultQueue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/defaultQueue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuQueue`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn default_queue(this: &GpuDevice) -> GpuQueue; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUDevice" , js_name = lost ) ] + #[doc = "Getter for the `lost` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/lost)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn lost(this: &GpuDevice) -> ::js_sys::Promise; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUDevice" , js_name = onuncapturederror ) ] + #[doc = "Getter for the `onuncapturederror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/onuncapturederror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn onuncapturederror(this: &GpuDevice) -> Option<::js_sys::Function>; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPUDevice" , js_name = onuncapturederror ) ] + #[doc = "Setter for the `onuncapturederror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/onuncapturederror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_onuncapturederror(this: &GpuDevice, value: Option<&::js_sys::Function>); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUDevice" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuDevice) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPUDevice" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuDevice, value: Option<&str>); + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuBindGroup", feature = "GpuBindGroupDescriptor",))] + # [ wasm_bindgen ( method , structural , js_class = "GPUDevice" , js_name = createBindGroup ) ] + #[doc = "The `createBindGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBindGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuBindGroupDescriptor`, `GpuDevice`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_bind_group(this: &GpuDevice, descriptor: &GpuBindGroupDescriptor) + -> GpuBindGroup; + #[cfg(web_sys_unstable_apis)] + #[cfg(all( + feature = "GpuBindGroupLayout", + feature = "GpuBindGroupLayoutDescriptor", + ))] + # [ wasm_bindgen ( method , structural , js_class = "GPUDevice" , js_name = createBindGroupLayout ) ] + #[doc = "The `createBindGroupLayout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBindGroupLayout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroupLayout`, `GpuBindGroupLayoutDescriptor`, `GpuDevice`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_bind_group_layout( + this: &GpuDevice, + descriptor: &GpuBindGroupLayoutDescriptor, + ) -> GpuBindGroupLayout; + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuBuffer", feature = "GpuBufferDescriptor",))] + # [ wasm_bindgen ( method , structural , js_class = "GPUDevice" , js_name = createBuffer ) ] + #[doc = "The `createBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuBufferDescriptor`, `GpuDevice`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_buffer(this: &GpuDevice, descriptor: &GpuBufferDescriptor) -> GpuBuffer; + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBufferDescriptor")] + # [ wasm_bindgen ( method , structural , js_class = "GPUDevice" , js_name = createBufferMapped ) ] + #[doc = "The `createBufferMapped()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createBufferMapped)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBufferDescriptor`, `GpuDevice`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_buffer_mapped( + this: &GpuDevice, + descriptor: &GpuBufferDescriptor, + ) -> ::js_sys::Array; + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuCommandEncoder")] + # [ wasm_bindgen ( method , structural , js_class = "GPUDevice" , js_name = createCommandEncoder ) ] + #[doc = "The `createCommandEncoder()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createCommandEncoder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuDevice`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_command_encoder(this: &GpuDevice) -> GpuCommandEncoder; + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuCommandEncoder", feature = "GpuCommandEncoderDescriptor",))] + # [ wasm_bindgen ( method , structural , js_class = "GPUDevice" , js_name = createCommandEncoder ) ] + #[doc = "The `createCommandEncoder()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createCommandEncoder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuCommandEncoderDescriptor`, `GpuDevice`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_command_encoder_with_descriptor( + this: &GpuDevice, + descriptor: &GpuCommandEncoderDescriptor, + ) -> GpuCommandEncoder; + #[cfg(web_sys_unstable_apis)] + #[cfg(all( + feature = "GpuComputePipeline", + feature = "GpuComputePipelineDescriptor", + ))] + # [ wasm_bindgen ( method , structural , js_class = "GPUDevice" , js_name = createComputePipeline ) ] + #[doc = "The `createComputePipeline()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createComputePipeline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuComputePipeline`, `GpuComputePipelineDescriptor`, `GpuDevice`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_compute_pipeline( + this: &GpuDevice, + descriptor: &GpuComputePipelineDescriptor, + ) -> GpuComputePipeline; + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuPipelineLayout", feature = "GpuPipelineLayoutDescriptor",))] + # [ wasm_bindgen ( method , structural , js_class = "GPUDevice" , js_name = createPipelineLayout ) ] + #[doc = "The `createPipelineLayout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createPipelineLayout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuPipelineLayout`, `GpuPipelineLayoutDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_pipeline_layout( + this: &GpuDevice, + descriptor: &GpuPipelineLayoutDescriptor, + ) -> GpuPipelineLayout; + #[cfg(web_sys_unstable_apis)] + #[cfg(all( + feature = "GpuRenderBundleEncoder", + feature = "GpuRenderBundleEncoderDescriptor", + ))] + # [ wasm_bindgen ( method , structural , js_class = "GPUDevice" , js_name = createRenderBundleEncoder ) ] + #[doc = "The `createRenderBundleEncoder()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderBundleEncoder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuRenderBundleEncoder`, `GpuRenderBundleEncoderDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_render_bundle_encoder( + this: &GpuDevice, + descriptor: &GpuRenderBundleEncoderDescriptor, + ) -> GpuRenderBundleEncoder; + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuRenderPipeline", feature = "GpuRenderPipelineDescriptor",))] + # [ wasm_bindgen ( method , structural , js_class = "GPUDevice" , js_name = createRenderPipeline ) ] + #[doc = "The `createRenderPipeline()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createRenderPipeline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuRenderPipeline`, `GpuRenderPipelineDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_render_pipeline( + this: &GpuDevice, + descriptor: &GpuRenderPipelineDescriptor, + ) -> GpuRenderPipeline; + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuSampler")] + # [ wasm_bindgen ( method , structural , js_class = "GPUDevice" , js_name = createSampler ) ] + #[doc = "The `createSampler()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createSampler)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuSampler`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_sampler(this: &GpuDevice) -> GpuSampler; + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuSampler", feature = "GpuSamplerDescriptor",))] + # [ wasm_bindgen ( method , structural , js_class = "GPUDevice" , js_name = createSampler ) ] + #[doc = "The `createSampler()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createSampler)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuSampler`, `GpuSamplerDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_sampler_with_descriptor( + this: &GpuDevice, + descriptor: &GpuSamplerDescriptor, + ) -> GpuSampler; + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuShaderModule", feature = "GpuShaderModuleDescriptor",))] + # [ wasm_bindgen ( method , structural , js_class = "GPUDevice" , js_name = createShaderModule ) ] + #[doc = "The `createShaderModule()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createShaderModule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuShaderModule`, `GpuShaderModuleDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_shader_module( + this: &GpuDevice, + descriptor: &GpuShaderModuleDescriptor, + ) -> GpuShaderModule; + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuTexture", feature = "GpuTextureDescriptor",))] + # [ wasm_bindgen ( method , structural , js_class = "GPUDevice" , js_name = createTexture ) ] + #[doc = "The `createTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/createTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuTexture`, `GpuTextureDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_texture(this: &GpuDevice, descriptor: &GpuTextureDescriptor) -> GpuTexture; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUDevice" , js_name = popErrorScope ) ] + #[doc = "The `popErrorScope()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/popErrorScope)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn pop_error_scope(this: &GpuDevice) -> ::js_sys::Promise; + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuErrorFilter")] + # [ wasm_bindgen ( method , structural , js_class = "GPUDevice" , js_name = pushErrorScope ) ] + #[doc = "The `pushErrorScope()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDevice/pushErrorScope)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuErrorFilter`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn push_error_scope(this: &GpuDevice, filter: GpuErrorFilter); +} diff --git a/crates/web-sys/src/features/gen_GpuDeviceDescriptor.rs b/crates/web-sys/src/features/gen_GpuDeviceDescriptor.rs new file mode 100644 index 00000000..c8fe1738 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuDeviceDescriptor.rs @@ -0,0 +1,87 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUDeviceDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuDeviceDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuDeviceDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuDeviceDescriptor { + #[doc = "Construct a new `GpuDeviceDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `extensions` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn extensions(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("extensions"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuLimits")] + #[doc = "Change the `limits` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDeviceDescriptor`, `GpuLimits`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn limits(&mut self, val: &GpuLimits) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("limits"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuDeviceLostInfo.rs b/crates/web-sys/src/features/gen_GpuDeviceLostInfo.rs new file mode 100644 index 00000000..90fedd8d --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuDeviceLostInfo.rs @@ -0,0 +1,29 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUDeviceLostInfo , typescript_type = "GPUDeviceLostInfo" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuDeviceLostInfo` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDeviceLostInfo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDeviceLostInfo`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuDeviceLostInfo; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUDeviceLostInfo" , js_name = message ) ] + #[doc = "Getter for the `message` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUDeviceLostInfo/message)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDeviceLostInfo`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn message(this: &GpuDeviceLostInfo) -> String; +} diff --git a/crates/web-sys/src/features/gen_GpuErrorFilter.rs b/crates/web-sys/src/features/gen_GpuErrorFilter.rs new file mode 100644 index 00000000..4617f6fd --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuErrorFilter.rs @@ -0,0 +1,16 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuErrorFilter` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuErrorFilter`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuErrorFilter { + None = "none", + OutOfMemory = "out-of-memory", + Validation = "validation", +} diff --git a/crates/web-sys/src/features/gen_GpuExtensionName.rs b/crates/web-sys/src/features/gen_GpuExtensionName.rs new file mode 100644 index 00000000..9409dfc5 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuExtensionName.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuExtensionName` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuExtensionName`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuExtensionName { + TextureCompressionBc = "texture-compression-bc", +} diff --git a/crates/web-sys/src/features/gen_GpuExtent3dDict.rs b/crates/web-sys/src/features/gen_GpuExtent3dDict.rs new file mode 100644 index 00000000..a673a6b1 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuExtent3dDict.rs @@ -0,0 +1,85 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUExtent3DDict ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuExtent3dDict` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuExtent3dDict; +} +#[cfg(web_sys_unstable_apis)] +impl GpuExtent3dDict { + #[doc = "Construct a new `GpuExtent3dDict`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(depth: u32, height: u32, width: u32) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.depth(depth); + ret.height(height); + ret.width(width); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `depth` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn depth(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("depth"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `height` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn height(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `width` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn width(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuFence.rs b/crates/web-sys/src/features/gen_GpuFence.rs new file mode 100644 index 00000000..95c60dd3 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuFence.rs @@ -0,0 +1,73 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUFence , typescript_type = "GPUFence" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuFence` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUFence)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFence`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuFence; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUFence" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUFence/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFence`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuFence) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPUFence" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUFence/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFence`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuFence, value: Option<&str>); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUFence" , js_name = getCompletedValue ) ] + #[doc = "The `getCompletedValue()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUFence/getCompletedValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFence`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn get_completed_value(this: &GpuFence) -> f64; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUFence" , js_name = onCompletion ) ] + #[doc = "The `onCompletion()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUFence/onCompletion)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFence`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn on_completion_with_u32(this: &GpuFence, completion_value: u32) -> ::js_sys::Promise; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUFence" , js_name = onCompletion ) ] + #[doc = "The `onCompletion()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUFence/onCompletion)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFence`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn on_completion_with_f64(this: &GpuFence, completion_value: f64) -> ::js_sys::Promise; +} diff --git a/crates/web-sys/src/features/gen_GpuFenceDescriptor.rs b/crates/web-sys/src/features/gen_GpuFenceDescriptor.rs new file mode 100644 index 00000000..39540274 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuFenceDescriptor.rs @@ -0,0 +1,68 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUFenceDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuFenceDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFenceDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuFenceDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuFenceDescriptor { + #[doc = "Construct a new `GpuFenceDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFenceDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFenceDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `initialValue` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFenceDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn initial_value(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("initialValue"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuFilterMode.rs b/crates/web-sys/src/features/gen_GpuFilterMode.rs new file mode 100644 index 00000000..b1a7f1d1 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuFilterMode.rs @@ -0,0 +1,15 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuFilterMode` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuFilterMode`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuFilterMode { + Nearest = "nearest", + Linear = "linear", +} diff --git a/crates/web-sys/src/features/gen_GpuFrontFace.rs b/crates/web-sys/src/features/gen_GpuFrontFace.rs new file mode 100644 index 00000000..04eac273 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuFrontFace.rs @@ -0,0 +1,15 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuFrontFace` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuFrontFace`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuFrontFace { + Ccw = "ccw", + Cw = "cw", +} diff --git a/crates/web-sys/src/features/gen_GpuImageBitmapCopyView.rs b/crates/web-sys/src/features/gen_GpuImageBitmapCopyView.rs new file mode 100644 index 00000000..b9da64e1 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuImageBitmapCopyView.rs @@ -0,0 +1,72 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUImageBitmapCopyView ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuImageBitmapCopyView` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuImageBitmapCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuImageBitmapCopyView; +} +#[cfg(web_sys_unstable_apis)] +impl GpuImageBitmapCopyView { + #[cfg(feature = "ImageBitmap")] + #[doc = "Construct a new `GpuImageBitmapCopyView`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuImageBitmapCopyView`, `ImageBitmap`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(image_bitmap: &ImageBitmap) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.image_bitmap(image_bitmap); + ret + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "ImageBitmap")] + #[doc = "Change the `imageBitmap` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuImageBitmapCopyView`, `ImageBitmap`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn image_bitmap(&mut self, val: &ImageBitmap) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("imageBitmap"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `origin` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuImageBitmapCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn origin(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuIndexFormat.rs b/crates/web-sys/src/features/gen_GpuIndexFormat.rs new file mode 100644 index 00000000..ffc65c10 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuIndexFormat.rs @@ -0,0 +1,15 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuIndexFormat` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuIndexFormat`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuIndexFormat { + Uint16 = "uint16", + Uint32 = "uint32", +} diff --git a/crates/web-sys/src/features/gen_GpuInputStepMode.rs b/crates/web-sys/src/features/gen_GpuInputStepMode.rs new file mode 100644 index 00000000..e342005e --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuInputStepMode.rs @@ -0,0 +1,15 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuInputStepMode` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuInputStepMode`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuInputStepMode { + Vertex = "vertex", + Instance = "instance", +} diff --git a/crates/web-sys/src/features/gen_GpuLimits.rs b/crates/web-sys/src/features/gen_GpuLimits.rs new file mode 100644 index 00000000..c6072e59 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuLimits.rs @@ -0,0 +1,198 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPULimits ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuLimits` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuLimits`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuLimits; +} +#[cfg(web_sys_unstable_apis)] +impl GpuLimits { + #[doc = "Construct a new `GpuLimits`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuLimits`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `maxBindGroups` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuLimits`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn max_bind_groups(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maxBindGroups"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `maxDynamicStorageBuffersPerPipelineLayout` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuLimits`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn max_dynamic_storage_buffers_per_pipeline_layout(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maxDynamicStorageBuffersPerPipelineLayout"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `maxDynamicUniformBuffersPerPipelineLayout` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuLimits`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn max_dynamic_uniform_buffers_per_pipeline_layout(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maxDynamicUniformBuffersPerPipelineLayout"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `maxSampledTexturesPerShaderStage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuLimits`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn max_sampled_textures_per_shader_stage(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maxSampledTexturesPerShaderStage"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `maxSamplersPerShaderStage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuLimits`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn max_samplers_per_shader_stage(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maxSamplersPerShaderStage"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `maxStorageBuffersPerShaderStage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuLimits`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn max_storage_buffers_per_shader_stage(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maxStorageBuffersPerShaderStage"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `maxStorageTexturesPerShaderStage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuLimits`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn max_storage_textures_per_shader_stage(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maxStorageTexturesPerShaderStage"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `maxUniformBuffersPerShaderStage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuLimits`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn max_uniform_buffers_per_shader_stage(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maxUniformBuffersPerShaderStage"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuLoadOp.rs b/crates/web-sys/src/features/gen_GpuLoadOp.rs new file mode 100644 index 00000000..2973e168 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuLoadOp.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuLoadOp` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuLoadOp`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuLoadOp { + Load = "load", +} diff --git a/crates/web-sys/src/features/gen_GpuObjectDescriptorBase.rs b/crates/web-sys/src/features/gen_GpuObjectDescriptorBase.rs new file mode 100644 index 00000000..377eb970 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuObjectDescriptorBase.rs @@ -0,0 +1,47 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUObjectDescriptorBase ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuObjectDescriptorBase` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuObjectDescriptorBase`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuObjectDescriptorBase; +} +#[cfg(web_sys_unstable_apis)] +impl GpuObjectDescriptorBase { + #[doc = "Construct a new `GpuObjectDescriptorBase`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuObjectDescriptorBase`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuObjectDescriptorBase`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuOrigin2dDict.rs b/crates/web-sys/src/features/gen_GpuOrigin2dDict.rs new file mode 100644 index 00000000..2b444ce5 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuOrigin2dDict.rs @@ -0,0 +1,64 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUOrigin2DDict ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuOrigin2dDict` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuOrigin2dDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuOrigin2dDict; +} +#[cfg(web_sys_unstable_apis)] +impl GpuOrigin2dDict { + #[doc = "Construct a new `GpuOrigin2dDict`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuOrigin2dDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `x` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuOrigin2dDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn x(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("x"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `y` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuOrigin2dDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn y(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("y"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuOrigin3dDict.rs b/crates/web-sys/src/features/gen_GpuOrigin3dDict.rs new file mode 100644 index 00000000..bde9fad9 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuOrigin3dDict.rs @@ -0,0 +1,81 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUOrigin3DDict ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuOrigin3dDict` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuOrigin3dDict; +} +#[cfg(web_sys_unstable_apis)] +impl GpuOrigin3dDict { + #[doc = "Construct a new `GpuOrigin3dDict`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `x` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn x(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("x"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `y` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn y(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("y"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `z` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuOrigin3dDict`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn z(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("z"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuOutOfMemoryError.rs b/crates/web-sys/src/features/gen_GpuOutOfMemoryError.rs new file mode 100644 index 00000000..4e422fac --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuOutOfMemoryError.rs @@ -0,0 +1,18 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUOutOfMemoryError , typescript_type = "GPUOutOfMemoryError" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuOutOfMemoryError` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUOutOfMemoryError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuOutOfMemoryError`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuOutOfMemoryError; +} diff --git a/crates/web-sys/src/features/gen_GpuPipelineDescriptorBase.rs b/crates/web-sys/src/features/gen_GpuPipelineDescriptorBase.rs new file mode 100644 index 00000000..cf48bda0 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuPipelineDescriptorBase.rs @@ -0,0 +1,68 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUPipelineDescriptorBase ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuPipelineDescriptorBase` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuPipelineDescriptorBase`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuPipelineDescriptorBase; +} +#[cfg(web_sys_unstable_apis)] +impl GpuPipelineDescriptorBase { + #[cfg(feature = "GpuPipelineLayout")] + #[doc = "Construct a new `GpuPipelineDescriptorBase`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuPipelineDescriptorBase`, `GpuPipelineLayout`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(layout: &GpuPipelineLayout) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.layout(layout); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuPipelineDescriptorBase`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuPipelineLayout")] + #[doc = "Change the `layout` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuPipelineDescriptorBase`, `GpuPipelineLayout`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn layout(&mut self, val: &GpuPipelineLayout) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("layout"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuPipelineLayout.rs b/crates/web-sys/src/features/gen_GpuPipelineLayout.rs new file mode 100644 index 00000000..d00fc8ef --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuPipelineLayout.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUPipelineLayout , typescript_type = "GPUPipelineLayout" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuPipelineLayout` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineLayout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayout`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuPipelineLayout; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUPipelineLayout" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineLayout/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayout`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuPipelineLayout) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPUPipelineLayout" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUPipelineLayout/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayout`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuPipelineLayout, value: Option<&str>); +} diff --git a/crates/web-sys/src/features/gen_GpuPipelineLayoutDescriptor.rs b/crates/web-sys/src/features/gen_GpuPipelineLayoutDescriptor.rs new file mode 100644 index 00000000..42e96ae1 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuPipelineLayoutDescriptor.rs @@ -0,0 +1,69 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUPipelineLayoutDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuPipelineLayoutDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayoutDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuPipelineLayoutDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuPipelineLayoutDescriptor { + #[doc = "Construct a new `GpuPipelineLayoutDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayoutDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(bind_group_layouts: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.bind_group_layouts(bind_group_layouts); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayoutDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `bindGroupLayouts` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayoutDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn bind_group_layouts(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bindGroupLayouts"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuPowerPreference.rs b/crates/web-sys/src/features/gen_GpuPowerPreference.rs new file mode 100644 index 00000000..1bf7015f --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuPowerPreference.rs @@ -0,0 +1,15 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuPowerPreference` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuPowerPreference`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuPowerPreference { + LowPower = "low-power", + HighPerformance = "high-performance", +} diff --git a/crates/web-sys/src/features/gen_GpuPrimitiveTopology.rs b/crates/web-sys/src/features/gen_GpuPrimitiveTopology.rs new file mode 100644 index 00000000..341611a1 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuPrimitiveTopology.rs @@ -0,0 +1,18 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuPrimitiveTopology` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveTopology`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuPrimitiveTopology { + PointList = "point-list", + LineList = "line-list", + LineStrip = "line-strip", + TriangleList = "triangle-list", + TriangleStrip = "triangle-strip", +} diff --git a/crates/web-sys/src/features/gen_GpuProgrammableStageDescriptor.rs b/crates/web-sys/src/features/gen_GpuProgrammableStageDescriptor.rs new file mode 100644 index 00000000..c4b70762 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuProgrammableStageDescriptor.rs @@ -0,0 +1,73 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUProgrammableStageDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuProgrammableStageDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStageDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuProgrammableStageDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuProgrammableStageDescriptor { + #[cfg(feature = "GpuShaderModule")] + #[doc = "Construct a new `GpuProgrammableStageDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStageDescriptor`, `GpuShaderModule`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(entry_point: &str, module: &GpuShaderModule) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.entry_point(entry_point); + ret.module(module); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `entryPoint` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStageDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn entry_point(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("entryPoint"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuShaderModule")] + #[doc = "Change the `module` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStageDescriptor`, `GpuShaderModule`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn module(&mut self, val: &GpuShaderModule) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("module"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuQueue.rs b/crates/web-sys/src/features/gen_GpuQueue.rs new file mode 100644 index 00000000..b374bf12 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuQueue.rs @@ -0,0 +1,140 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUQueue , typescript_type = "GPUQueue" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuQueue` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuQueue`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuQueue; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUQueue" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuQueue`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuQueue) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPUQueue" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuQueue`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuQueue, value: Option<&str>); + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuImageBitmapCopyView", feature = "GpuTextureCopyView",))] + # [ wasm_bindgen ( method , structural , js_class = "GPUQueue" , js_name = copyImageBitmapToTexture ) ] + #[doc = "The `copyImageBitmapToTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/copyImageBitmapToTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuImageBitmapCopyView`, `GpuQueue`, `GpuTextureCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_image_bitmap_to_texture_with_u32_sequence( + this: &GpuQueue, + source: &GpuImageBitmapCopyView, + destination: &GpuTextureCopyView, + copy_size: &::wasm_bindgen::JsValue, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(all( + feature = "GpuExtent3dDict", + feature = "GpuImageBitmapCopyView", + feature = "GpuTextureCopyView", + ))] + # [ wasm_bindgen ( method , structural , js_class = "GPUQueue" , js_name = copyImageBitmapToTexture ) ] + #[doc = "The `copyImageBitmapToTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/copyImageBitmapToTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuImageBitmapCopyView`, `GpuQueue`, `GpuTextureCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn copy_image_bitmap_to_texture_with_gpu_extent_3d_dict( + this: &GpuQueue, + source: &GpuImageBitmapCopyView, + destination: &GpuTextureCopyView, + copy_size: &GpuExtent3dDict, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuFence")] + # [ wasm_bindgen ( method , structural , js_class = "GPUQueue" , js_name = createFence ) ] + #[doc = "The `createFence()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/createFence)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFence`, `GpuQueue`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_fence(this: &GpuQueue) -> GpuFence; + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuFence", feature = "GpuFenceDescriptor",))] + # [ wasm_bindgen ( method , structural , js_class = "GPUQueue" , js_name = createFence ) ] + #[doc = "The `createFence()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/createFence)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFence`, `GpuFenceDescriptor`, `GpuQueue`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_fence_with_descriptor( + this: &GpuQueue, + descriptor: &GpuFenceDescriptor, + ) -> GpuFence; + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuFence")] + # [ wasm_bindgen ( method , structural , js_class = "GPUQueue" , js_name = signal ) ] + #[doc = "The `signal()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/signal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFence`, `GpuQueue`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn signal_with_u32(this: &GpuQueue, fence: &GpuFence, signal_value: u32); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuFence")] + # [ wasm_bindgen ( method , structural , js_class = "GPUQueue" , js_name = signal ) ] + #[doc = "The `signal()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/signal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFence`, `GpuQueue`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn signal_with_f64(this: &GpuQueue, fence: &GpuFence, signal_value: f64); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUQueue" , js_name = submit ) ] + #[doc = "The `submit()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/submit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuQueue`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn submit(this: &GpuQueue, command_buffers: &::wasm_bindgen::JsValue); +} diff --git a/crates/web-sys/src/features/gen_GpuRasterizationStateDescriptor.rs b/crates/web-sys/src/features/gen_GpuRasterizationStateDescriptor.rs new file mode 100644 index 00000000..d0138a47 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuRasterizationStateDescriptor.rs @@ -0,0 +1,137 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPURasterizationStateDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuRasterizationStateDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRasterizationStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuRasterizationStateDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuRasterizationStateDescriptor { + #[doc = "Construct a new `GpuRasterizationStateDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRasterizationStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuCullMode")] + #[doc = "Change the `cullMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCullMode`, `GpuRasterizationStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn cull_mode(&mut self, val: GpuCullMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cullMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `depthBias` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRasterizationStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn depth_bias(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("depthBias"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `depthBiasClamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRasterizationStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn depth_bias_clamp(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("depthBiasClamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `depthBiasSlopeScale` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRasterizationStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn depth_bias_slope_scale(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("depthBiasSlopeScale"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuFrontFace")] + #[doc = "Change the `frontFace` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFrontFace`, `GpuRasterizationStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn front_face(&mut self, val: GpuFrontFace) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("frontFace"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuRenderBundle.rs b/crates/web-sys/src/features/gen_GpuRenderBundle.rs new file mode 100644 index 00000000..85f42d2d --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuRenderBundle.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPURenderBundle , typescript_type = "GPURenderBundle" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuRenderBundle` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuRenderBundle; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPURenderBundle" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundle/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuRenderBundle) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPURenderBundle" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundle/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuRenderBundle, value: Option<&str>); +} diff --git a/crates/web-sys/src/features/gen_GpuRenderBundleDescriptor.rs b/crates/web-sys/src/features/gen_GpuRenderBundleDescriptor.rs new file mode 100644 index 00000000..8d806e2f --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuRenderBundleDescriptor.rs @@ -0,0 +1,47 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPURenderBundleDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuRenderBundleDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuRenderBundleDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuRenderBundleDescriptor { + #[doc = "Construct a new `GpuRenderBundleDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuRenderBundleEncoder.rs b/crates/web-sys/src/features/gen_GpuRenderBundleEncoder.rs new file mode 100644 index 00000000..a4f673b0 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuRenderBundleEncoder.rs @@ -0,0 +1,368 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPURenderBundleEncoder , typescript_type = "GPURenderBundleEncoder" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuRenderBundleEncoder` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuRenderBundleEncoder; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPURenderBundleEncoder" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuRenderBundleEncoder) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPURenderBundleEncoder" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuRenderBundleEncoder, value: Option<&str>); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuRenderBundle")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = finish ) ] + #[doc = "The `finish()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/finish)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`, `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn finish(this: &GpuRenderBundleEncoder) -> GpuRenderBundle; + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuRenderBundle", feature = "GpuRenderBundleDescriptor",))] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = finish ) ] + #[doc = "The `finish()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/finish)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundle`, `GpuRenderBundleDescriptor`, `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn finish_with_descriptor( + this: &GpuRenderBundleEncoder, + descriptor: &GpuRenderBundleDescriptor, + ) -> GpuRenderBundle; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = insertDebugMarker ) ] + #[doc = "The `insertDebugMarker()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/insertDebugMarker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn insert_debug_marker(this: &GpuRenderBundleEncoder, marker_label: &str); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = popDebugGroup ) ] + #[doc = "The `popDebugGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/popDebugGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn pop_debug_group(this: &GpuRenderBundleEncoder); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = pushDebugGroup ) ] + #[doc = "The `pushDebugGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/pushDebugGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn push_debug_group(this: &GpuRenderBundleEncoder, group_label: &str); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBindGroup")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup ) ] + #[doc = "The `setBindGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_bind_group(this: &GpuRenderBundleEncoder, index: u32, bind_group: &GpuBindGroup); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBindGroup")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup ) ] + #[doc = "The `setBindGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_bind_group_with_u32_sequence( + this: &GpuRenderBundleEncoder, + index: u32, + bind_group: &GpuBindGroup, + dynamic_offsets: &::wasm_bindgen::JsValue, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBindGroup")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup ) ] + #[doc = "The `setBindGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length( + this: &GpuRenderBundleEncoder, + index: u32, + bind_group: &GpuBindGroup, + dynamic_offsets_data: &mut [u32], + dynamic_offsets_data_start: u32, + dynamic_offsets_data_length: u32, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBindGroup")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = setBindGroup ) ] + #[doc = "The `setBindGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setBindGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length( + this: &GpuRenderBundleEncoder, + index: u32, + bind_group: &GpuBindGroup, + dynamic_offsets_data: &mut [u32], + dynamic_offsets_data_start: f64, + dynamic_offsets_data_length: u32, + ); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = draw ) ] + #[doc = "The `draw()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/draw)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn draw( + this: &GpuRenderBundleEncoder, + vertex_count: u32, + instance_count: u32, + first_vertex: u32, + first_instance: u32, + ); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexed ) ] + #[doc = "The `drawIndexed()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn draw_indexed( + this: &GpuRenderBundleEncoder, + index_count: u32, + instance_count: u32, + first_index: u32, + base_vertex: i32, + first_instance: u32, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexedIndirect ) ] + #[doc = "The `drawIndexedIndirect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn draw_indexed_indirect_with_u32( + this: &GpuRenderBundleEncoder, + indirect_buffer: &GpuBuffer, + indirect_offset: u32, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndexedIndirect ) ] + #[doc = "The `drawIndexedIndirect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndexedIndirect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn draw_indexed_indirect_with_f64( + this: &GpuRenderBundleEncoder, + indirect_buffer: &GpuBuffer, + indirect_offset: f64, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndirect ) ] + #[doc = "The `drawIndirect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndirect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn draw_indirect_with_u32( + this: &GpuRenderBundleEncoder, + indirect_buffer: &GpuBuffer, + indirect_offset: u32, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = drawIndirect ) ] + #[doc = "The `drawIndirect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/drawIndirect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn draw_indirect_with_f64( + this: &GpuRenderBundleEncoder, + indirect_buffer: &GpuBuffer, + indirect_offset: f64, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer ) ] + #[doc = "The `setIndexBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_index_buffer(this: &GpuRenderBundleEncoder, buffer: &GpuBuffer); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer ) ] + #[doc = "The `setIndexBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_index_buffer_with_u32( + this: &GpuRenderBundleEncoder, + buffer: &GpuBuffer, + offset: u32, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = setIndexBuffer ) ] + #[doc = "The `setIndexBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setIndexBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_index_buffer_with_f64( + this: &GpuRenderBundleEncoder, + buffer: &GpuBuffer, + offset: f64, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuRenderPipeline")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = setPipeline ) ] + #[doc = "The `setPipeline()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setPipeline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoder`, `GpuRenderPipeline`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_pipeline(this: &GpuRenderBundleEncoder, pipeline: &GpuRenderPipeline); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer ) ] + #[doc = "The `setVertexBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_vertex_buffer(this: &GpuRenderBundleEncoder, slot: u32, buffer: &GpuBuffer); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer ) ] + #[doc = "The `setVertexBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_vertex_buffer_with_u32( + this: &GpuRenderBundleEncoder, + slot: u32, + buffer: &GpuBuffer, + offset: u32, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderBundleEncoder" , js_name = setVertexBuffer ) ] + #[doc = "The `setVertexBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderBundleEncoder/setVertexBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderBundleEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_vertex_buffer_with_f64( + this: &GpuRenderBundleEncoder, + slot: u32, + buffer: &GpuBuffer, + offset: f64, + ); +} diff --git a/crates/web-sys/src/features/gen_GpuRenderBundleEncoderDescriptor.rs b/crates/web-sys/src/features/gen_GpuRenderBundleEncoderDescriptor.rs new file mode 100644 index 00000000..ccf4d8e2 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuRenderBundleEncoderDescriptor.rs @@ -0,0 +1,112 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPURenderBundleEncoderDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuRenderBundleEncoderDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoderDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuRenderBundleEncoderDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuRenderBundleEncoderDescriptor { + #[doc = "Construct a new `GpuRenderBundleEncoderDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoderDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(color_formats: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.color_formats(color_formats); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoderDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `colorFormats` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoderDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn color_formats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("colorFormats"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTextureFormat")] + #[doc = "Change the `depthStencilFormat` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoderDescriptor`, `GpuTextureFormat`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn depth_stencil_format(&mut self, val: GpuTextureFormat) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("depthStencilFormat"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `sampleCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderBundleEncoderDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn sample_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sampleCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuRenderPassColorAttachmentDescriptor.rs b/crates/web-sys/src/features/gen_GpuRenderPassColorAttachmentDescriptor.rs new file mode 100644 index 00000000..fcb02d87 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuRenderPassColorAttachmentDescriptor.rs @@ -0,0 +1,120 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPURenderPassColorAttachmentDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuRenderPassColorAttachmentDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachmentDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuRenderPassColorAttachmentDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuRenderPassColorAttachmentDescriptor { + #[cfg(feature = "GpuTextureView")] + #[doc = "Construct a new `GpuRenderPassColorAttachmentDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachmentDescriptor`, `GpuTextureView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(attachment: &GpuTextureView, load_value: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.attachment(attachment); + ret.load_value(load_value); + ret + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTextureView")] + #[doc = "Change the `attachment` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachmentDescriptor`, `GpuTextureView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn attachment(&mut self, val: &GpuTextureView) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("attachment"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `loadValue` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachmentDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn load_value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("loadValue"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTextureView")] + #[doc = "Change the `resolveTarget` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachmentDescriptor`, `GpuTextureView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn resolve_target(&mut self, val: &GpuTextureView) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("resolveTarget"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuStoreOp")] + #[doc = "Change the `storeOp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassColorAttachmentDescriptor`, `GpuStoreOp`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn store_op(&mut self, val: GpuStoreOp) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("storeOp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuRenderPassDepthStencilAttachmentDescriptor.rs b/crates/web-sys/src/features/gen_GpuRenderPassDepthStencilAttachmentDescriptor.rs new file mode 100644 index 00000000..2208a655 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuRenderPassDepthStencilAttachmentDescriptor.rs @@ -0,0 +1,150 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPURenderPassDepthStencilAttachmentDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuRenderPassDepthStencilAttachmentDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachmentDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuRenderPassDepthStencilAttachmentDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuRenderPassDepthStencilAttachmentDescriptor { + #[cfg(all(feature = "GpuStoreOp", feature = "GpuTextureView",))] + #[doc = "Construct a new `GpuRenderPassDepthStencilAttachmentDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachmentDescriptor`, `GpuStoreOp`, `GpuTextureView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new( + attachment: &GpuTextureView, + depth_load_value: &::wasm_bindgen::JsValue, + depth_store_op: GpuStoreOp, + stencil_load_value: &::wasm_bindgen::JsValue, + stencil_store_op: GpuStoreOp, + ) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.attachment(attachment); + ret.depth_load_value(depth_load_value); + ret.depth_store_op(depth_store_op); + ret.stencil_load_value(stencil_load_value); + ret.stencil_store_op(stencil_store_op); + ret + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTextureView")] + #[doc = "Change the `attachment` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachmentDescriptor`, `GpuTextureView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn attachment(&mut self, val: &GpuTextureView) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("attachment"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `depthLoadValue` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachmentDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn depth_load_value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("depthLoadValue"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuStoreOp")] + #[doc = "Change the `depthStoreOp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachmentDescriptor`, `GpuStoreOp`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn depth_store_op(&mut self, val: GpuStoreOp) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("depthStoreOp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `stencilLoadValue` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachmentDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn stencil_load_value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("stencilLoadValue"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuStoreOp")] + #[doc = "Change the `stencilStoreOp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachmentDescriptor`, `GpuStoreOp`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn stencil_store_op(&mut self, val: GpuStoreOp) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("stencilStoreOp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuRenderPassDescriptor.rs b/crates/web-sys/src/features/gen_GpuRenderPassDescriptor.rs new file mode 100644 index 00000000..c06765a6 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuRenderPassDescriptor.rs @@ -0,0 +1,94 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPURenderPassDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuRenderPassDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuRenderPassDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuRenderPassDescriptor { + #[doc = "Construct a new `GpuRenderPassDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(color_attachments: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.color_attachments(color_attachments); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `colorAttachments` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn color_attachments(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("colorAttachments"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuRenderPassDepthStencilAttachmentDescriptor")] + #[doc = "Change the `depthStencilAttachment` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassDepthStencilAttachmentDescriptor`, `GpuRenderPassDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn depth_stencil_attachment( + &mut self, + val: &GpuRenderPassDepthStencilAttachmentDescriptor, + ) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("depthStencilAttachment"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuRenderPassEncoder.rs b/crates/web-sys/src/features/gen_GpuRenderPassEncoder.rs new file mode 100644 index 00000000..5a3d3f91 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuRenderPassEncoder.rs @@ -0,0 +1,422 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPURenderPassEncoder , typescript_type = "GPURenderPassEncoder" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuRenderPassEncoder` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuRenderPassEncoder; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPURenderPassEncoder" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuRenderPassEncoder) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPURenderPassEncoder" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuRenderPassEncoder, value: Option<&str>); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = endPass ) ] + #[doc = "The `endPass()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/endPass)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn end_pass(this: &GpuRenderPassEncoder); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = executeBundles ) ] + #[doc = "The `executeBundles()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/executeBundles)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn execute_bundles(this: &GpuRenderPassEncoder, bundles: &::wasm_bindgen::JsValue); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = setBlendColor ) ] + #[doc = "The `setBlendColor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBlendColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_blend_color_with_f64_sequence( + this: &GpuRenderPassEncoder, + color: &::wasm_bindgen::JsValue, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuColorDict")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = setBlendColor ) ] + #[doc = "The `setBlendColor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBlendColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuColorDict`, `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_blend_color_with_gpu_color_dict(this: &GpuRenderPassEncoder, color: &GpuColorDict); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = setScissorRect ) ] + #[doc = "The `setScissorRect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setScissorRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_scissor_rect(this: &GpuRenderPassEncoder, x: u32, y: u32, width: u32, height: u32); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = setStencilReference ) ] + #[doc = "The `setStencilReference()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setStencilReference)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_stencil_reference(this: &GpuRenderPassEncoder, reference: u32); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = setViewport ) ] + #[doc = "The `setViewport()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setViewport)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_viewport( + this: &GpuRenderPassEncoder, + x: f32, + y: f32, + width: f32, + height: f32, + min_depth: f32, + max_depth: f32, + ); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = insertDebugMarker ) ] + #[doc = "The `insertDebugMarker()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/insertDebugMarker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn insert_debug_marker(this: &GpuRenderPassEncoder, marker_label: &str); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = popDebugGroup ) ] + #[doc = "The `popDebugGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/popDebugGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn pop_debug_group(this: &GpuRenderPassEncoder); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = pushDebugGroup ) ] + #[doc = "The `pushDebugGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/pushDebugGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn push_debug_group(this: &GpuRenderPassEncoder, group_label: &str); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBindGroup")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup ) ] + #[doc = "The `setBindGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_bind_group(this: &GpuRenderPassEncoder, index: u32, bind_group: &GpuBindGroup); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBindGroup")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup ) ] + #[doc = "The `setBindGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_bind_group_with_u32_sequence( + this: &GpuRenderPassEncoder, + index: u32, + bind_group: &GpuBindGroup, + dynamic_offsets: &::wasm_bindgen::JsValue, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBindGroup")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup ) ] + #[doc = "The `setBindGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length( + this: &GpuRenderPassEncoder, + index: u32, + bind_group: &GpuBindGroup, + dynamic_offsets_data: &mut [u32], + dynamic_offsets_data_start: u32, + dynamic_offsets_data_length: u32, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBindGroup")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup ) ] + #[doc = "The `setBindGroup()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length( + this: &GpuRenderPassEncoder, + index: u32, + bind_group: &GpuBindGroup, + dynamic_offsets_data: &mut [u32], + dynamic_offsets_data_start: f64, + dynamic_offsets_data_length: u32, + ); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = draw ) ] + #[doc = "The `draw()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn draw( + this: &GpuRenderPassEncoder, + vertex_count: u32, + instance_count: u32, + first_vertex: u32, + first_instance: u32, + ); + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed ) ] + #[doc = "The `drawIndexed()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn draw_indexed( + this: &GpuRenderPassEncoder, + index_count: u32, + instance_count: u32, + first_index: u32, + base_vertex: i32, + first_instance: u32, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexedIndirect ) ] + #[doc = "The `drawIndexedIndirect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexedIndirect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn draw_indexed_indirect_with_u32( + this: &GpuRenderPassEncoder, + indirect_buffer: &GpuBuffer, + indirect_offset: u32, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexedIndirect ) ] + #[doc = "The `drawIndexedIndirect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexedIndirect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn draw_indexed_indirect_with_f64( + this: &GpuRenderPassEncoder, + indirect_buffer: &GpuBuffer, + indirect_offset: f64, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndirect ) ] + #[doc = "The `drawIndirect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndirect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn draw_indirect_with_u32( + this: &GpuRenderPassEncoder, + indirect_buffer: &GpuBuffer, + indirect_offset: u32, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndirect ) ] + #[doc = "The `drawIndirect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndirect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn draw_indirect_with_f64( + this: &GpuRenderPassEncoder, + indirect_buffer: &GpuBuffer, + indirect_offset: f64, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer ) ] + #[doc = "The `setIndexBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_index_buffer(this: &GpuRenderPassEncoder, buffer: &GpuBuffer); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer ) ] + #[doc = "The `setIndexBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_index_buffer_with_u32(this: &GpuRenderPassEncoder, buffer: &GpuBuffer, offset: u32); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer ) ] + #[doc = "The `setIndexBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_index_buffer_with_f64(this: &GpuRenderPassEncoder, buffer: &GpuBuffer, offset: f64); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuRenderPipeline")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = setPipeline ) ] + #[doc = "The `setPipeline()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setPipeline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`, `GpuRenderPipeline`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_pipeline(this: &GpuRenderPassEncoder, pipeline: &GpuRenderPipeline); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer ) ] + #[doc = "The `setVertexBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_vertex_buffer(this: &GpuRenderPassEncoder, slot: u32, buffer: &GpuBuffer); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer ) ] + #[doc = "The `setVertexBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_vertex_buffer_with_u32( + this: &GpuRenderPassEncoder, + slot: u32, + buffer: &GpuBuffer, + offset: u32, + ); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer ) ] + #[doc = "The `setVertexBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_vertex_buffer_with_f64( + this: &GpuRenderPassEncoder, + slot: u32, + buffer: &GpuBuffer, + offset: f64, + ); +} diff --git a/crates/web-sys/src/features/gen_GpuRenderPipeline.rs b/crates/web-sys/src/features/gen_GpuRenderPipeline.rs new file mode 100644 index 00000000..efca93f4 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuRenderPipeline.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPURenderPipeline , typescript_type = "GPURenderPipeline" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuRenderPipeline` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPipeline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipeline`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuRenderPipeline; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPURenderPipeline" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPipeline/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipeline`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuRenderPipeline) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPURenderPipeline" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPipeline/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipeline`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuRenderPipeline, value: Option<&str>); +} diff --git a/crates/web-sys/src/features/gen_GpuRenderPipelineDescriptor.rs b/crates/web-sys/src/features/gen_GpuRenderPipelineDescriptor.rs new file mode 100644 index 00000000..dae1c6f1 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuRenderPipelineDescriptor.rs @@ -0,0 +1,296 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPURenderPipelineDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuRenderPipelineDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuRenderPipelineDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuRenderPipelineDescriptor { + #[cfg(all( + feature = "GpuPipelineLayout", + feature = "GpuPrimitiveTopology", + feature = "GpuProgrammableStageDescriptor", + ))] + #[doc = "Construct a new `GpuRenderPipelineDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayout`, `GpuPrimitiveTopology`, `GpuProgrammableStageDescriptor`, `GpuRenderPipelineDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new( + layout: &GpuPipelineLayout, + color_states: &::wasm_bindgen::JsValue, + primitive_topology: GpuPrimitiveTopology, + vertex_stage: &GpuProgrammableStageDescriptor, + ) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.layout(layout); + ret.color_states(color_states); + ret.primitive_topology(primitive_topology); + ret.vertex_stage(vertex_stage); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuPipelineLayout")] + #[doc = "Change the `layout` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuPipelineLayout`, `GpuRenderPipelineDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn layout(&mut self, val: &GpuPipelineLayout) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("layout"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `alphaToCoverageEnabled` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn alpha_to_coverage_enabled(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("alphaToCoverageEnabled"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `colorStates` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn color_states(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("colorStates"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuDepthStencilStateDescriptor")] + #[doc = "Change the `depthStencilState` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDepthStencilStateDescriptor`, `GpuRenderPipelineDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn depth_stencil_state(&mut self, val: &GpuDepthStencilStateDescriptor) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("depthStencilState"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuProgrammableStageDescriptor")] + #[doc = "Change the `fragmentStage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStageDescriptor`, `GpuRenderPipelineDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn fragment_stage(&mut self, val: &GpuProgrammableStageDescriptor) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("fragmentStage"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuPrimitiveTopology")] + #[doc = "Change the `primitiveTopology` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuPrimitiveTopology`, `GpuRenderPipelineDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn primitive_topology(&mut self, val: GpuPrimitiveTopology) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("primitiveTopology"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuRasterizationStateDescriptor")] + #[doc = "Change the `rasterizationState` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRasterizationStateDescriptor`, `GpuRenderPipelineDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn rasterization_state(&mut self, val: &GpuRasterizationStateDescriptor) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("rasterizationState"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `sampleCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn sample_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sampleCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `sampleMask` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn sample_mask(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sampleMask"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuProgrammableStageDescriptor")] + #[doc = "Change the `vertexStage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuProgrammableStageDescriptor`, `GpuRenderPipelineDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn vertex_stage(&mut self, val: &GpuProgrammableStageDescriptor) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("vertexStage"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuVertexStateDescriptor")] + #[doc = "Change the `vertexState` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRenderPipelineDescriptor`, `GpuVertexStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn vertex_state(&mut self, val: &GpuVertexStateDescriptor) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("vertexState"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuRequestAdapterOptions.rs b/crates/web-sys/src/features/gen_GpuRequestAdapterOptions.rs new file mode 100644 index 00000000..7384436f --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuRequestAdapterOptions.rs @@ -0,0 +1,52 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPURequestAdapterOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuRequestAdapterOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRequestAdapterOptions`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuRequestAdapterOptions; +} +#[cfg(web_sys_unstable_apis)] +impl GpuRequestAdapterOptions { + #[doc = "Construct a new `GpuRequestAdapterOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuRequestAdapterOptions`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuPowerPreference")] + #[doc = "Change the `powerPreference` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuPowerPreference`, `GpuRequestAdapterOptions`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn power_preference(&mut self, val: GpuPowerPreference) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("powerPreference"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuSampler.rs b/crates/web-sys/src/features/gen_GpuSampler.rs new file mode 100644 index 00000000..23f111cb --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuSampler.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUSampler , typescript_type = "GPUSampler" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuSampler` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSampler)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuSampler`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuSampler; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUSampler" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSampler/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuSampler`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuSampler) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPUSampler" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSampler/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuSampler`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuSampler, value: Option<&str>); +} diff --git a/crates/web-sys/src/features/gen_GpuSamplerDescriptor.rs b/crates/web-sys/src/features/gen_GpuSamplerDescriptor.rs new file mode 100644 index 00000000..1fb84e54 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuSamplerDescriptor.rs @@ -0,0 +1,243 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUSamplerDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuSamplerDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuSamplerDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuSamplerDescriptor { + #[doc = "Construct a new `GpuSamplerDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuAddressMode")] + #[doc = "Change the `addressModeU` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`, `GpuSamplerDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn address_mode_u(&mut self, val: GpuAddressMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("addressModeU"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuAddressMode")] + #[doc = "Change the `addressModeV` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`, `GpuSamplerDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn address_mode_v(&mut self, val: GpuAddressMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("addressModeV"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuAddressMode")] + #[doc = "Change the `addressModeW` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuAddressMode`, `GpuSamplerDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn address_mode_w(&mut self, val: GpuAddressMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("addressModeW"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuCompareFunction")] + #[doc = "Change the `compare` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`, `GpuSamplerDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn compare(&mut self, val: GpuCompareFunction) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("compare"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `lodMaxClamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn lod_max_clamp(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("lodMaxClamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `lodMinClamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuSamplerDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn lod_min_clamp(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("lodMinClamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuFilterMode")] + #[doc = "Change the `magFilter` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFilterMode`, `GpuSamplerDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn mag_filter(&mut self, val: GpuFilterMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("magFilter"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuFilterMode")] + #[doc = "Change the `minFilter` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFilterMode`, `GpuSamplerDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn min_filter(&mut self, val: GpuFilterMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("minFilter"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuFilterMode")] + #[doc = "Change the `mipmapFilter` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuFilterMode`, `GpuSamplerDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn mipmap_filter(&mut self, val: GpuFilterMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mipmapFilter"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuShaderModule.rs b/crates/web-sys/src/features/gen_GpuShaderModule.rs new file mode 100644 index 00000000..df28f493 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuShaderModule.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUShaderModule , typescript_type = "GPUShaderModule" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuShaderModule` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuShaderModule`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuShaderModule; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUShaderModule" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuShaderModule`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuShaderModule) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPUShaderModule" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuShaderModule`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuShaderModule, value: Option<&str>); +} diff --git a/crates/web-sys/src/features/gen_GpuShaderModuleDescriptor.rs b/crates/web-sys/src/features/gen_GpuShaderModuleDescriptor.rs new file mode 100644 index 00000000..313707c8 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuShaderModuleDescriptor.rs @@ -0,0 +1,65 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUShaderModuleDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuShaderModuleDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuShaderModuleDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuShaderModuleDescriptor { + #[doc = "Construct a new `GpuShaderModuleDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(code: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.code(code); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `code` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuShaderModuleDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn code(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("code"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuShaderStage.rs b/crates/web-sys/src/features/gen_GpuShaderStage.rs new file mode 100644 index 00000000..a9fae477 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuShaderStage.rs @@ -0,0 +1,45 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUShaderStage , typescript_type = "GPUShaderStage" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuShaderStage` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderStage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuShaderStage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuShaderStage; +} +#[cfg(web_sys_unstable_apis)] +impl GpuShaderStage { + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUShaderStage.VERTEX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuShaderStage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const VERTEX: u32 = 1u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUShaderStage.FRAGMENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuShaderStage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const FRAGMENT: u32 = 2u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUShaderStage.COMPUTE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuShaderStage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const COMPUTE: u32 = 4u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_GpuStencilOperation.rs b/crates/web-sys/src/features/gen_GpuStencilOperation.rs new file mode 100644 index 00000000..6b9573f7 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuStencilOperation.rs @@ -0,0 +1,21 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuStencilOperation` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuStencilOperation`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuStencilOperation { + Keep = "keep", + Zero = "zero", + Replace = "replace", + Invert = "invert", + IncrementClamp = "increment-clamp", + DecrementClamp = "decrement-clamp", + IncrementWrap = "increment-wrap", + DecrementWrap = "decrement-wrap", +} diff --git a/crates/web-sys/src/features/gen_GpuStencilStateFaceDescriptor.rs b/crates/web-sys/src/features/gen_GpuStencilStateFaceDescriptor.rs new file mode 100644 index 00000000..46316c9f --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuStencilStateFaceDescriptor.rs @@ -0,0 +1,112 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUStencilStateFaceDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuStencilStateFaceDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuStencilStateFaceDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuStencilStateFaceDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuStencilStateFaceDescriptor { + #[doc = "Construct a new `GpuStencilStateFaceDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuStencilStateFaceDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuCompareFunction")] + #[doc = "Change the `compare` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuCompareFunction`, `GpuStencilStateFaceDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn compare(&mut self, val: GpuCompareFunction) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("compare"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuStencilOperation")] + #[doc = "Change the `depthFailOp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuStencilOperation`, `GpuStencilStateFaceDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn depth_fail_op(&mut self, val: GpuStencilOperation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("depthFailOp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuStencilOperation")] + #[doc = "Change the `failOp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuStencilOperation`, `GpuStencilStateFaceDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn fail_op(&mut self, val: GpuStencilOperation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("failOp"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuStencilOperation")] + #[doc = "Change the `passOp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuStencilOperation`, `GpuStencilStateFaceDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn pass_op(&mut self, val: GpuStencilOperation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("passOp"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuStoreOp.rs b/crates/web-sys/src/features/gen_GpuStoreOp.rs new file mode 100644 index 00000000..e0242c85 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuStoreOp.rs @@ -0,0 +1,15 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuStoreOp` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuStoreOp`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuStoreOp { + Store = "store", + Clear = "clear", +} diff --git a/crates/web-sys/src/features/gen_GpuSwapChain.rs b/crates/web-sys/src/features/gen_GpuSwapChain.rs new file mode 100644 index 00000000..c2a8a4d9 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuSwapChain.rs @@ -0,0 +1,52 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUSwapChain , typescript_type = "GPUSwapChain" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuSwapChain` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSwapChain)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuSwapChain`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuSwapChain; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUSwapChain" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSwapChain/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuSwapChain`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuSwapChain) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPUSwapChain" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSwapChain/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuSwapChain`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuSwapChain, value: Option<&str>); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTexture")] + # [ wasm_bindgen ( method , structural , js_class = "GPUSwapChain" , js_name = getCurrentTexture ) ] + #[doc = "The `getCurrentTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUSwapChain/getCurrentTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuSwapChain`, `GpuTexture`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn get_current_texture(this: &GpuSwapChain) -> GpuTexture; +} diff --git a/crates/web-sys/src/features/gen_GpuSwapChainDescriptor.rs b/crates/web-sys/src/features/gen_GpuSwapChainDescriptor.rs new file mode 100644 index 00000000..f213902f --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuSwapChainDescriptor.rs @@ -0,0 +1,105 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUSwapChainDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuSwapChainDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuSwapChainDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuSwapChainDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuSwapChainDescriptor { + #[cfg(all(feature = "GpuDevice", feature = "GpuTextureFormat",))] + #[doc = "Construct a new `GpuSwapChainDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuSwapChainDescriptor`, `GpuTextureFormat`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(device: &GpuDevice, format: GpuTextureFormat) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.device(device); + ret.format(format); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuSwapChainDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuDevice")] + #[doc = "Change the `device` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuDevice`, `GpuSwapChainDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn device(&mut self, val: &GpuDevice) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("device"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTextureFormat")] + #[doc = "Change the `format` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuSwapChainDescriptor`, `GpuTextureFormat`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("format"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `usage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuSwapChainDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn usage(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("usage"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuTexture.rs b/crates/web-sys/src/features/gen_GpuTexture.rs new file mode 100644 index 00000000..559c1193 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuTexture.rs @@ -0,0 +1,78 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUTexture , typescript_type = "GPUTexture" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuTexture` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTexture`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuTexture; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUTexture" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTexture`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuTexture) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPUTexture" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTexture`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuTexture, value: Option<&str>); + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTextureView")] + # [ wasm_bindgen ( method , structural , js_class = "GPUTexture" , js_name = createView ) ] + #[doc = "The `createView()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/createView)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTexture`, `GpuTextureView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_view(this: &GpuTexture) -> GpuTextureView; + #[cfg(web_sys_unstable_apis)] + #[cfg(all(feature = "GpuTextureView", feature = "GpuTextureViewDescriptor",))] + # [ wasm_bindgen ( method , structural , js_class = "GPUTexture" , js_name = createView ) ] + #[doc = "The `createView()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/createView)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTexture`, `GpuTextureView`, `GpuTextureViewDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn create_view_with_descriptor( + this: &GpuTexture, + descriptor: &GpuTextureViewDescriptor, + ) -> GpuTextureView; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( method , structural , js_class = "GPUTexture" , js_name = destroy ) ] + #[doc = "The `destroy()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTexture/destroy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTexture`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn destroy(this: &GpuTexture); +} diff --git a/crates/web-sys/src/features/gen_GpuTextureAspect.rs b/crates/web-sys/src/features/gen_GpuTextureAspect.rs new file mode 100644 index 00000000..0a0742d5 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuTextureAspect.rs @@ -0,0 +1,16 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuTextureAspect` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuTextureAspect`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuTextureAspect { + All = "all", + StencilOnly = "stencil-only", + DepthOnly = "depth-only", +} diff --git a/crates/web-sys/src/features/gen_GpuTextureComponentType.rs b/crates/web-sys/src/features/gen_GpuTextureComponentType.rs new file mode 100644 index 00000000..9e354045 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuTextureComponentType.rs @@ -0,0 +1,16 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuTextureComponentType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuTextureComponentType`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuTextureComponentType { + Float = "float", + Sint = "sint", + Uint = "uint", +} diff --git a/crates/web-sys/src/features/gen_GpuTextureCopyView.rs b/crates/web-sys/src/features/gen_GpuTextureCopyView.rs new file mode 100644 index 00000000..dc0c61ab --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuTextureCopyView.rs @@ -0,0 +1,114 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUTextureCopyView ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuTextureCopyView` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuTextureCopyView; +} +#[cfg(web_sys_unstable_apis)] +impl GpuTextureCopyView { + #[cfg(feature = "GpuTexture")] + #[doc = "Construct a new `GpuTextureCopyView`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTexture`, `GpuTextureCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(texture: &GpuTexture) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.texture(texture); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `arrayLayer` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn array_layer(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("arrayLayer"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `mipLevel` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn mip_level(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mipLevel"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `origin` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn origin(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTexture")] + #[doc = "Change the `texture` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTexture`, `GpuTextureCopyView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn texture(&mut self, val: &GpuTexture) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("texture"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuTextureDescriptor.rs b/crates/web-sys/src/features/gen_GpuTextureDescriptor.rs new file mode 100644 index 00000000..7c96903c --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuTextureDescriptor.rs @@ -0,0 +1,189 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUTextureDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuTextureDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuTextureDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuTextureDescriptor { + #[cfg(feature = "GpuTextureFormat")] + #[doc = "Construct a new `GpuTextureDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`, `GpuTextureFormat`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(format: GpuTextureFormat, size: &::wasm_bindgen::JsValue, usage: u32) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.format(format); + ret.size(size); + ret.usage(usage); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `arrayLayerCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn array_layer_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("arrayLayerCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTextureDimension")] + #[doc = "Change the `dimension` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`, `GpuTextureDimension`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn dimension(&mut self, val: GpuTextureDimension) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("dimension"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTextureFormat")] + #[doc = "Change the `format` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`, `GpuTextureFormat`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("format"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `mipLevelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn mip_level_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mipLevelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `sampleCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn sample_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sampleCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `size` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn size(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("size"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `usage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn usage(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("usage"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuTextureDimension.rs b/crates/web-sys/src/features/gen_GpuTextureDimension.rs new file mode 100644 index 00000000..36367511 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuTextureDimension.rs @@ -0,0 +1,16 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuTextureDimension` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuTextureDimension`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuTextureDimension { + N1d = "1d", + N2d = "2d", + N3d = "3d", +} diff --git a/crates/web-sys/src/features/gen_GpuTextureFormat.rs b/crates/web-sys/src/features/gen_GpuTextureFormat.rs new file mode 100644 index 00000000..e533720a --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuTextureFormat.rs @@ -0,0 +1,51 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuTextureFormat` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuTextureFormat`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuTextureFormat { + R8unorm = "r8unorm", + R8snorm = "r8snorm", + R8uint = "r8uint", + R8sint = "r8sint", + R16uint = "r16uint", + R16sint = "r16sint", + R16float = "r16float", + Rg8unorm = "rg8unorm", + Rg8snorm = "rg8snorm", + Rg8uint = "rg8uint", + Rg8sint = "rg8sint", + R32uint = "r32uint", + R32sint = "r32sint", + R32float = "r32float", + Rg16uint = "rg16uint", + Rg16sint = "rg16sint", + Rg16float = "rg16float", + Rgba8unorm = "rgba8unorm", + Rgba8unormSrgb = "rgba8unorm-srgb", + Rgba8snorm = "rgba8snorm", + Rgba8uint = "rgba8uint", + Rgba8sint = "rgba8sint", + Bgra8unorm = "bgra8unorm", + Bgra8unormSrgb = "bgra8unorm-srgb", + Rgb10a2unorm = "rgb10a2unorm", + Rg11b10float = "rg11b10float", + Rg32uint = "rg32uint", + Rg32sint = "rg32sint", + Rg32float = "rg32float", + Rgba16uint = "rgba16uint", + Rgba16sint = "rgba16sint", + Rgba16float = "rgba16float", + Rgba32uint = "rgba32uint", + Rgba32sint = "rgba32sint", + Rgba32float = "rgba32float", + Depth32float = "depth32float", + Depth24plus = "depth24plus", + Depth24plusStencil8 = "depth24plus-stencil8", +} diff --git a/crates/web-sys/src/features/gen_GpuTextureUsage.rs b/crates/web-sys/src/features/gen_GpuTextureUsage.rs new file mode 100644 index 00000000..606d1f16 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuTextureUsage.rs @@ -0,0 +1,61 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUTextureUsage , typescript_type = "GPUTextureUsage" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuTextureUsage` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTextureUsage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureUsage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuTextureUsage; +} +#[cfg(web_sys_unstable_apis)] +impl GpuTextureUsage { + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUTextureUsage.COPY_SRC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureUsage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const COPY_SRC: u32 = 1u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUTextureUsage.COPY_DST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureUsage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const COPY_DST: u32 = 2u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUTextureUsage.SAMPLED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureUsage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const SAMPLED: u32 = 4u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUTextureUsage.STORAGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureUsage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const STORAGE: u32 = 8u64 as u32; + #[cfg(web_sys_unstable_apis)] + #[doc = "The `GPUTextureUsage.OUTPUT_ATTACHMENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureUsage`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub const OUTPUT_ATTACHMENT: u32 = 16u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_GpuTextureView.rs b/crates/web-sys/src/features/gen_GpuTextureView.rs new file mode 100644 index 00000000..bc741355 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuTextureView.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUTextureView , typescript_type = "GPUTextureView" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuTextureView` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTextureView)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuTextureView; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUTextureView" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTextureView/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(this: &GpuTextureView) -> Option; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , setter , js_class = "GPUTextureView" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTextureView/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureView`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn set_label(this: &GpuTextureView, value: Option<&str>); +} diff --git a/crates/web-sys/src/features/gen_GpuTextureViewDescriptor.rs b/crates/web-sys/src/features/gen_GpuTextureViewDescriptor.rs new file mode 100644 index 00000000..4fb02edd --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuTextureViewDescriptor.rs @@ -0,0 +1,191 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUTextureViewDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuTextureViewDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuTextureViewDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuTextureViewDescriptor { + #[doc = "Construct a new `GpuTextureViewDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `arrayLayerCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn array_layer_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("arrayLayerCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTextureAspect")] + #[doc = "Change the `aspect` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureAspect`, `GpuTextureViewDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn aspect(&mut self, val: GpuTextureAspect) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("aspect"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `baseArrayLayer` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn base_array_layer(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("baseArrayLayer"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `baseMipLevel` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn base_mip_level(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("baseMipLevel"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTextureViewDimension")] + #[doc = "Change the `dimension` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDescriptor`, `GpuTextureViewDimension`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn dimension(&mut self, val: GpuTextureViewDimension) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("dimension"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuTextureFormat")] + #[doc = "Change the `format` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureFormat`, `GpuTextureViewDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn format(&mut self, val: GpuTextureFormat) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("format"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `mipLevelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn mip_level_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mipLevelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuTextureViewDimension.rs b/crates/web-sys/src/features/gen_GpuTextureViewDimension.rs new file mode 100644 index 00000000..77d8e5d1 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuTextureViewDimension.rs @@ -0,0 +1,19 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuTextureViewDimension` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuTextureViewDimension`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuTextureViewDimension { + N1d = "1d", + N2d = "2d", + N2dArray = "2d-array", + Cube = "cube", + CubeArray = "cube-array", + N3d = "3d", +} diff --git a/crates/web-sys/src/features/gen_GpuUncapturedErrorEvent.rs b/crates/web-sys/src/features/gen_GpuUncapturedErrorEvent.rs new file mode 100644 index 00000000..75d8d940 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuUncapturedErrorEvent.rs @@ -0,0 +1,29 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = GPUUncapturedErrorEvent , typescript_type = "GPUUncapturedErrorEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuUncapturedErrorEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUUncapturedErrorEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuUncapturedErrorEvent`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuUncapturedErrorEvent; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUUncapturedErrorEvent" , js_name = error ) ] + #[doc = "Getter for the `error` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUUncapturedErrorEvent/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuUncapturedErrorEvent`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn error(this: &GpuUncapturedErrorEvent) -> ::js_sys::Object; +} diff --git a/crates/web-sys/src/features/gen_GpuUncapturedErrorEventInit.rs b/crates/web-sys/src/features/gen_GpuUncapturedErrorEventInit.rs new file mode 100644 index 00000000..005c5b6f --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuUncapturedErrorEventInit.rs @@ -0,0 +1,111 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUUncapturedErrorEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuUncapturedErrorEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuUncapturedErrorEventInit`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuUncapturedErrorEventInit; +} +#[cfg(web_sys_unstable_apis)] +impl GpuUncapturedErrorEventInit { + #[doc = "Construct a new `GpuUncapturedErrorEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuUncapturedErrorEventInit`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(error: &::js_sys::Object) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.error(error); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuUncapturedErrorEventInit`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuUncapturedErrorEventInit`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuUncapturedErrorEventInit`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `error` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuUncapturedErrorEventInit`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn error(&mut self, val: &::js_sys::Object) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuValidationError.rs b/crates/web-sys/src/features/gen_GpuValidationError.rs new file mode 100644 index 00000000..861a3e68 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuValidationError.rs @@ -0,0 +1,29 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUValidationError , typescript_type = "GPUValidationError" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuValidationError` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUValidationError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuValidationError`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuValidationError; + #[cfg(web_sys_unstable_apis)] + # [ wasm_bindgen ( structural , method , getter , js_class = "GPUValidationError" , js_name = message ) ] + #[doc = "Getter for the `message` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUValidationError/message)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuValidationError`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn message(this: &GpuValidationError) -> String; +} diff --git a/crates/web-sys/src/features/gen_GpuVertexAttributeDescriptor.rs b/crates/web-sys/src/features/gen_GpuVertexAttributeDescriptor.rs new file mode 100644 index 00000000..7ddd034e --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuVertexAttributeDescriptor.rs @@ -0,0 +1,92 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUVertexAttributeDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuVertexAttributeDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuVertexAttributeDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuVertexAttributeDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuVertexAttributeDescriptor { + #[cfg(feature = "GpuVertexFormat")] + #[doc = "Construct a new `GpuVertexAttributeDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuVertexAttributeDescriptor`, `GpuVertexFormat`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(format: GpuVertexFormat, offset: f64, shader_location: u32) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.format(format); + ret.offset(offset); + ret.shader_location(shader_location); + ret + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuVertexFormat")] + #[doc = "Change the `format` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuVertexAttributeDescriptor`, `GpuVertexFormat`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn format(&mut self, val: GpuVertexFormat) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("format"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `offset` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuVertexAttributeDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn offset(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("offset"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `shaderLocation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuVertexAttributeDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn shader_location(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("shaderLocation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuVertexBufferLayoutDescriptor.rs b/crates/web-sys/src/features/gen_GpuVertexBufferLayoutDescriptor.rs new file mode 100644 index 00000000..a3de92cb --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuVertexBufferLayoutDescriptor.rs @@ -0,0 +1,96 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUVertexBufferLayoutDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuVertexBufferLayoutDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuVertexBufferLayoutDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuVertexBufferLayoutDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuVertexBufferLayoutDescriptor { + #[doc = "Construct a new `GpuVertexBufferLayoutDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuVertexBufferLayoutDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new(array_stride: f64, attributes: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.array_stride(array_stride); + ret.attributes(attributes); + ret + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `arrayStride` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuVertexBufferLayoutDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn array_stride(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("arrayStride"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `attributes` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuVertexBufferLayoutDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn attributes(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("attributes"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuInputStepMode")] + #[doc = "Change the `stepMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuInputStepMode`, `GpuVertexBufferLayoutDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn step_mode(&mut self, val: GpuInputStepMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("stepMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GpuVertexFormat.rs b/crates/web-sys/src/features/gen_GpuVertexFormat.rs new file mode 100644 index 00000000..c48aaa20 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuVertexFormat.rs @@ -0,0 +1,43 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +#[doc = "The `GpuVertexFormat` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GpuVertexFormat`*"] +#[doc = ""] +#[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] +#[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GpuVertexFormat { + Uchar2 = "uchar2", + Uchar4 = "uchar4", + Char2 = "char2", + Char4 = "char4", + Uchar2norm = "uchar2norm", + Uchar4norm = "uchar4norm", + Char2norm = "char2norm", + Char4norm = "char4norm", + Ushort2 = "ushort2", + Ushort4 = "ushort4", + Short2 = "short2", + Short4 = "short4", + Ushort2norm = "ushort2norm", + Ushort4norm = "ushort4norm", + Short2norm = "short2norm", + Short4norm = "short4norm", + Half2 = "half2", + Half4 = "half4", + Float = "float", + Float2 = "float2", + Float3 = "float3", + Float4 = "float4", + Uint = "uint", + Uint2 = "uint2", + Uint3 = "uint3", + Uint4 = "uint4", + Int = "int", + Int2 = "int2", + Int3 = "int3", + Int4 = "int4", +} diff --git a/crates/web-sys/src/features/gen_GpuVertexStateDescriptor.rs b/crates/web-sys/src/features/gen_GpuVertexStateDescriptor.rs new file mode 100644 index 00000000..63fbd769 --- /dev/null +++ b/crates/web-sys/src/features/gen_GpuVertexStateDescriptor.rs @@ -0,0 +1,73 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[cfg(web_sys_unstable_apis)] +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GPUVertexStateDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GpuVertexStateDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuVertexStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub type GpuVertexStateDescriptor; +} +#[cfg(web_sys_unstable_apis)] +impl GpuVertexStateDescriptor { + #[doc = "Construct a new `GpuVertexStateDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuVertexStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "GpuIndexFormat")] + #[doc = "Change the `indexFormat` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuIndexFormat`, `GpuVertexStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn index_format(&mut self, val: GpuIndexFormat) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("indexFormat"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(web_sys_unstable_apis)] + #[doc = "Change the `vertexBuffers` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GpuVertexStateDescriptor`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn vertex_buffers(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("vertexBuffers"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_GridDeclaration.rs b/crates/web-sys/src/features/gen_GridDeclaration.rs new file mode 100644 index 00000000..325ac2bb --- /dev/null +++ b/crates/web-sys/src/features/gen_GridDeclaration.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `GridDeclaration` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GridDeclaration`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GridDeclaration { + Explicit = "explicit", + Implicit = "implicit", +} diff --git a/crates/web-sys/src/features/gen_GridTrackState.rs b/crates/web-sys/src/features/gen_GridTrackState.rs new file mode 100644 index 00000000..0ff0ee27 --- /dev/null +++ b/crates/web-sys/src/features/gen_GridTrackState.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `GridTrackState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `GridTrackState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum GridTrackState { + Static = "static", + Repeat = "repeat", + Removed = "removed", +} diff --git a/crates/web-sys/src/features/gen_GroupedHistoryEventInit.rs b/crates/web-sys/src/features/gen_GroupedHistoryEventInit.rs new file mode 100644 index 00000000..d0cb78e5 --- /dev/null +++ b/crates/web-sys/src/features/gen_GroupedHistoryEventInit.rs @@ -0,0 +1,91 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = GroupedHistoryEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `GroupedHistoryEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GroupedHistoryEventInit`*"] + pub type GroupedHistoryEventInit; +} +impl GroupedHistoryEventInit { + #[doc = "Construct a new `GroupedHistoryEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GroupedHistoryEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GroupedHistoryEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GroupedHistoryEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GroupedHistoryEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Element")] + #[doc = "Change the `otherBrowser` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `GroupedHistoryEventInit`*"] + pub fn other_browser(&mut self, val: Option<&Element>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("otherBrowser"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_HalfOpenInfoDict.rs b/crates/web-sys/src/features/gen_HalfOpenInfoDict.rs new file mode 100644 index 00000000..a0ab94c1 --- /dev/null +++ b/crates/web-sys/src/features/gen_HalfOpenInfoDict.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = HalfOpenInfoDict ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HalfOpenInfoDict` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HalfOpenInfoDict`*"] + pub type HalfOpenInfoDict; +} +impl HalfOpenInfoDict { + #[doc = "Construct a new `HalfOpenInfoDict`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HalfOpenInfoDict`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `speculative` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HalfOpenInfoDict`*"] + pub fn speculative(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("speculative"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_HashChangeEvent.rs b/crates/web-sys/src/features/gen_HashChangeEvent.rs new file mode 100644 index 00000000..db875cd8 --- /dev/null +++ b/crates/web-sys/src/features/gen_HashChangeEvent.rs @@ -0,0 +1,103 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = HashChangeEvent , typescript_type = "HashChangeEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HashChangeEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub type HashChangeEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "HashChangeEvent" , js_name = oldURL ) ] + #[doc = "Getter for the `oldURL` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/oldURL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub fn old_url(this: &HashChangeEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "HashChangeEvent" , js_name = newURL ) ] + #[doc = "Getter for the `newURL` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/newURL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub fn new_url(this: &HashChangeEvent) -> String; + #[wasm_bindgen(catch, constructor, js_class = "HashChangeEvent")] + #[doc = "The `new HashChangeEvent(..)` constructor, creating a new instance of `HashChangeEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/HashChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "HashChangeEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "HashChangeEvent")] + #[doc = "The `new HashChangeEvent(..)` constructor, creating a new instance of `HashChangeEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/HashChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`, `HashChangeEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &HashChangeEventInit, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent ) ] + #[doc = "The `initHashChangeEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub fn init_hash_change_event(this: &HashChangeEvent, type_arg: &str); + # [ wasm_bindgen ( method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent ) ] + #[doc = "The `initHashChangeEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub fn init_hash_change_event_with_can_bubble_arg( + this: &HashChangeEvent, + type_arg: &str, + can_bubble_arg: bool, + ); + # [ wasm_bindgen ( method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent ) ] + #[doc = "The `initHashChangeEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub fn init_hash_change_event_with_can_bubble_arg_and_cancelable_arg( + this: &HashChangeEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + ); + # [ wasm_bindgen ( method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent ) ] + #[doc = "The `initHashChangeEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub fn init_hash_change_event_with_can_bubble_arg_and_cancelable_arg_and_old_url_arg( + this: &HashChangeEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + old_url_arg: &str, + ); + # [ wasm_bindgen ( method , structural , js_class = "HashChangeEvent" , js_name = initHashChangeEvent ) ] + #[doc = "The `initHashChangeEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HashChangeEvent/initHashChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEvent`*"] + pub fn init_hash_change_event_with_can_bubble_arg_and_cancelable_arg_and_old_url_arg_and_new_url_arg( + this: &HashChangeEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + old_url_arg: &str, + new_url_arg: &str, + ); +} diff --git a/crates/web-sys/src/features/gen_HashChangeEventInit.rs b/crates/web-sys/src/features/gen_HashChangeEventInit.rs new file mode 100644 index 00000000..17bb194c --- /dev/null +++ b/crates/web-sys/src/features/gen_HashChangeEventInit.rs @@ -0,0 +1,101 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = HashChangeEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HashChangeEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] + pub type HashChangeEventInit; +} +impl HashChangeEventInit { + #[doc = "Construct a new `HashChangeEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `newURL` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] + pub fn new_url(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("newURL"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `oldURL` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HashChangeEventInit`*"] + pub fn old_url(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("oldURL"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Headers.rs b/crates/web-sys/src/features/gen_Headers.rs new file mode 100644 index 00000000..54d72dcb --- /dev/null +++ b/crates/web-sys/src/features/gen_Headers.rs @@ -0,0 +1,72 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Headers , typescript_type = "Headers" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Headers` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Headers`*"] + pub type Headers; + #[wasm_bindgen(catch, constructor, js_class = "Headers")] + #[doc = "The `new Headers(..)` constructor, creating a new instance of `Headers`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/Headers)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Headers`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Headers")] + #[doc = "The `new Headers(..)` constructor, creating a new instance of `Headers`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/Headers)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Headers`*"] + pub fn new_with_headers(init: &Headers) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Headers")] + #[doc = "The `new Headers(..)` constructor, creating a new instance of `Headers`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/Headers)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Headers`*"] + pub fn new_with_str_sequence_sequence( + init: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Headers" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Headers`*"] + pub fn append(this: &Headers, name: &str, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Headers" , js_name = delete ) ] + #[doc = "The `delete()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/delete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Headers`*"] + pub fn delete(this: &Headers, name: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Headers" , js_name = get ) ] + #[doc = "The `get()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/get)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Headers`*"] + pub fn get(this: &Headers, name: &str) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Headers" , js_name = has ) ] + #[doc = "The `has()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/has)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Headers`*"] + pub fn has(this: &Headers, name: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Headers" , js_name = set ) ] + #[doc = "The `set()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Headers/set)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Headers`*"] + pub fn set(this: &Headers, name: &str, value: &str) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_HeadersGuardEnum.rs b/crates/web-sys/src/features/gen_HeadersGuardEnum.rs new file mode 100644 index 00000000..0f5c714e --- /dev/null +++ b/crates/web-sys/src/features/gen_HeadersGuardEnum.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `HeadersGuardEnum` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `HeadersGuardEnum`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum HeadersGuardEnum { + None = "none", + Request = "request", + RequestNoCors = "request-no-cors", + Response = "response", + Immutable = "immutable", +} diff --git a/crates/web-sys/src/features/gen_HiddenPluginEventInit.rs b/crates/web-sys/src/features/gen_HiddenPluginEventInit.rs new file mode 100644 index 00000000..b54e0180 --- /dev/null +++ b/crates/web-sys/src/features/gen_HiddenPluginEventInit.rs @@ -0,0 +1,73 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = HiddenPluginEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HiddenPluginEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HiddenPluginEventInit`*"] + pub type HiddenPluginEventInit; +} +impl HiddenPluginEventInit { + #[doc = "Construct a new `HiddenPluginEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HiddenPluginEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HiddenPluginEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HiddenPluginEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HiddenPluginEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_History.rs b/crates/web-sys/src/features/gen_History.rs new file mode 100644 index 00000000..cdc25fa9 --- /dev/null +++ b/crates/web-sys/src/features/gen_History.rs @@ -0,0 +1,118 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = History , typescript_type = "History" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `History` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `History`*"] + pub type History; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "History" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `History`*"] + pub fn length(this: &History) -> Result; + #[cfg(feature = "ScrollRestoration")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "History" , js_name = scrollRestoration ) ] + #[doc = "Getter for the `scrollRestoration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/scrollRestoration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `History`, `ScrollRestoration`*"] + pub fn scroll_restoration(this: &History) -> Result; + #[cfg(feature = "ScrollRestoration")] + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "History" , js_name = scrollRestoration ) ] + #[doc = "Setter for the `scrollRestoration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/scrollRestoration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `History`, `ScrollRestoration`*"] + pub fn set_scroll_restoration(this: &History, value: ScrollRestoration) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "History" , js_name = state ) ] + #[doc = "Getter for the `state` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/state)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `History`*"] + pub fn state(this: &History) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "History" , js_name = back ) ] + #[doc = "The `back()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/back)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `History`*"] + pub fn back(this: &History) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "History" , js_name = forward ) ] + #[doc = "The `forward()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/forward)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `History`*"] + pub fn forward(this: &History) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "History" , js_name = go ) ] + #[doc = "The `go()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/go)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `History`*"] + pub fn go(this: &History) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "History" , js_name = go ) ] + #[doc = "The `go()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/go)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `History`*"] + pub fn go_with_delta(this: &History, delta: i32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "History" , js_name = pushState ) ] + #[doc = "The `pushState()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/pushState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `History`*"] + pub fn push_state( + this: &History, + data: &::wasm_bindgen::JsValue, + title: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "History" , js_name = pushState ) ] + #[doc = "The `pushState()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/pushState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `History`*"] + pub fn push_state_with_url( + this: &History, + data: &::wasm_bindgen::JsValue, + title: &str, + url: Option<&str>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "History" , js_name = replaceState ) ] + #[doc = "The `replaceState()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `History`*"] + pub fn replace_state( + this: &History, + data: &::wasm_bindgen::JsValue, + title: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "History" , js_name = replaceState ) ] + #[doc = "The `replaceState()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `History`*"] + pub fn replace_state_with_url( + this: &History, + data: &::wasm_bindgen::JsValue, + title: &str, + url: Option<&str>, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_HitRegionOptions.rs b/crates/web-sys/src/features/gen_HitRegionOptions.rs new file mode 100644 index 00000000..55756c7b --- /dev/null +++ b/crates/web-sys/src/features/gen_HitRegionOptions.rs @@ -0,0 +1,67 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = HitRegionOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HitRegionOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HitRegionOptions`*"] + pub type HitRegionOptions; +} +impl HitRegionOptions { + #[doc = "Construct a new `HitRegionOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HitRegionOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "Element")] + #[doc = "Change the `control` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `HitRegionOptions`*"] + pub fn control(&mut self, val: Option<&Element>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("control"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HitRegionOptions`*"] + pub fn id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Path2d")] + #[doc = "Change the `path` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HitRegionOptions`, `Path2d`*"] + pub fn path(&mut self, val: Option<&Path2d>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("path"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_HkdfParams.rs b/crates/web-sys/src/features/gen_HkdfParams.rs new file mode 100644 index 00000000..8d76a68f --- /dev/null +++ b/crates/web-sys/src/features/gen_HkdfParams.rs @@ -0,0 +1,83 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = HkdfParams ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HkdfParams` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] + pub type HkdfParams; +} +impl HkdfParams { + #[doc = "Construct a new `HkdfParams`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] + pub fn new( + name: &str, + hash: &::wasm_bindgen::JsValue, + info: &::js_sys::Object, + salt: &::js_sys::Object, + ) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.hash(hash); + ret.info(info); + ret.salt(salt); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `hash` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] + pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hash"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `info` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] + pub fn info(&mut self, val: &::js_sys::Object) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("info"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `salt` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HkdfParams`*"] + pub fn salt(&mut self, val: &::js_sys::Object) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("salt"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_HmacDerivedKeyParams.rs b/crates/web-sys/src/features/gen_HmacDerivedKeyParams.rs new file mode 100644 index 00000000..5600dfa2 --- /dev/null +++ b/crates/web-sys/src/features/gen_HmacDerivedKeyParams.rs @@ -0,0 +1,64 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = HmacDerivedKeyParams ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HmacDerivedKeyParams` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] + pub type HmacDerivedKeyParams; +} +impl HmacDerivedKeyParams { + #[doc = "Construct a new `HmacDerivedKeyParams`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] + pub fn new(name: &str, hash: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.hash(hash); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `hash` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] + pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hash"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `length` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacDerivedKeyParams`*"] + pub fn length(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_HmacImportParams.rs b/crates/web-sys/src/features/gen_HmacImportParams.rs new file mode 100644 index 00000000..5349e846 --- /dev/null +++ b/crates/web-sys/src/features/gen_HmacImportParams.rs @@ -0,0 +1,50 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = HmacImportParams ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HmacImportParams` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacImportParams`*"] + pub type HmacImportParams; +} +impl HmacImportParams { + #[doc = "Construct a new `HmacImportParams`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacImportParams`*"] + pub fn new(name: &str, hash: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.hash(hash); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacImportParams`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `hash` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacImportParams`*"] + pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hash"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_HmacKeyAlgorithm.rs b/crates/web-sys/src/features/gen_HmacKeyAlgorithm.rs new file mode 100644 index 00000000..b028235b --- /dev/null +++ b/crates/web-sys/src/features/gen_HmacKeyAlgorithm.rs @@ -0,0 +1,67 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = HmacKeyAlgorithm ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HmacKeyAlgorithm` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacKeyAlgorithm`*"] + pub type HmacKeyAlgorithm; +} +impl HmacKeyAlgorithm { + #[cfg(feature = "KeyAlgorithm")] + #[doc = "Construct a new `HmacKeyAlgorithm`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacKeyAlgorithm`, `KeyAlgorithm`*"] + pub fn new(name: &str, hash: &KeyAlgorithm, length: u32) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.hash(hash); + ret.length(length); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacKeyAlgorithm`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "KeyAlgorithm")] + #[doc = "Change the `hash` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacKeyAlgorithm`, `KeyAlgorithm`*"] + pub fn hash(&mut self, val: &KeyAlgorithm) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hash"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `length` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacKeyAlgorithm`*"] + pub fn length(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_HmacKeyGenParams.rs b/crates/web-sys/src/features/gen_HmacKeyGenParams.rs new file mode 100644 index 00000000..041217ce --- /dev/null +++ b/crates/web-sys/src/features/gen_HmacKeyGenParams.rs @@ -0,0 +1,64 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = HmacKeyGenParams ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HmacKeyGenParams` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] + pub type HmacKeyGenParams; +} +impl HmacKeyGenParams { + #[doc = "Construct a new `HmacKeyGenParams`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] + pub fn new(name: &str, hash: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.hash(hash); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `hash` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] + pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hash"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `length` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HmacKeyGenParams`*"] + pub fn length(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_HtmlAllCollection.rs b/crates/web-sys/src/features/gen_HtmlAllCollection.rs new file mode 100644 index 00000000..1e9b294b --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlAllCollection.rs @@ -0,0 +1,58 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = HTMLAllCollection , typescript_type = "HTMLAllCollection" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlAllCollection` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"] + pub type HtmlAllCollection; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAllCollection" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"] + pub fn length(this: &HtmlAllCollection) -> u32; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( method , structural , js_class = "HTMLAllCollection" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`, `Node`*"] + pub fn item_with_index(this: &HtmlAllCollection, index: u32) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "HTMLAllCollection" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"] + pub fn item_with_name(this: &HtmlAllCollection, name: &str) -> Option<::js_sys::Object>; + # [ wasm_bindgen ( method , structural , js_class = "HTMLAllCollection" , js_name = namedItem ) ] + #[doc = "The `namedItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAllCollection/namedItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"] + pub fn named_item(this: &HtmlAllCollection, name: &str) -> Option<::js_sys::Object>; + #[cfg(feature = "Node")] + #[wasm_bindgen(method, structural, js_class = "HTMLAllCollection", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`, `Node`*"] + pub fn get_with_index(this: &HtmlAllCollection, index: u32) -> Option; + #[wasm_bindgen(method, structural, js_class = "HTMLAllCollection", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`*"] + pub fn get_with_name(this: &HtmlAllCollection, name: &str) -> Option<::js_sys::Object>; +} diff --git a/crates/web-sys/src/features/gen_HtmlAnchorElement.rs b/crates/web-sys/src/features/gen_HtmlAnchorElement.rs new file mode 100644 index 00000000..9be9a258 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlAnchorElement.rs @@ -0,0 +1,351 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLAnchorElement , typescript_type = "HTMLAnchorElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlAnchorElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub type HtmlAnchorElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = target ) ] + #[doc = "Getter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn target(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = target ) ] + #[doc = "Setter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_target(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = download ) ] + #[doc = "Getter for the `download` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/download)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn download(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = download ) ] + #[doc = "Setter for the `download` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/download)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_download(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = ping ) ] + #[doc = "Getter for the `ping` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/ping)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn ping(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = ping ) ] + #[doc = "Setter for the `ping` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/ping)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_ping(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = rel ) ] + #[doc = "Getter for the `rel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn rel(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = rel ) ] + #[doc = "Setter for the `rel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_rel(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = referrerPolicy ) ] + #[doc = "Getter for the `referrerPolicy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/referrerPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn referrer_policy(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = referrerPolicy ) ] + #[doc = "Setter for the `referrerPolicy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/referrerPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_referrer_policy(this: &HtmlAnchorElement, value: &str); + #[cfg(feature = "DomTokenList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = relList ) ] + #[doc = "Getter for the `relList` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/relList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlAnchorElement`*"] + pub fn rel_list(this: &HtmlAnchorElement) -> DomTokenList; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = hreflang ) ] + #[doc = "Getter for the `hreflang` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hreflang)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn hreflang(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = hreflang ) ] + #[doc = "Setter for the `hreflang` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hreflang)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_hreflang(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn type_(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_type(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLAnchorElement" , js_name = text ) ] + #[doc = "Getter for the `text` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn text(this: &HtmlAnchorElement) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "HTMLAnchorElement" , js_name = text ) ] + #[doc = "Setter for the `text` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_text(this: &HtmlAnchorElement, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = coords ) ] + #[doc = "Getter for the `coords` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/coords)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn coords(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = coords ) ] + #[doc = "Setter for the `coords` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/coords)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_coords(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = charset ) ] + #[doc = "Getter for the `charset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/charset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn charset(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = charset ) ] + #[doc = "Setter for the `charset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/charset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_charset(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn name(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_name(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = rev ) ] + #[doc = "Getter for the `rev` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rev)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn rev(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = rev ) ] + #[doc = "Setter for the `rev` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/rev)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_rev(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = shape ) ] + #[doc = "Getter for the `shape` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/shape)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn shape(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = shape ) ] + #[doc = "Setter for the `shape` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/shape)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_shape(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn href(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = href ) ] + #[doc = "Setter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_href(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = origin ) ] + #[doc = "Getter for the `origin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/origin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn origin(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = protocol ) ] + #[doc = "Getter for the `protocol` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/protocol)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn protocol(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = protocol ) ] + #[doc = "Setter for the `protocol` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/protocol)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_protocol(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = username ) ] + #[doc = "Getter for the `username` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/username)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn username(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = username ) ] + #[doc = "Setter for the `username` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/username)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_username(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = password ) ] + #[doc = "Getter for the `password` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/password)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn password(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = password ) ] + #[doc = "Setter for the `password` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/password)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_password(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = host ) ] + #[doc = "Getter for the `host` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/host)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn host(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = host ) ] + #[doc = "Setter for the `host` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/host)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_host(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = hostname ) ] + #[doc = "Getter for the `hostname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hostname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn hostname(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = hostname ) ] + #[doc = "Setter for the `hostname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hostname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_hostname(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = port ) ] + #[doc = "Getter for the `port` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/port)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn port(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = port ) ] + #[doc = "Setter for the `port` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/port)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_port(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = pathname ) ] + #[doc = "Getter for the `pathname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/pathname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn pathname(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = pathname ) ] + #[doc = "Setter for the `pathname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/pathname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_pathname(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = search ) ] + #[doc = "Getter for the `search` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/search)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn search(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = search ) ] + #[doc = "Setter for the `search` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/search)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_search(this: &HtmlAnchorElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAnchorElement" , js_name = hash ) ] + #[doc = "Getter for the `hash` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hash)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn hash(this: &HtmlAnchorElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAnchorElement" , js_name = hash ) ] + #[doc = "Setter for the `hash` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/hash)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAnchorElement`*"] + pub fn set_hash(this: &HtmlAnchorElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlAreaElement.rs b/crates/web-sys/src/features/gen_HtmlAreaElement.rs new file mode 100644 index 00000000..fd5e903a --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlAreaElement.rs @@ -0,0 +1,295 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLAreaElement , typescript_type = "HTMLAreaElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlAreaElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub type HtmlAreaElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = alt ) ] + #[doc = "Getter for the `alt` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/alt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn alt(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = alt ) ] + #[doc = "Setter for the `alt` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/alt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_alt(this: &HtmlAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = coords ) ] + #[doc = "Getter for the `coords` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/coords)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn coords(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = coords ) ] + #[doc = "Setter for the `coords` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/coords)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_coords(this: &HtmlAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = shape ) ] + #[doc = "Getter for the `shape` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/shape)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn shape(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = shape ) ] + #[doc = "Setter for the `shape` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/shape)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_shape(this: &HtmlAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = target ) ] + #[doc = "Getter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn target(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = target ) ] + #[doc = "Setter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_target(this: &HtmlAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = download ) ] + #[doc = "Getter for the `download` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/download)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn download(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = download ) ] + #[doc = "Setter for the `download` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/download)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_download(this: &HtmlAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = ping ) ] + #[doc = "Getter for the `ping` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/ping)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn ping(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = ping ) ] + #[doc = "Setter for the `ping` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/ping)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_ping(this: &HtmlAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = rel ) ] + #[doc = "Getter for the `rel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/rel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn rel(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = rel ) ] + #[doc = "Setter for the `rel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/rel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_rel(this: &HtmlAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = referrerPolicy ) ] + #[doc = "Getter for the `referrerPolicy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/referrerPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn referrer_policy(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = referrerPolicy ) ] + #[doc = "Setter for the `referrerPolicy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/referrerPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_referrer_policy(this: &HtmlAreaElement, value: &str); + #[cfg(feature = "DomTokenList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = relList ) ] + #[doc = "Getter for the `relList` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/relList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlAreaElement`*"] + pub fn rel_list(this: &HtmlAreaElement) -> DomTokenList; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = noHref ) ] + #[doc = "Getter for the `noHref` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/noHref)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn no_href(this: &HtmlAreaElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = noHref ) ] + #[doc = "Setter for the `noHref` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/noHref)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_no_href(this: &HtmlAreaElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn href(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = href ) ] + #[doc = "Setter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_href(this: &HtmlAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = origin ) ] + #[doc = "Getter for the `origin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/origin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn origin(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = protocol ) ] + #[doc = "Getter for the `protocol` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/protocol)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn protocol(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = protocol ) ] + #[doc = "Setter for the `protocol` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/protocol)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_protocol(this: &HtmlAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = username ) ] + #[doc = "Getter for the `username` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/username)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn username(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = username ) ] + #[doc = "Setter for the `username` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/username)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_username(this: &HtmlAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = password ) ] + #[doc = "Getter for the `password` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/password)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn password(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = password ) ] + #[doc = "Setter for the `password` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/password)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_password(this: &HtmlAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = host ) ] + #[doc = "Getter for the `host` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/host)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn host(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = host ) ] + #[doc = "Setter for the `host` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/host)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_host(this: &HtmlAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = hostname ) ] + #[doc = "Getter for the `hostname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/hostname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn hostname(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = hostname ) ] + #[doc = "Setter for the `hostname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/hostname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_hostname(this: &HtmlAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = port ) ] + #[doc = "Getter for the `port` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/port)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn port(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = port ) ] + #[doc = "Setter for the `port` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/port)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_port(this: &HtmlAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = pathname ) ] + #[doc = "Getter for the `pathname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/pathname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn pathname(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = pathname ) ] + #[doc = "Setter for the `pathname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/pathname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_pathname(this: &HtmlAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = search ) ] + #[doc = "Getter for the `search` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/search)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn search(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = search ) ] + #[doc = "Setter for the `search` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/search)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_search(this: &HtmlAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLAreaElement" , js_name = hash ) ] + #[doc = "Getter for the `hash` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/hash)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn hash(this: &HtmlAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLAreaElement" , js_name = hash ) ] + #[doc = "Setter for the `hash` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAreaElement/hash)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAreaElement`*"] + pub fn set_hash(this: &HtmlAreaElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlAudioElement.rs b/crates/web-sys/src/features/gen_HtmlAudioElement.rs new file mode 100644 index 00000000..04322ec4 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlAudioElement.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlMediaElement , extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLAudioElement , typescript_type = "HTMLAudioElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlAudioElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAudioElement`*"] + pub type HtmlAudioElement; + #[wasm_bindgen(catch, constructor, js_class = "Audio")] + #[doc = "The `new HtmlAudioElement(..)` constructor, creating a new instance of `HtmlAudioElement`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement/HTMLAudioElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAudioElement`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Audio")] + #[doc = "The `new HtmlAudioElement(..)` constructor, creating a new instance of `HtmlAudioElement`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLAudioElement/HTMLAudioElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAudioElement`*"] + pub fn new_with_src(src: &str) -> Result; +} diff --git a/crates/web-sys/src/features/gen_HtmlBaseElement.rs b/crates/web-sys/src/features/gen_HtmlBaseElement.rs new file mode 100644 index 00000000..4faa30df --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlBaseElement.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLBaseElement , typescript_type = "HTMLBaseElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlBaseElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"] + pub type HtmlBaseElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBaseElement" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"] + pub fn href(this: &HtmlBaseElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBaseElement" , js_name = href ) ] + #[doc = "Setter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"] + pub fn set_href(this: &HtmlBaseElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBaseElement" , js_name = target ) ] + #[doc = "Getter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"] + pub fn target(this: &HtmlBaseElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBaseElement" , js_name = target ) ] + #[doc = "Setter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBaseElement/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBaseElement`*"] + pub fn set_target(this: &HtmlBaseElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlBodyElement.rs b/crates/web-sys/src/features/gen_HtmlBodyElement.rs new file mode 100644 index 00000000..0d555932 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlBodyElement.rs @@ -0,0 +1,294 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLBodyElement , typescript_type = "HTMLBodyElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlBodyElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub type HtmlBodyElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = text ) ] + #[doc = "Getter for the `text` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn text(this: &HtmlBodyElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = text ) ] + #[doc = "Setter for the `text` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_text(this: &HtmlBodyElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = link ) ] + #[doc = "Getter for the `link` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/link)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn link(this: &HtmlBodyElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = link ) ] + #[doc = "Setter for the `link` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/link)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_link(this: &HtmlBodyElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = vLink ) ] + #[doc = "Getter for the `vLink` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/vLink)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn v_link(this: &HtmlBodyElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = vLink ) ] + #[doc = "Setter for the `vLink` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/vLink)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_v_link(this: &HtmlBodyElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = aLink ) ] + #[doc = "Getter for the `aLink` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/aLink)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn a_link(this: &HtmlBodyElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = aLink ) ] + #[doc = "Setter for the `aLink` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/aLink)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_a_link(this: &HtmlBodyElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = bgColor ) ] + #[doc = "Getter for the `bgColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/bgColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn bg_color(this: &HtmlBodyElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = bgColor ) ] + #[doc = "Setter for the `bgColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/bgColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_bg_color(this: &HtmlBodyElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = background ) ] + #[doc = "Getter for the `background` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/background)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn background(this: &HtmlBodyElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = background ) ] + #[doc = "Setter for the `background` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/background)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_background(this: &HtmlBodyElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = onafterprint ) ] + #[doc = "Getter for the `onafterprint` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onafterprint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn onafterprint(this: &HtmlBodyElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = onafterprint ) ] + #[doc = "Setter for the `onafterprint` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onafterprint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_onafterprint(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = onbeforeprint ) ] + #[doc = "Getter for the `onbeforeprint` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onbeforeprint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn onbeforeprint(this: &HtmlBodyElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = onbeforeprint ) ] + #[doc = "Setter for the `onbeforeprint` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onbeforeprint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_onbeforeprint(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = onbeforeunload ) ] + #[doc = "Getter for the `onbeforeunload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onbeforeunload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn onbeforeunload(this: &HtmlBodyElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = onbeforeunload ) ] + #[doc = "Setter for the `onbeforeunload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onbeforeunload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_onbeforeunload(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = onhashchange ) ] + #[doc = "Getter for the `onhashchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onhashchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn onhashchange(this: &HtmlBodyElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = onhashchange ) ] + #[doc = "Setter for the `onhashchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onhashchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_onhashchange(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = onlanguagechange ) ] + #[doc = "Getter for the `onlanguagechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onlanguagechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn onlanguagechange(this: &HtmlBodyElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = onlanguagechange ) ] + #[doc = "Setter for the `onlanguagechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onlanguagechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_onlanguagechange(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = onmessage ) ] + #[doc = "Getter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn onmessage(this: &HtmlBodyElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = onmessage ) ] + #[doc = "Setter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_onmessage(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = onmessageerror ) ] + #[doc = "Getter for the `onmessageerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onmessageerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn onmessageerror(this: &HtmlBodyElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = onmessageerror ) ] + #[doc = "Setter for the `onmessageerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onmessageerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_onmessageerror(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = onoffline ) ] + #[doc = "Getter for the `onoffline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onoffline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn onoffline(this: &HtmlBodyElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = onoffline ) ] + #[doc = "Setter for the `onoffline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onoffline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_onoffline(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = ononline ) ] + #[doc = "Getter for the `ononline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/ononline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn ononline(this: &HtmlBodyElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = ononline ) ] + #[doc = "Setter for the `ononline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/ononline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_ononline(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = onpagehide ) ] + #[doc = "Getter for the `onpagehide` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpagehide)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn onpagehide(this: &HtmlBodyElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = onpagehide ) ] + #[doc = "Setter for the `onpagehide` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpagehide)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_onpagehide(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = onpageshow ) ] + #[doc = "Getter for the `onpageshow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpageshow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn onpageshow(this: &HtmlBodyElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = onpageshow ) ] + #[doc = "Setter for the `onpageshow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpageshow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_onpageshow(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = onpopstate ) ] + #[doc = "Getter for the `onpopstate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpopstate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn onpopstate(this: &HtmlBodyElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = onpopstate ) ] + #[doc = "Setter for the `onpopstate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onpopstate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_onpopstate(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = onstorage ) ] + #[doc = "Getter for the `onstorage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onstorage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn onstorage(this: &HtmlBodyElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = onstorage ) ] + #[doc = "Setter for the `onstorage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onstorage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_onstorage(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBodyElement" , js_name = onunload ) ] + #[doc = "Getter for the `onunload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onunload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn onunload(this: &HtmlBodyElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBodyElement" , js_name = onunload ) ] + #[doc = "Setter for the `onunload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBodyElement/onunload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBodyElement`*"] + pub fn set_onunload(this: &HtmlBodyElement, value: Option<&::js_sys::Function>); +} diff --git a/crates/web-sys/src/features/gen_HtmlBrElement.rs b/crates/web-sys/src/features/gen_HtmlBrElement.rs new file mode 100644 index 00000000..4c68aab6 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlBrElement.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLBRElement , typescript_type = "HTMLBRElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlBrElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBRElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBrElement`*"] + pub type HtmlBrElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLBRElement" , js_name = clear ) ] + #[doc = "Getter for the `clear` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBRElement/clear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBrElement`*"] + pub fn clear(this: &HtmlBrElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLBRElement" , js_name = clear ) ] + #[doc = "Setter for the `clear` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLBRElement/clear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlBrElement`*"] + pub fn set_clear(this: &HtmlBrElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlButtonElement.rs b/crates/web-sys/src/features/gen_HtmlButtonElement.rs new file mode 100644 index 00000000..ddfe6cb4 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlButtonElement.rs @@ -0,0 +1,213 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLButtonElement , typescript_type = "HTMLButtonElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlButtonElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub type HtmlButtonElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLButtonElement" , js_name = autofocus ) ] + #[doc = "Getter for the `autofocus` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/autofocus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn autofocus(this: &HtmlButtonElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLButtonElement" , js_name = autofocus ) ] + #[doc = "Setter for the `autofocus` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/autofocus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn set_autofocus(this: &HtmlButtonElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLButtonElement" , js_name = disabled ) ] + #[doc = "Getter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn disabled(this: &HtmlButtonElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLButtonElement" , js_name = disabled ) ] + #[doc = "Setter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn set_disabled(this: &HtmlButtonElement, value: bool); + #[cfg(feature = "HtmlFormElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLButtonElement" , js_name = form ) ] + #[doc = "Getter for the `form` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/form)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`, `HtmlFormElement`*"] + pub fn form(this: &HtmlButtonElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLButtonElement" , js_name = formAction ) ] + #[doc = "Getter for the `formAction` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formAction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn form_action(this: &HtmlButtonElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLButtonElement" , js_name = formAction ) ] + #[doc = "Setter for the `formAction` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formAction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn set_form_action(this: &HtmlButtonElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLButtonElement" , js_name = formEnctype ) ] + #[doc = "Getter for the `formEnctype` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formEnctype)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn form_enctype(this: &HtmlButtonElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLButtonElement" , js_name = formEnctype ) ] + #[doc = "Setter for the `formEnctype` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formEnctype)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn set_form_enctype(this: &HtmlButtonElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLButtonElement" , js_name = formMethod ) ] + #[doc = "Getter for the `formMethod` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formMethod)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn form_method(this: &HtmlButtonElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLButtonElement" , js_name = formMethod ) ] + #[doc = "Setter for the `formMethod` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formMethod)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn set_form_method(this: &HtmlButtonElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLButtonElement" , js_name = formNoValidate ) ] + #[doc = "Getter for the `formNoValidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formNoValidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn form_no_validate(this: &HtmlButtonElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLButtonElement" , js_name = formNoValidate ) ] + #[doc = "Setter for the `formNoValidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formNoValidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn set_form_no_validate(this: &HtmlButtonElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLButtonElement" , js_name = formTarget ) ] + #[doc = "Getter for the `formTarget` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formTarget)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn form_target(this: &HtmlButtonElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLButtonElement" , js_name = formTarget ) ] + #[doc = "Setter for the `formTarget` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/formTarget)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn set_form_target(this: &HtmlButtonElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLButtonElement" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn name(this: &HtmlButtonElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLButtonElement" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn set_name(this: &HtmlButtonElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLButtonElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn type_(this: &HtmlButtonElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLButtonElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn set_type(this: &HtmlButtonElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLButtonElement" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn value(this: &HtmlButtonElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLButtonElement" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn set_value(this: &HtmlButtonElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLButtonElement" , js_name = willValidate ) ] + #[doc = "Getter for the `willValidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/willValidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn will_validate(this: &HtmlButtonElement) -> bool; + #[cfg(feature = "ValidityState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLButtonElement" , js_name = validity ) ] + #[doc = "Getter for the `validity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/validity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`, `ValidityState`*"] + pub fn validity(this: &HtmlButtonElement) -> ValidityState; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLButtonElement" , js_name = validationMessage ) ] + #[doc = "Getter for the `validationMessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/validationMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn validation_message(this: &HtmlButtonElement) -> Result; + #[cfg(feature = "NodeList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLButtonElement" , js_name = labels ) ] + #[doc = "Getter for the `labels` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/labels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`, `NodeList`*"] + pub fn labels(this: &HtmlButtonElement) -> NodeList; + # [ wasm_bindgen ( method , structural , js_class = "HTMLButtonElement" , js_name = checkValidity ) ] + #[doc = "The `checkValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/checkValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn check_validity(this: &HtmlButtonElement) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "HTMLButtonElement" , js_name = reportValidity ) ] + #[doc = "The `reportValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/reportValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn report_validity(this: &HtmlButtonElement) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "HTMLButtonElement" , js_name = setCustomValidity ) ] + #[doc = "The `setCustomValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLButtonElement/setCustomValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlButtonElement`*"] + pub fn set_custom_validity(this: &HtmlButtonElement, error: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlCanvasElement.rs b/crates/web-sys/src/features/gen_HtmlCanvasElement.rs new file mode 100644 index 00000000..e704adcc --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlCanvasElement.rs @@ -0,0 +1,128 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLCanvasElement , typescript_type = "HTMLCanvasElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlCanvasElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] + pub type HtmlCanvasElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLCanvasElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] + pub fn width(this: &HtmlCanvasElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLCanvasElement" , js_name = width ) ] + #[doc = "Setter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] + pub fn set_width(this: &HtmlCanvasElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLCanvasElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] + pub fn height(this: &HtmlCanvasElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLCanvasElement" , js_name = height ) ] + #[doc = "Setter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] + pub fn set_height(this: &HtmlCanvasElement, value: u32); + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLCanvasElement" , js_name = getContext ) ] + #[doc = "The `getContext()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] + pub fn get_context( + this: &HtmlCanvasElement, + context_id: &str, + ) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLCanvasElement" , js_name = getContext ) ] + #[doc = "The `getContext()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/getContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] + pub fn get_context_with_context_options( + this: &HtmlCanvasElement, + context_id: &str, + context_options: &::wasm_bindgen::JsValue, + ) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toBlob ) ] + #[doc = "The `toBlob()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] + pub fn to_blob(this: &HtmlCanvasElement, callback: &::js_sys::Function) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toBlob ) ] + #[doc = "The `toBlob()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] + pub fn to_blob_with_type( + this: &HtmlCanvasElement, + callback: &::js_sys::Function, + type_: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toBlob ) ] + #[doc = "The `toBlob()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toBlob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] + pub fn to_blob_with_type_and_encoder_options( + this: &HtmlCanvasElement, + callback: &::js_sys::Function, + type_: &str, + encoder_options: &::wasm_bindgen::JsValue, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toDataURL ) ] + #[doc = "The `toDataURL()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] + pub fn to_data_url(this: &HtmlCanvasElement) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toDataURL ) ] + #[doc = "The `toDataURL()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] + pub fn to_data_url_with_type(this: &HtmlCanvasElement, type_: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLCanvasElement" , js_name = toDataURL ) ] + #[doc = "The `toDataURL()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`*"] + pub fn to_data_url_with_type_and_encoder_options( + this: &HtmlCanvasElement, + type_: &str, + encoder_options: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(feature = "OffscreenCanvas")] + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLCanvasElement" , js_name = transferControlToOffscreen ) ] + #[doc = "The `transferControlToOffscreen()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/transferControlToOffscreen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `OffscreenCanvas`*"] + pub fn transfer_control_to_offscreen( + this: &HtmlCanvasElement, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_HtmlCollection.rs b/crates/web-sys/src/features/gen_HtmlCollection.rs new file mode 100644 index 00000000..e1511082 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlCollection.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = HTMLCollection , typescript_type = "HTMLCollection" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlCollection` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`*"] + pub type HtmlCollection; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLCollection" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`*"] + pub fn length(this: &HtmlCollection) -> u32; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( method , structural , js_class = "HTMLCollection" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] + pub fn item(this: &HtmlCollection, index: u32) -> Option; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( method , structural , js_class = "HTMLCollection" , js_name = namedItem ) ] + #[doc = "The `namedItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection/namedItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] + pub fn named_item(this: &HtmlCollection, name: &str) -> Option; + #[cfg(feature = "Element")] + #[wasm_bindgen(method, structural, js_class = "HTMLCollection", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] + pub fn get_with_index(this: &HtmlCollection, index: u32) -> Option; + #[cfg(feature = "Element")] + #[wasm_bindgen(method, structural, js_class = "HTMLCollection", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `HtmlCollection`*"] + pub fn get_with_name(this: &HtmlCollection, name: &str) -> Option; +} diff --git a/crates/web-sys/src/features/gen_HtmlDListElement.rs b/crates/web-sys/src/features/gen_HtmlDListElement.rs new file mode 100644 index 00000000..59302c76 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlDListElement.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDListElement , typescript_type = "HTMLDListElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlDListElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDListElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDListElement`*"] + pub type HtmlDListElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLDListElement" , js_name = compact ) ] + #[doc = "Getter for the `compact` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDListElement/compact)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDListElement`*"] + pub fn compact(this: &HtmlDListElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLDListElement" , js_name = compact ) ] + #[doc = "Setter for the `compact` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDListElement/compact)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDListElement`*"] + pub fn set_compact(this: &HtmlDListElement, value: bool); +} diff --git a/crates/web-sys/src/features/gen_HtmlDataElement.rs b/crates/web-sys/src/features/gen_HtmlDataElement.rs new file mode 100644 index 00000000..3f572e84 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlDataElement.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDataElement , typescript_type = "HTMLDataElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlDataElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDataElement`*"] + pub type HtmlDataElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLDataElement" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDataElement`*"] + pub fn value(this: &HtmlDataElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLDataElement" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDataElement`*"] + pub fn set_value(this: &HtmlDataElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlDataListElement.rs b/crates/web-sys/src/features/gen_HtmlDataListElement.rs new file mode 100644 index 00000000..a1b8bc30 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlDataListElement.rs @@ -0,0 +1,22 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDataListElement , typescript_type = "HTMLDataListElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlDataListElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataListElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDataListElement`*"] + pub type HtmlDataListElement; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLDataListElement" , js_name = options ) ] + #[doc = "Getter for the `options` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataListElement/options)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlDataListElement`*"] + pub fn options(this: &HtmlDataListElement) -> HtmlCollection; +} diff --git a/crates/web-sys/src/features/gen_HtmlDetailsElement.rs b/crates/web-sys/src/features/gen_HtmlDetailsElement.rs new file mode 100644 index 00000000..ee484750 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlDetailsElement.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDetailsElement , typescript_type = "HTMLDetailsElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlDetailsElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDetailsElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDetailsElement`*"] + pub type HtmlDetailsElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLDetailsElement" , js_name = open ) ] + #[doc = "Getter for the `open` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDetailsElement/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDetailsElement`*"] + pub fn open(this: &HtmlDetailsElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLDetailsElement" , js_name = open ) ] + #[doc = "Setter for the `open` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDetailsElement/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDetailsElement`*"] + pub fn set_open(this: &HtmlDetailsElement, value: bool); +} diff --git a/crates/web-sys/src/features/gen_HtmlDialogElement.rs b/crates/web-sys/src/features/gen_HtmlDialogElement.rs new file mode 100644 index 00000000..99fc6424 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlDialogElement.rs @@ -0,0 +1,70 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDialogElement , typescript_type = "HTMLDialogElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlDialogElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] + pub type HtmlDialogElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLDialogElement" , js_name = open ) ] + #[doc = "Getter for the `open` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] + pub fn open(this: &HtmlDialogElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLDialogElement" , js_name = open ) ] + #[doc = "Setter for the `open` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] + pub fn set_open(this: &HtmlDialogElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLDialogElement" , js_name = returnValue ) ] + #[doc = "Getter for the `returnValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/returnValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] + pub fn return_value(this: &HtmlDialogElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLDialogElement" , js_name = returnValue ) ] + #[doc = "Setter for the `returnValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/returnValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] + pub fn set_return_value(this: &HtmlDialogElement, value: &str); + # [ wasm_bindgen ( method , structural , js_class = "HTMLDialogElement" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] + pub fn close(this: &HtmlDialogElement); + # [ wasm_bindgen ( method , structural , js_class = "HTMLDialogElement" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] + pub fn close_with_return_value(this: &HtmlDialogElement, return_value: &str); + # [ wasm_bindgen ( method , structural , js_class = "HTMLDialogElement" , js_name = show ) ] + #[doc = "The `show()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/show)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] + pub fn show(this: &HtmlDialogElement); + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDialogElement" , js_name = showModal ) ] + #[doc = "The `showModal()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/showModal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDialogElement`*"] + pub fn show_modal(this: &HtmlDialogElement) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_HtmlDirectoryElement.rs b/crates/web-sys/src/features/gen_HtmlDirectoryElement.rs new file mode 100644 index 00000000..dfd9056d --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlDirectoryElement.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDirectoryElement , typescript_type = "HTMLDirectoryElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlDirectoryElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDirectoryElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDirectoryElement`*"] + pub type HtmlDirectoryElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLDirectoryElement" , js_name = compact ) ] + #[doc = "Getter for the `compact` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDirectoryElement/compact)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDirectoryElement`*"] + pub fn compact(this: &HtmlDirectoryElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLDirectoryElement" , js_name = compact ) ] + #[doc = "Setter for the `compact` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDirectoryElement/compact)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDirectoryElement`*"] + pub fn set_compact(this: &HtmlDirectoryElement, value: bool); +} diff --git a/crates/web-sys/src/features/gen_HtmlDivElement.rs b/crates/web-sys/src/features/gen_HtmlDivElement.rs new file mode 100644 index 00000000..972de79e --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlDivElement.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDivElement , typescript_type = "HTMLDivElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlDivElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDivElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDivElement`*"] + pub type HtmlDivElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLDivElement" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDivElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDivElement`*"] + pub fn align(this: &HtmlDivElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLDivElement" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDivElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDivElement`*"] + pub fn set_align(this: &HtmlDivElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlDocument.rs b/crates/web-sys/src/features/gen_HtmlDocument.rs new file mode 100644 index 00000000..c9b015f9 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlDocument.rs @@ -0,0 +1,482 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Document , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLDocument , typescript_type = "HTMLDocument" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlDocument` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub type HtmlDocument; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLDocument" , js_name = domain ) ] + #[doc = "Getter for the `domain` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/domain)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn domain(this: &HtmlDocument) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLDocument" , js_name = domain ) ] + #[doc = "Setter for the `domain` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/domain)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn set_domain(this: &HtmlDocument, value: &str); + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLDocument" , js_name = cookie ) ] + #[doc = "Getter for the `cookie` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/cookie)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn cookie(this: &HtmlDocument) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "HTMLDocument" , js_name = cookie ) ] + #[doc = "Setter for the `cookie` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/cookie)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn set_cookie(this: &HtmlDocument, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLDocument" , js_name = designMode ) ] + #[doc = "Getter for the `designMode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/designMode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn design_mode(this: &HtmlDocument) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLDocument" , js_name = designMode ) ] + #[doc = "Setter for the `designMode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/designMode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn set_design_mode(this: &HtmlDocument, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLDocument" , js_name = fgColor ) ] + #[doc = "Getter for the `fgColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/fgColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn fg_color(this: &HtmlDocument) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLDocument" , js_name = fgColor ) ] + #[doc = "Setter for the `fgColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/fgColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn set_fg_color(this: &HtmlDocument, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLDocument" , js_name = linkColor ) ] + #[doc = "Getter for the `linkColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/linkColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn link_color(this: &HtmlDocument) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLDocument" , js_name = linkColor ) ] + #[doc = "Setter for the `linkColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/linkColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn set_link_color(this: &HtmlDocument, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLDocument" , js_name = vlinkColor ) ] + #[doc = "Getter for the `vlinkColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/vlinkColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn vlink_color(this: &HtmlDocument) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLDocument" , js_name = vlinkColor ) ] + #[doc = "Setter for the `vlinkColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/vlinkColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn set_vlink_color(this: &HtmlDocument, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLDocument" , js_name = alinkColor ) ] + #[doc = "Getter for the `alinkColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/alinkColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn alink_color(this: &HtmlDocument) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLDocument" , js_name = alinkColor ) ] + #[doc = "Setter for the `alinkColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/alinkColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn set_alink_color(this: &HtmlDocument, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLDocument" , js_name = bgColor ) ] + #[doc = "Getter for the `bgColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/bgColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn bg_color(this: &HtmlDocument) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLDocument" , js_name = bgColor ) ] + #[doc = "Setter for the `bgColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/bgColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn set_bg_color(this: &HtmlDocument, value: &str); + #[cfg(feature = "HtmlAllCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLDocument" , js_name = all ) ] + #[doc = "Getter for the `all` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/all)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlAllCollection`, `HtmlDocument`*"] + pub fn all(this: &HtmlDocument) -> HtmlAllCollection; + # [ wasm_bindgen ( method , structural , js_class = "HTMLDocument" , js_name = captureEvents ) ] + #[doc = "The `captureEvents()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/captureEvents)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn capture_events(this: &HtmlDocument); + # [ wasm_bindgen ( method , structural , js_class = "HTMLDocument" , js_name = clear ) ] + #[doc = "The `clear()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/clear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn clear(this: &HtmlDocument); + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn close(this: &HtmlDocument) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = execCommand ) ] + #[doc = "The `execCommand()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/execCommand)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn exec_command(this: &HtmlDocument, command_id: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = execCommand ) ] + #[doc = "The `execCommand()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/execCommand)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn exec_command_with_show_ui( + this: &HtmlDocument, + command_id: &str, + show_ui: bool, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = execCommand ) ] + #[doc = "The `execCommand()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/execCommand)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn exec_command_with_show_ui_and_value( + this: &HtmlDocument, + command_id: &str, + show_ui: bool, + value: &str, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn open(this: &HtmlDocument) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn open_with_type(this: &HtmlDocument, type_: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn open_with_type_and_replace( + this: &HtmlDocument, + type_: &str, + replace: &str, + ) -> Result; + #[cfg(feature = "Window")] + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`, `Window`*"] + pub fn open_with_url_and_name_and_features( + this: &HtmlDocument, + url: &str, + name: &str, + features: &str, + ) -> Result, JsValue>; + #[cfg(feature = "Window")] + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`, `Window`*"] + pub fn open_with_url_and_name_and_features_and_replace( + this: &HtmlDocument, + url: &str, + name: &str, + features: &str, + replace: bool, + ) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = queryCommandEnabled ) ] + #[doc = "The `queryCommandEnabled()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandEnabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn query_command_enabled(this: &HtmlDocument, command_id: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = queryCommandIndeterm ) ] + #[doc = "The `queryCommandIndeterm()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandIndeterm)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn query_command_indeterm(this: &HtmlDocument, command_id: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = queryCommandState ) ] + #[doc = "The `queryCommandState()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn query_command_state(this: &HtmlDocument, command_id: &str) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "HTMLDocument" , js_name = queryCommandSupported ) ] + #[doc = "The `queryCommandSupported()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandSupported)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn query_command_supported(this: &HtmlDocument, command_id: &str) -> bool; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = queryCommandValue ) ] + #[doc = "The `queryCommandValue()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/queryCommandValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn query_command_value(this: &HtmlDocument, command_id: &str) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "HTMLDocument" , js_name = releaseEvents ) ] + #[doc = "The `releaseEvents()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/releaseEvents)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn release_events(this: &HtmlDocument); + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "HTMLDocument" , js_name = write ) ] + #[doc = "The `write()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn write(this: &HtmlDocument, text: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = write ) ] + #[doc = "The `write()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn write_0(this: &HtmlDocument) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = write ) ] + #[doc = "The `write()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn write_1(this: &HtmlDocument, text_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = write ) ] + #[doc = "The `write()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn write_2(this: &HtmlDocument, text_1: &str, text_2: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = write ) ] + #[doc = "The `write()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn write_3( + this: &HtmlDocument, + text_1: &str, + text_2: &str, + text_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = write ) ] + #[doc = "The `write()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn write_4( + this: &HtmlDocument, + text_1: &str, + text_2: &str, + text_3: &str, + text_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = write ) ] + #[doc = "The `write()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn write_5( + this: &HtmlDocument, + text_1: &str, + text_2: &str, + text_3: &str, + text_4: &str, + text_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = write ) ] + #[doc = "The `write()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn write_6( + this: &HtmlDocument, + text_1: &str, + text_2: &str, + text_3: &str, + text_4: &str, + text_5: &str, + text_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = write ) ] + #[doc = "The `write()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/write)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn write_7( + this: &HtmlDocument, + text_1: &str, + text_2: &str, + text_3: &str, + text_4: &str, + text_5: &str, + text_6: &str, + text_7: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "HTMLDocument" , js_name = writeln ) ] + #[doc = "The `writeln()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn writeln(this: &HtmlDocument, text: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = writeln ) ] + #[doc = "The `writeln()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn writeln_0(this: &HtmlDocument) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = writeln ) ] + #[doc = "The `writeln()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn writeln_1(this: &HtmlDocument, text_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = writeln ) ] + #[doc = "The `writeln()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn writeln_2(this: &HtmlDocument, text_1: &str, text_2: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = writeln ) ] + #[doc = "The `writeln()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn writeln_3( + this: &HtmlDocument, + text_1: &str, + text_2: &str, + text_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = writeln ) ] + #[doc = "The `writeln()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn writeln_4( + this: &HtmlDocument, + text_1: &str, + text_2: &str, + text_3: &str, + text_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = writeln ) ] + #[doc = "The `writeln()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn writeln_5( + this: &HtmlDocument, + text_1: &str, + text_2: &str, + text_3: &str, + text_4: &str, + text_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = writeln ) ] + #[doc = "The `writeln()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn writeln_6( + this: &HtmlDocument, + text_1: &str, + text_2: &str, + text_3: &str, + text_4: &str, + text_5: &str, + text_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLDocument" , js_name = writeln ) ] + #[doc = "The `writeln()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/writeln)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn writeln_7( + this: &HtmlDocument, + text_1: &str, + text_2: &str, + text_3: &str, + text_4: &str, + text_5: &str, + text_6: &str, + text_7: &str, + ) -> Result<(), JsValue>; + #[wasm_bindgen(catch, method, structural, js_class = "HTMLDocument", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlDocument`*"] + pub fn get(this: &HtmlDocument, name: &str) -> Result<::js_sys::Object, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_HtmlElement.rs b/crates/web-sys/src/features/gen_HtmlElement.rs new file mode 100644 index 00000000..37a3bf80 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlElement.rs @@ -0,0 +1,1500 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLElement , typescript_type = "HTMLElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub type HtmlElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = title ) ] + #[doc = "Getter for the `title` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/title)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn title(this: &HtmlElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = title ) ] + #[doc = "Setter for the `title` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/title)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_title(this: &HtmlElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = lang ) ] + #[doc = "Getter for the `lang` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/lang)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn lang(this: &HtmlElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = lang ) ] + #[doc = "Setter for the `lang` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/lang)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_lang(this: &HtmlElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = dir ) ] + #[doc = "Getter for the `dir` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dir)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn dir(this: &HtmlElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = dir ) ] + #[doc = "Setter for the `dir` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dir)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_dir(this: &HtmlElement, value: &str); + #[cfg(feature = "DomStringMap")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = dataset ) ] + #[doc = "Getter for the `dataset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/dataset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomStringMap`, `HtmlElement`*"] + pub fn dataset(this: &HtmlElement) -> DomStringMap; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = innerText ) ] + #[doc = "Getter for the `innerText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn inner_text(this: &HtmlElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = innerText ) ] + #[doc = "Setter for the `innerText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_inner_text(this: &HtmlElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = hidden ) ] + #[doc = "Getter for the `hidden` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/hidden)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn hidden(this: &HtmlElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = hidden ) ] + #[doc = "Setter for the `hidden` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/hidden)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_hidden(this: &HtmlElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = tabIndex ) ] + #[doc = "Getter for the `tabIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/tabIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn tab_index(this: &HtmlElement) -> i32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = tabIndex ) ] + #[doc = "Setter for the `tabIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/tabIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_tab_index(this: &HtmlElement, value: i32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = accessKey ) ] + #[doc = "Getter for the `accessKey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/accessKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn access_key(this: &HtmlElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = accessKey ) ] + #[doc = "Setter for the `accessKey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/accessKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_access_key(this: &HtmlElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = accessKeyLabel ) ] + #[doc = "Getter for the `accessKeyLabel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/accessKeyLabel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn access_key_label(this: &HtmlElement) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = draggable ) ] + #[doc = "Getter for the `draggable` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/draggable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn draggable(this: &HtmlElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = draggable ) ] + #[doc = "Setter for the `draggable` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/draggable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_draggable(this: &HtmlElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = contentEditable ) ] + #[doc = "Getter for the `contentEditable` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/contentEditable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn content_editable(this: &HtmlElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = contentEditable ) ] + #[doc = "Setter for the `contentEditable` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/contentEditable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_content_editable(this: &HtmlElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = isContentEditable ) ] + #[doc = "Getter for the `isContentEditable` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/isContentEditable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn is_content_editable(this: &HtmlElement) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = spellcheck ) ] + #[doc = "Getter for the `spellcheck` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/spellcheck)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn spellcheck(this: &HtmlElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = spellcheck ) ] + #[doc = "Setter for the `spellcheck` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/spellcheck)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_spellcheck(this: &HtmlElement, value: bool); + #[cfg(feature = "CssStyleDeclaration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = style ) ] + #[doc = "Getter for the `style` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`, `HtmlElement`*"] + pub fn style(this: &HtmlElement) -> CssStyleDeclaration; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = offsetParent ) ] + #[doc = "Getter for the `offsetParent` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetParent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn offset_parent(this: &HtmlElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = offsetTop ) ] + #[doc = "Getter for the `offsetTop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetTop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn offset_top(this: &HtmlElement) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = offsetLeft ) ] + #[doc = "Getter for the `offsetLeft` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetLeft)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn offset_left(this: &HtmlElement) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = offsetWidth ) ] + #[doc = "Getter for the `offsetWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn offset_width(this: &HtmlElement) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = offsetHeight ) ] + #[doc = "Getter for the `offsetHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/offsetHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn offset_height(this: &HtmlElement) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = oncopy ) ] + #[doc = "Getter for the `oncopy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncopy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn oncopy(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = oncopy ) ] + #[doc = "Setter for the `oncopy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncopy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_oncopy(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = oncut ) ] + #[doc = "Getter for the `oncut` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncut)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn oncut(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = oncut ) ] + #[doc = "Setter for the `oncut` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncut)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_oncut(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onpaste ) ] + #[doc = "Getter for the `onpaste` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpaste)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onpaste(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onpaste ) ] + #[doc = "Setter for the `onpaste` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpaste)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onpaste(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onabort ) ] + #[doc = "Getter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onabort(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onabort ) ] + #[doc = "Setter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onabort(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onblur ) ] + #[doc = "Getter for the `onblur` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onblur)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onblur(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onblur ) ] + #[doc = "Setter for the `onblur` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onblur)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onblur(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onfocus ) ] + #[doc = "Getter for the `onfocus` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onfocus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onfocus(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onfocus ) ] + #[doc = "Setter for the `onfocus` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onfocus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onfocus(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onauxclick ) ] + #[doc = "Getter for the `onauxclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onauxclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onauxclick(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onauxclick ) ] + #[doc = "Setter for the `onauxclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onauxclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onauxclick(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = oncanplay ) ] + #[doc = "Getter for the `oncanplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncanplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn oncanplay(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = oncanplay ) ] + #[doc = "Setter for the `oncanplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncanplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_oncanplay(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = oncanplaythrough ) ] + #[doc = "Getter for the `oncanplaythrough` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncanplaythrough)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn oncanplaythrough(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = oncanplaythrough ) ] + #[doc = "Setter for the `oncanplaythrough` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncanplaythrough)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_oncanplaythrough(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onchange ) ] + #[doc = "Getter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onchange(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onchange ) ] + #[doc = "Setter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onchange(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onclick ) ] + #[doc = "Getter for the `onclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onclick(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onclick ) ] + #[doc = "Setter for the `onclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onclick(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onclose ) ] + #[doc = "Getter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onclose(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onclose ) ] + #[doc = "Setter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onclose(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = oncontextmenu ) ] + #[doc = "Getter for the `oncontextmenu` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncontextmenu)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn oncontextmenu(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = oncontextmenu ) ] + #[doc = "Setter for the `oncontextmenu` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oncontextmenu)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_oncontextmenu(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ondblclick ) ] + #[doc = "Getter for the `ondblclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondblclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ondblclick(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ondblclick ) ] + #[doc = "Setter for the `ondblclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondblclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ondblclick(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ondrag ) ] + #[doc = "Getter for the `ondrag` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondrag)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ondrag(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ondrag ) ] + #[doc = "Setter for the `ondrag` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondrag)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ondrag(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ondragend ) ] + #[doc = "Getter for the `ondragend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ondragend(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ondragend ) ] + #[doc = "Setter for the `ondragend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ondragend(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ondragenter ) ] + #[doc = "Getter for the `ondragenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ondragenter(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ondragenter ) ] + #[doc = "Setter for the `ondragenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ondragenter(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ondragexit ) ] + #[doc = "Getter for the `ondragexit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragexit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ondragexit(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ondragexit ) ] + #[doc = "Setter for the `ondragexit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragexit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ondragexit(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ondragleave ) ] + #[doc = "Getter for the `ondragleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ondragleave(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ondragleave ) ] + #[doc = "Setter for the `ondragleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ondragleave(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ondragover ) ] + #[doc = "Getter for the `ondragover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ondragover(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ondragover ) ] + #[doc = "Setter for the `ondragover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ondragover(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ondragstart ) ] + #[doc = "Getter for the `ondragstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ondragstart(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ondragstart ) ] + #[doc = "Setter for the `ondragstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondragstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ondragstart(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ondrop ) ] + #[doc = "Getter for the `ondrop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondrop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ondrop(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ondrop ) ] + #[doc = "Setter for the `ondrop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondrop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ondrop(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ondurationchange ) ] + #[doc = "Getter for the `ondurationchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondurationchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ondurationchange(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ondurationchange ) ] + #[doc = "Setter for the `ondurationchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ondurationchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ondurationchange(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onemptied ) ] + #[doc = "Getter for the `onemptied` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onemptied)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onemptied(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onemptied ) ] + #[doc = "Setter for the `onemptied` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onemptied)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onemptied(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onended ) ] + #[doc = "Getter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onended(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onended ) ] + #[doc = "Setter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onended(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = oninput ) ] + #[doc = "Getter for the `oninput` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oninput)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn oninput(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = oninput ) ] + #[doc = "Setter for the `oninput` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oninput)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_oninput(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = oninvalid ) ] + #[doc = "Getter for the `oninvalid` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oninvalid)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn oninvalid(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = oninvalid ) ] + #[doc = "Setter for the `oninvalid` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/oninvalid)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_oninvalid(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onkeydown ) ] + #[doc = "Getter for the `onkeydown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeydown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onkeydown(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onkeydown ) ] + #[doc = "Setter for the `onkeydown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeydown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onkeydown(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onkeypress ) ] + #[doc = "Getter for the `onkeypress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeypress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onkeypress(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onkeypress ) ] + #[doc = "Setter for the `onkeypress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeypress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onkeypress(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onkeyup ) ] + #[doc = "Getter for the `onkeyup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeyup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onkeyup(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onkeyup ) ] + #[doc = "Setter for the `onkeyup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onkeyup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onkeyup(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onload ) ] + #[doc = "Getter for the `onload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onload(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onload ) ] + #[doc = "Setter for the `onload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onload(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onloadeddata ) ] + #[doc = "Getter for the `onloadeddata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadeddata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onloadeddata(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onloadeddata ) ] + #[doc = "Setter for the `onloadeddata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadeddata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onloadeddata(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onloadedmetadata ) ] + #[doc = "Getter for the `onloadedmetadata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadedmetadata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onloadedmetadata(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onloadedmetadata ) ] + #[doc = "Setter for the `onloadedmetadata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadedmetadata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onloadedmetadata(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onloadend ) ] + #[doc = "Getter for the `onloadend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onloadend(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onloadend ) ] + #[doc = "Setter for the `onloadend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onloadend(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onloadstart ) ] + #[doc = "Getter for the `onloadstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onloadstart(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onloadstart ) ] + #[doc = "Setter for the `onloadstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onloadstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onloadstart(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onmousedown ) ] + #[doc = "Getter for the `onmousedown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmousedown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onmousedown(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onmousedown ) ] + #[doc = "Setter for the `onmousedown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmousedown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onmousedown(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onmouseenter ) ] + #[doc = "Getter for the `onmouseenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onmouseenter(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onmouseenter ) ] + #[doc = "Setter for the `onmouseenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onmouseenter(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onmouseleave ) ] + #[doc = "Getter for the `onmouseleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onmouseleave(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onmouseleave ) ] + #[doc = "Setter for the `onmouseleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onmouseleave(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onmousemove ) ] + #[doc = "Getter for the `onmousemove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmousemove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onmousemove(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onmousemove ) ] + #[doc = "Setter for the `onmousemove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmousemove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onmousemove(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onmouseout ) ] + #[doc = "Getter for the `onmouseout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onmouseout(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onmouseout ) ] + #[doc = "Setter for the `onmouseout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onmouseout(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onmouseover ) ] + #[doc = "Getter for the `onmouseover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onmouseover(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onmouseover ) ] + #[doc = "Setter for the `onmouseover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onmouseover(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onmouseup ) ] + #[doc = "Getter for the `onmouseup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onmouseup(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onmouseup ) ] + #[doc = "Setter for the `onmouseup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onmouseup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onmouseup(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onwheel ) ] + #[doc = "Getter for the `onwheel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwheel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onwheel(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onwheel ) ] + #[doc = "Setter for the `onwheel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwheel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onwheel(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onpause ) ] + #[doc = "Getter for the `onpause` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpause)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onpause(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onpause ) ] + #[doc = "Setter for the `onpause` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpause)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onpause(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onplay ) ] + #[doc = "Getter for the `onplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onplay(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onplay ) ] + #[doc = "Setter for the `onplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onplay(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onplaying ) ] + #[doc = "Getter for the `onplaying` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onplaying)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onplaying(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onplaying ) ] + #[doc = "Setter for the `onplaying` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onplaying)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onplaying(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onprogress ) ] + #[doc = "Getter for the `onprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onprogress(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onprogress ) ] + #[doc = "Setter for the `onprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onprogress(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onratechange ) ] + #[doc = "Getter for the `onratechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onratechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onratechange(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onratechange ) ] + #[doc = "Setter for the `onratechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onratechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onratechange(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onreset ) ] + #[doc = "Getter for the `onreset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onreset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onreset(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onreset ) ] + #[doc = "Setter for the `onreset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onreset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onreset(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onresize ) ] + #[doc = "Getter for the `onresize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onresize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onresize(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onresize ) ] + #[doc = "Setter for the `onresize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onresize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onresize(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onscroll ) ] + #[doc = "Getter for the `onscroll` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onscroll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onscroll(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onscroll ) ] + #[doc = "Setter for the `onscroll` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onscroll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onscroll(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onseeked ) ] + #[doc = "Getter for the `onseeked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onseeked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onseeked(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onseeked ) ] + #[doc = "Setter for the `onseeked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onseeked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onseeked(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onseeking ) ] + #[doc = "Getter for the `onseeking` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onseeking)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onseeking(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onseeking ) ] + #[doc = "Setter for the `onseeking` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onseeking)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onseeking(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onselect ) ] + #[doc = "Getter for the `onselect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onselect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onselect(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onselect ) ] + #[doc = "Setter for the `onselect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onselect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onselect(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onshow ) ] + #[doc = "Getter for the `onshow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onshow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onshow(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onshow ) ] + #[doc = "Setter for the `onshow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onshow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onshow(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onstalled ) ] + #[doc = "Getter for the `onstalled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onstalled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onstalled(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onstalled ) ] + #[doc = "Setter for the `onstalled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onstalled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onstalled(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onsubmit ) ] + #[doc = "Getter for the `onsubmit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onsubmit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onsubmit(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onsubmit ) ] + #[doc = "Setter for the `onsubmit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onsubmit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onsubmit(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onsuspend ) ] + #[doc = "Getter for the `onsuspend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onsuspend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onsuspend(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onsuspend ) ] + #[doc = "Setter for the `onsuspend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onsuspend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onsuspend(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ontimeupdate ) ] + #[doc = "Getter for the `ontimeupdate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontimeupdate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ontimeupdate(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ontimeupdate ) ] + #[doc = "Setter for the `ontimeupdate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontimeupdate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ontimeupdate(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onvolumechange ) ] + #[doc = "Getter for the `onvolumechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onvolumechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onvolumechange(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onvolumechange ) ] + #[doc = "Setter for the `onvolumechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onvolumechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onvolumechange(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onwaiting ) ] + #[doc = "Getter for the `onwaiting` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwaiting)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onwaiting(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onwaiting ) ] + #[doc = "Setter for the `onwaiting` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwaiting)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onwaiting(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onselectstart ) ] + #[doc = "Getter for the `onselectstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onselectstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onselectstart(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onselectstart ) ] + #[doc = "Setter for the `onselectstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onselectstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onselectstart(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ontoggle ) ] + #[doc = "Getter for the `ontoggle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontoggle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ontoggle(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ontoggle ) ] + #[doc = "Setter for the `ontoggle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontoggle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ontoggle(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onpointercancel ) ] + #[doc = "Getter for the `onpointercancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointercancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onpointercancel(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onpointercancel ) ] + #[doc = "Setter for the `onpointercancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointercancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onpointercancel(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onpointerdown ) ] + #[doc = "Getter for the `onpointerdown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerdown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onpointerdown(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onpointerdown ) ] + #[doc = "Setter for the `onpointerdown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerdown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onpointerdown(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onpointerup ) ] + #[doc = "Getter for the `onpointerup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onpointerup(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onpointerup ) ] + #[doc = "Setter for the `onpointerup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onpointerup(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onpointermove ) ] + #[doc = "Getter for the `onpointermove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointermove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onpointermove(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onpointermove ) ] + #[doc = "Setter for the `onpointermove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointermove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onpointermove(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onpointerout ) ] + #[doc = "Getter for the `onpointerout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onpointerout(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onpointerout ) ] + #[doc = "Setter for the `onpointerout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onpointerout(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onpointerover ) ] + #[doc = "Getter for the `onpointerover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onpointerover(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onpointerover ) ] + #[doc = "Setter for the `onpointerover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onpointerover(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onpointerenter ) ] + #[doc = "Getter for the `onpointerenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onpointerenter(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onpointerenter ) ] + #[doc = "Setter for the `onpointerenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onpointerenter(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onpointerleave ) ] + #[doc = "Getter for the `onpointerleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onpointerleave(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onpointerleave ) ] + #[doc = "Setter for the `onpointerleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onpointerleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onpointerleave(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ongotpointercapture ) ] + #[doc = "Getter for the `ongotpointercapture` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ongotpointercapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ongotpointercapture(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ongotpointercapture ) ] + #[doc = "Setter for the `ongotpointercapture` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ongotpointercapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ongotpointercapture(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onlostpointercapture ) ] + #[doc = "Getter for the `onlostpointercapture` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onlostpointercapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onlostpointercapture(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onlostpointercapture ) ] + #[doc = "Setter for the `onlostpointercapture` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onlostpointercapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onlostpointercapture(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onanimationcancel ) ] + #[doc = "Getter for the `onanimationcancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationcancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onanimationcancel(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onanimationcancel ) ] + #[doc = "Setter for the `onanimationcancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationcancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onanimationcancel(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onanimationend ) ] + #[doc = "Getter for the `onanimationend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onanimationend(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onanimationend ) ] + #[doc = "Setter for the `onanimationend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onanimationend(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onanimationiteration ) ] + #[doc = "Getter for the `onanimationiteration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationiteration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onanimationiteration(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onanimationiteration ) ] + #[doc = "Setter for the `onanimationiteration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationiteration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onanimationiteration(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onanimationstart ) ] + #[doc = "Getter for the `onanimationstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onanimationstart(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onanimationstart ) ] + #[doc = "Setter for the `onanimationstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onanimationstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onanimationstart(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ontransitioncancel ) ] + #[doc = "Getter for the `ontransitioncancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitioncancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ontransitioncancel(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ontransitioncancel ) ] + #[doc = "Setter for the `ontransitioncancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitioncancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ontransitioncancel(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ontransitionend ) ] + #[doc = "Getter for the `ontransitionend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ontransitionend(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ontransitionend ) ] + #[doc = "Setter for the `ontransitionend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ontransitionend(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ontransitionrun ) ] + #[doc = "Getter for the `ontransitionrun` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionrun)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ontransitionrun(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ontransitionrun ) ] + #[doc = "Setter for the `ontransitionrun` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionrun)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ontransitionrun(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ontransitionstart ) ] + #[doc = "Getter for the `ontransitionstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ontransitionstart(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ontransitionstart ) ] + #[doc = "Setter for the `ontransitionstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontransitionstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ontransitionstart(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onwebkitanimationend ) ] + #[doc = "Getter for the `onwebkitanimationend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onwebkitanimationend(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onwebkitanimationend ) ] + #[doc = "Setter for the `onwebkitanimationend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onwebkitanimationend(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onwebkitanimationiteration ) ] + #[doc = "Getter for the `onwebkitanimationiteration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationiteration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onwebkitanimationiteration(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onwebkitanimationiteration ) ] + #[doc = "Setter for the `onwebkitanimationiteration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationiteration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onwebkitanimationiteration(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onwebkitanimationstart ) ] + #[doc = "Getter for the `onwebkitanimationstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onwebkitanimationstart(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onwebkitanimationstart ) ] + #[doc = "Setter for the `onwebkitanimationstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkitanimationstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onwebkitanimationstart(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onwebkittransitionend ) ] + #[doc = "Getter for the `onwebkittransitionend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkittransitionend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onwebkittransitionend(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onwebkittransitionend ) ] + #[doc = "Setter for the `onwebkittransitionend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onwebkittransitionend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onwebkittransitionend(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn onerror(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_onerror(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ontouchstart ) ] + #[doc = "Getter for the `ontouchstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ontouchstart(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ontouchstart ) ] + #[doc = "Setter for the `ontouchstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ontouchstart(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ontouchend ) ] + #[doc = "Getter for the `ontouchend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ontouchend(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ontouchend ) ] + #[doc = "Setter for the `ontouchend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ontouchend(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ontouchmove ) ] + #[doc = "Getter for the `ontouchmove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchmove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ontouchmove(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ontouchmove ) ] + #[doc = "Setter for the `ontouchmove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchmove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ontouchmove(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLElement" , js_name = ontouchcancel ) ] + #[doc = "Getter for the `ontouchcancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchcancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn ontouchcancel(this: &HtmlElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLElement" , js_name = ontouchcancel ) ] + #[doc = "Setter for the `ontouchcancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/ontouchcancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn set_ontouchcancel(this: &HtmlElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLElement" , js_name = blur ) ] + #[doc = "The `blur()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/blur)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn blur(this: &HtmlElement) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "HTMLElement" , js_name = click ) ] + #[doc = "The `click()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/click)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn click(this: &HtmlElement); + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLElement" , js_name = focus ) ] + #[doc = "The `focus()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`*"] + pub fn focus(this: &HtmlElement) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_HtmlEmbedElement.rs b/crates/web-sys/src/features/gen_HtmlEmbedElement.rs new file mode 100644 index 00000000..5efb62ed --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlEmbedElement.rs @@ -0,0 +1,106 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLEmbedElement , typescript_type = "HTMLEmbedElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlEmbedElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] + pub type HtmlEmbedElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLEmbedElement" , js_name = src ) ] + #[doc = "Getter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] + pub fn src(this: &HtmlEmbedElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLEmbedElement" , js_name = src ) ] + #[doc = "Setter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] + pub fn set_src(this: &HtmlEmbedElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLEmbedElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] + pub fn type_(this: &HtmlEmbedElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLEmbedElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] + pub fn set_type(this: &HtmlEmbedElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLEmbedElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] + pub fn width(this: &HtmlEmbedElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLEmbedElement" , js_name = width ) ] + #[doc = "Setter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] + pub fn set_width(this: &HtmlEmbedElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLEmbedElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] + pub fn height(this: &HtmlEmbedElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLEmbedElement" , js_name = height ) ] + #[doc = "Setter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] + pub fn set_height(this: &HtmlEmbedElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLEmbedElement" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] + pub fn align(this: &HtmlEmbedElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLEmbedElement" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] + pub fn set_align(this: &HtmlEmbedElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLEmbedElement" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] + pub fn name(this: &HtmlEmbedElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLEmbedElement" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlEmbedElement`*"] + pub fn set_name(this: &HtmlEmbedElement, value: &str); + #[cfg(feature = "Document")] + # [ wasm_bindgen ( method , structural , js_class = "HTMLEmbedElement" , js_name = getSVGDocument ) ] + #[doc = "The `getSVGDocument()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLEmbedElement/getSVGDocument)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlEmbedElement`*"] + pub fn get_svg_document(this: &HtmlEmbedElement) -> Option; +} diff --git a/crates/web-sys/src/features/gen_HtmlFieldSetElement.rs b/crates/web-sys/src/features/gen_HtmlFieldSetElement.rs new file mode 100644 index 00000000..5781d837 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlFieldSetElement.rs @@ -0,0 +1,108 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLFieldSetElement , typescript_type = "HTMLFieldSetElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlFieldSetElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] + pub type HtmlFieldSetElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = disabled ) ] + #[doc = "Getter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] + pub fn disabled(this: &HtmlFieldSetElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFieldSetElement" , js_name = disabled ) ] + #[doc = "Setter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] + pub fn set_disabled(this: &HtmlFieldSetElement, value: bool); + #[cfg(feature = "HtmlFormElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = form ) ] + #[doc = "Getter for the `form` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/form)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`, `HtmlFormElement`*"] + pub fn form(this: &HtmlFieldSetElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] + pub fn name(this: &HtmlFieldSetElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFieldSetElement" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] + pub fn set_name(this: &HtmlFieldSetElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] + pub fn type_(this: &HtmlFieldSetElement) -> String; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = elements ) ] + #[doc = "Getter for the `elements` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/elements)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlFieldSetElement`*"] + pub fn elements(this: &HtmlFieldSetElement) -> HtmlCollection; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = willValidate ) ] + #[doc = "Getter for the `willValidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/willValidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] + pub fn will_validate(this: &HtmlFieldSetElement) -> bool; + #[cfg(feature = "ValidityState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFieldSetElement" , js_name = validity ) ] + #[doc = "Getter for the `validity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/validity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`, `ValidityState`*"] + pub fn validity(this: &HtmlFieldSetElement) -> ValidityState; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLFieldSetElement" , js_name = validationMessage ) ] + #[doc = "Getter for the `validationMessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/validationMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] + pub fn validation_message(this: &HtmlFieldSetElement) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "HTMLFieldSetElement" , js_name = checkValidity ) ] + #[doc = "The `checkValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/checkValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] + pub fn check_validity(this: &HtmlFieldSetElement) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "HTMLFieldSetElement" , js_name = reportValidity ) ] + #[doc = "The `reportValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/reportValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] + pub fn report_validity(this: &HtmlFieldSetElement) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "HTMLFieldSetElement" , js_name = setCustomValidity ) ] + #[doc = "The `setCustomValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFieldSetElement/setCustomValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFieldSetElement`*"] + pub fn set_custom_validity(this: &HtmlFieldSetElement, error: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlFontElement.rs b/crates/web-sys/src/features/gen_HtmlFontElement.rs new file mode 100644 index 00000000..fd08ca09 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlFontElement.rs @@ -0,0 +1,56 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLFontElement , typescript_type = "HTMLFontElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlFontElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] + pub type HtmlFontElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFontElement" , js_name = color ) ] + #[doc = "Getter for the `color` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement/color)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] + pub fn color(this: &HtmlFontElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFontElement" , js_name = color ) ] + #[doc = "Setter for the `color` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement/color)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] + pub fn set_color(this: &HtmlFontElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFontElement" , js_name = face ) ] + #[doc = "Getter for the `face` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement/face)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] + pub fn face(this: &HtmlFontElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFontElement" , js_name = face ) ] + #[doc = "Setter for the `face` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement/face)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] + pub fn set_face(this: &HtmlFontElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFontElement" , js_name = size ) ] + #[doc = "Getter for the `size` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement/size)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] + pub fn size(this: &HtmlFontElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFontElement" , js_name = size ) ] + #[doc = "Setter for the `size` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFontElement/size)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFontElement`*"] + pub fn set_size(this: &HtmlFontElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlFormControlsCollection.rs b/crates/web-sys/src/features/gen_HtmlFormControlsCollection.rs new file mode 100644 index 00000000..9925c216 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlFormControlsCollection.rs @@ -0,0 +1,33 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlCollection , extends = :: js_sys :: Object , js_name = HTMLFormControlsCollection , typescript_type = "HTMLFormControlsCollection" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlFormControlsCollection` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormControlsCollection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormControlsCollection`*"] + pub type HtmlFormControlsCollection; + # [ wasm_bindgen ( method , structural , js_class = "HTMLFormControlsCollection" , js_name = namedItem ) ] + #[doc = "The `namedItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormControlsCollection/namedItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormControlsCollection`*"] + pub fn named_item(this: &HtmlFormControlsCollection, name: &str) -> Option<::js_sys::Object>; + #[wasm_bindgen( + method, + structural, + js_class = "HTMLFormControlsCollection", + indexing_getter + )] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormControlsCollection`*"] + pub fn get(this: &HtmlFormControlsCollection, name: &str) -> Option<::js_sys::Object>; +} diff --git a/crates/web-sys/src/features/gen_HtmlFormElement.rs b/crates/web-sys/src/features/gen_HtmlFormElement.rs new file mode 100644 index 00000000..9dee2488 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlFormElement.rs @@ -0,0 +1,197 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLFormElement , typescript_type = "HTMLFormElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlFormElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub type HtmlFormElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFormElement" , js_name = acceptCharset ) ] + #[doc = "Getter for the `acceptCharset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/acceptCharset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn accept_charset(this: &HtmlFormElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFormElement" , js_name = acceptCharset ) ] + #[doc = "Setter for the `acceptCharset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/acceptCharset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn set_accept_charset(this: &HtmlFormElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFormElement" , js_name = action ) ] + #[doc = "Getter for the `action` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/action)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn action(this: &HtmlFormElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFormElement" , js_name = action ) ] + #[doc = "Setter for the `action` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/action)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn set_action(this: &HtmlFormElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFormElement" , js_name = autocomplete ) ] + #[doc = "Getter for the `autocomplete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/autocomplete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn autocomplete(this: &HtmlFormElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFormElement" , js_name = autocomplete ) ] + #[doc = "Setter for the `autocomplete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/autocomplete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn set_autocomplete(this: &HtmlFormElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFormElement" , js_name = enctype ) ] + #[doc = "Getter for the `enctype` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/enctype)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn enctype(this: &HtmlFormElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFormElement" , js_name = enctype ) ] + #[doc = "Setter for the `enctype` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/enctype)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn set_enctype(this: &HtmlFormElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFormElement" , js_name = encoding ) ] + #[doc = "Getter for the `encoding` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/encoding)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn encoding(this: &HtmlFormElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFormElement" , js_name = encoding ) ] + #[doc = "Setter for the `encoding` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/encoding)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn set_encoding(this: &HtmlFormElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFormElement" , js_name = method ) ] + #[doc = "Getter for the `method` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/method)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn method(this: &HtmlFormElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFormElement" , js_name = method ) ] + #[doc = "Setter for the `method` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/method)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn set_method(this: &HtmlFormElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFormElement" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn name(this: &HtmlFormElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFormElement" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn set_name(this: &HtmlFormElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFormElement" , js_name = noValidate ) ] + #[doc = "Getter for the `noValidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/noValidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn no_validate(this: &HtmlFormElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFormElement" , js_name = noValidate ) ] + #[doc = "Setter for the `noValidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/noValidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn set_no_validate(this: &HtmlFormElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFormElement" , js_name = target ) ] + #[doc = "Getter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn target(this: &HtmlFormElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFormElement" , js_name = target ) ] + #[doc = "Setter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn set_target(this: &HtmlFormElement, value: &str); + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFormElement" , js_name = elements ) ] + #[doc = "Getter for the `elements` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/elements)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlFormElement`*"] + pub fn elements(this: &HtmlFormElement) -> HtmlCollection; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFormElement" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn length(this: &HtmlFormElement) -> i32; + # [ wasm_bindgen ( method , structural , js_class = "HTMLFormElement" , js_name = checkValidity ) ] + #[doc = "The `checkValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/checkValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn check_validity(this: &HtmlFormElement) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "HTMLFormElement" , js_name = reportValidity ) ] + #[doc = "The `reportValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reportValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn report_validity(this: &HtmlFormElement) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "HTMLFormElement" , js_name = reset ) ] + #[doc = "The `reset()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/reset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn reset(this: &HtmlFormElement); + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLFormElement" , js_name = submit ) ] + #[doc = "The `submit()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/submit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn submit(this: &HtmlFormElement) -> Result<(), JsValue>; + #[wasm_bindgen(method, structural, js_class = "HTMLFormElement", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn get_with_index(this: &HtmlFormElement, index: u32) -> Option; + #[wasm_bindgen(method, structural, js_class = "HTMLFormElement", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`*"] + pub fn get_with_name(this: &HtmlFormElement, name: &str) -> Option<::js_sys::Object>; +} diff --git a/crates/web-sys/src/features/gen_HtmlFrameElement.rs b/crates/web-sys/src/features/gen_HtmlFrameElement.rs new file mode 100644 index 00000000..16b2a859 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlFrameElement.rs @@ -0,0 +1,142 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLFrameElement , typescript_type = "HTMLFrameElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlFrameElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] + pub type HtmlFrameElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameElement" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] + pub fn name(this: &HtmlFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameElement" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] + pub fn set_name(this: &HtmlFrameElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameElement" , js_name = scrolling ) ] + #[doc = "Getter for the `scrolling` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/scrolling)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] + pub fn scrolling(this: &HtmlFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameElement" , js_name = scrolling ) ] + #[doc = "Setter for the `scrolling` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/scrolling)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] + pub fn set_scrolling(this: &HtmlFrameElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameElement" , js_name = src ) ] + #[doc = "Getter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] + pub fn src(this: &HtmlFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameElement" , js_name = src ) ] + #[doc = "Setter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] + pub fn set_src(this: &HtmlFrameElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameElement" , js_name = frameBorder ) ] + #[doc = "Getter for the `frameBorder` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/frameBorder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] + pub fn frame_border(this: &HtmlFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameElement" , js_name = frameBorder ) ] + #[doc = "Setter for the `frameBorder` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/frameBorder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] + pub fn set_frame_border(this: &HtmlFrameElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameElement" , js_name = longDesc ) ] + #[doc = "Getter for the `longDesc` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/longDesc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] + pub fn long_desc(this: &HtmlFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameElement" , js_name = longDesc ) ] + #[doc = "Setter for the `longDesc` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/longDesc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] + pub fn set_long_desc(this: &HtmlFrameElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameElement" , js_name = noResize ) ] + #[doc = "Getter for the `noResize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/noResize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] + pub fn no_resize(this: &HtmlFrameElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameElement" , js_name = noResize ) ] + #[doc = "Setter for the `noResize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/noResize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] + pub fn set_no_resize(this: &HtmlFrameElement, value: bool); + #[cfg(feature = "Document")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameElement" , js_name = contentDocument ) ] + #[doc = "Getter for the `contentDocument` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/contentDocument)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlFrameElement`*"] + pub fn content_document(this: &HtmlFrameElement) -> Option; + #[cfg(feature = "Window")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameElement" , js_name = contentWindow ) ] + #[doc = "Getter for the `contentWindow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/contentWindow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`, `Window`*"] + pub fn content_window(this: &HtmlFrameElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameElement" , js_name = marginHeight ) ] + #[doc = "Getter for the `marginHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/marginHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] + pub fn margin_height(this: &HtmlFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameElement" , js_name = marginHeight ) ] + #[doc = "Setter for the `marginHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/marginHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] + pub fn set_margin_height(this: &HtmlFrameElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameElement" , js_name = marginWidth ) ] + #[doc = "Getter for the `marginWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/marginWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] + pub fn margin_width(this: &HtmlFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameElement" , js_name = marginWidth ) ] + #[doc = "Setter for the `marginWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameElement/marginWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameElement`*"] + pub fn set_margin_width(this: &HtmlFrameElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlFrameSetElement.rs b/crates/web-sys/src/features/gen_HtmlFrameSetElement.rs new file mode 100644 index 00000000..dfec10d0 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlFrameSetElement.rs @@ -0,0 +1,238 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLFrameSetElement , typescript_type = "HTMLFrameSetElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlFrameSetElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub type HtmlFrameSetElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = cols ) ] + #[doc = "Getter for the `cols` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/cols)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn cols(this: &HtmlFrameSetElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = cols ) ] + #[doc = "Setter for the `cols` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/cols)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn set_cols(this: &HtmlFrameSetElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = rows ) ] + #[doc = "Getter for the `rows` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/rows)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn rows(this: &HtmlFrameSetElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = rows ) ] + #[doc = "Setter for the `rows` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/rows)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn set_rows(this: &HtmlFrameSetElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onafterprint ) ] + #[doc = "Getter for the `onafterprint` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onafterprint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn onafterprint(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onafterprint ) ] + #[doc = "Setter for the `onafterprint` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onafterprint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn set_onafterprint(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onbeforeprint ) ] + #[doc = "Getter for the `onbeforeprint` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onbeforeprint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn onbeforeprint(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onbeforeprint ) ] + #[doc = "Setter for the `onbeforeprint` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onbeforeprint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn set_onbeforeprint(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onbeforeunload ) ] + #[doc = "Getter for the `onbeforeunload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onbeforeunload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn onbeforeunload(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onbeforeunload ) ] + #[doc = "Setter for the `onbeforeunload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onbeforeunload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn set_onbeforeunload(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onhashchange ) ] + #[doc = "Getter for the `onhashchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onhashchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn onhashchange(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onhashchange ) ] + #[doc = "Setter for the `onhashchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onhashchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn set_onhashchange(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onlanguagechange ) ] + #[doc = "Getter for the `onlanguagechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onlanguagechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn onlanguagechange(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onlanguagechange ) ] + #[doc = "Setter for the `onlanguagechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onlanguagechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn set_onlanguagechange(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onmessage ) ] + #[doc = "Getter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn onmessage(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onmessage ) ] + #[doc = "Setter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn set_onmessage(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onmessageerror ) ] + #[doc = "Getter for the `onmessageerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onmessageerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn onmessageerror(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onmessageerror ) ] + #[doc = "Setter for the `onmessageerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onmessageerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn set_onmessageerror(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onoffline ) ] + #[doc = "Getter for the `onoffline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onoffline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn onoffline(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onoffline ) ] + #[doc = "Setter for the `onoffline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onoffline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn set_onoffline(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = ononline ) ] + #[doc = "Getter for the `ononline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/ononline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn ononline(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = ononline ) ] + #[doc = "Setter for the `ononline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/ononline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn set_ononline(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onpagehide ) ] + #[doc = "Getter for the `onpagehide` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpagehide)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn onpagehide(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onpagehide ) ] + #[doc = "Setter for the `onpagehide` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpagehide)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn set_onpagehide(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onpageshow ) ] + #[doc = "Getter for the `onpageshow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpageshow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn onpageshow(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onpageshow ) ] + #[doc = "Setter for the `onpageshow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpageshow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn set_onpageshow(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onpopstate ) ] + #[doc = "Getter for the `onpopstate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpopstate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn onpopstate(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onpopstate ) ] + #[doc = "Setter for the `onpopstate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onpopstate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn set_onpopstate(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onstorage ) ] + #[doc = "Getter for the `onstorage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onstorage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn onstorage(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onstorage ) ] + #[doc = "Setter for the `onstorage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onstorage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn set_onstorage(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLFrameSetElement" , js_name = onunload ) ] + #[doc = "Getter for the `onunload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onunload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn onunload(this: &HtmlFrameSetElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLFrameSetElement" , js_name = onunload ) ] + #[doc = "Setter for the `onunload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLFrameSetElement/onunload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFrameSetElement`*"] + pub fn set_onunload(this: &HtmlFrameSetElement, value: Option<&::js_sys::Function>); +} diff --git a/crates/web-sys/src/features/gen_HtmlHeadElement.rs b/crates/web-sys/src/features/gen_HtmlHeadElement.rs new file mode 100644 index 00000000..f3036462 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlHeadElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLHeadElement , typescript_type = "HTMLHeadElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlHeadElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHeadElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHeadElement`*"] + pub type HtmlHeadElement; +} diff --git a/crates/web-sys/src/features/gen_HtmlHeadingElement.rs b/crates/web-sys/src/features/gen_HtmlHeadingElement.rs new file mode 100644 index 00000000..325dff1d --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlHeadingElement.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLHeadingElement , typescript_type = "HTMLHeadingElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlHeadingElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHeadingElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHeadingElement`*"] + pub type HtmlHeadingElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLHeadingElement" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHeadingElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHeadingElement`*"] + pub fn align(this: &HtmlHeadingElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLHeadingElement" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHeadingElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHeadingElement`*"] + pub fn set_align(this: &HtmlHeadingElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlHrElement.rs b/crates/web-sys/src/features/gen_HtmlHrElement.rs new file mode 100644 index 00000000..848a8997 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlHrElement.rs @@ -0,0 +1,84 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLHRElement , typescript_type = "HTMLHRElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlHrElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] + pub type HtmlHrElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLHRElement" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] + pub fn align(this: &HtmlHrElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLHRElement" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] + pub fn set_align(this: &HtmlHrElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLHRElement" , js_name = color ) ] + #[doc = "Getter for the `color` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/color)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] + pub fn color(this: &HtmlHrElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLHRElement" , js_name = color ) ] + #[doc = "Setter for the `color` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/color)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] + pub fn set_color(this: &HtmlHrElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLHRElement" , js_name = noShade ) ] + #[doc = "Getter for the `noShade` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/noShade)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] + pub fn no_shade(this: &HtmlHrElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLHRElement" , js_name = noShade ) ] + #[doc = "Setter for the `noShade` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/noShade)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] + pub fn set_no_shade(this: &HtmlHrElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLHRElement" , js_name = size ) ] + #[doc = "Getter for the `size` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/size)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] + pub fn size(this: &HtmlHrElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLHRElement" , js_name = size ) ] + #[doc = "Setter for the `size` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/size)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] + pub fn set_size(this: &HtmlHrElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLHRElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] + pub fn width(this: &HtmlHrElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLHRElement" , js_name = width ) ] + #[doc = "Setter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHRElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHrElement`*"] + pub fn set_width(this: &HtmlHrElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlHtmlElement.rs b/crates/web-sys/src/features/gen_HtmlHtmlElement.rs new file mode 100644 index 00000000..f81d7a3c --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlHtmlElement.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLHtmlElement , typescript_type = "HTMLHtmlElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlHtmlElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHtmlElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHtmlElement`*"] + pub type HtmlHtmlElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLHtmlElement" , js_name = version ) ] + #[doc = "Getter for the `version` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHtmlElement/version)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHtmlElement`*"] + pub fn version(this: &HtmlHtmlElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLHtmlElement" , js_name = version ) ] + #[doc = "Setter for the `version` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLHtmlElement/version)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlHtmlElement`*"] + pub fn set_version(this: &HtmlHtmlElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlIFrameElement.rs b/crates/web-sys/src/features/gen_HtmlIFrameElement.rs new file mode 100644 index 00000000..616b087e --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlIFrameElement.rs @@ -0,0 +1,242 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLIFrameElement , typescript_type = "HTMLIFrameElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlIFrameElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub type HtmlIFrameElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLIFrameElement" , js_name = src ) ] + #[doc = "Getter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn src(this: &HtmlIFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLIFrameElement" , js_name = src ) ] + #[doc = "Setter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn set_src(this: &HtmlIFrameElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLIFrameElement" , js_name = srcdoc ) ] + #[doc = "Getter for the `srcdoc` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/srcdoc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn srcdoc(this: &HtmlIFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLIFrameElement" , js_name = srcdoc ) ] + #[doc = "Setter for the `srcdoc` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/srcdoc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn set_srcdoc(this: &HtmlIFrameElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLIFrameElement" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn name(this: &HtmlIFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLIFrameElement" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn set_name(this: &HtmlIFrameElement, value: &str); + #[cfg(feature = "DomTokenList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLIFrameElement" , js_name = sandbox ) ] + #[doc = "Getter for the `sandbox` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/sandbox)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlIFrameElement`*"] + pub fn sandbox(this: &HtmlIFrameElement) -> DomTokenList; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLIFrameElement" , js_name = allowFullscreen ) ] + #[doc = "Getter for the `allowFullscreen` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowFullscreen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn allow_fullscreen(this: &HtmlIFrameElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLIFrameElement" , js_name = allowFullscreen ) ] + #[doc = "Setter for the `allowFullscreen` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowFullscreen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn set_allow_fullscreen(this: &HtmlIFrameElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLIFrameElement" , js_name = allowPaymentRequest ) ] + #[doc = "Getter for the `allowPaymentRequest` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowPaymentRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn allow_payment_request(this: &HtmlIFrameElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLIFrameElement" , js_name = allowPaymentRequest ) ] + #[doc = "Setter for the `allowPaymentRequest` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/allowPaymentRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn set_allow_payment_request(this: &HtmlIFrameElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLIFrameElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn width(this: &HtmlIFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLIFrameElement" , js_name = width ) ] + #[doc = "Setter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn set_width(this: &HtmlIFrameElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLIFrameElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn height(this: &HtmlIFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLIFrameElement" , js_name = height ) ] + #[doc = "Setter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn set_height(this: &HtmlIFrameElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLIFrameElement" , js_name = referrerPolicy ) ] + #[doc = "Getter for the `referrerPolicy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/referrerPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn referrer_policy(this: &HtmlIFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLIFrameElement" , js_name = referrerPolicy ) ] + #[doc = "Setter for the `referrerPolicy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/referrerPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn set_referrer_policy(this: &HtmlIFrameElement, value: &str); + #[cfg(feature = "Document")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLIFrameElement" , js_name = contentDocument ) ] + #[doc = "Getter for the `contentDocument` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentDocument)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlIFrameElement`*"] + pub fn content_document(this: &HtmlIFrameElement) -> Option; + #[cfg(feature = "Window")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLIFrameElement" , js_name = contentWindow ) ] + #[doc = "Getter for the `contentWindow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/contentWindow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`, `Window`*"] + pub fn content_window(this: &HtmlIFrameElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLIFrameElement" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn align(this: &HtmlIFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLIFrameElement" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn set_align(this: &HtmlIFrameElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLIFrameElement" , js_name = scrolling ) ] + #[doc = "Getter for the `scrolling` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/scrolling)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn scrolling(this: &HtmlIFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLIFrameElement" , js_name = scrolling ) ] + #[doc = "Setter for the `scrolling` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/scrolling)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn set_scrolling(this: &HtmlIFrameElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLIFrameElement" , js_name = frameBorder ) ] + #[doc = "Getter for the `frameBorder` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/frameBorder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn frame_border(this: &HtmlIFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLIFrameElement" , js_name = frameBorder ) ] + #[doc = "Setter for the `frameBorder` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/frameBorder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn set_frame_border(this: &HtmlIFrameElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLIFrameElement" , js_name = longDesc ) ] + #[doc = "Getter for the `longDesc` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/longDesc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn long_desc(this: &HtmlIFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLIFrameElement" , js_name = longDesc ) ] + #[doc = "Setter for the `longDesc` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/longDesc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn set_long_desc(this: &HtmlIFrameElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLIFrameElement" , js_name = marginHeight ) ] + #[doc = "Getter for the `marginHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn margin_height(this: &HtmlIFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLIFrameElement" , js_name = marginHeight ) ] + #[doc = "Setter for the `marginHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn set_margin_height(this: &HtmlIFrameElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLIFrameElement" , js_name = marginWidth ) ] + #[doc = "Getter for the `marginWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn margin_width(this: &HtmlIFrameElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLIFrameElement" , js_name = marginWidth ) ] + #[doc = "Setter for the `marginWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/marginWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlIFrameElement`*"] + pub fn set_margin_width(this: &HtmlIFrameElement, value: &str); + #[cfg(feature = "Document")] + # [ wasm_bindgen ( method , structural , js_class = "HTMLIFrameElement" , js_name = getSVGDocument ) ] + #[doc = "The `getSVGDocument()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLIFrameElement/getSVGDocument)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlIFrameElement`*"] + pub fn get_svg_document(this: &HtmlIFrameElement) -> Option; +} diff --git a/crates/web-sys/src/features/gen_HtmlImageElement.rs b/crates/web-sys/src/features/gen_HtmlImageElement.rs new file mode 100644 index 00000000..45a8ee02 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlImageElement.rs @@ -0,0 +1,308 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLImageElement , typescript_type = "HTMLImageElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlImageElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub type HtmlImageElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = alt ) ] + #[doc = "Getter for the `alt` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn alt(this: &HtmlImageElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLImageElement" , js_name = alt ) ] + #[doc = "Setter for the `alt` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/alt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn set_alt(this: &HtmlImageElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = src ) ] + #[doc = "Getter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn src(this: &HtmlImageElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLImageElement" , js_name = src ) ] + #[doc = "Setter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn set_src(this: &HtmlImageElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = srcset ) ] + #[doc = "Getter for the `srcset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/srcset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn srcset(this: &HtmlImageElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLImageElement" , js_name = srcset ) ] + #[doc = "Setter for the `srcset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/srcset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn set_srcset(this: &HtmlImageElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = crossOrigin ) ] + #[doc = "Getter for the `crossOrigin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/crossOrigin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn cross_origin(this: &HtmlImageElement) -> Option; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLImageElement" , js_name = crossOrigin ) ] + #[doc = "Setter for the `crossOrigin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/crossOrigin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn set_cross_origin(this: &HtmlImageElement, value: Option<&str>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = useMap ) ] + #[doc = "Getter for the `useMap` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/useMap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn use_map(this: &HtmlImageElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLImageElement" , js_name = useMap ) ] + #[doc = "Setter for the `useMap` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/useMap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn set_use_map(this: &HtmlImageElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = referrerPolicy ) ] + #[doc = "Getter for the `referrerPolicy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/referrerPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn referrer_policy(this: &HtmlImageElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLImageElement" , js_name = referrerPolicy ) ] + #[doc = "Setter for the `referrerPolicy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/referrerPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn set_referrer_policy(this: &HtmlImageElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = isMap ) ] + #[doc = "Getter for the `isMap` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/isMap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn is_map(this: &HtmlImageElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLImageElement" , js_name = isMap ) ] + #[doc = "Setter for the `isMap` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/isMap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn set_is_map(this: &HtmlImageElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn width(this: &HtmlImageElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLImageElement" , js_name = width ) ] + #[doc = "Setter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn set_width(this: &HtmlImageElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn height(this: &HtmlImageElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLImageElement" , js_name = height ) ] + #[doc = "Setter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn set_height(this: &HtmlImageElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = decoding ) ] + #[doc = "Getter for the `decoding` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/decoding)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn decoding(this: &HtmlImageElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLImageElement" , js_name = decoding ) ] + #[doc = "Setter for the `decoding` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/decoding)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn set_decoding(this: &HtmlImageElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = naturalWidth ) ] + #[doc = "Getter for the `naturalWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/naturalWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn natural_width(this: &HtmlImageElement) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = naturalHeight ) ] + #[doc = "Getter for the `naturalHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/naturalHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn natural_height(this: &HtmlImageElement) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = complete ) ] + #[doc = "Getter for the `complete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/complete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn complete(this: &HtmlImageElement) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn name(this: &HtmlImageElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLImageElement" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn set_name(this: &HtmlImageElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn align(this: &HtmlImageElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLImageElement" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn set_align(this: &HtmlImageElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = hspace ) ] + #[doc = "Getter for the `hspace` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/hspace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn hspace(this: &HtmlImageElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLImageElement" , js_name = hspace ) ] + #[doc = "Setter for the `hspace` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/hspace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn set_hspace(this: &HtmlImageElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = vspace ) ] + #[doc = "Getter for the `vspace` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/vspace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn vspace(this: &HtmlImageElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLImageElement" , js_name = vspace ) ] + #[doc = "Setter for the `vspace` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/vspace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn set_vspace(this: &HtmlImageElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = longDesc ) ] + #[doc = "Getter for the `longDesc` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/longDesc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn long_desc(this: &HtmlImageElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLImageElement" , js_name = longDesc ) ] + #[doc = "Setter for the `longDesc` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/longDesc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn set_long_desc(this: &HtmlImageElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = border ) ] + #[doc = "Getter for the `border` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/border)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn border(this: &HtmlImageElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLImageElement" , js_name = border ) ] + #[doc = "Setter for the `border` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/border)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn set_border(this: &HtmlImageElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = sizes ) ] + #[doc = "Getter for the `sizes` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/sizes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn sizes(this: &HtmlImageElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLImageElement" , js_name = sizes ) ] + #[doc = "Setter for the `sizes` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/sizes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn set_sizes(this: &HtmlImageElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLImageElement" , js_name = currentSrc ) ] + #[doc = "Getter for the `currentSrc` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/currentSrc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn current_src(this: &HtmlImageElement) -> String; + #[wasm_bindgen(catch, constructor, js_class = "Image")] + #[doc = "The `new HtmlImageElement(..)` constructor, creating a new instance of `HtmlImageElement`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/HTMLImageElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Image")] + #[doc = "The `new HtmlImageElement(..)` constructor, creating a new instance of `HtmlImageElement`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/HTMLImageElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn new_with_width(width: u32) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Image")] + #[doc = "The `new HtmlImageElement(..)` constructor, creating a new instance of `HtmlImageElement`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/HTMLImageElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn new_with_width_and_height(width: u32, height: u32) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "HTMLImageElement" , js_name = decode ) ] + #[doc = "The `decode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLImageElement/decode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`*"] + pub fn decode(this: &HtmlImageElement) -> ::js_sys::Promise; +} diff --git a/crates/web-sys/src/features/gen_HtmlInputElement.rs b/crates/web-sys/src/features/gen_HtmlInputElement.rs new file mode 100644 index 00000000..dd38e2e1 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlInputElement.rs @@ -0,0 +1,701 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLInputElement , typescript_type = "HTMLInputElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlInputElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub type HtmlInputElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = accept ) ] + #[doc = "Getter for the `accept` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/accept)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn accept(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = accept ) ] + #[doc = "Setter for the `accept` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/accept)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_accept(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = alt ) ] + #[doc = "Getter for the `alt` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/alt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn alt(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = alt ) ] + #[doc = "Setter for the `alt` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/alt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_alt(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = autocomplete ) ] + #[doc = "Getter for the `autocomplete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn autocomplete(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = autocomplete ) ] + #[doc = "Setter for the `autocomplete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autocomplete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_autocomplete(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = autofocus ) ] + #[doc = "Getter for the `autofocus` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autofocus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn autofocus(this: &HtmlInputElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = autofocus ) ] + #[doc = "Setter for the `autofocus` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/autofocus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_autofocus(this: &HtmlInputElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = defaultChecked ) ] + #[doc = "Getter for the `defaultChecked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/defaultChecked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn default_checked(this: &HtmlInputElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = defaultChecked ) ] + #[doc = "Setter for the `defaultChecked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/defaultChecked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_default_checked(this: &HtmlInputElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = checked ) ] + #[doc = "Getter for the `checked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn checked(this: &HtmlInputElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = checked ) ] + #[doc = "Setter for the `checked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_checked(this: &HtmlInputElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = disabled ) ] + #[doc = "Getter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn disabled(this: &HtmlInputElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = disabled ) ] + #[doc = "Setter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_disabled(this: &HtmlInputElement, value: bool); + #[cfg(feature = "HtmlFormElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = form ) ] + #[doc = "Getter for the `form` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/form)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlInputElement`*"] + pub fn form(this: &HtmlInputElement) -> Option; + #[cfg(feature = "FileList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = files ) ] + #[doc = "Getter for the `files` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/files)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileList`, `HtmlInputElement`*"] + pub fn files(this: &HtmlInputElement) -> Option; + #[cfg(feature = "FileList")] + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = files ) ] + #[doc = "Setter for the `files` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/files)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FileList`, `HtmlInputElement`*"] + pub fn set_files(this: &HtmlInputElement, value: Option<&FileList>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = formAction ) ] + #[doc = "Getter for the `formAction` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formAction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn form_action(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = formAction ) ] + #[doc = "Setter for the `formAction` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formAction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_form_action(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = formEnctype ) ] + #[doc = "Getter for the `formEnctype` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formEnctype)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn form_enctype(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = formEnctype ) ] + #[doc = "Setter for the `formEnctype` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formEnctype)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_form_enctype(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = formMethod ) ] + #[doc = "Getter for the `formMethod` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formMethod)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn form_method(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = formMethod ) ] + #[doc = "Setter for the `formMethod` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formMethod)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_form_method(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = formNoValidate ) ] + #[doc = "Getter for the `formNoValidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formNoValidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn form_no_validate(this: &HtmlInputElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = formNoValidate ) ] + #[doc = "Setter for the `formNoValidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formNoValidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_form_no_validate(this: &HtmlInputElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = formTarget ) ] + #[doc = "Getter for the `formTarget` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formTarget)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn form_target(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = formTarget ) ] + #[doc = "Setter for the `formTarget` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/formTarget)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_form_target(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn height(this: &HtmlInputElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = height ) ] + #[doc = "Setter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_height(this: &HtmlInputElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = indeterminate ) ] + #[doc = "Getter for the `indeterminate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/indeterminate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn indeterminate(this: &HtmlInputElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = indeterminate ) ] + #[doc = "Setter for the `indeterminate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/indeterminate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_indeterminate(this: &HtmlInputElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = inputMode ) ] + #[doc = "Getter for the `inputMode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/inputMode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn input_mode(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = inputMode ) ] + #[doc = "Setter for the `inputMode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/inputMode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_input_mode(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = list ) ] + #[doc = "Getter for the `list` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/list)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn list(this: &HtmlInputElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = max ) ] + #[doc = "Getter for the `max` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/max)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn max(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = max ) ] + #[doc = "Setter for the `max` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/max)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_max(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = maxLength ) ] + #[doc = "Getter for the `maxLength` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/maxLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn max_length(this: &HtmlInputElement) -> i32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = maxLength ) ] + #[doc = "Setter for the `maxLength` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/maxLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_max_length(this: &HtmlInputElement, value: i32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = min ) ] + #[doc = "Getter for the `min` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/min)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn min(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = min ) ] + #[doc = "Setter for the `min` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/min)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_min(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = minLength ) ] + #[doc = "Getter for the `minLength` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/minLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn min_length(this: &HtmlInputElement) -> i32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = minLength ) ] + #[doc = "Setter for the `minLength` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/minLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_min_length(this: &HtmlInputElement, value: i32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = multiple ) ] + #[doc = "Getter for the `multiple` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/multiple)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn multiple(this: &HtmlInputElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = multiple ) ] + #[doc = "Setter for the `multiple` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/multiple)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_multiple(this: &HtmlInputElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn name(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_name(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = pattern ) ] + #[doc = "Getter for the `pattern` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/pattern)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn pattern(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = pattern ) ] + #[doc = "Setter for the `pattern` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/pattern)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_pattern(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = placeholder ) ] + #[doc = "Getter for the `placeholder` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/placeholder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn placeholder(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = placeholder ) ] + #[doc = "Setter for the `placeholder` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/placeholder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_placeholder(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = readOnly ) ] + #[doc = "Getter for the `readOnly` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/readOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn read_only(this: &HtmlInputElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = readOnly ) ] + #[doc = "Setter for the `readOnly` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/readOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_read_only(this: &HtmlInputElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = required ) ] + #[doc = "Getter for the `required` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/required)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn required(this: &HtmlInputElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = required ) ] + #[doc = "Setter for the `required` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/required)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_required(this: &HtmlInputElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = size ) ] + #[doc = "Getter for the `size` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/size)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn size(this: &HtmlInputElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = size ) ] + #[doc = "Setter for the `size` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/size)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_size(this: &HtmlInputElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = src ) ] + #[doc = "Getter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn src(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = src ) ] + #[doc = "Setter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_src(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = step ) ] + #[doc = "Getter for the `step` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/step)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn step(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = step ) ] + #[doc = "Setter for the `step` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/step)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_step(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn type_(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_type(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = defaultValue ) ] + #[doc = "Getter for the `defaultValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/defaultValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn default_value(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = defaultValue ) ] + #[doc = "Setter for the `defaultValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/defaultValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_default_value(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn value(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_value(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = valueAsNumber ) ] + #[doc = "Getter for the `valueAsNumber` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/valueAsNumber)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn value_as_number(this: &HtmlInputElement) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = valueAsNumber ) ] + #[doc = "Setter for the `valueAsNumber` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/valueAsNumber)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_value_as_number(this: &HtmlInputElement, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn width(this: &HtmlInputElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = width ) ] + #[doc = "Setter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_width(this: &HtmlInputElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = willValidate ) ] + #[doc = "Getter for the `willValidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/willValidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn will_validate(this: &HtmlInputElement) -> bool; + #[cfg(feature = "ValidityState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = validity ) ] + #[doc = "Getter for the `validity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/validity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`, `ValidityState`*"] + pub fn validity(this: &HtmlInputElement) -> ValidityState; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLInputElement" , js_name = validationMessage ) ] + #[doc = "Getter for the `validationMessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/validationMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn validation_message(this: &HtmlInputElement) -> Result; + #[cfg(feature = "NodeList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = labels ) ] + #[doc = "Getter for the `labels` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/labels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`, `NodeList`*"] + pub fn labels(this: &HtmlInputElement) -> Option; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLInputElement" , js_name = selectionStart ) ] + #[doc = "Getter for the `selectionStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn selection_start(this: &HtmlInputElement) -> Result, JsValue>; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "HTMLInputElement" , js_name = selectionStart ) ] + #[doc = "Setter for the `selectionStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_selection_start(this: &HtmlInputElement, value: Option) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLInputElement" , js_name = selectionEnd ) ] + #[doc = "Getter for the `selectionEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn selection_end(this: &HtmlInputElement) -> Result, JsValue>; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "HTMLInputElement" , js_name = selectionEnd ) ] + #[doc = "Setter for the `selectionEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_selection_end(this: &HtmlInputElement, value: Option) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLInputElement" , js_name = selectionDirection ) ] + #[doc = "Getter for the `selectionDirection` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionDirection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn selection_direction(this: &HtmlInputElement) -> Result, JsValue>; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "HTMLInputElement" , js_name = selectionDirection ) ] + #[doc = "Setter for the `selectionDirection` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/selectionDirection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_selection_direction( + this: &HtmlInputElement, + value: Option<&str>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn align(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_align(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = useMap ) ] + #[doc = "Getter for the `useMap` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/useMap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn use_map(this: &HtmlInputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = useMap ) ] + #[doc = "Setter for the `useMap` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/useMap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_use_map(this: &HtmlInputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = webkitEntries ) ] + #[doc = "Getter for the `webkitEntries` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitEntries)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn webkit_entries(this: &HtmlInputElement) -> ::js_sys::Array; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLInputElement" , js_name = webkitdirectory ) ] + #[doc = "Getter for the `webkitdirectory` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn webkitdirectory(this: &HtmlInputElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLInputElement" , js_name = webkitdirectory ) ] + #[doc = "Setter for the `webkitdirectory` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/webkitdirectory)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_webkitdirectory(this: &HtmlInputElement, value: bool); + # [ wasm_bindgen ( method , structural , js_class = "HTMLInputElement" , js_name = checkValidity ) ] + #[doc = "The `checkValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn check_validity(this: &HtmlInputElement) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "HTMLInputElement" , js_name = reportValidity ) ] + #[doc = "The `reportValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/reportValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn report_validity(this: &HtmlInputElement) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "HTMLInputElement" , js_name = select ) ] + #[doc = "The `select()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn select(this: &HtmlInputElement); + # [ wasm_bindgen ( method , structural , js_class = "HTMLInputElement" , js_name = setCustomValidity ) ] + #[doc = "The `setCustomValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setCustomValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_custom_validity(this: &HtmlInputElement, error: &str); + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLInputElement" , js_name = setRangeText ) ] + #[doc = "The `setRangeText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setRangeText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_range_text(this: &HtmlInputElement, replacement: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLInputElement" , js_name = setRangeText ) ] + #[doc = "The `setRangeText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setRangeText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_range_text_with_start_and_end( + this: &HtmlInputElement, + replacement: &str, + start: u32, + end: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLInputElement" , js_name = setSelectionRange ) ] + #[doc = "The `setSelectionRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_selection_range( + this: &HtmlInputElement, + start: u32, + end: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLInputElement" , js_name = setSelectionRange ) ] + #[doc = "The `setSelectionRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/setSelectionRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlInputElement`*"] + pub fn set_selection_range_with_direction( + this: &HtmlInputElement, + start: u32, + end: u32, + direction: &str, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_HtmlLabelElement.rs b/crates/web-sys/src/features/gen_HtmlLabelElement.rs new file mode 100644 index 00000000..f70317da --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlLabelElement.rs @@ -0,0 +1,43 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLLabelElement , typescript_type = "HTMLLabelElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlLabelElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLabelElement`*"] + pub type HtmlLabelElement; + #[cfg(feature = "HtmlFormElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLabelElement" , js_name = form ) ] + #[doc = "Getter for the `form` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/form)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlLabelElement`*"] + pub fn form(this: &HtmlLabelElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLabelElement" , js_name = htmlFor ) ] + #[doc = "Getter for the `htmlFor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/htmlFor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLabelElement`*"] + pub fn html_for(this: &HtmlLabelElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLLabelElement" , js_name = htmlFor ) ] + #[doc = "Setter for the `htmlFor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/htmlFor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLabelElement`*"] + pub fn set_html_for(this: &HtmlLabelElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLabelElement" , js_name = control ) ] + #[doc = "Getter for the `control` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLabelElement/control)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLabelElement`*"] + pub fn control(this: &HtmlLabelElement) -> Option; +} diff --git a/crates/web-sys/src/features/gen_HtmlLegendElement.rs b/crates/web-sys/src/features/gen_HtmlLegendElement.rs new file mode 100644 index 00000000..e06a514b --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlLegendElement.rs @@ -0,0 +1,36 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLLegendElement , typescript_type = "HTMLLegendElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlLegendElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLegendElement`*"] + pub type HtmlLegendElement; + #[cfg(feature = "HtmlFormElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLegendElement" , js_name = form ) ] + #[doc = "Getter for the `form` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement/form)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlLegendElement`*"] + pub fn form(this: &HtmlLegendElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLegendElement" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLegendElement`*"] + pub fn align(this: &HtmlLegendElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLLegendElement" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLegendElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLegendElement`*"] + pub fn set_align(this: &HtmlLegendElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlLiElement.rs b/crates/web-sys/src/features/gen_HtmlLiElement.rs new file mode 100644 index 00000000..0554c65c --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlLiElement.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLLIElement , typescript_type = "HTMLLIElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlLiElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLIElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLiElement`*"] + pub type HtmlLiElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLIElement" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLIElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLiElement`*"] + pub fn value(this: &HtmlLiElement) -> i32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLLIElement" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLIElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLiElement`*"] + pub fn set_value(this: &HtmlLiElement, value: i32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLIElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLIElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLiElement`*"] + pub fn type_(this: &HtmlLiElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLLIElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLIElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLiElement`*"] + pub fn set_type(this: &HtmlLiElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlLinkElement.rs b/crates/web-sys/src/features/gen_HtmlLinkElement.rs new file mode 100644 index 00000000..bf905bb0 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlLinkElement.rs @@ -0,0 +1,220 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLLinkElement , typescript_type = "HTMLLinkElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlLinkElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub type HtmlLinkElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLinkElement" , js_name = disabled ) ] + #[doc = "Getter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn disabled(this: &HtmlLinkElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLLinkElement" , js_name = disabled ) ] + #[doc = "Setter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn set_disabled(this: &HtmlLinkElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLinkElement" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn href(this: &HtmlLinkElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLLinkElement" , js_name = href ) ] + #[doc = "Setter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn set_href(this: &HtmlLinkElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLinkElement" , js_name = crossOrigin ) ] + #[doc = "Getter for the `crossOrigin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/crossOrigin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn cross_origin(this: &HtmlLinkElement) -> Option; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLLinkElement" , js_name = crossOrigin ) ] + #[doc = "Setter for the `crossOrigin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/crossOrigin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn set_cross_origin(this: &HtmlLinkElement, value: Option<&str>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLinkElement" , js_name = rel ) ] + #[doc = "Getter for the `rel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/rel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn rel(this: &HtmlLinkElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLLinkElement" , js_name = rel ) ] + #[doc = "Setter for the `rel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/rel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn set_rel(this: &HtmlLinkElement, value: &str); + #[cfg(feature = "DomTokenList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLinkElement" , js_name = relList ) ] + #[doc = "Getter for the `relList` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/relList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlLinkElement`*"] + pub fn rel_list(this: &HtmlLinkElement) -> DomTokenList; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLinkElement" , js_name = media ) ] + #[doc = "Getter for the `media` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/media)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn media(this: &HtmlLinkElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLLinkElement" , js_name = media ) ] + #[doc = "Setter for the `media` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/media)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn set_media(this: &HtmlLinkElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLinkElement" , js_name = hreflang ) ] + #[doc = "Getter for the `hreflang` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/hreflang)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn hreflang(this: &HtmlLinkElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLLinkElement" , js_name = hreflang ) ] + #[doc = "Setter for the `hreflang` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/hreflang)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn set_hreflang(this: &HtmlLinkElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLinkElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn type_(this: &HtmlLinkElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLLinkElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn set_type(this: &HtmlLinkElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLinkElement" , js_name = referrerPolicy ) ] + #[doc = "Getter for the `referrerPolicy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/referrerPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn referrer_policy(this: &HtmlLinkElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLLinkElement" , js_name = referrerPolicy ) ] + #[doc = "Setter for the `referrerPolicy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/referrerPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn set_referrer_policy(this: &HtmlLinkElement, value: &str); + #[cfg(feature = "DomTokenList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLinkElement" , js_name = sizes ) ] + #[doc = "Getter for the `sizes` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/sizes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlLinkElement`*"] + pub fn sizes(this: &HtmlLinkElement) -> DomTokenList; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLinkElement" , js_name = charset ) ] + #[doc = "Getter for the `charset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/charset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn charset(this: &HtmlLinkElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLLinkElement" , js_name = charset ) ] + #[doc = "Setter for the `charset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/charset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn set_charset(this: &HtmlLinkElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLinkElement" , js_name = rev ) ] + #[doc = "Getter for the `rev` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/rev)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn rev(this: &HtmlLinkElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLLinkElement" , js_name = rev ) ] + #[doc = "Setter for the `rev` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/rev)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn set_rev(this: &HtmlLinkElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLinkElement" , js_name = target ) ] + #[doc = "Getter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn target(this: &HtmlLinkElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLLinkElement" , js_name = target ) ] + #[doc = "Setter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn set_target(this: &HtmlLinkElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLinkElement" , js_name = integrity ) ] + #[doc = "Getter for the `integrity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/integrity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn integrity(this: &HtmlLinkElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLLinkElement" , js_name = integrity ) ] + #[doc = "Setter for the `integrity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/integrity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn set_integrity(this: &HtmlLinkElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLinkElement" , js_name = as ) ] + #[doc = "Getter for the `as` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/as)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn as_(this: &HtmlLinkElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLLinkElement" , js_name = as ) ] + #[doc = "Setter for the `as` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/as)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`*"] + pub fn set_as(this: &HtmlLinkElement, value: &str); + #[cfg(feature = "StyleSheet")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLLinkElement" , js_name = sheet ) ] + #[doc = "Getter for the `sheet` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLLinkElement/sheet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlLinkElement`, `StyleSheet`*"] + pub fn sheet(this: &HtmlLinkElement) -> Option; +} diff --git a/crates/web-sys/src/features/gen_HtmlMapElement.rs b/crates/web-sys/src/features/gen_HtmlMapElement.rs new file mode 100644 index 00000000..29e44476 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlMapElement.rs @@ -0,0 +1,36 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMapElement , typescript_type = "HTMLMapElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlMapElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMapElement`*"] + pub type HtmlMapElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMapElement" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMapElement`*"] + pub fn name(this: &HtmlMapElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMapElement" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMapElement`*"] + pub fn set_name(this: &HtmlMapElement, value: &str); + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMapElement" , js_name = areas ) ] + #[doc = "Getter for the `areas` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMapElement/areas)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlMapElement`*"] + pub fn areas(this: &HtmlMapElement) -> HtmlCollection; +} diff --git a/crates/web-sys/src/features/gen_HtmlMediaElement.rs b/crates/web-sys/src/features/gen_HtmlMediaElement.rs new file mode 100644 index 00000000..5e40add3 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlMediaElement.rs @@ -0,0 +1,477 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMediaElement , typescript_type = "HTMLMediaElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlMediaElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub type HtmlMediaElement; + #[cfg(feature = "MediaError")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = error ) ] + #[doc = "Getter for the `error` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaError`*"] + pub fn error(this: &HtmlMediaElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = src ) ] + #[doc = "Getter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn src(this: &HtmlMediaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMediaElement" , js_name = src ) ] + #[doc = "Setter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn set_src(this: &HtmlMediaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = currentSrc ) ] + #[doc = "Getter for the `currentSrc` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/currentSrc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn current_src(this: &HtmlMediaElement) -> String; + #[cfg(feature = "MediaStream")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = srcObject ) ] + #[doc = "Getter for the `srcObject` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/srcObject)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaStream`*"] + pub fn src_object(this: &HtmlMediaElement) -> Option; + #[cfg(feature = "MediaStream")] + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMediaElement" , js_name = srcObject ) ] + #[doc = "Setter for the `srcObject` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/srcObject)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaStream`*"] + pub fn set_src_object(this: &HtmlMediaElement, value: Option<&MediaStream>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = crossOrigin ) ] + #[doc = "Getter for the `crossOrigin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/crossOrigin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn cross_origin(this: &HtmlMediaElement) -> Option; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMediaElement" , js_name = crossOrigin ) ] + #[doc = "Setter for the `crossOrigin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/crossOrigin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn set_cross_origin(this: &HtmlMediaElement, value: Option<&str>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = networkState ) ] + #[doc = "Getter for the `networkState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/networkState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn network_state(this: &HtmlMediaElement) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = preload ) ] + #[doc = "Getter for the `preload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/preload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn preload(this: &HtmlMediaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMediaElement" , js_name = preload ) ] + #[doc = "Setter for the `preload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/preload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn set_preload(this: &HtmlMediaElement, value: &str); + #[cfg(feature = "TimeRanges")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = buffered ) ] + #[doc = "Getter for the `buffered` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/buffered)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TimeRanges`*"] + pub fn buffered(this: &HtmlMediaElement) -> TimeRanges; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = readyState ) ] + #[doc = "Getter for the `readyState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/readyState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn ready_state(this: &HtmlMediaElement) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = seeking ) ] + #[doc = "Getter for the `seeking` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/seeking)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn seeking(this: &HtmlMediaElement) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = currentTime ) ] + #[doc = "Getter for the `currentTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/currentTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn current_time(this: &HtmlMediaElement) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMediaElement" , js_name = currentTime ) ] + #[doc = "Setter for the `currentTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/currentTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn set_current_time(this: &HtmlMediaElement, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = duration ) ] + #[doc = "Getter for the `duration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/duration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn duration(this: &HtmlMediaElement) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = paused ) ] + #[doc = "Getter for the `paused` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/paused)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn paused(this: &HtmlMediaElement) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = defaultPlaybackRate ) ] + #[doc = "Getter for the `defaultPlaybackRate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/defaultPlaybackRate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn default_playback_rate(this: &HtmlMediaElement) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMediaElement" , js_name = defaultPlaybackRate ) ] + #[doc = "Setter for the `defaultPlaybackRate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/defaultPlaybackRate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn set_default_playback_rate(this: &HtmlMediaElement, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = playbackRate ) ] + #[doc = "Getter for the `playbackRate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/playbackRate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn playback_rate(this: &HtmlMediaElement) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMediaElement" , js_name = playbackRate ) ] + #[doc = "Setter for the `playbackRate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/playbackRate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn set_playback_rate(this: &HtmlMediaElement, value: f64); + #[cfg(feature = "TimeRanges")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = played ) ] + #[doc = "Getter for the `played` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/played)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TimeRanges`*"] + pub fn played(this: &HtmlMediaElement) -> TimeRanges; + #[cfg(feature = "TimeRanges")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = seekable ) ] + #[doc = "Getter for the `seekable` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/seekable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TimeRanges`*"] + pub fn seekable(this: &HtmlMediaElement) -> TimeRanges; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = ended ) ] + #[doc = "Getter for the `ended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/ended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn ended(this: &HtmlMediaElement) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = autoplay ) ] + #[doc = "Getter for the `autoplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/autoplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn autoplay(this: &HtmlMediaElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMediaElement" , js_name = autoplay ) ] + #[doc = "Setter for the `autoplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/autoplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn set_autoplay(this: &HtmlMediaElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = loop ) ] + #[doc = "Getter for the `loop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/loop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn loop_(this: &HtmlMediaElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMediaElement" , js_name = loop ) ] + #[doc = "Setter for the `loop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/loop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn set_loop(this: &HtmlMediaElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = controls ) ] + #[doc = "Getter for the `controls` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/controls)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn controls(this: &HtmlMediaElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMediaElement" , js_name = controls ) ] + #[doc = "Setter for the `controls` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/controls)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn set_controls(this: &HtmlMediaElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = volume ) ] + #[doc = "Getter for the `volume` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/volume)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn volume(this: &HtmlMediaElement) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMediaElement" , js_name = volume ) ] + #[doc = "Setter for the `volume` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/volume)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn set_volume(this: &HtmlMediaElement, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = muted ) ] + #[doc = "Getter for the `muted` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/muted)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn muted(this: &HtmlMediaElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMediaElement" , js_name = muted ) ] + #[doc = "Setter for the `muted` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/muted)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn set_muted(this: &HtmlMediaElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = defaultMuted ) ] + #[doc = "Getter for the `defaultMuted` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/defaultMuted)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn default_muted(this: &HtmlMediaElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMediaElement" , js_name = defaultMuted ) ] + #[doc = "Setter for the `defaultMuted` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/defaultMuted)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn set_default_muted(this: &HtmlMediaElement, value: bool); + #[cfg(feature = "AudioTrackList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = audioTracks ) ] + #[doc = "Getter for the `audioTracks` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/audioTracks)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioTrackList`, `HtmlMediaElement`*"] + pub fn audio_tracks(this: &HtmlMediaElement) -> AudioTrackList; + #[cfg(feature = "VideoTrackList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = videoTracks ) ] + #[doc = "Getter for the `videoTracks` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/videoTracks)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `VideoTrackList`*"] + pub fn video_tracks(this: &HtmlMediaElement) -> VideoTrackList; + #[cfg(feature = "TextTrackList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = textTracks ) ] + #[doc = "Getter for the `textTracks` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/textTracks)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TextTrackList`*"] + pub fn text_tracks(this: &HtmlMediaElement) -> Option; + #[cfg(feature = "MediaKeys")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = mediaKeys ) ] + #[doc = "Getter for the `mediaKeys` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/mediaKeys)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaKeys`*"] + pub fn media_keys(this: &HtmlMediaElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = onencrypted ) ] + #[doc = "Getter for the `onencrypted` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/onencrypted)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn onencrypted(this: &HtmlMediaElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMediaElement" , js_name = onencrypted ) ] + #[doc = "Setter for the `onencrypted` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/onencrypted)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn set_onencrypted(this: &HtmlMediaElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMediaElement" , js_name = onwaitingforkey ) ] + #[doc = "Getter for the `onwaitingforkey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/onwaitingforkey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn onwaitingforkey(this: &HtmlMediaElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMediaElement" , js_name = onwaitingforkey ) ] + #[doc = "Setter for the `onwaitingforkey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/onwaitingforkey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn set_onwaitingforkey(this: &HtmlMediaElement, value: Option<&::js_sys::Function>); + #[cfg(all(feature = "TextTrack", feature = "TextTrackKind",))] + # [ wasm_bindgen ( method , structural , js_class = "HTMLMediaElement" , js_name = addTextTrack ) ] + #[doc = "The `addTextTrack()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/addTextTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TextTrack`, `TextTrackKind`*"] + pub fn add_text_track(this: &HtmlMediaElement, kind: TextTrackKind) -> TextTrack; + #[cfg(all(feature = "TextTrack", feature = "TextTrackKind",))] + # [ wasm_bindgen ( method , structural , js_class = "HTMLMediaElement" , js_name = addTextTrack ) ] + #[doc = "The `addTextTrack()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/addTextTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TextTrack`, `TextTrackKind`*"] + pub fn add_text_track_with_label( + this: &HtmlMediaElement, + kind: TextTrackKind, + label: &str, + ) -> TextTrack; + #[cfg(all(feature = "TextTrack", feature = "TextTrackKind",))] + # [ wasm_bindgen ( method , structural , js_class = "HTMLMediaElement" , js_name = addTextTrack ) ] + #[doc = "The `addTextTrack()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/addTextTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `TextTrack`, `TextTrackKind`*"] + pub fn add_text_track_with_label_and_language( + this: &HtmlMediaElement, + kind: TextTrackKind, + label: &str, + language: &str, + ) -> TextTrack; + # [ wasm_bindgen ( method , structural , js_class = "HTMLMediaElement" , js_name = canPlayType ) ] + #[doc = "The `canPlayType()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/canPlayType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn can_play_type(this: &HtmlMediaElement, type_: &str) -> String; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLMediaElement" , js_name = fastSeek ) ] + #[doc = "The `fastSeek()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/fastSeek)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn fast_seek(this: &HtmlMediaElement, time: f64) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "HTMLMediaElement" , js_name = hasSuspendTaint ) ] + #[doc = "The `hasSuspendTaint()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/hasSuspendTaint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn has_suspend_taint(this: &HtmlMediaElement) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "HTMLMediaElement" , js_name = load ) ] + #[doc = "The `load()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/load)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn load(this: &HtmlMediaElement); + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLMediaElement" , js_name = pause ) ] + #[doc = "The `pause()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/pause)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn pause(this: &HtmlMediaElement) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLMediaElement" , js_name = play ) ] + #[doc = "The `play()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/play)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn play(this: &HtmlMediaElement) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLMediaElement" , js_name = seekToNextFrame ) ] + #[doc = "The `seekToNextFrame()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/seekToNextFrame)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn seek_to_next_frame(this: &HtmlMediaElement) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "MediaKeys")] + # [ wasm_bindgen ( method , structural , js_class = "HTMLMediaElement" , js_name = setMediaKeys ) ] + #[doc = "The `setMediaKeys()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/setMediaKeys)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaKeys`*"] + pub fn set_media_keys( + this: &HtmlMediaElement, + media_keys: Option<&MediaKeys>, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "HTMLMediaElement" , js_name = setVisible ) ] + #[doc = "The `setVisible()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/setVisible)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub fn set_visible(this: &HtmlMediaElement, a_visible: bool); +} +impl HtmlMediaElement { + #[doc = "The `HTMLMediaElement.NETWORK_EMPTY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub const NETWORK_EMPTY: u16 = 0i64 as u16; + #[doc = "The `HTMLMediaElement.NETWORK_IDLE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub const NETWORK_IDLE: u16 = 1u64 as u16; + #[doc = "The `HTMLMediaElement.NETWORK_LOADING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub const NETWORK_LOADING: u16 = 2u64 as u16; + #[doc = "The `HTMLMediaElement.NETWORK_NO_SOURCE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub const NETWORK_NO_SOURCE: u16 = 3u64 as u16; + #[doc = "The `HTMLMediaElement.HAVE_NOTHING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub const HAVE_NOTHING: u16 = 0i64 as u16; + #[doc = "The `HTMLMediaElement.HAVE_METADATA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub const HAVE_METADATA: u16 = 1u64 as u16; + #[doc = "The `HTMLMediaElement.HAVE_CURRENT_DATA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub const HAVE_CURRENT_DATA: u16 = 2u64 as u16; + #[doc = "The `HTMLMediaElement.HAVE_FUTURE_DATA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub const HAVE_FUTURE_DATA: u16 = 3u64 as u16; + #[doc = "The `HTMLMediaElement.HAVE_ENOUGH_DATA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`*"] + pub const HAVE_ENOUGH_DATA: u16 = 4u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_HtmlMenuElement.rs b/crates/web-sys/src/features/gen_HtmlMenuElement.rs new file mode 100644 index 00000000..acbb142a --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlMenuElement.rs @@ -0,0 +1,56 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMenuElement , typescript_type = "HTMLMenuElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlMenuElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] + pub type HtmlMenuElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMenuElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] + pub fn type_(this: &HtmlMenuElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMenuElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] + pub fn set_type(this: &HtmlMenuElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMenuElement" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] + pub fn label(this: &HtmlMenuElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMenuElement" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] + pub fn set_label(this: &HtmlMenuElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMenuElement" , js_name = compact ) ] + #[doc = "Getter for the `compact` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement/compact)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] + pub fn compact(this: &HtmlMenuElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMenuElement" , js_name = compact ) ] + #[doc = "Setter for the `compact` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuElement/compact)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuElement`*"] + pub fn set_compact(this: &HtmlMenuElement, value: bool); +} diff --git a/crates/web-sys/src/features/gen_HtmlMenuItemElement.rs b/crates/web-sys/src/features/gen_HtmlMenuItemElement.rs new file mode 100644 index 00000000..bf1db888 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlMenuItemElement.rs @@ -0,0 +1,112 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMenuItemElement , typescript_type = "HTMLMenuItemElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlMenuItemElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] + pub type HtmlMenuItemElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] + pub fn type_(this: &HtmlMenuItemElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] + pub fn set_type(this: &HtmlMenuItemElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] + pub fn label(this: &HtmlMenuItemElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] + pub fn set_label(this: &HtmlMenuItemElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = icon ) ] + #[doc = "Getter for the `icon` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/icon)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] + pub fn icon(this: &HtmlMenuItemElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = icon ) ] + #[doc = "Setter for the `icon` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/icon)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] + pub fn set_icon(this: &HtmlMenuItemElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = disabled ) ] + #[doc = "Getter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] + pub fn disabled(this: &HtmlMenuItemElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = disabled ) ] + #[doc = "Setter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] + pub fn set_disabled(this: &HtmlMenuItemElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = checked ) ] + #[doc = "Getter for the `checked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/checked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] + pub fn checked(this: &HtmlMenuItemElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = checked ) ] + #[doc = "Setter for the `checked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/checked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] + pub fn set_checked(this: &HtmlMenuItemElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = radiogroup ) ] + #[doc = "Getter for the `radiogroup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/radiogroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] + pub fn radiogroup(this: &HtmlMenuItemElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = radiogroup ) ] + #[doc = "Setter for the `radiogroup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/radiogroup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] + pub fn set_radiogroup(this: &HtmlMenuItemElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMenuItemElement" , js_name = defaultChecked ) ] + #[doc = "Getter for the `defaultChecked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/defaultChecked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] + pub fn default_checked(this: &HtmlMenuItemElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMenuItemElement" , js_name = defaultChecked ) ] + #[doc = "Setter for the `defaultChecked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMenuItemElement/defaultChecked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMenuItemElement`*"] + pub fn set_default_checked(this: &HtmlMenuItemElement, value: bool); +} diff --git a/crates/web-sys/src/features/gen_HtmlMetaElement.rs b/crates/web-sys/src/features/gen_HtmlMetaElement.rs new file mode 100644 index 00000000..c819da03 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlMetaElement.rs @@ -0,0 +1,70 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMetaElement , typescript_type = "HTMLMetaElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlMetaElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] + pub type HtmlMetaElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMetaElement" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] + pub fn name(this: &HtmlMetaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMetaElement" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] + pub fn set_name(this: &HtmlMetaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMetaElement" , js_name = httpEquiv ) ] + #[doc = "Getter for the `httpEquiv` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/httpEquiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] + pub fn http_equiv(this: &HtmlMetaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMetaElement" , js_name = httpEquiv ) ] + #[doc = "Setter for the `httpEquiv` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/httpEquiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] + pub fn set_http_equiv(this: &HtmlMetaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMetaElement" , js_name = content ) ] + #[doc = "Getter for the `content` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/content)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] + pub fn content(this: &HtmlMetaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMetaElement" , js_name = content ) ] + #[doc = "Setter for the `content` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/content)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] + pub fn set_content(this: &HtmlMetaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMetaElement" , js_name = scheme ) ] + #[doc = "Getter for the `scheme` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/scheme)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] + pub fn scheme(this: &HtmlMetaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMetaElement" , js_name = scheme ) ] + #[doc = "Setter for the `scheme` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMetaElement/scheme)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMetaElement`*"] + pub fn set_scheme(this: &HtmlMetaElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlMeterElement.rs b/crates/web-sys/src/features/gen_HtmlMeterElement.rs new file mode 100644 index 00000000..96579e16 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlMeterElement.rs @@ -0,0 +1,106 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLMeterElement , typescript_type = "HTMLMeterElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlMeterElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] + pub type HtmlMeterElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMeterElement" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] + pub fn value(this: &HtmlMeterElement) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMeterElement" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] + pub fn set_value(this: &HtmlMeterElement, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMeterElement" , js_name = min ) ] + #[doc = "Getter for the `min` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/min)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] + pub fn min(this: &HtmlMeterElement) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMeterElement" , js_name = min ) ] + #[doc = "Setter for the `min` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/min)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] + pub fn set_min(this: &HtmlMeterElement, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMeterElement" , js_name = max ) ] + #[doc = "Getter for the `max` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/max)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] + pub fn max(this: &HtmlMeterElement) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMeterElement" , js_name = max ) ] + #[doc = "Setter for the `max` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/max)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] + pub fn set_max(this: &HtmlMeterElement, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMeterElement" , js_name = low ) ] + #[doc = "Getter for the `low` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/low)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] + pub fn low(this: &HtmlMeterElement) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMeterElement" , js_name = low ) ] + #[doc = "Setter for the `low` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/low)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] + pub fn set_low(this: &HtmlMeterElement, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMeterElement" , js_name = high ) ] + #[doc = "Getter for the `high` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/high)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] + pub fn high(this: &HtmlMeterElement) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMeterElement" , js_name = high ) ] + #[doc = "Setter for the `high` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/high)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] + pub fn set_high(this: &HtmlMeterElement, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMeterElement" , js_name = optimum ) ] + #[doc = "Getter for the `optimum` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/optimum)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] + pub fn optimum(this: &HtmlMeterElement) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLMeterElement" , js_name = optimum ) ] + #[doc = "Setter for the `optimum` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/optimum)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`*"] + pub fn set_optimum(this: &HtmlMeterElement, value: f64); + #[cfg(feature = "NodeList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLMeterElement" , js_name = labels ) ] + #[doc = "Getter for the `labels` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLMeterElement/labels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMeterElement`, `NodeList`*"] + pub fn labels(this: &HtmlMeterElement) -> NodeList; +} diff --git a/crates/web-sys/src/features/gen_HtmlModElement.rs b/crates/web-sys/src/features/gen_HtmlModElement.rs new file mode 100644 index 00000000..c74070cc --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlModElement.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLModElement , typescript_type = "HTMLModElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlModElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLModElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlModElement`*"] + pub type HtmlModElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLModElement" , js_name = cite ) ] + #[doc = "Getter for the `cite` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLModElement/cite)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlModElement`*"] + pub fn cite(this: &HtmlModElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLModElement" , js_name = cite ) ] + #[doc = "Setter for the `cite` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLModElement/cite)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlModElement`*"] + pub fn set_cite(this: &HtmlModElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLModElement" , js_name = dateTime ) ] + #[doc = "Getter for the `dateTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLModElement/dateTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlModElement`*"] + pub fn date_time(this: &HtmlModElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLModElement" , js_name = dateTime ) ] + #[doc = "Setter for the `dateTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLModElement/dateTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlModElement`*"] + pub fn set_date_time(this: &HtmlModElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlOListElement.rs b/crates/web-sys/src/features/gen_HtmlOListElement.rs new file mode 100644 index 00000000..9c2b0de6 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlOListElement.rs @@ -0,0 +1,70 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLOListElement , typescript_type = "HTMLOListElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlOListElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] + pub type HtmlOListElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOListElement" , js_name = reversed ) ] + #[doc = "Getter for the `reversed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/reversed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] + pub fn reversed(this: &HtmlOListElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLOListElement" , js_name = reversed ) ] + #[doc = "Setter for the `reversed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/reversed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] + pub fn set_reversed(this: &HtmlOListElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOListElement" , js_name = start ) ] + #[doc = "Getter for the `start` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] + pub fn start(this: &HtmlOListElement) -> i32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLOListElement" , js_name = start ) ] + #[doc = "Setter for the `start` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] + pub fn set_start(this: &HtmlOListElement, value: i32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOListElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] + pub fn type_(this: &HtmlOListElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLOListElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] + pub fn set_type(this: &HtmlOListElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOListElement" , js_name = compact ) ] + #[doc = "Getter for the `compact` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/compact)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] + pub fn compact(this: &HtmlOListElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLOListElement" , js_name = compact ) ] + #[doc = "Setter for the `compact` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOListElement/compact)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOListElement`*"] + pub fn set_compact(this: &HtmlOListElement, value: bool); +} diff --git a/crates/web-sys/src/features/gen_HtmlObjectElement.rs b/crates/web-sys/src/features/gen_HtmlObjectElement.rs new file mode 100644 index 00000000..65325843 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlObjectElement.rs @@ -0,0 +1,327 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLObjectElement , typescript_type = "HTMLObjectElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlObjectElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub type HtmlObjectElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = data ) ] + #[doc = "Getter for the `data` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/data)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn data(this: &HtmlObjectElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLObjectElement" , js_name = data ) ] + #[doc = "Setter for the `data` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/data)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_data(this: &HtmlObjectElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn type_(this: &HtmlObjectElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLObjectElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_type(this: &HtmlObjectElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = typeMustMatch ) ] + #[doc = "Getter for the `typeMustMatch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/typeMustMatch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn type_must_match(this: &HtmlObjectElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLObjectElement" , js_name = typeMustMatch ) ] + #[doc = "Setter for the `typeMustMatch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/typeMustMatch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_type_must_match(this: &HtmlObjectElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn name(this: &HtmlObjectElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLObjectElement" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_name(this: &HtmlObjectElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = useMap ) ] + #[doc = "Getter for the `useMap` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/useMap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn use_map(this: &HtmlObjectElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLObjectElement" , js_name = useMap ) ] + #[doc = "Setter for the `useMap` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/useMap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_use_map(this: &HtmlObjectElement, value: &str); + #[cfg(feature = "HtmlFormElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = form ) ] + #[doc = "Getter for the `form` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/form)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlObjectElement`*"] + pub fn form(this: &HtmlObjectElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn width(this: &HtmlObjectElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLObjectElement" , js_name = width ) ] + #[doc = "Setter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_width(this: &HtmlObjectElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn height(this: &HtmlObjectElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLObjectElement" , js_name = height ) ] + #[doc = "Setter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_height(this: &HtmlObjectElement, value: &str); + #[cfg(feature = "Document")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = contentDocument ) ] + #[doc = "Getter for the `contentDocument` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/contentDocument)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlObjectElement`*"] + pub fn content_document(this: &HtmlObjectElement) -> Option; + #[cfg(feature = "Window")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = contentWindow ) ] + #[doc = "Getter for the `contentWindow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/contentWindow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`, `Window`*"] + pub fn content_window(this: &HtmlObjectElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = willValidate ) ] + #[doc = "Getter for the `willValidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/willValidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn will_validate(this: &HtmlObjectElement) -> bool; + #[cfg(feature = "ValidityState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = validity ) ] + #[doc = "Getter for the `validity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`, `ValidityState`*"] + pub fn validity(this: &HtmlObjectElement) -> ValidityState; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLObjectElement" , js_name = validationMessage ) ] + #[doc = "Getter for the `validationMessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/validationMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn validation_message(this: &HtmlObjectElement) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn align(this: &HtmlObjectElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLObjectElement" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_align(this: &HtmlObjectElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = archive ) ] + #[doc = "Getter for the `archive` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/archive)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn archive(this: &HtmlObjectElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLObjectElement" , js_name = archive ) ] + #[doc = "Setter for the `archive` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/archive)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_archive(this: &HtmlObjectElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = code ) ] + #[doc = "Getter for the `code` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/code)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn code(this: &HtmlObjectElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLObjectElement" , js_name = code ) ] + #[doc = "Setter for the `code` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/code)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_code(this: &HtmlObjectElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = declare ) ] + #[doc = "Getter for the `declare` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/declare)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn declare(this: &HtmlObjectElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLObjectElement" , js_name = declare ) ] + #[doc = "Setter for the `declare` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/declare)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_declare(this: &HtmlObjectElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = hspace ) ] + #[doc = "Getter for the `hspace` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/hspace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn hspace(this: &HtmlObjectElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLObjectElement" , js_name = hspace ) ] + #[doc = "Setter for the `hspace` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/hspace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_hspace(this: &HtmlObjectElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = standby ) ] + #[doc = "Getter for the `standby` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/standby)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn standby(this: &HtmlObjectElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLObjectElement" , js_name = standby ) ] + #[doc = "Setter for the `standby` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/standby)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_standby(this: &HtmlObjectElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = vspace ) ] + #[doc = "Getter for the `vspace` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/vspace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn vspace(this: &HtmlObjectElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLObjectElement" , js_name = vspace ) ] + #[doc = "Setter for the `vspace` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/vspace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_vspace(this: &HtmlObjectElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = codeBase ) ] + #[doc = "Getter for the `codeBase` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/codeBase)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn code_base(this: &HtmlObjectElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLObjectElement" , js_name = codeBase ) ] + #[doc = "Setter for the `codeBase` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/codeBase)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_code_base(this: &HtmlObjectElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = codeType ) ] + #[doc = "Getter for the `codeType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/codeType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn code_type(this: &HtmlObjectElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLObjectElement" , js_name = codeType ) ] + #[doc = "Setter for the `codeType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/codeType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_code_type(this: &HtmlObjectElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLObjectElement" , js_name = border ) ] + #[doc = "Getter for the `border` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/border)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn border(this: &HtmlObjectElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLObjectElement" , js_name = border ) ] + #[doc = "Setter for the `border` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/border)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_border(this: &HtmlObjectElement, value: &str); + # [ wasm_bindgen ( method , structural , js_class = "HTMLObjectElement" , js_name = checkValidity ) ] + #[doc = "The `checkValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/checkValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn check_validity(this: &HtmlObjectElement) -> bool; + #[cfg(feature = "Document")] + # [ wasm_bindgen ( method , structural , js_class = "HTMLObjectElement" , js_name = getSVGDocument ) ] + #[doc = "The `getSVGDocument()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/getSVGDocument)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `HtmlObjectElement`*"] + pub fn get_svg_document(this: &HtmlObjectElement) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "HTMLObjectElement" , js_name = reportValidity ) ] + #[doc = "The `reportValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/reportValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn report_validity(this: &HtmlObjectElement) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "HTMLObjectElement" , js_name = setCustomValidity ) ] + #[doc = "The `setCustomValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLObjectElement/setCustomValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlObjectElement`*"] + pub fn set_custom_validity(this: &HtmlObjectElement, error: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlOptGroupElement.rs b/crates/web-sys/src/features/gen_HtmlOptGroupElement.rs new file mode 100644 index 00000000..868f0482 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlOptGroupElement.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLOptGroupElement , typescript_type = "HTMLOptGroupElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlOptGroupElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`*"] + pub type HtmlOptGroupElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOptGroupElement" , js_name = disabled ) ] + #[doc = "Getter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`*"] + pub fn disabled(this: &HtmlOptGroupElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLOptGroupElement" , js_name = disabled ) ] + #[doc = "Setter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`*"] + pub fn set_disabled(this: &HtmlOptGroupElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOptGroupElement" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`*"] + pub fn label(this: &HtmlOptGroupElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLOptGroupElement" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptGroupElement/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`*"] + pub fn set_label(this: &HtmlOptGroupElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlOptionElement.rs b/crates/web-sys/src/features/gen_HtmlOptionElement.rs new file mode 100644 index 00000000..a4b6a5ef --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlOptionElement.rs @@ -0,0 +1,157 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLOptionElement , typescript_type = "HTMLOptionElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlOptionElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub type HtmlOptionElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOptionElement" , js_name = disabled ) ] + #[doc = "Getter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn disabled(this: &HtmlOptionElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLOptionElement" , js_name = disabled ) ] + #[doc = "Setter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn set_disabled(this: &HtmlOptionElement, value: bool); + #[cfg(feature = "HtmlFormElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOptionElement" , js_name = form ) ] + #[doc = "Getter for the `form` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/form)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlOptionElement`*"] + pub fn form(this: &HtmlOptionElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOptionElement" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn label(this: &HtmlOptionElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLOptionElement" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn set_label(this: &HtmlOptionElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOptionElement" , js_name = defaultSelected ) ] + #[doc = "Getter for the `defaultSelected` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/defaultSelected)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn default_selected(this: &HtmlOptionElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLOptionElement" , js_name = defaultSelected ) ] + #[doc = "Setter for the `defaultSelected` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/defaultSelected)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn set_default_selected(this: &HtmlOptionElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOptionElement" , js_name = selected ) ] + #[doc = "Getter for the `selected` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/selected)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn selected(this: &HtmlOptionElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLOptionElement" , js_name = selected ) ] + #[doc = "Setter for the `selected` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/selected)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn set_selected(this: &HtmlOptionElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOptionElement" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn value(this: &HtmlOptionElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLOptionElement" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn set_value(this: &HtmlOptionElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOptionElement" , js_name = text ) ] + #[doc = "Getter for the `text` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn text(this: &HtmlOptionElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLOptionElement" , js_name = text ) ] + #[doc = "Setter for the `text` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn set_text(this: &HtmlOptionElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOptionElement" , js_name = index ) ] + #[doc = "Getter for the `index` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/index)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn index(this: &HtmlOptionElement) -> i32; + #[wasm_bindgen(catch, constructor, js_class = "Option")] + #[doc = "The `new HtmlOptionElement(..)` constructor, creating a new instance of `HtmlOptionElement`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/HTMLOptionElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Option")] + #[doc = "The `new HtmlOptionElement(..)` constructor, creating a new instance of `HtmlOptionElement`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/HTMLOptionElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn new_with_text(text: &str) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Option")] + #[doc = "The `new HtmlOptionElement(..)` constructor, creating a new instance of `HtmlOptionElement`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/HTMLOptionElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn new_with_text_and_value(text: &str, value: &str) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Option")] + #[doc = "The `new HtmlOptionElement(..)` constructor, creating a new instance of `HtmlOptionElement`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/HTMLOptionElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn new_with_text_and_value_and_default_selected( + text: &str, + value: &str, + default_selected: bool, + ) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Option")] + #[doc = "The `new HtmlOptionElement(..)` constructor, creating a new instance of `HtmlOptionElement`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionElement/HTMLOptionElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`*"] + pub fn new_with_text_and_value_and_default_selected_and_selected( + text: &str, + value: &str, + default_selected: bool, + selected: bool, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_HtmlOptionsCollection.rs b/crates/web-sys/src/features/gen_HtmlOptionsCollection.rs new file mode 100644 index 00000000..79c95456 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlOptionsCollection.rs @@ -0,0 +1,137 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlCollection , extends = :: js_sys :: Object , js_name = HTMLOptionsCollection , typescript_type = "HTMLOptionsCollection" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlOptionsCollection` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"] + pub type HtmlOptionsCollection; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOptionsCollection" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"] + pub fn length(this: &HtmlOptionsCollection) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLOptionsCollection" , js_name = length ) ] + #[doc = "Setter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"] + pub fn set_length(this: &HtmlOptionsCollection, value: u32); + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLOptionsCollection" , js_name = selectedIndex ) ] + #[doc = "Getter for the `selectedIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/selectedIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"] + pub fn selected_index(this: &HtmlOptionsCollection) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "HTMLOptionsCollection" , js_name = selectedIndex ) ] + #[doc = "Setter for the `selectedIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/selectedIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"] + pub fn set_selected_index(this: &HtmlOptionsCollection, value: i32) -> Result<(), JsValue>; + #[cfg(feature = "HtmlOptionElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlOptionsCollection`*"] + pub fn add_with_html_option_element( + this: &HtmlOptionsCollection, + element: &HtmlOptionElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlOptGroupElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`, `HtmlOptionsCollection`*"] + pub fn add_with_html_opt_group_element( + this: &HtmlOptionsCollection, + element: &HtmlOptGroupElement, + ) -> Result<(), JsValue>; + #[cfg(all(feature = "HtmlElement", feature = "HtmlOptionElement",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`, `HtmlOptionElement`, `HtmlOptionsCollection`*"] + pub fn add_with_html_option_element_and_opt_html_element( + this: &HtmlOptionsCollection, + element: &HtmlOptionElement, + before: Option<&HtmlElement>, + ) -> Result<(), JsValue>; + #[cfg(all(feature = "HtmlElement", feature = "HtmlOptGroupElement",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlElement`, `HtmlOptGroupElement`, `HtmlOptionsCollection`*"] + pub fn add_with_html_opt_group_element_and_opt_html_element( + this: &HtmlOptionsCollection, + element: &HtmlOptGroupElement, + before: Option<&HtmlElement>, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlOptionElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlOptionsCollection`*"] + pub fn add_with_html_option_element_and_opt_i32( + this: &HtmlOptionsCollection, + element: &HtmlOptionElement, + before: Option, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlOptGroupElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`, `HtmlOptionsCollection`*"] + pub fn add_with_html_opt_group_element_and_opt_i32( + this: &HtmlOptionsCollection, + element: &HtmlOptGroupElement, + before: Option, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLOptionsCollection" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOptionsCollection/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`*"] + pub fn remove(this: &HtmlOptionsCollection, index: i32) -> Result<(), JsValue>; + #[cfg(feature = "HtmlOptionElement")] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLOptionsCollection", + indexing_setter + )] + #[doc = "Indexing setter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlOptionsCollection`*"] + pub fn set( + this: &HtmlOptionsCollection, + index: u32, + option: Option<&HtmlOptionElement>, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_HtmlOutputElement.rs b/crates/web-sys/src/features/gen_HtmlOutputElement.rs new file mode 100644 index 00000000..39b91721 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlOutputElement.rs @@ -0,0 +1,130 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLOutputElement , typescript_type = "HTMLOutputElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlOutputElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] + pub type HtmlOutputElement; + #[cfg(feature = "DomTokenList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOutputElement" , js_name = htmlFor ) ] + #[doc = "Getter for the `htmlFor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/htmlFor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `HtmlOutputElement`*"] + pub fn html_for(this: &HtmlOutputElement) -> DomTokenList; + #[cfg(feature = "HtmlFormElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOutputElement" , js_name = form ) ] + #[doc = "Getter for the `form` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/form)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlOutputElement`*"] + pub fn form(this: &HtmlOutputElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOutputElement" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] + pub fn name(this: &HtmlOutputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLOutputElement" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] + pub fn set_name(this: &HtmlOutputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOutputElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] + pub fn type_(this: &HtmlOutputElement) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOutputElement" , js_name = defaultValue ) ] + #[doc = "Getter for the `defaultValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/defaultValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] + pub fn default_value(this: &HtmlOutputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLOutputElement" , js_name = defaultValue ) ] + #[doc = "Setter for the `defaultValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/defaultValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] + pub fn set_default_value(this: &HtmlOutputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOutputElement" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] + pub fn value(this: &HtmlOutputElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLOutputElement" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] + pub fn set_value(this: &HtmlOutputElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOutputElement" , js_name = willValidate ) ] + #[doc = "Getter for the `willValidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/willValidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] + pub fn will_validate(this: &HtmlOutputElement) -> bool; + #[cfg(feature = "ValidityState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOutputElement" , js_name = validity ) ] + #[doc = "Getter for the `validity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/validity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`, `ValidityState`*"] + pub fn validity(this: &HtmlOutputElement) -> ValidityState; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLOutputElement" , js_name = validationMessage ) ] + #[doc = "Getter for the `validationMessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/validationMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] + pub fn validation_message(this: &HtmlOutputElement) -> Result; + #[cfg(feature = "NodeList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLOutputElement" , js_name = labels ) ] + #[doc = "Getter for the `labels` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/labels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`, `NodeList`*"] + pub fn labels(this: &HtmlOutputElement) -> NodeList; + # [ wasm_bindgen ( method , structural , js_class = "HTMLOutputElement" , js_name = checkValidity ) ] + #[doc = "The `checkValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/checkValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] + pub fn check_validity(this: &HtmlOutputElement) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "HTMLOutputElement" , js_name = reportValidity ) ] + #[doc = "The `reportValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/reportValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] + pub fn report_validity(this: &HtmlOutputElement) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "HTMLOutputElement" , js_name = setCustomValidity ) ] + #[doc = "The `setCustomValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLOutputElement/setCustomValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOutputElement`*"] + pub fn set_custom_validity(this: &HtmlOutputElement, error: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlParagraphElement.rs b/crates/web-sys/src/features/gen_HtmlParagraphElement.rs new file mode 100644 index 00000000..f81e777f --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlParagraphElement.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLParagraphElement , typescript_type = "HTMLParagraphElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlParagraphElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParagraphElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlParagraphElement`*"] + pub type HtmlParagraphElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLParagraphElement" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParagraphElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlParagraphElement`*"] + pub fn align(this: &HtmlParagraphElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLParagraphElement" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParagraphElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlParagraphElement`*"] + pub fn set_align(this: &HtmlParagraphElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlParamElement.rs b/crates/web-sys/src/features/gen_HtmlParamElement.rs new file mode 100644 index 00000000..f5db48cb --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlParamElement.rs @@ -0,0 +1,70 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLParamElement , typescript_type = "HTMLParamElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlParamElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] + pub type HtmlParamElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLParamElement" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] + pub fn name(this: &HtmlParamElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLParamElement" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] + pub fn set_name(this: &HtmlParamElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLParamElement" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] + pub fn value(this: &HtmlParamElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLParamElement" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] + pub fn set_value(this: &HtmlParamElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLParamElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] + pub fn type_(this: &HtmlParamElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLParamElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] + pub fn set_type(this: &HtmlParamElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLParamElement" , js_name = valueType ) ] + #[doc = "Getter for the `valueType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/valueType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] + pub fn value_type(this: &HtmlParamElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLParamElement" , js_name = valueType ) ] + #[doc = "Setter for the `valueType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLParamElement/valueType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlParamElement`*"] + pub fn set_value_type(this: &HtmlParamElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlPictureElement.rs b/crates/web-sys/src/features/gen_HtmlPictureElement.rs new file mode 100644 index 00000000..62e44c8d --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlPictureElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLPictureElement , typescript_type = "HTMLPictureElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlPictureElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLPictureElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlPictureElement`*"] + pub type HtmlPictureElement; +} diff --git a/crates/web-sys/src/features/gen_HtmlPreElement.rs b/crates/web-sys/src/features/gen_HtmlPreElement.rs new file mode 100644 index 00000000..0e6fbce4 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlPreElement.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLPreElement , typescript_type = "HTMLPreElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlPreElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLPreElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlPreElement`*"] + pub type HtmlPreElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLPreElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLPreElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlPreElement`*"] + pub fn width(this: &HtmlPreElement) -> i32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLPreElement" , js_name = width ) ] + #[doc = "Setter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLPreElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlPreElement`*"] + pub fn set_width(this: &HtmlPreElement, value: i32); +} diff --git a/crates/web-sys/src/features/gen_HtmlProgressElement.rs b/crates/web-sys/src/features/gen_HtmlProgressElement.rs new file mode 100644 index 00000000..82b6b505 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlProgressElement.rs @@ -0,0 +1,57 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLProgressElement , typescript_type = "HTMLProgressElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlProgressElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] + pub type HtmlProgressElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLProgressElement" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] + pub fn value(this: &HtmlProgressElement) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLProgressElement" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] + pub fn set_value(this: &HtmlProgressElement, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLProgressElement" , js_name = max ) ] + #[doc = "Getter for the `max` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/max)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] + pub fn max(this: &HtmlProgressElement) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLProgressElement" , js_name = max ) ] + #[doc = "Setter for the `max` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/max)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] + pub fn set_max(this: &HtmlProgressElement, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLProgressElement" , js_name = position ) ] + #[doc = "Getter for the `position` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/position)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`*"] + pub fn position(this: &HtmlProgressElement) -> f64; + #[cfg(feature = "NodeList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLProgressElement" , js_name = labels ) ] + #[doc = "Getter for the `labels` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLProgressElement/labels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlProgressElement`, `NodeList`*"] + pub fn labels(this: &HtmlProgressElement) -> NodeList; +} diff --git a/crates/web-sys/src/features/gen_HtmlQuoteElement.rs b/crates/web-sys/src/features/gen_HtmlQuoteElement.rs new file mode 100644 index 00000000..3aa2ad87 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlQuoteElement.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLQuoteElement , typescript_type = "HTMLQuoteElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlQuoteElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLQuoteElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlQuoteElement`*"] + pub type HtmlQuoteElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLQuoteElement" , js_name = cite ) ] + #[doc = "Getter for the `cite` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLQuoteElement/cite)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlQuoteElement`*"] + pub fn cite(this: &HtmlQuoteElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLQuoteElement" , js_name = cite ) ] + #[doc = "Setter for the `cite` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLQuoteElement/cite)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlQuoteElement`*"] + pub fn set_cite(this: &HtmlQuoteElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlScriptElement.rs b/crates/web-sys/src/features/gen_HtmlScriptElement.rs new file mode 100644 index 00000000..293cfc8c --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlScriptElement.rs @@ -0,0 +1,168 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLScriptElement , typescript_type = "HTMLScriptElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlScriptElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub type HtmlScriptElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLScriptElement" , js_name = src ) ] + #[doc = "Getter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn src(this: &HtmlScriptElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLScriptElement" , js_name = src ) ] + #[doc = "Setter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn set_src(this: &HtmlScriptElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLScriptElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn type_(this: &HtmlScriptElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLScriptElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn set_type(this: &HtmlScriptElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLScriptElement" , js_name = noModule ) ] + #[doc = "Getter for the `noModule` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/noModule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn no_module(this: &HtmlScriptElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLScriptElement" , js_name = noModule ) ] + #[doc = "Setter for the `noModule` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/noModule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn set_no_module(this: &HtmlScriptElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLScriptElement" , js_name = charset ) ] + #[doc = "Getter for the `charset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/charset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn charset(this: &HtmlScriptElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLScriptElement" , js_name = charset ) ] + #[doc = "Setter for the `charset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/charset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn set_charset(this: &HtmlScriptElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLScriptElement" , js_name = async ) ] + #[doc = "Getter for the `async` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/async)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn r#async(this: &HtmlScriptElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLScriptElement" , js_name = async ) ] + #[doc = "Setter for the `async` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/async)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn set_async(this: &HtmlScriptElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLScriptElement" , js_name = defer ) ] + #[doc = "Getter for the `defer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/defer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn defer(this: &HtmlScriptElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLScriptElement" , js_name = defer ) ] + #[doc = "Setter for the `defer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/defer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn set_defer(this: &HtmlScriptElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLScriptElement" , js_name = crossOrigin ) ] + #[doc = "Getter for the `crossOrigin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/crossOrigin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn cross_origin(this: &HtmlScriptElement) -> Option; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLScriptElement" , js_name = crossOrigin ) ] + #[doc = "Setter for the `crossOrigin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/crossOrigin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn set_cross_origin(this: &HtmlScriptElement, value: Option<&str>); + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLScriptElement" , js_name = text ) ] + #[doc = "Getter for the `text` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn text(this: &HtmlScriptElement) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "HTMLScriptElement" , js_name = text ) ] + #[doc = "Setter for the `text` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn set_text(this: &HtmlScriptElement, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLScriptElement" , js_name = event ) ] + #[doc = "Getter for the `event` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/event)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn event(this: &HtmlScriptElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLScriptElement" , js_name = event ) ] + #[doc = "Setter for the `event` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/event)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn set_event(this: &HtmlScriptElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLScriptElement" , js_name = htmlFor ) ] + #[doc = "Getter for the `htmlFor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/htmlFor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn html_for(this: &HtmlScriptElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLScriptElement" , js_name = htmlFor ) ] + #[doc = "Setter for the `htmlFor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/htmlFor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn set_html_for(this: &HtmlScriptElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLScriptElement" , js_name = integrity ) ] + #[doc = "Getter for the `integrity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/integrity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn integrity(this: &HtmlScriptElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLScriptElement" , js_name = integrity ) ] + #[doc = "Setter for the `integrity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLScriptElement/integrity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlScriptElement`*"] + pub fn set_integrity(this: &HtmlScriptElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlSelectElement.rs b/crates/web-sys/src/features/gen_HtmlSelectElement.rs new file mode 100644 index 00000000..6e9023ea --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlSelectElement.rs @@ -0,0 +1,360 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLSelectElement , typescript_type = "HTMLSelectElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlSelectElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub type HtmlSelectElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSelectElement" , js_name = autofocus ) ] + #[doc = "Getter for the `autofocus` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autofocus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn autofocus(this: &HtmlSelectElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLSelectElement" , js_name = autofocus ) ] + #[doc = "Setter for the `autofocus` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autofocus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn set_autofocus(this: &HtmlSelectElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSelectElement" , js_name = autocomplete ) ] + #[doc = "Getter for the `autocomplete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autocomplete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn autocomplete(this: &HtmlSelectElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLSelectElement" , js_name = autocomplete ) ] + #[doc = "Setter for the `autocomplete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autocomplete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn set_autocomplete(this: &HtmlSelectElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSelectElement" , js_name = disabled ) ] + #[doc = "Getter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn disabled(this: &HtmlSelectElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLSelectElement" , js_name = disabled ) ] + #[doc = "Setter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn set_disabled(this: &HtmlSelectElement, value: bool); + #[cfg(feature = "HtmlFormElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSelectElement" , js_name = form ) ] + #[doc = "Getter for the `form` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/form)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlSelectElement`*"] + pub fn form(this: &HtmlSelectElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSelectElement" , js_name = multiple ) ] + #[doc = "Getter for the `multiple` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/multiple)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn multiple(this: &HtmlSelectElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLSelectElement" , js_name = multiple ) ] + #[doc = "Setter for the `multiple` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/multiple)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn set_multiple(this: &HtmlSelectElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSelectElement" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn name(this: &HtmlSelectElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLSelectElement" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn set_name(this: &HtmlSelectElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSelectElement" , js_name = required ) ] + #[doc = "Getter for the `required` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/required)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn required(this: &HtmlSelectElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLSelectElement" , js_name = required ) ] + #[doc = "Setter for the `required` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/required)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn set_required(this: &HtmlSelectElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSelectElement" , js_name = size ) ] + #[doc = "Getter for the `size` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/size)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn size(this: &HtmlSelectElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLSelectElement" , js_name = size ) ] + #[doc = "Setter for the `size` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/size)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn set_size(this: &HtmlSelectElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSelectElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn type_(this: &HtmlSelectElement) -> String; + #[cfg(feature = "HtmlOptionsCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSelectElement" , js_name = options ) ] + #[doc = "Getter for the `options` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/options)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionsCollection`, `HtmlSelectElement`*"] + pub fn options(this: &HtmlSelectElement) -> HtmlOptionsCollection; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSelectElement" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn length(this: &HtmlSelectElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLSelectElement" , js_name = length ) ] + #[doc = "Setter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn set_length(this: &HtmlSelectElement, value: u32); + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSelectElement" , js_name = selectedOptions ) ] + #[doc = "Getter for the `selectedOptions` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedOptions)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlSelectElement`*"] + pub fn selected_options(this: &HtmlSelectElement) -> HtmlCollection; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSelectElement" , js_name = selectedIndex ) ] + #[doc = "Getter for the `selectedIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn selected_index(this: &HtmlSelectElement) -> i32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLSelectElement" , js_name = selectedIndex ) ] + #[doc = "Setter for the `selectedIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/selectedIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn set_selected_index(this: &HtmlSelectElement, value: i32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSelectElement" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn value(this: &HtmlSelectElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLSelectElement" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn set_value(this: &HtmlSelectElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSelectElement" , js_name = willValidate ) ] + #[doc = "Getter for the `willValidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/willValidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn will_validate(this: &HtmlSelectElement) -> bool; + #[cfg(feature = "ValidityState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSelectElement" , js_name = validity ) ] + #[doc = "Getter for the `validity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/validity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`, `ValidityState`*"] + pub fn validity(this: &HtmlSelectElement) -> ValidityState; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLSelectElement" , js_name = validationMessage ) ] + #[doc = "Getter for the `validationMessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/validationMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn validation_message(this: &HtmlSelectElement) -> Result; + #[cfg(feature = "NodeList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSelectElement" , js_name = labels ) ] + #[doc = "Getter for the `labels` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/labels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`, `NodeList`*"] + pub fn labels(this: &HtmlSelectElement) -> NodeList; + #[cfg(feature = "HtmlOptionElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLSelectElement" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlSelectElement`*"] + pub fn add_with_html_option_element( + this: &HtmlSelectElement, + element: &HtmlOptionElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlOptGroupElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLSelectElement" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`, `HtmlSelectElement`*"] + pub fn add_with_html_opt_group_element( + this: &HtmlSelectElement, + element: &HtmlOptGroupElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlOptionElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLSelectElement" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlSelectElement`*"] + pub fn add_with_html_option_element_and_opt_html_element( + this: &HtmlSelectElement, + element: &HtmlOptionElement, + before: Option<&HtmlElement>, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlOptGroupElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLSelectElement" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`, `HtmlSelectElement`*"] + pub fn add_with_html_opt_group_element_and_opt_html_element( + this: &HtmlSelectElement, + element: &HtmlOptGroupElement, + before: Option<&HtmlElement>, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlOptionElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLSelectElement" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlSelectElement`*"] + pub fn add_with_html_option_element_and_opt_i32( + this: &HtmlSelectElement, + element: &HtmlOptionElement, + before: Option, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlOptGroupElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLSelectElement" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptGroupElement`, `HtmlSelectElement`*"] + pub fn add_with_html_opt_group_element_and_opt_i32( + this: &HtmlSelectElement, + element: &HtmlOptGroupElement, + before: Option, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "HTMLSelectElement" , js_name = checkValidity ) ] + #[doc = "The `checkValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/checkValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn check_validity(this: &HtmlSelectElement) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "HTMLSelectElement" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn item(this: &HtmlSelectElement, index: u32) -> Option; + #[cfg(feature = "HtmlOptionElement")] + # [ wasm_bindgen ( method , structural , js_class = "HTMLSelectElement" , js_name = namedItem ) ] + #[doc = "The `namedItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/namedItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlSelectElement`*"] + pub fn named_item(this: &HtmlSelectElement, name: &str) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "HTMLSelectElement" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn remove_with_index(this: &HtmlSelectElement, index: i32); + # [ wasm_bindgen ( method , structural , js_class = "HTMLSelectElement" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn remove(this: &HtmlSelectElement); + # [ wasm_bindgen ( method , structural , js_class = "HTMLSelectElement" , js_name = reportValidity ) ] + #[doc = "The `reportValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/reportValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn report_validity(this: &HtmlSelectElement) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "HTMLSelectElement" , js_name = setCustomValidity ) ] + #[doc = "The `setCustomValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/setCustomValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn set_custom_validity(this: &HtmlSelectElement, error: &str); + #[wasm_bindgen(method, structural, js_class = "HTMLSelectElement", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSelectElement`*"] + pub fn get(this: &HtmlSelectElement, index: u32) -> Option; + #[cfg(feature = "HtmlOptionElement")] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "HTMLSelectElement", + indexing_setter + )] + #[doc = "Indexing setter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlOptionElement`, `HtmlSelectElement`*"] + pub fn set( + this: &HtmlSelectElement, + index: u32, + option: Option<&HtmlOptionElement>, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_HtmlSlotElement.rs b/crates/web-sys/src/features/gen_HtmlSlotElement.rs new file mode 100644 index 00000000..6af17b10 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlSlotElement.rs @@ -0,0 +1,46 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLSlotElement , typescript_type = "HTMLSlotElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlSlotElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`*"] + pub type HtmlSlotElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSlotElement" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`*"] + pub fn name(this: &HtmlSlotElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLSlotElement" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`*"] + pub fn set_name(this: &HtmlSlotElement, value: &str); + # [ wasm_bindgen ( method , structural , js_class = "HTMLSlotElement" , js_name = assignedNodes ) ] + #[doc = "The `assignedNodes()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedNodes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`*"] + pub fn assigned_nodes(this: &HtmlSlotElement) -> ::js_sys::Array; + #[cfg(feature = "AssignedNodesOptions")] + # [ wasm_bindgen ( method , structural , js_class = "HTMLSlotElement" , js_name = assignedNodes ) ] + #[doc = "The `assignedNodes()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSlotElement/assignedNodes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AssignedNodesOptions`, `HtmlSlotElement`*"] + pub fn assigned_nodes_with_options( + this: &HtmlSlotElement, + options: &AssignedNodesOptions, + ) -> ::js_sys::Array; +} diff --git a/crates/web-sys/src/features/gen_HtmlSourceElement.rs b/crates/web-sys/src/features/gen_HtmlSourceElement.rs new file mode 100644 index 00000000..5e75f9ed --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlSourceElement.rs @@ -0,0 +1,84 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLSourceElement , typescript_type = "HTMLSourceElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlSourceElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] + pub type HtmlSourceElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSourceElement" , js_name = src ) ] + #[doc = "Getter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] + pub fn src(this: &HtmlSourceElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLSourceElement" , js_name = src ) ] + #[doc = "Setter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] + pub fn set_src(this: &HtmlSourceElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSourceElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] + pub fn type_(this: &HtmlSourceElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLSourceElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] + pub fn set_type(this: &HtmlSourceElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSourceElement" , js_name = srcset ) ] + #[doc = "Getter for the `srcset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/srcset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] + pub fn srcset(this: &HtmlSourceElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLSourceElement" , js_name = srcset ) ] + #[doc = "Setter for the `srcset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/srcset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] + pub fn set_srcset(this: &HtmlSourceElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSourceElement" , js_name = sizes ) ] + #[doc = "Getter for the `sizes` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/sizes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] + pub fn sizes(this: &HtmlSourceElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLSourceElement" , js_name = sizes ) ] + #[doc = "Setter for the `sizes` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/sizes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] + pub fn set_sizes(this: &HtmlSourceElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLSourceElement" , js_name = media ) ] + #[doc = "Getter for the `media` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/media)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] + pub fn media(this: &HtmlSourceElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLSourceElement" , js_name = media ) ] + #[doc = "Setter for the `media` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSourceElement/media)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSourceElement`*"] + pub fn set_media(this: &HtmlSourceElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlSpanElement.rs b/crates/web-sys/src/features/gen_HtmlSpanElement.rs new file mode 100644 index 00000000..ce02cdfc --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlSpanElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLSpanElement , typescript_type = "HTMLSpanElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlSpanElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLSpanElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSpanElement`*"] + pub type HtmlSpanElement; +} diff --git a/crates/web-sys/src/features/gen_HtmlStyleElement.rs b/crates/web-sys/src/features/gen_HtmlStyleElement.rs new file mode 100644 index 00000000..60efd6c1 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlStyleElement.rs @@ -0,0 +1,64 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLStyleElement , typescript_type = "HTMLStyleElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlStyleElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] + pub type HtmlStyleElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLStyleElement" , js_name = disabled ) ] + #[doc = "Getter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] + pub fn disabled(this: &HtmlStyleElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLStyleElement" , js_name = disabled ) ] + #[doc = "Setter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] + pub fn set_disabled(this: &HtmlStyleElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLStyleElement" , js_name = media ) ] + #[doc = "Getter for the `media` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/media)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] + pub fn media(this: &HtmlStyleElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLStyleElement" , js_name = media ) ] + #[doc = "Setter for the `media` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/media)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] + pub fn set_media(this: &HtmlStyleElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLStyleElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] + pub fn type_(this: &HtmlStyleElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLStyleElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`*"] + pub fn set_type(this: &HtmlStyleElement, value: &str); + #[cfg(feature = "StyleSheet")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLStyleElement" , js_name = sheet ) ] + #[doc = "Getter for the `sheet` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLStyleElement/sheet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlStyleElement`, `StyleSheet`*"] + pub fn sheet(this: &HtmlStyleElement) -> Option; +} diff --git a/crates/web-sys/src/features/gen_HtmlTableCaptionElement.rs b/crates/web-sys/src/features/gen_HtmlTableCaptionElement.rs new file mode 100644 index 00000000..9b9bf2c4 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlTableCaptionElement.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableCaptionElement , typescript_type = "HTMLTableCaptionElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlTableCaptionElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCaptionElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCaptionElement`*"] + pub type HtmlTableCaptionElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableCaptionElement" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCaptionElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCaptionElement`*"] + pub fn align(this: &HtmlTableCaptionElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableCaptionElement" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCaptionElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCaptionElement`*"] + pub fn set_align(this: &HtmlTableCaptionElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlTableCellElement.rs b/crates/web-sys/src/features/gen_HtmlTableCellElement.rs new file mode 100644 index 00000000..46a40979 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlTableCellElement.rs @@ -0,0 +1,189 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableCellElement , typescript_type = "HTMLTableCellElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlTableCellElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub type HtmlTableCellElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableCellElement" , js_name = colSpan ) ] + #[doc = "Getter for the `colSpan` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/colSpan)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn col_span(this: &HtmlTableCellElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableCellElement" , js_name = colSpan ) ] + #[doc = "Setter for the `colSpan` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/colSpan)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn set_col_span(this: &HtmlTableCellElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableCellElement" , js_name = rowSpan ) ] + #[doc = "Getter for the `rowSpan` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/rowSpan)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn row_span(this: &HtmlTableCellElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableCellElement" , js_name = rowSpan ) ] + #[doc = "Setter for the `rowSpan` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/rowSpan)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn set_row_span(this: &HtmlTableCellElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableCellElement" , js_name = headers ) ] + #[doc = "Getter for the `headers` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/headers)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn headers(this: &HtmlTableCellElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableCellElement" , js_name = headers ) ] + #[doc = "Setter for the `headers` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/headers)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn set_headers(this: &HtmlTableCellElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableCellElement" , js_name = cellIndex ) ] + #[doc = "Getter for the `cellIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/cellIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn cell_index(this: &HtmlTableCellElement) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableCellElement" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn align(this: &HtmlTableCellElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableCellElement" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn set_align(this: &HtmlTableCellElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableCellElement" , js_name = axis ) ] + #[doc = "Getter for the `axis` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/axis)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn axis(this: &HtmlTableCellElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableCellElement" , js_name = axis ) ] + #[doc = "Setter for the `axis` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/axis)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn set_axis(this: &HtmlTableCellElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableCellElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn height(this: &HtmlTableCellElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableCellElement" , js_name = height ) ] + #[doc = "Setter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn set_height(this: &HtmlTableCellElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableCellElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn width(this: &HtmlTableCellElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableCellElement" , js_name = width ) ] + #[doc = "Setter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn set_width(this: &HtmlTableCellElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableCellElement" , js_name = ch ) ] + #[doc = "Getter for the `ch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/ch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn ch(this: &HtmlTableCellElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableCellElement" , js_name = ch ) ] + #[doc = "Setter for the `ch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/ch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn set_ch(this: &HtmlTableCellElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableCellElement" , js_name = chOff ) ] + #[doc = "Getter for the `chOff` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/chOff)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn ch_off(this: &HtmlTableCellElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableCellElement" , js_name = chOff ) ] + #[doc = "Setter for the `chOff` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/chOff)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn set_ch_off(this: &HtmlTableCellElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableCellElement" , js_name = noWrap ) ] + #[doc = "Getter for the `noWrap` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/noWrap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn no_wrap(this: &HtmlTableCellElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableCellElement" , js_name = noWrap ) ] + #[doc = "Setter for the `noWrap` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/noWrap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn set_no_wrap(this: &HtmlTableCellElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableCellElement" , js_name = vAlign ) ] + #[doc = "Getter for the `vAlign` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/vAlign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn v_align(this: &HtmlTableCellElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableCellElement" , js_name = vAlign ) ] + #[doc = "Setter for the `vAlign` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/vAlign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn set_v_align(this: &HtmlTableCellElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableCellElement" , js_name = bgColor ) ] + #[doc = "Getter for the `bgColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/bgColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn bg_color(this: &HtmlTableCellElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableCellElement" , js_name = bgColor ) ] + #[doc = "Setter for the `bgColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableCellElement/bgColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCellElement`*"] + pub fn set_bg_color(this: &HtmlTableCellElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlTableColElement.rs b/crates/web-sys/src/features/gen_HtmlTableColElement.rs new file mode 100644 index 00000000..e1cd1a0d --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlTableColElement.rs @@ -0,0 +1,98 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableColElement , typescript_type = "HTMLTableColElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlTableColElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] + pub type HtmlTableColElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableColElement" , js_name = span ) ] + #[doc = "Getter for the `span` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/span)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] + pub fn span(this: &HtmlTableColElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableColElement" , js_name = span ) ] + #[doc = "Setter for the `span` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/span)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] + pub fn set_span(this: &HtmlTableColElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableColElement" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] + pub fn align(this: &HtmlTableColElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableColElement" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] + pub fn set_align(this: &HtmlTableColElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableColElement" , js_name = ch ) ] + #[doc = "Getter for the `ch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/ch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] + pub fn ch(this: &HtmlTableColElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableColElement" , js_name = ch ) ] + #[doc = "Setter for the `ch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/ch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] + pub fn set_ch(this: &HtmlTableColElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableColElement" , js_name = chOff ) ] + #[doc = "Getter for the `chOff` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/chOff)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] + pub fn ch_off(this: &HtmlTableColElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableColElement" , js_name = chOff ) ] + #[doc = "Setter for the `chOff` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/chOff)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] + pub fn set_ch_off(this: &HtmlTableColElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableColElement" , js_name = vAlign ) ] + #[doc = "Getter for the `vAlign` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/vAlign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] + pub fn v_align(this: &HtmlTableColElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableColElement" , js_name = vAlign ) ] + #[doc = "Setter for the `vAlign` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/vAlign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] + pub fn set_v_align(this: &HtmlTableColElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableColElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] + pub fn width(this: &HtmlTableColElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableColElement" , js_name = width ) ] + #[doc = "Setter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableColElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableColElement`*"] + pub fn set_width(this: &HtmlTableColElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlTableElement.rs b/crates/web-sys/src/features/gen_HtmlTableElement.rs new file mode 100644 index 00000000..d6745a38 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlTableElement.rs @@ -0,0 +1,277 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableElement , typescript_type = "HTMLTableElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlTableElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub type HtmlTableElement; + #[cfg(feature = "HtmlTableCaptionElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableElement" , js_name = caption ) ] + #[doc = "Getter for the `caption` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/caption)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCaptionElement`, `HtmlTableElement`*"] + pub fn caption(this: &HtmlTableElement) -> Option; + #[cfg(feature = "HtmlTableCaptionElement")] + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableElement" , js_name = caption ) ] + #[doc = "Setter for the `caption` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/caption)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableCaptionElement`, `HtmlTableElement`*"] + pub fn set_caption(this: &HtmlTableElement, value: Option<&HtmlTableCaptionElement>); + #[cfg(feature = "HtmlTableSectionElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableElement" , js_name = tHead ) ] + #[doc = "Getter for the `tHead` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tHead)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`, `HtmlTableSectionElement`*"] + pub fn t_head(this: &HtmlTableElement) -> Option; + #[cfg(feature = "HtmlTableSectionElement")] + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableElement" , js_name = tHead ) ] + #[doc = "Setter for the `tHead` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tHead)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`, `HtmlTableSectionElement`*"] + pub fn set_t_head(this: &HtmlTableElement, value: Option<&HtmlTableSectionElement>); + #[cfg(feature = "HtmlTableSectionElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableElement" , js_name = tFoot ) ] + #[doc = "Getter for the `tFoot` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tFoot)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`, `HtmlTableSectionElement`*"] + pub fn t_foot(this: &HtmlTableElement) -> Option; + #[cfg(feature = "HtmlTableSectionElement")] + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableElement" , js_name = tFoot ) ] + #[doc = "Setter for the `tFoot` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tFoot)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`, `HtmlTableSectionElement`*"] + pub fn set_t_foot(this: &HtmlTableElement, value: Option<&HtmlTableSectionElement>); + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableElement" , js_name = tBodies ) ] + #[doc = "Getter for the `tBodies` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/tBodies)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlTableElement`*"] + pub fn t_bodies(this: &HtmlTableElement) -> HtmlCollection; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableElement" , js_name = rows ) ] + #[doc = "Getter for the `rows` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/rows)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlTableElement`*"] + pub fn rows(this: &HtmlTableElement) -> HtmlCollection; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableElement" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn align(this: &HtmlTableElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableElement" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn set_align(this: &HtmlTableElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableElement" , js_name = border ) ] + #[doc = "Getter for the `border` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/border)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn border(this: &HtmlTableElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableElement" , js_name = border ) ] + #[doc = "Setter for the `border` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/border)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn set_border(this: &HtmlTableElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableElement" , js_name = frame ) ] + #[doc = "Getter for the `frame` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/frame)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn frame(this: &HtmlTableElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableElement" , js_name = frame ) ] + #[doc = "Setter for the `frame` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/frame)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn set_frame(this: &HtmlTableElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableElement" , js_name = rules ) ] + #[doc = "Getter for the `rules` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/rules)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn rules(this: &HtmlTableElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableElement" , js_name = rules ) ] + #[doc = "Setter for the `rules` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/rules)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn set_rules(this: &HtmlTableElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableElement" , js_name = summary ) ] + #[doc = "Getter for the `summary` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/summary)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn summary(this: &HtmlTableElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableElement" , js_name = summary ) ] + #[doc = "Setter for the `summary` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/summary)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn set_summary(this: &HtmlTableElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn width(this: &HtmlTableElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableElement" , js_name = width ) ] + #[doc = "Setter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn set_width(this: &HtmlTableElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableElement" , js_name = bgColor ) ] + #[doc = "Getter for the `bgColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/bgColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn bg_color(this: &HtmlTableElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableElement" , js_name = bgColor ) ] + #[doc = "Setter for the `bgColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/bgColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn set_bg_color(this: &HtmlTableElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableElement" , js_name = cellPadding ) ] + #[doc = "Getter for the `cellPadding` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/cellPadding)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn cell_padding(this: &HtmlTableElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableElement" , js_name = cellPadding ) ] + #[doc = "Setter for the `cellPadding` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/cellPadding)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn set_cell_padding(this: &HtmlTableElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableElement" , js_name = cellSpacing ) ] + #[doc = "Getter for the `cellSpacing` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/cellSpacing)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn cell_spacing(this: &HtmlTableElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableElement" , js_name = cellSpacing ) ] + #[doc = "Setter for the `cellSpacing` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/cellSpacing)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn set_cell_spacing(this: &HtmlTableElement, value: &str); + # [ wasm_bindgen ( method , structural , js_class = "HTMLTableElement" , js_name = createCaption ) ] + #[doc = "The `createCaption()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/createCaption)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn create_caption(this: &HtmlTableElement) -> HtmlElement; + # [ wasm_bindgen ( method , structural , js_class = "HTMLTableElement" , js_name = createTBody ) ] + #[doc = "The `createTBody()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/createTBody)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn create_t_body(this: &HtmlTableElement) -> HtmlElement; + # [ wasm_bindgen ( method , structural , js_class = "HTMLTableElement" , js_name = createTFoot ) ] + #[doc = "The `createTFoot()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/createTFoot)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn create_t_foot(this: &HtmlTableElement) -> HtmlElement; + # [ wasm_bindgen ( method , structural , js_class = "HTMLTableElement" , js_name = createTHead ) ] + #[doc = "The `createTHead()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/createTHead)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn create_t_head(this: &HtmlTableElement) -> HtmlElement; + # [ wasm_bindgen ( method , structural , js_class = "HTMLTableElement" , js_name = deleteCaption ) ] + #[doc = "The `deleteCaption()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/deleteCaption)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn delete_caption(this: &HtmlTableElement); + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLTableElement" , js_name = deleteRow ) ] + #[doc = "The `deleteRow()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/deleteRow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn delete_row(this: &HtmlTableElement, index: i32) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "HTMLTableElement" , js_name = deleteTFoot ) ] + #[doc = "The `deleteTFoot()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/deleteTFoot)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn delete_t_foot(this: &HtmlTableElement); + # [ wasm_bindgen ( method , structural , js_class = "HTMLTableElement" , js_name = deleteTHead ) ] + #[doc = "The `deleteTHead()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/deleteTHead)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn delete_t_head(this: &HtmlTableElement); + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLTableElement" , js_name = insertRow ) ] + #[doc = "The `insertRow()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/insertRow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn insert_row(this: &HtmlTableElement) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLTableElement" , js_name = insertRow ) ] + #[doc = "The `insertRow()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/insertRow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableElement`*"] + pub fn insert_row_with_index( + this: &HtmlTableElement, + index: i32, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_HtmlTableRowElement.rs b/crates/web-sys/src/features/gen_HtmlTableRowElement.rs new file mode 100644 index 00000000..9caf421a --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlTableRowElement.rs @@ -0,0 +1,130 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableRowElement , typescript_type = "HTMLTableRowElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlTableRowElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] + pub type HtmlTableRowElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableRowElement" , js_name = rowIndex ) ] + #[doc = "Getter for the `rowIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/rowIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] + pub fn row_index(this: &HtmlTableRowElement) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableRowElement" , js_name = sectionRowIndex ) ] + #[doc = "Getter for the `sectionRowIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/sectionRowIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] + pub fn section_row_index(this: &HtmlTableRowElement) -> i32; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableRowElement" , js_name = cells ) ] + #[doc = "Getter for the `cells` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/cells)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlTableRowElement`*"] + pub fn cells(this: &HtmlTableRowElement) -> HtmlCollection; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableRowElement" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] + pub fn align(this: &HtmlTableRowElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableRowElement" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] + pub fn set_align(this: &HtmlTableRowElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableRowElement" , js_name = ch ) ] + #[doc = "Getter for the `ch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/ch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] + pub fn ch(this: &HtmlTableRowElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableRowElement" , js_name = ch ) ] + #[doc = "Setter for the `ch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/ch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] + pub fn set_ch(this: &HtmlTableRowElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableRowElement" , js_name = chOff ) ] + #[doc = "Getter for the `chOff` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/chOff)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] + pub fn ch_off(this: &HtmlTableRowElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableRowElement" , js_name = chOff ) ] + #[doc = "Setter for the `chOff` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/chOff)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] + pub fn set_ch_off(this: &HtmlTableRowElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableRowElement" , js_name = vAlign ) ] + #[doc = "Getter for the `vAlign` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/vAlign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] + pub fn v_align(this: &HtmlTableRowElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableRowElement" , js_name = vAlign ) ] + #[doc = "Setter for the `vAlign` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/vAlign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] + pub fn set_v_align(this: &HtmlTableRowElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableRowElement" , js_name = bgColor ) ] + #[doc = "Getter for the `bgColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/bgColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] + pub fn bg_color(this: &HtmlTableRowElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableRowElement" , js_name = bgColor ) ] + #[doc = "Setter for the `bgColor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/bgColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] + pub fn set_bg_color(this: &HtmlTableRowElement, value: &str); + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLTableRowElement" , js_name = deleteCell ) ] + #[doc = "The `deleteCell()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/deleteCell)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] + pub fn delete_cell(this: &HtmlTableRowElement, index: i32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLTableRowElement" , js_name = insertCell ) ] + #[doc = "The `insertCell()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/insertCell)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] + pub fn insert_cell(this: &HtmlTableRowElement) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLTableRowElement" , js_name = insertCell ) ] + #[doc = "The `insertCell()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableRowElement/insertCell)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableRowElement`*"] + pub fn insert_cell_with_index( + this: &HtmlTableRowElement, + index: i32, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_HtmlTableSectionElement.rs b/crates/web-sys/src/features/gen_HtmlTableSectionElement.rs new file mode 100644 index 00000000..8de79506 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlTableSectionElement.rs @@ -0,0 +1,102 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTableSectionElement , typescript_type = "HTMLTableSectionElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlTableSectionElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] + pub type HtmlTableSectionElement; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableSectionElement" , js_name = rows ) ] + #[doc = "Getter for the `rows` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/rows)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `HtmlTableSectionElement`*"] + pub fn rows(this: &HtmlTableSectionElement) -> HtmlCollection; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableSectionElement" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] + pub fn align(this: &HtmlTableSectionElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableSectionElement" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] + pub fn set_align(this: &HtmlTableSectionElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableSectionElement" , js_name = ch ) ] + #[doc = "Getter for the `ch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/ch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] + pub fn ch(this: &HtmlTableSectionElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableSectionElement" , js_name = ch ) ] + #[doc = "Setter for the `ch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/ch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] + pub fn set_ch(this: &HtmlTableSectionElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableSectionElement" , js_name = chOff ) ] + #[doc = "Getter for the `chOff` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/chOff)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] + pub fn ch_off(this: &HtmlTableSectionElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableSectionElement" , js_name = chOff ) ] + #[doc = "Setter for the `chOff` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/chOff)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] + pub fn set_ch_off(this: &HtmlTableSectionElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTableSectionElement" , js_name = vAlign ) ] + #[doc = "Getter for the `vAlign` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/vAlign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] + pub fn v_align(this: &HtmlTableSectionElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTableSectionElement" , js_name = vAlign ) ] + #[doc = "Setter for the `vAlign` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/vAlign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] + pub fn set_v_align(this: &HtmlTableSectionElement, value: &str); + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLTableSectionElement" , js_name = deleteRow ) ] + #[doc = "The `deleteRow()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/deleteRow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] + pub fn delete_row(this: &HtmlTableSectionElement, index: i32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLTableSectionElement" , js_name = insertRow ) ] + #[doc = "The `insertRow()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/insertRow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] + pub fn insert_row(this: &HtmlTableSectionElement) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLTableSectionElement" , js_name = insertRow ) ] + #[doc = "The `insertRow()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableSectionElement/insertRow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTableSectionElement`*"] + pub fn insert_row_with_index( + this: &HtmlTableSectionElement, + index: i32, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_HtmlTemplateElement.rs b/crates/web-sys/src/features/gen_HtmlTemplateElement.rs new file mode 100644 index 00000000..2558571c --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlTemplateElement.rs @@ -0,0 +1,22 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTemplateElement , typescript_type = "HTMLTemplateElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlTemplateElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTemplateElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTemplateElement`*"] + pub type HtmlTemplateElement; + #[cfg(feature = "DocumentFragment")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTemplateElement" , js_name = content ) ] + #[doc = "Getter for the `content` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTemplateElement/content)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `HtmlTemplateElement`*"] + pub fn content(this: &HtmlTemplateElement) -> DocumentFragment; +} diff --git a/crates/web-sys/src/features/gen_HtmlTextAreaElement.rs b/crates/web-sys/src/features/gen_HtmlTextAreaElement.rs new file mode 100644 index 00000000..f798151d --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlTextAreaElement.rs @@ -0,0 +1,381 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTextAreaElement , typescript_type = "HTMLTextAreaElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlTextAreaElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub type HtmlTextAreaElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = autocomplete ) ] + #[doc = "Getter for the `autocomplete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/autocomplete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn autocomplete(this: &HtmlTextAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = autocomplete ) ] + #[doc = "Setter for the `autocomplete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/autocomplete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_autocomplete(this: &HtmlTextAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = autofocus ) ] + #[doc = "Getter for the `autofocus` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/autofocus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn autofocus(this: &HtmlTextAreaElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = autofocus ) ] + #[doc = "Setter for the `autofocus` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/autofocus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_autofocus(this: &HtmlTextAreaElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = cols ) ] + #[doc = "Getter for the `cols` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/cols)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn cols(this: &HtmlTextAreaElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = cols ) ] + #[doc = "Setter for the `cols` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/cols)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_cols(this: &HtmlTextAreaElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = disabled ) ] + #[doc = "Getter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn disabled(this: &HtmlTextAreaElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = disabled ) ] + #[doc = "Setter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_disabled(this: &HtmlTextAreaElement, value: bool); + #[cfg(feature = "HtmlFormElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = form ) ] + #[doc = "Getter for the `form` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/form)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlFormElement`, `HtmlTextAreaElement`*"] + pub fn form(this: &HtmlTextAreaElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = maxLength ) ] + #[doc = "Getter for the `maxLength` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/maxLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn max_length(this: &HtmlTextAreaElement) -> i32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = maxLength ) ] + #[doc = "Setter for the `maxLength` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/maxLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_max_length(this: &HtmlTextAreaElement, value: i32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = minLength ) ] + #[doc = "Getter for the `minLength` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/minLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn min_length(this: &HtmlTextAreaElement) -> i32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = minLength ) ] + #[doc = "Setter for the `minLength` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/minLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_min_length(this: &HtmlTextAreaElement, value: i32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn name(this: &HtmlTextAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_name(this: &HtmlTextAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = placeholder ) ] + #[doc = "Getter for the `placeholder` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/placeholder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn placeholder(this: &HtmlTextAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = placeholder ) ] + #[doc = "Setter for the `placeholder` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/placeholder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_placeholder(this: &HtmlTextAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = readOnly ) ] + #[doc = "Getter for the `readOnly` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/readOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn read_only(this: &HtmlTextAreaElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = readOnly ) ] + #[doc = "Setter for the `readOnly` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/readOnly)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_read_only(this: &HtmlTextAreaElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = required ) ] + #[doc = "Getter for the `required` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/required)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn required(this: &HtmlTextAreaElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = required ) ] + #[doc = "Setter for the `required` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/required)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_required(this: &HtmlTextAreaElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = rows ) ] + #[doc = "Getter for the `rows` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/rows)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn rows(this: &HtmlTextAreaElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = rows ) ] + #[doc = "Setter for the `rows` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/rows)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_rows(this: &HtmlTextAreaElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = wrap ) ] + #[doc = "Getter for the `wrap` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/wrap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn wrap(this: &HtmlTextAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = wrap ) ] + #[doc = "Setter for the `wrap` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/wrap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_wrap(this: &HtmlTextAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn type_(this: &HtmlTextAreaElement) -> String; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLTextAreaElement" , js_name = defaultValue ) ] + #[doc = "Getter for the `defaultValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/defaultValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn default_value(this: &HtmlTextAreaElement) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "HTMLTextAreaElement" , js_name = defaultValue ) ] + #[doc = "Setter for the `defaultValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/defaultValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_default_value(this: &HtmlTextAreaElement, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn value(this: &HtmlTextAreaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTextAreaElement" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_value(this: &HtmlTextAreaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = textLength ) ] + #[doc = "Getter for the `textLength` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/textLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn text_length(this: &HtmlTextAreaElement) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = willValidate ) ] + #[doc = "Getter for the `willValidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/willValidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn will_validate(this: &HtmlTextAreaElement) -> bool; + #[cfg(feature = "ValidityState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = validity ) ] + #[doc = "Getter for the `validity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/validity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`, `ValidityState`*"] + pub fn validity(this: &HtmlTextAreaElement) -> ValidityState; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLTextAreaElement" , js_name = validationMessage ) ] + #[doc = "Getter for the `validationMessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/validationMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn validation_message(this: &HtmlTextAreaElement) -> Result; + #[cfg(feature = "NodeList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTextAreaElement" , js_name = labels ) ] + #[doc = "Getter for the `labels` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/labels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`, `NodeList`*"] + pub fn labels(this: &HtmlTextAreaElement) -> NodeList; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLTextAreaElement" , js_name = selectionStart ) ] + #[doc = "Getter for the `selectionStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn selection_start(this: &HtmlTextAreaElement) -> Result, JsValue>; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "HTMLTextAreaElement" , js_name = selectionStart ) ] + #[doc = "Setter for the `selectionStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_selection_start( + this: &HtmlTextAreaElement, + value: Option, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLTextAreaElement" , js_name = selectionEnd ) ] + #[doc = "Getter for the `selectionEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn selection_end(this: &HtmlTextAreaElement) -> Result, JsValue>; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "HTMLTextAreaElement" , js_name = selectionEnd ) ] + #[doc = "Setter for the `selectionEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_selection_end(this: &HtmlTextAreaElement, value: Option) + -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLTextAreaElement" , js_name = selectionDirection ) ] + #[doc = "Getter for the `selectionDirection` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionDirection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn selection_direction(this: &HtmlTextAreaElement) -> Result, JsValue>; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "HTMLTextAreaElement" , js_name = selectionDirection ) ] + #[doc = "Setter for the `selectionDirection` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/selectionDirection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_selection_direction( + this: &HtmlTextAreaElement, + value: Option<&str>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "HTMLTextAreaElement" , js_name = checkValidity ) ] + #[doc = "The `checkValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/checkValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn check_validity(this: &HtmlTextAreaElement) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "HTMLTextAreaElement" , js_name = reportValidity ) ] + #[doc = "The `reportValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/reportValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn report_validity(this: &HtmlTextAreaElement) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "HTMLTextAreaElement" , js_name = select ) ] + #[doc = "The `select()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/select)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn select(this: &HtmlTextAreaElement); + # [ wasm_bindgen ( method , structural , js_class = "HTMLTextAreaElement" , js_name = setCustomValidity ) ] + #[doc = "The `setCustomValidity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setCustomValidity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_custom_validity(this: &HtmlTextAreaElement, error: &str); + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLTextAreaElement" , js_name = setRangeText ) ] + #[doc = "The `setRangeText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setRangeText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_range_text(this: &HtmlTextAreaElement, replacement: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLTextAreaElement" , js_name = setRangeText ) ] + #[doc = "The `setRangeText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setRangeText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_range_text_with_start_and_end( + this: &HtmlTextAreaElement, + replacement: &str, + start: u32, + end: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLTextAreaElement" , js_name = setSelectionRange ) ] + #[doc = "The `setSelectionRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setSelectionRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_selection_range( + this: &HtmlTextAreaElement, + start: u32, + end: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "HTMLTextAreaElement" , js_name = setSelectionRange ) ] + #[doc = "The `setSelectionRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTextAreaElement/setSelectionRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTextAreaElement`*"] + pub fn set_selection_range_with_direction( + this: &HtmlTextAreaElement, + start: u32, + end: u32, + direction: &str, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_HtmlTimeElement.rs b/crates/web-sys/src/features/gen_HtmlTimeElement.rs new file mode 100644 index 00000000..d5d6919e --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlTimeElement.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTimeElement , typescript_type = "HTMLTimeElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlTimeElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTimeElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTimeElement`*"] + pub type HtmlTimeElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTimeElement" , js_name = dateTime ) ] + #[doc = "Getter for the `dateTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTimeElement/dateTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTimeElement`*"] + pub fn date_time(this: &HtmlTimeElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTimeElement" , js_name = dateTime ) ] + #[doc = "Setter for the `dateTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTimeElement/dateTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTimeElement`*"] + pub fn set_date_time(this: &HtmlTimeElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlTitleElement.rs b/crates/web-sys/src/features/gen_HtmlTitleElement.rs new file mode 100644 index 00000000..029f4c5a --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlTitleElement.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTitleElement , typescript_type = "HTMLTitleElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlTitleElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTitleElement`*"] + pub type HtmlTitleElement; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "HTMLTitleElement" , js_name = text ) ] + #[doc = "Getter for the `text` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTitleElement`*"] + pub fn text(this: &HtmlTitleElement) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "HTMLTitleElement" , js_name = text ) ] + #[doc = "Setter for the `text` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTitleElement/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTitleElement`*"] + pub fn set_text(this: &HtmlTitleElement, value: &str) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_HtmlTrackElement.rs b/crates/web-sys/src/features/gen_HtmlTrackElement.rs new file mode 100644 index 00000000..dfc8ebf2 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlTrackElement.rs @@ -0,0 +1,117 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLTrackElement , typescript_type = "HTMLTrackElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlTrackElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] + pub type HtmlTrackElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTrackElement" , js_name = kind ) ] + #[doc = "Getter for the `kind` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/kind)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] + pub fn kind(this: &HtmlTrackElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTrackElement" , js_name = kind ) ] + #[doc = "Setter for the `kind` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/kind)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] + pub fn set_kind(this: &HtmlTrackElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTrackElement" , js_name = src ) ] + #[doc = "Getter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] + pub fn src(this: &HtmlTrackElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTrackElement" , js_name = src ) ] + #[doc = "Setter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] + pub fn set_src(this: &HtmlTrackElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTrackElement" , js_name = srclang ) ] + #[doc = "Getter for the `srclang` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/srclang)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] + pub fn srclang(this: &HtmlTrackElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTrackElement" , js_name = srclang ) ] + #[doc = "Setter for the `srclang` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/srclang)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] + pub fn set_srclang(this: &HtmlTrackElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTrackElement" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] + pub fn label(this: &HtmlTrackElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTrackElement" , js_name = label ) ] + #[doc = "Setter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] + pub fn set_label(this: &HtmlTrackElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTrackElement" , js_name = default ) ] + #[doc = "Getter for the `default` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/default)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] + pub fn default(this: &HtmlTrackElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLTrackElement" , js_name = default ) ] + #[doc = "Setter for the `default` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/default)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] + pub fn set_default(this: &HtmlTrackElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTrackElement" , js_name = readyState ) ] + #[doc = "Getter for the `readyState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/readyState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] + pub fn ready_state(this: &HtmlTrackElement) -> u16; + #[cfg(feature = "TextTrack")] + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLTrackElement" , js_name = track ) ] + #[doc = "Getter for the `track` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLTrackElement/track)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`, `TextTrack`*"] + pub fn track(this: &HtmlTrackElement) -> Option; +} +impl HtmlTrackElement { + #[doc = "The `HTMLTrackElement.NONE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] + pub const NONE: u16 = 0i64 as u16; + #[doc = "The `HTMLTrackElement.LOADING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] + pub const LOADING: u16 = 1u64 as u16; + #[doc = "The `HTMLTrackElement.LOADED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] + pub const LOADED: u16 = 2u64 as u16; + #[doc = "The `HTMLTrackElement.ERROR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlTrackElement`*"] + pub const ERROR: u16 = 3u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_HtmlUListElement.rs b/crates/web-sys/src/features/gen_HtmlUListElement.rs new file mode 100644 index 00000000..8885bc24 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlUListElement.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLUListElement , typescript_type = "HTMLUListElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlUListElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlUListElement`*"] + pub type HtmlUListElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLUListElement" , js_name = compact ) ] + #[doc = "Getter for the `compact` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement/compact)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlUListElement`*"] + pub fn compact(this: &HtmlUListElement) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLUListElement" , js_name = compact ) ] + #[doc = "Setter for the `compact` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement/compact)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlUListElement`*"] + pub fn set_compact(this: &HtmlUListElement, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLUListElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlUListElement`*"] + pub fn type_(this: &HtmlUListElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLUListElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLUListElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlUListElement`*"] + pub fn set_type(this: &HtmlUListElement, value: &str); +} diff --git a/crates/web-sys/src/features/gen_HtmlUnknownElement.rs b/crates/web-sys/src/features/gen_HtmlUnknownElement.rs new file mode 100644 index 00000000..35bb6b0e --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlUnknownElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLUnknownElement , typescript_type = "HTMLUnknownElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlUnknownElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLUnknownElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlUnknownElement`*"] + pub type HtmlUnknownElement; +} diff --git a/crates/web-sys/src/features/gen_HtmlVideoElement.rs b/crates/web-sys/src/features/gen_HtmlVideoElement.rs new file mode 100644 index 00000000..7cc8b662 --- /dev/null +++ b/crates/web-sys/src/features/gen_HtmlVideoElement.rs @@ -0,0 +1,78 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = HtmlMediaElement , extends = HtmlElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = HTMLVideoElement , typescript_type = "HTMLVideoElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HtmlVideoElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] + pub type HtmlVideoElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLVideoElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] + pub fn width(this: &HtmlVideoElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLVideoElement" , js_name = width ) ] + #[doc = "Setter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] + pub fn set_width(this: &HtmlVideoElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLVideoElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] + pub fn height(this: &HtmlVideoElement) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLVideoElement" , js_name = height ) ] + #[doc = "Setter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] + pub fn set_height(this: &HtmlVideoElement, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLVideoElement" , js_name = videoWidth ) ] + #[doc = "Getter for the `videoWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/videoWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] + pub fn video_width(this: &HtmlVideoElement) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLVideoElement" , js_name = videoHeight ) ] + #[doc = "Getter for the `videoHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/videoHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] + pub fn video_height(this: &HtmlVideoElement) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "HTMLVideoElement" , js_name = poster ) ] + #[doc = "Getter for the `poster` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/poster)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] + pub fn poster(this: &HtmlVideoElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "HTMLVideoElement" , js_name = poster ) ] + #[doc = "Setter for the `poster` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/poster)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`*"] + pub fn set_poster(this: &HtmlVideoElement, value: &str); + #[cfg(feature = "VideoPlaybackQuality")] + # [ wasm_bindgen ( method , structural , js_class = "HTMLVideoElement" , js_name = getVideoPlaybackQuality ) ] + #[doc = "The `getVideoPlaybackQuality()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement/getVideoPlaybackQuality)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `VideoPlaybackQuality`*"] + pub fn get_video_playback_quality(this: &HtmlVideoElement) -> VideoPlaybackQuality; +} diff --git a/crates/web-sys/src/features/gen_HttpConnDict.rs b/crates/web-sys/src/features/gen_HttpConnDict.rs new file mode 100644 index 00000000..5c2c9e82 --- /dev/null +++ b/crates/web-sys/src/features/gen_HttpConnDict.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = HttpConnDict ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HttpConnDict` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HttpConnDict`*"] + pub type HttpConnDict; +} +impl HttpConnDict { + #[doc = "Construct a new `HttpConnDict`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HttpConnDict`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `connections` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HttpConnDict`*"] + pub fn connections(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("connections"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_HttpConnInfo.rs b/crates/web-sys/src/features/gen_HttpConnInfo.rs new file mode 100644 index 00000000..0d33fe02 --- /dev/null +++ b/crates/web-sys/src/features/gen_HttpConnInfo.rs @@ -0,0 +1,65 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = HttpConnInfo ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HttpConnInfo` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] + pub type HttpConnInfo; +} +impl HttpConnInfo { + #[doc = "Construct a new `HttpConnInfo`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `protocolVersion` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] + pub fn protocol_version(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("protocolVersion"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `rtt` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] + pub fn rtt(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("rtt"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ttl` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HttpConnInfo`*"] + pub fn ttl(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ttl"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_HttpConnectionElement.rs b/crates/web-sys/src/features/gen_HttpConnectionElement.rs new file mode 100644 index 00000000..d47eac4f --- /dev/null +++ b/crates/web-sys/src/features/gen_HttpConnectionElement.rs @@ -0,0 +1,118 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = HttpConnectionElement ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `HttpConnectionElement` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] + pub type HttpConnectionElement; +} +impl HttpConnectionElement { + #[doc = "Construct a new `HttpConnectionElement`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `active` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] + pub fn active(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("active"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `halfOpens` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] + pub fn half_opens(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("halfOpens"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `host` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] + pub fn host(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("host"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `idle` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] + pub fn idle(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("idle"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `port` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] + pub fn port(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("port"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `spdy` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] + pub fn spdy(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("spdy"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ssl` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HttpConnectionElement`*"] + pub fn ssl(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ssl"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_IdbCursor.rs b/crates/web-sys/src/features/gen_IdbCursor.rs new file mode 100644 index 00000000..efbb15ea --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbCursor.rs @@ -0,0 +1,95 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IDBCursor , typescript_type = "IDBCursor" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbCursor` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] + pub type IdbCursor; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBCursor" , js_name = source ) ] + #[doc = "Getter for the `source` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/source)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] + pub fn source(this: &IdbCursor) -> ::js_sys::Object; + #[cfg(feature = "IdbCursorDirection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBCursor" , js_name = direction ) ] + #[doc = "Getter for the `direction` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/direction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbCursor`, `IdbCursorDirection`*"] + pub fn direction(this: &IdbCursor) -> IdbCursorDirection; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "IDBCursor" , js_name = key ) ] + #[doc = "Getter for the `key` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/key)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] + pub fn key(this: &IdbCursor) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "IDBCursor" , js_name = primaryKey ) ] + #[doc = "Getter for the `primaryKey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/primaryKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] + pub fn primary_key(this: &IdbCursor) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBCursor" , js_name = advance ) ] + #[doc = "The `advance()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/advance)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] + pub fn advance(this: &IdbCursor, count: u32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBCursor" , js_name = continue ) ] + #[doc = "The `continue()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/continue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] + pub fn continue_(this: &IdbCursor) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBCursor" , js_name = continue ) ] + #[doc = "The `continue()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/continue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] + pub fn continue_with_key( + this: &IdbCursor, + key: &::wasm_bindgen::JsValue, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBCursor" , js_name = continuePrimaryKey ) ] + #[doc = "The `continuePrimaryKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/continuePrimaryKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbCursor`*"] + pub fn continue_primary_key( + this: &IdbCursor, + key: &::wasm_bindgen::JsValue, + primary_key: &::wasm_bindgen::JsValue, + ) -> Result<(), JsValue>; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBCursor" , js_name = delete ) ] + #[doc = "The `delete()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/delete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbCursor`, `IdbRequest`*"] + pub fn delete(this: &IdbCursor) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBCursor" , js_name = update ) ] + #[doc = "The `update()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursor/update)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbCursor`, `IdbRequest`*"] + pub fn update(this: &IdbCursor, value: &::wasm_bindgen::JsValue) + -> Result; +} diff --git a/crates/web-sys/src/features/gen_IdbCursorDirection.rs b/crates/web-sys/src/features/gen_IdbCursorDirection.rs new file mode 100644 index 00000000..c01fef47 --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbCursorDirection.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `IdbCursorDirection` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `IdbCursorDirection`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum IdbCursorDirection { + Next = "next", + Nextunique = "nextunique", + Prev = "prev", + Prevunique = "prevunique", +} diff --git a/crates/web-sys/src/features/gen_IdbCursorWithValue.rs b/crates/web-sys/src/features/gen_IdbCursorWithValue.rs new file mode 100644 index 00000000..0ea0dc2f --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbCursorWithValue.rs @@ -0,0 +1,21 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = IdbCursor , extends = :: js_sys :: Object , js_name = IDBCursorWithValue , typescript_type = "IDBCursorWithValue" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbCursorWithValue` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursorWithValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbCursorWithValue`*"] + pub type IdbCursorWithValue; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "IDBCursorWithValue" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBCursorWithValue/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbCursorWithValue`*"] + pub fn value(this: &IdbCursorWithValue) -> Result<::wasm_bindgen::JsValue, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_IdbDatabase.rs b/crates/web-sys/src/features/gen_IdbDatabase.rs new file mode 100644 index 00000000..2354687e --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbDatabase.rs @@ -0,0 +1,200 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBDatabase , typescript_type = "IDBDatabase" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbDatabase` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub type IdbDatabase; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBDatabase" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn name(this: &IdbDatabase) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBDatabase" , js_name = version ) ] + #[doc = "Getter for the `version` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/version)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn version(this: &IdbDatabase) -> f64; + #[cfg(feature = "DomStringList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBDatabase" , js_name = objectStoreNames ) ] + #[doc = "Getter for the `objectStoreNames` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/objectStoreNames)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomStringList`, `IdbDatabase`*"] + pub fn object_store_names(this: &IdbDatabase) -> DomStringList; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBDatabase" , js_name = onabort ) ] + #[doc = "Getter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn onabort(this: &IdbDatabase) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBDatabase" , js_name = onabort ) ] + #[doc = "Setter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn set_onabort(this: &IdbDatabase, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBDatabase" , js_name = onclose ) ] + #[doc = "Getter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn onclose(this: &IdbDatabase) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBDatabase" , js_name = onclose ) ] + #[doc = "Setter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn set_onclose(this: &IdbDatabase, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBDatabase" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn onerror(this: &IdbDatabase) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBDatabase" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn set_onerror(this: &IdbDatabase, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBDatabase" , js_name = onversionchange ) ] + #[doc = "Getter for the `onversionchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onversionchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn onversionchange(this: &IdbDatabase) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBDatabase" , js_name = onversionchange ) ] + #[doc = "Setter for the `onversionchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/onversionchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn set_onversionchange(this: &IdbDatabase, value: Option<&::js_sys::Function>); + #[cfg(feature = "StorageType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBDatabase" , js_name = storage ) ] + #[doc = "Getter for the `storage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/storage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `StorageType`*"] + pub fn storage(this: &IdbDatabase) -> StorageType; + # [ wasm_bindgen ( method , structural , js_class = "IDBDatabase" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn close(this: &IdbDatabase); + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBDatabase" , js_name = createMutableFile ) ] + #[doc = "The `createMutableFile()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createMutableFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbRequest`*"] + pub fn create_mutable_file(this: &IdbDatabase, name: &str) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBDatabase" , js_name = createMutableFile ) ] + #[doc = "The `createMutableFile()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createMutableFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbRequest`*"] + pub fn create_mutable_file_with_type( + this: &IdbDatabase, + name: &str, + type_: &str, + ) -> Result; + #[cfg(feature = "IdbObjectStore")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBDatabase" , js_name = createObjectStore ) ] + #[doc = "The `createObjectStore()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createObjectStore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbObjectStore`*"] + pub fn create_object_store(this: &IdbDatabase, name: &str) -> Result; + #[cfg(all(feature = "IdbObjectStore", feature = "IdbObjectStoreParameters",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBDatabase" , js_name = createObjectStore ) ] + #[doc = "The `createObjectStore()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/createObjectStore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbObjectStore`, `IdbObjectStoreParameters`*"] + pub fn create_object_store_with_optional_parameters( + this: &IdbDatabase, + name: &str, + optional_parameters: &IdbObjectStoreParameters, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBDatabase" , js_name = deleteObjectStore ) ] + #[doc = "The `deleteObjectStore()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/deleteObjectStore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`*"] + pub fn delete_object_store(this: &IdbDatabase, name: &str) -> Result<(), JsValue>; + #[cfg(feature = "IdbTransaction")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBDatabase" , js_name = transaction ) ] + #[doc = "The `transaction()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`*"] + pub fn transaction_with_str( + this: &IdbDatabase, + store_names: &str, + ) -> Result; + #[cfg(feature = "IdbTransaction")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBDatabase" , js_name = transaction ) ] + #[doc = "The `transaction()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`*"] + pub fn transaction_with_str_sequence( + this: &IdbDatabase, + store_names: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(all(feature = "IdbTransaction", feature = "IdbTransactionMode",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBDatabase" , js_name = transaction ) ] + #[doc = "The `transaction()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`, `IdbTransactionMode`*"] + pub fn transaction_with_str_and_mode( + this: &IdbDatabase, + store_names: &str, + mode: IdbTransactionMode, + ) -> Result; + #[cfg(all(feature = "IdbTransaction", feature = "IdbTransactionMode",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBDatabase" , js_name = transaction ) ] + #[doc = "The `transaction()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/transaction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`, `IdbTransactionMode`*"] + pub fn transaction_with_str_sequence_and_mode( + this: &IdbDatabase, + store_names: &::wasm_bindgen::JsValue, + mode: IdbTransactionMode, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_IdbFactory.rs b/crates/web-sys/src/features/gen_IdbFactory.rs new file mode 100644 index 00000000..8adc1a00 --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbFactory.rs @@ -0,0 +1,89 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IDBFactory , typescript_type = "IDBFactory" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbFactory` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFactory`*"] + pub type IdbFactory; + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFactory" , js_name = cmp ) ] + #[doc = "The `cmp()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/cmp)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFactory`*"] + pub fn cmp( + this: &IdbFactory, + first: &::wasm_bindgen::JsValue, + second: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(feature = "IdbOpenDbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFactory" , js_name = deleteDatabase ) ] + #[doc = "The `deleteDatabase()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/deleteDatabase)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbRequest`*"] + pub fn delete_database(this: &IdbFactory, name: &str) -> Result; + #[cfg(all(feature = "IdbOpenDbOptions", feature = "IdbOpenDbRequest",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFactory" , js_name = deleteDatabase ) ] + #[doc = "The `deleteDatabase()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/deleteDatabase)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbOptions`, `IdbOpenDbRequest`*"] + pub fn delete_database_with_options( + this: &IdbFactory, + name: &str, + options: &IdbOpenDbOptions, + ) -> Result; + #[cfg(feature = "IdbOpenDbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFactory" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbRequest`*"] + pub fn open_with_u32( + this: &IdbFactory, + name: &str, + version: u32, + ) -> Result; + #[cfg(feature = "IdbOpenDbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFactory" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbRequest`*"] + pub fn open_with_f64( + this: &IdbFactory, + name: &str, + version: f64, + ) -> Result; + #[cfg(feature = "IdbOpenDbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFactory" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbRequest`*"] + pub fn open(this: &IdbFactory, name: &str) -> Result; + #[cfg(all(feature = "IdbOpenDbOptions", feature = "IdbOpenDbRequest",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFactory" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFactory/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `IdbOpenDbOptions`, `IdbOpenDbRequest`*"] + pub fn open_with_idb_open_db_options( + this: &IdbFactory, + name: &str, + options: &IdbOpenDbOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_IdbFileHandle.rs b/crates/web-sys/src/features/gen_IdbFileHandle.rs new file mode 100644 index 00000000..32258113 --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbFileHandle.rs @@ -0,0 +1,335 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBFileHandle , typescript_type = "IDBFileHandle" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbFileHandle` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] + pub type IdbFileHandle; + #[cfg(feature = "IdbMutableFile")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBFileHandle" , js_name = mutableFile ) ] + #[doc = "Getter for the `mutableFile` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/mutableFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbMutableFile`*"] + pub fn mutable_file(this: &IdbFileHandle) -> Option; + #[cfg(feature = "IdbMutableFile")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBFileHandle" , js_name = fileHandle ) ] + #[doc = "Getter for the `fileHandle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/fileHandle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbMutableFile`*"] + pub fn file_handle(this: &IdbFileHandle) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBFileHandle" , js_name = active ) ] + #[doc = "Getter for the `active` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/active)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] + pub fn active(this: &IdbFileHandle) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBFileHandle" , js_name = location ) ] + #[doc = "Getter for the `location` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/location)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] + pub fn location(this: &IdbFileHandle) -> Option; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBFileHandle" , js_name = location ) ] + #[doc = "Setter for the `location` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/location)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] + pub fn set_location(this: &IdbFileHandle, value: Option); + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBFileHandle" , js_name = oncomplete ) ] + #[doc = "Getter for the `oncomplete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/oncomplete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] + pub fn oncomplete(this: &IdbFileHandle) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBFileHandle" , js_name = oncomplete ) ] + #[doc = "Setter for the `oncomplete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/oncomplete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] + pub fn set_oncomplete(this: &IdbFileHandle, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBFileHandle" , js_name = onabort ) ] + #[doc = "Getter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] + pub fn onabort(this: &IdbFileHandle) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBFileHandle" , js_name = onabort ) ] + #[doc = "Setter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] + pub fn set_onabort(this: &IdbFileHandle, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBFileHandle" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] + pub fn onerror(this: &IdbFileHandle) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBFileHandle" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] + pub fn set_onerror(this: &IdbFileHandle, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = abort ) ] + #[doc = "The `abort()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/abort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`*"] + pub fn abort(this: &IdbFileHandle) -> Result<(), JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn append_with_str( + this: &IdbFileHandle, + value: &str, + ) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn append_with_array_buffer( + this: &IdbFileHandle, + value: &::js_sys::ArrayBuffer, + ) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn append_with_array_buffer_view( + this: &IdbFileHandle, + value: &::js_sys::Object, + ) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn append_with_u8_array( + this: &IdbFileHandle, + value: &mut [u8], + ) -> Result, JsValue>; + #[cfg(all(feature = "Blob", feature = "IdbFileRequest",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `IdbFileHandle`, `IdbFileRequest`*"] + pub fn append_with_blob( + this: &IdbFileHandle, + value: &Blob, + ) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = flush ) ] + #[doc = "The `flush()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/flush)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn flush(this: &IdbFileHandle) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = getMetadata ) ] + #[doc = "The `getMetadata()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/getMetadata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn get_metadata(this: &IdbFileHandle) -> Result, JsValue>; + #[cfg(all(feature = "IdbFileMetadataParameters", feature = "IdbFileRequest",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = getMetadata ) ] + #[doc = "The `getMetadata()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/getMetadata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileMetadataParameters`, `IdbFileRequest`*"] + pub fn get_metadata_with_parameters( + this: &IdbFileHandle, + parameters: &IdbFileMetadataParameters, + ) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsArrayBuffer ) ] + #[doc = "The `readAsArrayBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsArrayBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn read_as_array_buffer_with_u32( + this: &IdbFileHandle, + size: u32, + ) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsArrayBuffer ) ] + #[doc = "The `readAsArrayBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsArrayBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn read_as_array_buffer_with_f64( + this: &IdbFileHandle, + size: f64, + ) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsText ) ] + #[doc = "The `readAsText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn read_as_text_with_u32( + this: &IdbFileHandle, + size: u32, + ) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsText ) ] + #[doc = "The `readAsText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn read_as_text_with_f64( + this: &IdbFileHandle, + size: f64, + ) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsText ) ] + #[doc = "The `readAsText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn read_as_text_with_u32_and_encoding( + this: &IdbFileHandle, + size: u32, + encoding: Option<&str>, + ) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = readAsText ) ] + #[doc = "The `readAsText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/readAsText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn read_as_text_with_f64_and_encoding( + this: &IdbFileHandle, + size: f64, + encoding: Option<&str>, + ) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = truncate ) ] + #[doc = "The `truncate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/truncate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn truncate(this: &IdbFileHandle) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = truncate ) ] + #[doc = "The `truncate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/truncate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn truncate_with_u32( + this: &IdbFileHandle, + size: u32, + ) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = truncate ) ] + #[doc = "The `truncate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/truncate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn truncate_with_f64( + this: &IdbFileHandle, + size: f64, + ) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = write ) ] + #[doc = "The `write()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn write_with_str( + this: &IdbFileHandle, + value: &str, + ) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = write ) ] + #[doc = "The `write()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn write_with_array_buffer( + this: &IdbFileHandle, + value: &::js_sys::ArrayBuffer, + ) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = write ) ] + #[doc = "The `write()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn write_with_array_buffer_view( + this: &IdbFileHandle, + value: &::js_sys::Object, + ) -> Result, JsValue>; + #[cfg(feature = "IdbFileRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = write ) ] + #[doc = "The `write()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn write_with_u8_array( + this: &IdbFileHandle, + value: &mut [u8], + ) -> Result, JsValue>; + #[cfg(all(feature = "Blob", feature = "IdbFileRequest",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBFileHandle" , js_name = write ) ] + #[doc = "The `write()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileHandle/write)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `IdbFileHandle`, `IdbFileRequest`*"] + pub fn write_with_blob( + this: &IdbFileHandle, + value: &Blob, + ) -> Result, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_IdbFileMetadataParameters.rs b/crates/web-sys/src/features/gen_IdbFileMetadataParameters.rs new file mode 100644 index 00000000..2ae1275c --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbFileMetadataParameters.rs @@ -0,0 +1,52 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IDBFileMetadataParameters ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbFileMetadataParameters` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileMetadataParameters`*"] + pub type IdbFileMetadataParameters; +} +impl IdbFileMetadataParameters { + #[doc = "Construct a new `IdbFileMetadataParameters`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileMetadataParameters`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `lastModified` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileMetadataParameters`*"] + pub fn last_modified(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("lastModified"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `size` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileMetadataParameters`*"] + pub fn size(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("size"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_IdbFileRequest.rs b/crates/web-sys/src/features/gen_IdbFileRequest.rs new file mode 100644 index 00000000..ac021f73 --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbFileRequest.rs @@ -0,0 +1,44 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = DomRequest , extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBFileRequest , typescript_type = "IDBFileRequest" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbFileRequest` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileRequest`*"] + pub type IdbFileRequest; + #[cfg(feature = "IdbFileHandle")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBFileRequest" , js_name = fileHandle ) ] + #[doc = "Getter for the `fileHandle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileRequest/fileHandle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn file_handle(this: &IdbFileRequest) -> Option; + #[cfg(feature = "IdbFileHandle")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBFileRequest" , js_name = lockedFile ) ] + #[doc = "Getter for the `lockedFile` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileRequest/lockedFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbFileRequest`*"] + pub fn locked_file(this: &IdbFileRequest) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBFileRequest" , js_name = onprogress ) ] + #[doc = "Getter for the `onprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileRequest/onprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileRequest`*"] + pub fn onprogress(this: &IdbFileRequest) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBFileRequest" , js_name = onprogress ) ] + #[doc = "Setter for the `onprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBFileRequest/onprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileRequest`*"] + pub fn set_onprogress(this: &IdbFileRequest, value: Option<&::js_sys::Function>); +} diff --git a/crates/web-sys/src/features/gen_IdbIndex.rs b/crates/web-sys/src/features/gen_IdbIndex.rs new file mode 100644 index 00000000..6579ef7e --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbIndex.rs @@ -0,0 +1,230 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IDBIndex , typescript_type = "IDBIndex" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbIndex` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] + pub type IdbIndex; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBIndex" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] + pub fn name(this: &IdbIndex) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBIndex" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] + pub fn set_name(this: &IdbIndex, value: &str); + #[cfg(feature = "IdbObjectStore")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBIndex" , js_name = objectStore ) ] + #[doc = "Getter for the `objectStore` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/objectStore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbObjectStore`*"] + pub fn object_store(this: &IdbIndex) -> IdbObjectStore; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "IDBIndex" , js_name = keyPath ) ] + #[doc = "Getter for the `keyPath` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/keyPath)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] + pub fn key_path(this: &IdbIndex) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBIndex" , js_name = multiEntry ) ] + #[doc = "Getter for the `multiEntry` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/multiEntry)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] + pub fn multi_entry(this: &IdbIndex) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBIndex" , js_name = unique ) ] + #[doc = "Getter for the `unique` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/unique)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] + pub fn unique(this: &IdbIndex) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBIndex" , js_name = locale ) ] + #[doc = "Getter for the `locale` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/locale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] + pub fn locale(this: &IdbIndex) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBIndex" , js_name = isAutoLocale ) ] + #[doc = "Getter for the `isAutoLocale` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/isAutoLocale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`*"] + pub fn is_auto_locale(this: &IdbIndex) -> bool; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBIndex" , js_name = count ) ] + #[doc = "The `count()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/count)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] + pub fn count(this: &IdbIndex) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBIndex" , js_name = count ) ] + #[doc = "The `count()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/count)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] + pub fn count_with_key( + this: &IdbIndex, + key: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBIndex" , js_name = get ) ] + #[doc = "The `get()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/get)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] + pub fn get(this: &IdbIndex, key: &::wasm_bindgen::JsValue) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBIndex" , js_name = getAll ) ] + #[doc = "The `getAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] + pub fn get_all(this: &IdbIndex) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBIndex" , js_name = getAll ) ] + #[doc = "The `getAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] + pub fn get_all_with_key( + this: &IdbIndex, + key: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBIndex" , js_name = getAll ) ] + #[doc = "The `getAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] + pub fn get_all_with_key_and_limit( + this: &IdbIndex, + key: &::wasm_bindgen::JsValue, + limit: u32, + ) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBIndex" , js_name = getAllKeys ) ] + #[doc = "The `getAllKeys()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAllKeys)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] + pub fn get_all_keys(this: &IdbIndex) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBIndex" , js_name = getAllKeys ) ] + #[doc = "The `getAllKeys()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAllKeys)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] + pub fn get_all_keys_with_key( + this: &IdbIndex, + key: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBIndex" , js_name = getAllKeys ) ] + #[doc = "The `getAllKeys()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getAllKeys)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] + pub fn get_all_keys_with_key_and_limit( + this: &IdbIndex, + key: &::wasm_bindgen::JsValue, + limit: u32, + ) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBIndex" , js_name = getKey ) ] + #[doc = "The `getKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/getKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] + pub fn get_key(this: &IdbIndex, key: &::wasm_bindgen::JsValue) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBIndex" , js_name = openCursor ) ] + #[doc = "The `openCursor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openCursor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] + pub fn open_cursor(this: &IdbIndex) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBIndex" , js_name = openCursor ) ] + #[doc = "The `openCursor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openCursor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] + pub fn open_cursor_with_range( + this: &IdbIndex, + range: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(all(feature = "IdbCursorDirection", feature = "IdbRequest",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBIndex" , js_name = openCursor ) ] + #[doc = "The `openCursor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openCursor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbCursorDirection`, `IdbIndex`, `IdbRequest`*"] + pub fn open_cursor_with_range_and_direction( + this: &IdbIndex, + range: &::wasm_bindgen::JsValue, + direction: IdbCursorDirection, + ) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBIndex" , js_name = openKeyCursor ) ] + #[doc = "The `openKeyCursor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openKeyCursor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] + pub fn open_key_cursor(this: &IdbIndex) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBIndex" , js_name = openKeyCursor ) ] + #[doc = "The `openKeyCursor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openKeyCursor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbRequest`*"] + pub fn open_key_cursor_with_range( + this: &IdbIndex, + range: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(all(feature = "IdbCursorDirection", feature = "IdbRequest",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBIndex" , js_name = openKeyCursor ) ] + #[doc = "The `openKeyCursor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBIndex/openKeyCursor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbCursorDirection`, `IdbIndex`, `IdbRequest`*"] + pub fn open_key_cursor_with_range_and_direction( + this: &IdbIndex, + range: &::wasm_bindgen::JsValue, + direction: IdbCursorDirection, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_IdbIndexParameters.rs b/crates/web-sys/src/features/gen_IdbIndexParameters.rs new file mode 100644 index 00000000..b1490c43 --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbIndexParameters.rs @@ -0,0 +1,67 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IDBIndexParameters ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbIndexParameters` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] + pub type IdbIndexParameters; +} +impl IdbIndexParameters { + #[doc = "Construct a new `IdbIndexParameters`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `locale` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] + pub fn locale(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("locale"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `multiEntry` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] + pub fn multi_entry(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("multiEntry"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `unique` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndexParameters`*"] + pub fn unique(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("unique"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_IdbKeyRange.rs b/crates/web-sys/src/features/gen_IdbKeyRange.rs new file mode 100644 index 00000000..ac23fcae --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbKeyRange.rs @@ -0,0 +1,123 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IDBKeyRange , typescript_type = "IDBKeyRange" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbKeyRange` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] + pub type IdbKeyRange; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "IDBKeyRange" , js_name = lower ) ] + #[doc = "Getter for the `lower` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lower)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] + pub fn lower(this: &IdbKeyRange) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "IDBKeyRange" , js_name = upper ) ] + #[doc = "Getter for the `upper` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upper)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] + pub fn upper(this: &IdbKeyRange) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBKeyRange" , js_name = lowerOpen ) ] + #[doc = "Getter for the `lowerOpen` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerOpen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] + pub fn lower_open(this: &IdbKeyRange) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBKeyRange" , js_name = upperOpen ) ] + #[doc = "Getter for the `upperOpen` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperOpen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] + pub fn upper_open(this: &IdbKeyRange) -> bool; + # [ wasm_bindgen ( catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = bound ) ] + #[doc = "The `bound()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/bound)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] + pub fn bound( + lower: &::wasm_bindgen::JsValue, + upper: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = bound ) ] + #[doc = "The `bound()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/bound)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] + pub fn bound_with_lower_open( + lower: &::wasm_bindgen::JsValue, + upper: &::wasm_bindgen::JsValue, + lower_open: bool, + ) -> Result; + # [ wasm_bindgen ( catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = bound ) ] + #[doc = "The `bound()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/bound)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] + pub fn bound_with_lower_open_and_upper_open( + lower: &::wasm_bindgen::JsValue, + upper: &::wasm_bindgen::JsValue, + lower_open: bool, + upper_open: bool, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBKeyRange" , js_name = includes ) ] + #[doc = "The `includes()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/includes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] + pub fn includes(this: &IdbKeyRange, key: &::wasm_bindgen::JsValue) -> Result; + # [ wasm_bindgen ( catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = lowerBound ) ] + #[doc = "The `lowerBound()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerBound)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] + pub fn lower_bound(lower: &::wasm_bindgen::JsValue) -> Result; + # [ wasm_bindgen ( catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = lowerBound ) ] + #[doc = "The `lowerBound()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/lowerBound)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] + pub fn lower_bound_with_open( + lower: &::wasm_bindgen::JsValue, + open: bool, + ) -> Result; + # [ wasm_bindgen ( catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = only ) ] + #[doc = "The `only()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/only)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] + pub fn only(value: &::wasm_bindgen::JsValue) -> Result; + # [ wasm_bindgen ( catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = upperBound ) ] + #[doc = "The `upperBound()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperBound)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] + pub fn upper_bound(upper: &::wasm_bindgen::JsValue) -> Result; + # [ wasm_bindgen ( catch , static_method_of = IdbKeyRange , js_class = "IDBKeyRange" , js_name = upperBound ) ] + #[doc = "The `upperBound()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBKeyRange/upperBound)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbKeyRange`*"] + pub fn upper_bound_with_open( + upper: &::wasm_bindgen::JsValue, + open: bool, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_IdbLocaleAwareKeyRange.rs b/crates/web-sys/src/features/gen_IdbLocaleAwareKeyRange.rs new file mode 100644 index 00000000..c29fcf33 --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbLocaleAwareKeyRange.rs @@ -0,0 +1,47 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = IdbKeyRange , extends = :: js_sys :: Object , js_name = IDBLocaleAwareKeyRange , typescript_type = "IDBLocaleAwareKeyRange" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbLocaleAwareKeyRange` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBLocaleAwareKeyRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbLocaleAwareKeyRange`*"] + pub type IdbLocaleAwareKeyRange; + # [ wasm_bindgen ( catch , static_method_of = IdbLocaleAwareKeyRange , js_class = "IDBLocaleAwareKeyRange" , js_name = bound ) ] + #[doc = "The `bound()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBLocaleAwareKeyRange/bound)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbLocaleAwareKeyRange`*"] + pub fn bound( + lower: &::wasm_bindgen::JsValue, + upper: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , static_method_of = IdbLocaleAwareKeyRange , js_class = "IDBLocaleAwareKeyRange" , js_name = bound ) ] + #[doc = "The `bound()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBLocaleAwareKeyRange/bound)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbLocaleAwareKeyRange`*"] + pub fn bound_with_lower_open( + lower: &::wasm_bindgen::JsValue, + upper: &::wasm_bindgen::JsValue, + lower_open: bool, + ) -> Result; + # [ wasm_bindgen ( catch , static_method_of = IdbLocaleAwareKeyRange , js_class = "IDBLocaleAwareKeyRange" , js_name = bound ) ] + #[doc = "The `bound()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBLocaleAwareKeyRange/bound)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbLocaleAwareKeyRange`*"] + pub fn bound_with_lower_open_and_upper_open( + lower: &::wasm_bindgen::JsValue, + upper: &::wasm_bindgen::JsValue, + lower_open: bool, + upper_open: bool, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_IdbMutableFile.rs b/crates/web-sys/src/features/gen_IdbMutableFile.rs new file mode 100644 index 00000000..6d4b9f79 --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbMutableFile.rs @@ -0,0 +1,80 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBMutableFile , typescript_type = "IDBMutableFile" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbMutableFile` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] + pub type IdbMutableFile; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBMutableFile" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] + pub fn name(this: &IdbMutableFile) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBMutableFile" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] + pub fn type_(this: &IdbMutableFile) -> String; + #[cfg(feature = "IdbDatabase")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBMutableFile" , js_name = database ) ] + #[doc = "Getter for the `database` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/database)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbMutableFile`*"] + pub fn database(this: &IdbMutableFile) -> IdbDatabase; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBMutableFile" , js_name = onabort ) ] + #[doc = "Getter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] + pub fn onabort(this: &IdbMutableFile) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBMutableFile" , js_name = onabort ) ] + #[doc = "Setter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] + pub fn set_onabort(this: &IdbMutableFile, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBMutableFile" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] + pub fn onerror(this: &IdbMutableFile) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBMutableFile" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbMutableFile`*"] + pub fn set_onerror(this: &IdbMutableFile, value: Option<&::js_sys::Function>); + #[cfg(feature = "DomRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBMutableFile" , js_name = getFile ) ] + #[doc = "The `getFile()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/getFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRequest`, `IdbMutableFile`*"] + pub fn get_file(this: &IdbMutableFile) -> Result; + #[cfg(feature = "IdbFileHandle")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBMutableFile" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBMutableFile/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFileHandle`, `IdbMutableFile`*"] + pub fn open(this: &IdbMutableFile) -> Result; +} diff --git a/crates/web-sys/src/features/gen_IdbObjectStore.rs b/crates/web-sys/src/features/gen_IdbObjectStore.rs new file mode 100644 index 00000000..cbd51aa8 --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbObjectStore.rs @@ -0,0 +1,351 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IDBObjectStore , typescript_type = "IDBObjectStore" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbObjectStore` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] + pub type IdbObjectStore; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBObjectStore" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] + pub fn name(this: &IdbObjectStore) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBObjectStore" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] + pub fn set_name(this: &IdbObjectStore, value: &str); + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "IDBObjectStore" , js_name = keyPath ) ] + #[doc = "Getter for the `keyPath` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/keyPath)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] + pub fn key_path(this: &IdbObjectStore) -> Result<::wasm_bindgen::JsValue, JsValue>; + #[cfg(feature = "DomStringList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBObjectStore" , js_name = indexNames ) ] + #[doc = "Getter for the `indexNames` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/indexNames)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomStringList`, `IdbObjectStore`*"] + pub fn index_names(this: &IdbObjectStore) -> DomStringList; + #[cfg(feature = "IdbTransaction")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBObjectStore" , js_name = transaction ) ] + #[doc = "Getter for the `transaction` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/transaction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbTransaction`*"] + pub fn transaction(this: &IdbObjectStore) -> IdbTransaction; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBObjectStore" , js_name = autoIncrement ) ] + #[doc = "Getter for the `autoIncrement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/autoIncrement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] + pub fn auto_increment(this: &IdbObjectStore) -> bool; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn add( + this: &IdbObjectStore, + value: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = add ) ] + #[doc = "The `add()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/add)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn add_with_key( + this: &IdbObjectStore, + value: &::wasm_bindgen::JsValue, + key: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = clear ) ] + #[doc = "The `clear()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/clear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn clear(this: &IdbObjectStore) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = count ) ] + #[doc = "The `count()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/count)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn count(this: &IdbObjectStore) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = count ) ] + #[doc = "The `count()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/count)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn count_with_key( + this: &IdbObjectStore, + key: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(feature = "IdbIndex")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = createIndex ) ] + #[doc = "The `createIndex()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/createIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbObjectStore`*"] + pub fn create_index_with_str( + this: &IdbObjectStore, + name: &str, + key_path: &str, + ) -> Result; + #[cfg(feature = "IdbIndex")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = createIndex ) ] + #[doc = "The `createIndex()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/createIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbObjectStore`*"] + pub fn create_index_with_str_sequence( + this: &IdbObjectStore, + name: &str, + key_path: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(all(feature = "IdbIndex", feature = "IdbIndexParameters",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = createIndex ) ] + #[doc = "The `createIndex()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/createIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbIndexParameters`, `IdbObjectStore`*"] + pub fn create_index_with_str_and_optional_parameters( + this: &IdbObjectStore, + name: &str, + key_path: &str, + optional_parameters: &IdbIndexParameters, + ) -> Result; + #[cfg(all(feature = "IdbIndex", feature = "IdbIndexParameters",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = createIndex ) ] + #[doc = "The `createIndex()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/createIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbIndexParameters`, `IdbObjectStore`*"] + pub fn create_index_with_str_sequence_and_optional_parameters( + this: &IdbObjectStore, + name: &str, + key_path: &::wasm_bindgen::JsValue, + optional_parameters: &IdbIndexParameters, + ) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = delete ) ] + #[doc = "The `delete()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/delete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn delete( + this: &IdbObjectStore, + key: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = deleteIndex ) ] + #[doc = "The `deleteIndex()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/deleteIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`*"] + pub fn delete_index(this: &IdbObjectStore, index_name: &str) -> Result<(), JsValue>; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = get ) ] + #[doc = "The `get()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/get)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn get(this: &IdbObjectStore, key: &::wasm_bindgen::JsValue) + -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = getAll ) ] + #[doc = "The `getAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn get_all(this: &IdbObjectStore) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = getAll ) ] + #[doc = "The `getAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn get_all_with_key( + this: &IdbObjectStore, + key: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = getAll ) ] + #[doc = "The `getAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn get_all_with_key_and_limit( + this: &IdbObjectStore, + key: &::wasm_bindgen::JsValue, + limit: u32, + ) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = getAllKeys ) ] + #[doc = "The `getAllKeys()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAllKeys)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn get_all_keys(this: &IdbObjectStore) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = getAllKeys ) ] + #[doc = "The `getAllKeys()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAllKeys)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn get_all_keys_with_key( + this: &IdbObjectStore, + key: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = getAllKeys ) ] + #[doc = "The `getAllKeys()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getAllKeys)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn get_all_keys_with_key_and_limit( + this: &IdbObjectStore, + key: &::wasm_bindgen::JsValue, + limit: u32, + ) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = getKey ) ] + #[doc = "The `getKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/getKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn get_key( + this: &IdbObjectStore, + key: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(feature = "IdbIndex")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = index ) ] + #[doc = "The `index()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/index)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbIndex`, `IdbObjectStore`*"] + pub fn index(this: &IdbObjectStore, name: &str) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = openCursor ) ] + #[doc = "The `openCursor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openCursor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn open_cursor(this: &IdbObjectStore) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = openCursor ) ] + #[doc = "The `openCursor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openCursor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn open_cursor_with_range( + this: &IdbObjectStore, + range: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(all(feature = "IdbCursorDirection", feature = "IdbRequest",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = openCursor ) ] + #[doc = "The `openCursor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openCursor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbCursorDirection`, `IdbObjectStore`, `IdbRequest`*"] + pub fn open_cursor_with_range_and_direction( + this: &IdbObjectStore, + range: &::wasm_bindgen::JsValue, + direction: IdbCursorDirection, + ) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = openKeyCursor ) ] + #[doc = "The `openKeyCursor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openKeyCursor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn open_key_cursor(this: &IdbObjectStore) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = openKeyCursor ) ] + #[doc = "The `openKeyCursor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openKeyCursor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn open_key_cursor_with_range( + this: &IdbObjectStore, + range: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(all(feature = "IdbCursorDirection", feature = "IdbRequest",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = openKeyCursor ) ] + #[doc = "The `openKeyCursor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/openKeyCursor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbCursorDirection`, `IdbObjectStore`, `IdbRequest`*"] + pub fn open_key_cursor_with_range_and_direction( + this: &IdbObjectStore, + range: &::wasm_bindgen::JsValue, + direction: IdbCursorDirection, + ) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = put ) ] + #[doc = "The `put()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/put)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn put( + this: &IdbObjectStore, + value: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(feature = "IdbRequest")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBObjectStore" , js_name = put ) ] + #[doc = "The `put()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBObjectStore/put)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbRequest`*"] + pub fn put_with_key( + this: &IdbObjectStore, + value: &::wasm_bindgen::JsValue, + key: &::wasm_bindgen::JsValue, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_IdbObjectStoreParameters.rs b/crates/web-sys/src/features/gen_IdbObjectStoreParameters.rs new file mode 100644 index 00000000..0e193ae8 --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbObjectStoreParameters.rs @@ -0,0 +1,56 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IDBObjectStoreParameters ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbObjectStoreParameters` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStoreParameters`*"] + pub type IdbObjectStoreParameters; +} +impl IdbObjectStoreParameters { + #[doc = "Construct a new `IdbObjectStoreParameters`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStoreParameters`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `autoIncrement` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStoreParameters`*"] + pub fn auto_increment(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("autoIncrement"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `keyPath` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStoreParameters`*"] + pub fn key_path(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("keyPath"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_IdbOpenDbOptions.rs b/crates/web-sys/src/features/gen_IdbOpenDbOptions.rs new file mode 100644 index 00000000..5a8e993e --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbOpenDbOptions.rs @@ -0,0 +1,57 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IDBOpenDBOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbOpenDbOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbOptions`*"] + pub type IdbOpenDbOptions; +} +impl IdbOpenDbOptions { + #[doc = "Construct a new `IdbOpenDbOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "StorageType")] + #[doc = "Change the `storage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbOptions`, `StorageType`*"] + pub fn storage(&mut self, val: StorageType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("storage"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `version` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbOptions`*"] + pub fn version(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("version"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_IdbOpenDbRequest.rs b/crates/web-sys/src/features/gen_IdbOpenDbRequest.rs new file mode 100644 index 00000000..5f155ac1 --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbOpenDbRequest.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = IdbRequest , extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBOpenDBRequest , typescript_type = "IDBOpenDBRequest" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbOpenDbRequest` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBOpenDBRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbRequest`*"] + pub type IdbOpenDbRequest; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBOpenDBRequest" , js_name = onblocked ) ] + #[doc = "Getter for the `onblocked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBOpenDBRequest/onblocked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbRequest`*"] + pub fn onblocked(this: &IdbOpenDbRequest) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBOpenDBRequest" , js_name = onblocked ) ] + #[doc = "Setter for the `onblocked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBOpenDBRequest/onblocked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbRequest`*"] + pub fn set_onblocked(this: &IdbOpenDbRequest, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBOpenDBRequest" , js_name = onupgradeneeded ) ] + #[doc = "Getter for the `onupgradeneeded` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBOpenDBRequest/onupgradeneeded)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbRequest`*"] + pub fn onupgradeneeded(this: &IdbOpenDbRequest) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBOpenDBRequest" , js_name = onupgradeneeded ) ] + #[doc = "Setter for the `onupgradeneeded` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBOpenDBRequest/onupgradeneeded)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbOpenDbRequest`*"] + pub fn set_onupgradeneeded(this: &IdbOpenDbRequest, value: Option<&::js_sys::Function>); +} diff --git a/crates/web-sys/src/features/gen_IdbRequest.rs b/crates/web-sys/src/features/gen_IdbRequest.rs new file mode 100644 index 00000000..b3125b23 --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbRequest.rs @@ -0,0 +1,80 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBRequest , typescript_type = "IDBRequest" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbRequest` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] + pub type IdbRequest; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "IDBRequest" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] + pub fn result(this: &IdbRequest) -> Result<::wasm_bindgen::JsValue, JsValue>; + #[cfg(feature = "DomException")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "IDBRequest" , js_name = error ) ] + #[doc = "Getter for the `error` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`, `IdbRequest`*"] + pub fn error(this: &IdbRequest) -> Result, JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBRequest" , js_name = source ) ] + #[doc = "Getter for the `source` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/source)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] + pub fn source(this: &IdbRequest) -> Option<::js_sys::Object>; + #[cfg(feature = "IdbTransaction")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBRequest" , js_name = transaction ) ] + #[doc = "Getter for the `transaction` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/transaction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbRequest`, `IdbTransaction`*"] + pub fn transaction(this: &IdbRequest) -> Option; + #[cfg(feature = "IdbRequestReadyState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBRequest" , js_name = readyState ) ] + #[doc = "Getter for the `readyState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/readyState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbRequest`, `IdbRequestReadyState`*"] + pub fn ready_state(this: &IdbRequest) -> IdbRequestReadyState; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBRequest" , js_name = onsuccess ) ] + #[doc = "Getter for the `onsuccess` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onsuccess)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] + pub fn onsuccess(this: &IdbRequest) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBRequest" , js_name = onsuccess ) ] + #[doc = "Setter for the `onsuccess` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onsuccess)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] + pub fn set_onsuccess(this: &IdbRequest, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBRequest" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] + pub fn onerror(this: &IdbRequest) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBRequest" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbRequest`*"] + pub fn set_onerror(this: &IdbRequest, value: Option<&::js_sys::Function>); +} diff --git a/crates/web-sys/src/features/gen_IdbRequestReadyState.rs b/crates/web-sys/src/features/gen_IdbRequestReadyState.rs new file mode 100644 index 00000000..bd5a50e6 --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbRequestReadyState.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `IdbRequestReadyState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `IdbRequestReadyState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum IdbRequestReadyState { + Pending = "pending", + Done = "done", +} diff --git a/crates/web-sys/src/features/gen_IdbTransaction.rs b/crates/web-sys/src/features/gen_IdbTransaction.rs new file mode 100644 index 00000000..e0352086 --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbTransaction.rs @@ -0,0 +1,103 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = IDBTransaction , typescript_type = "IDBTransaction" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbTransaction` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] + pub type IdbTransaction; + #[cfg(feature = "IdbTransactionMode")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "IDBTransaction" , js_name = mode ) ] + #[doc = "Getter for the `mode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/mode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`, `IdbTransactionMode`*"] + pub fn mode(this: &IdbTransaction) -> Result; + #[cfg(feature = "IdbDatabase")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBTransaction" , js_name = db ) ] + #[doc = "Getter for the `db` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/db)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbDatabase`, `IdbTransaction`*"] + pub fn db(this: &IdbTransaction) -> IdbDatabase; + #[cfg(feature = "DomException")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBTransaction" , js_name = error ) ] + #[doc = "Getter for the `error` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`, `IdbTransaction`*"] + pub fn error(this: &IdbTransaction) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBTransaction" , js_name = onabort ) ] + #[doc = "Getter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] + pub fn onabort(this: &IdbTransaction) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBTransaction" , js_name = onabort ) ] + #[doc = "Setter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] + pub fn set_onabort(this: &IdbTransaction, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBTransaction" , js_name = oncomplete ) ] + #[doc = "Getter for the `oncomplete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/oncomplete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] + pub fn oncomplete(this: &IdbTransaction) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBTransaction" , js_name = oncomplete ) ] + #[doc = "Setter for the `oncomplete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/oncomplete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] + pub fn set_oncomplete(this: &IdbTransaction, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBTransaction" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] + pub fn onerror(this: &IdbTransaction) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "IDBTransaction" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] + pub fn set_onerror(this: &IdbTransaction, value: Option<&::js_sys::Function>); + #[cfg(feature = "DomStringList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBTransaction" , js_name = objectStoreNames ) ] + #[doc = "Getter for the `objectStoreNames` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/objectStoreNames)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomStringList`, `IdbTransaction`*"] + pub fn object_store_names(this: &IdbTransaction) -> DomStringList; + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBTransaction" , js_name = abort ) ] + #[doc = "The `abort()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/abort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbTransaction`*"] + pub fn abort(this: &IdbTransaction) -> Result<(), JsValue>; + #[cfg(feature = "IdbObjectStore")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IDBTransaction" , js_name = objectStore ) ] + #[doc = "The `objectStore()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBTransaction/objectStore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbObjectStore`, `IdbTransaction`*"] + pub fn object_store(this: &IdbTransaction, name: &str) -> Result; +} diff --git a/crates/web-sys/src/features/gen_IdbTransactionMode.rs b/crates/web-sys/src/features/gen_IdbTransactionMode.rs new file mode 100644 index 00000000..8f0eb764 --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbTransactionMode.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `IdbTransactionMode` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `IdbTransactionMode`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum IdbTransactionMode { + Readonly = "readonly", + Readwrite = "readwrite", + Readwriteflush = "readwriteflush", + Cleanup = "cleanup", + Versionchange = "versionchange", +} diff --git a/crates/web-sys/src/features/gen_IdbVersionChangeEvent.rs b/crates/web-sys/src/features/gen_IdbVersionChangeEvent.rs new file mode 100644 index 00000000..ceece29d --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbVersionChangeEvent.rs @@ -0,0 +1,46 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = IDBVersionChangeEvent , typescript_type = "IDBVersionChangeEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbVersionChangeEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBVersionChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEvent`*"] + pub type IdbVersionChangeEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBVersionChangeEvent" , js_name = oldVersion ) ] + #[doc = "Getter for the `oldVersion` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBVersionChangeEvent/oldVersion)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEvent`*"] + pub fn old_version(this: &IdbVersionChangeEvent) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "IDBVersionChangeEvent" , js_name = newVersion ) ] + #[doc = "Getter for the `newVersion` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBVersionChangeEvent/newVersion)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEvent`*"] + pub fn new_version(this: &IdbVersionChangeEvent) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "IDBVersionChangeEvent")] + #[doc = "The `new IdbVersionChangeEvent(..)` constructor, creating a new instance of `IdbVersionChangeEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBVersionChangeEvent/IDBVersionChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "IdbVersionChangeEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "IDBVersionChangeEvent")] + #[doc = "The `new IdbVersionChangeEvent(..)` constructor, creating a new instance of `IdbVersionChangeEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IDBVersionChangeEvent/IDBVersionChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEvent`, `IdbVersionChangeEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &IdbVersionChangeEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_IdbVersionChangeEventInit.rs b/crates/web-sys/src/features/gen_IdbVersionChangeEventInit.rs new file mode 100644 index 00000000..13222f71 --- /dev/null +++ b/crates/web-sys/src/features/gen_IdbVersionChangeEventInit.rs @@ -0,0 +1,107 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IDBVersionChangeEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdbVersionChangeEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] + pub type IdbVersionChangeEventInit; +} +impl IdbVersionChangeEventInit { + #[doc = "Construct a new `IdbVersionChangeEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `newVersion` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] + pub fn new_version(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("newVersion"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `oldVersion` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbVersionChangeEventInit`*"] + pub fn old_version(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("oldVersion"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_IdleDeadline.rs b/crates/web-sys/src/features/gen_IdleDeadline.rs new file mode 100644 index 00000000..9e36fef1 --- /dev/null +++ b/crates/web-sys/src/features/gen_IdleDeadline.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IdleDeadline , typescript_type = "IdleDeadline" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdleDeadline` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdleDeadline`*"] + pub type IdleDeadline; + # [ wasm_bindgen ( structural , method , getter , js_class = "IdleDeadline" , js_name = didTimeout ) ] + #[doc = "Getter for the `didTimeout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline/didTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdleDeadline`*"] + pub fn did_timeout(this: &IdleDeadline) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "IdleDeadline" , js_name = timeRemaining ) ] + #[doc = "The `timeRemaining()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IdleDeadline/timeRemaining)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdleDeadline`*"] + pub fn time_remaining(this: &IdleDeadline) -> f64; +} diff --git a/crates/web-sys/src/features/gen_IdleRequestOptions.rs b/crates/web-sys/src/features/gen_IdleRequestOptions.rs new file mode 100644 index 00000000..a505d0b9 --- /dev/null +++ b/crates/web-sys/src/features/gen_IdleRequestOptions.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IdleRequestOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IdleRequestOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdleRequestOptions`*"] + pub type IdleRequestOptions; +} +impl IdleRequestOptions { + #[doc = "Construct a new `IdleRequestOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdleRequestOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `timeout` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdleRequestOptions`*"] + pub fn timeout(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timeout"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_IirFilterNode.rs b/crates/web-sys/src/features/gen_IirFilterNode.rs new file mode 100644 index 00000000..bad35a27 --- /dev/null +++ b/crates/web-sys/src/features/gen_IirFilterNode.rs @@ -0,0 +1,37 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = IIRFilterNode , typescript_type = "IIRFilterNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IirFilterNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IIRFilterNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IirFilterNode`*"] + pub type IirFilterNode; + #[cfg(all(feature = "BaseAudioContext", feature = "IirFilterOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "IIRFilterNode")] + #[doc = "The `new IirFilterNode(..)` constructor, creating a new instance of `IirFilterNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IIRFilterNode/IIRFilterNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `IirFilterNode`, `IirFilterOptions`*"] + pub fn new( + context: &BaseAudioContext, + options: &IirFilterOptions, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "IIRFilterNode" , js_name = getFrequencyResponse ) ] + #[doc = "The `getFrequencyResponse()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IIRFilterNode/getFrequencyResponse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IirFilterNode`*"] + pub fn get_frequency_response( + this: &IirFilterNode, + frequency_hz: &mut [f32], + mag_response: &mut [f32], + phase_response: &mut [f32], + ); +} diff --git a/crates/web-sys/src/features/gen_IirFilterOptions.rs b/crates/web-sys/src/features/gen_IirFilterOptions.rs new file mode 100644 index 00000000..400abfbd --- /dev/null +++ b/crates/web-sys/src/features/gen_IirFilterOptions.rs @@ -0,0 +1,111 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IIRFilterOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IirFilterOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IirFilterOptions`*"] + pub type IirFilterOptions; +} +impl IirFilterOptions { + #[doc = "Construct a new `IirFilterOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IirFilterOptions`*"] + pub fn new(feedback: &::wasm_bindgen::JsValue, feedforward: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.feedback(feedback); + ret.feedforward(feedforward); + ret + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IirFilterOptions`*"] + pub fn channel_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelCountMode")] + #[doc = "Change the `channelCountMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `IirFilterOptions`*"] + pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCountMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelInterpretation")] + #[doc = "Change the `channelInterpretation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `IirFilterOptions`*"] + pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelInterpretation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `feedback` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IirFilterOptions`*"] + pub fn feedback(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("feedback"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `feedforward` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IirFilterOptions`*"] + pub fn feedforward(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("feedforward"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ImageBitmap.rs b/crates/web-sys/src/features/gen_ImageBitmap.rs new file mode 100644 index 00000000..e028ca22 --- /dev/null +++ b/crates/web-sys/src/features/gen_ImageBitmap.rs @@ -0,0 +1,91 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ImageBitmap , typescript_type = "ImageBitmap" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ImageBitmap` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`*"] + pub type ImageBitmap; + # [ wasm_bindgen ( structural , method , getter , js_class = "ImageBitmap" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`*"] + pub fn width(this: &ImageBitmap) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "ImageBitmap" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`*"] + pub fn height(this: &ImageBitmap) -> u32; + # [ wasm_bindgen ( method , structural , js_class = "ImageBitmap" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`*"] + pub fn close(this: &ImageBitmap); + #[cfg(feature = "ImageBitmapFormat")] + # [ wasm_bindgen ( catch , method , structural , js_class = "ImageBitmap" , js_name = findOptimalFormat ) ] + #[doc = "The `findOptimalFormat()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/findOptimalFormat)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"] + pub fn find_optimal_format(this: &ImageBitmap) -> Result; + #[cfg(feature = "ImageBitmapFormat")] + # [ wasm_bindgen ( catch , method , structural , js_class = "ImageBitmap" , js_name = findOptimalFormat ) ] + #[doc = "The `findOptimalFormat()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/findOptimalFormat)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"] + pub fn find_optimal_format_with_a_possible_formats( + this: &ImageBitmap, + a_possible_formats: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(feature = "ImageBitmapFormat")] + # [ wasm_bindgen ( catch , method , structural , js_class = "ImageBitmap" , js_name = mapDataInto ) ] + #[doc = "The `mapDataInto()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/mapDataInto)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"] + pub fn map_data_into_with_buffer_source( + this: &ImageBitmap, + a_format: ImageBitmapFormat, + a_buffer: &::js_sys::Object, + a_offset: i32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "ImageBitmapFormat")] + # [ wasm_bindgen ( catch , method , structural , js_class = "ImageBitmap" , js_name = mapDataInto ) ] + #[doc = "The `mapDataInto()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/mapDataInto)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"] + pub fn map_data_into_with_u8_array( + this: &ImageBitmap, + a_format: ImageBitmapFormat, + a_buffer: &mut [u8], + a_offset: i32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "ImageBitmapFormat")] + # [ wasm_bindgen ( catch , method , structural , js_class = "ImageBitmap" , js_name = mappedDataLength ) ] + #[doc = "The `mappedDataLength()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmap/mappedDataLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapFormat`*"] + pub fn mapped_data_length( + this: &ImageBitmap, + a_format: ImageBitmapFormat, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_ImageBitmapFormat.rs b/crates/web-sys/src/features/gen_ImageBitmapFormat.rs new file mode 100644 index 00000000..e3d63c57 --- /dev/null +++ b/crates/web-sys/src/features/gen_ImageBitmapFormat.rs @@ -0,0 +1,22 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ImageBitmapFormat` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ImageBitmapFormat`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ImageBitmapFormat { + Rgba32 = "RGBA32", + Bgra32 = "BGRA32", + Rgb24 = "RGB24", + Bgr24 = "BGR24", + Gray8 = "GRAY8", + Yuv444p = "YUV444P", + Yuv422p = "YUV422P", + Yuv420p = "YUV420P", + Yuv420spNv12 = "YUV420SP_NV12", + Yuv420spNv21 = "YUV420SP_NV21", + Hsv = "HSV", + Lab = "Lab", + Depth = "DEPTH", +} diff --git a/crates/web-sys/src/features/gen_ImageBitmapRenderingContext.rs b/crates/web-sys/src/features/gen_ImageBitmapRenderingContext.rs new file mode 100644 index 00000000..8e0b1768 --- /dev/null +++ b/crates/web-sys/src/features/gen_ImageBitmapRenderingContext.rs @@ -0,0 +1,30 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ImageBitmapRenderingContext , typescript_type = "ImageBitmapRenderingContext" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ImageBitmapRenderingContext` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmapRenderingContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmapRenderingContext`*"] + pub type ImageBitmapRenderingContext; + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( method , structural , js_class = "ImageBitmapRenderingContext" , js_name = transferFromImageBitmap ) ] + #[doc = "The `transferFromImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmapRenderingContext/transferFromImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapRenderingContext`*"] + pub fn transfer_from_image_bitmap(this: &ImageBitmapRenderingContext, bitmap: &ImageBitmap); + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( method , structural , js_class = "ImageBitmapRenderingContext" , js_name = transferImageBitmap ) ] + #[doc = "The `transferImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageBitmapRenderingContext/transferImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `ImageBitmapRenderingContext`*"] + pub fn transfer_image_bitmap(this: &ImageBitmapRenderingContext, bitmap: &ImageBitmap); +} diff --git a/crates/web-sys/src/features/gen_ImageCapture.rs b/crates/web-sys/src/features/gen_ImageCapture.rs new file mode 100644 index 00000000..34a16573 --- /dev/null +++ b/crates/web-sys/src/features/gen_ImageCapture.rs @@ -0,0 +1,65 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = ImageCapture , typescript_type = "ImageCapture" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ImageCapture` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCapture`*"] + pub type ImageCapture; + #[cfg(feature = "VideoStreamTrack")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ImageCapture" , js_name = videoStreamTrack ) ] + #[doc = "Getter for the `videoStreamTrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/videoStreamTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCapture`, `VideoStreamTrack`*"] + pub fn video_stream_track(this: &ImageCapture) -> VideoStreamTrack; + # [ wasm_bindgen ( structural , method , getter , js_class = "ImageCapture" , js_name = onphoto ) ] + #[doc = "Getter for the `onphoto` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/onphoto)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCapture`*"] + pub fn onphoto(this: &ImageCapture) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ImageCapture" , js_name = onphoto ) ] + #[doc = "Setter for the `onphoto` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/onphoto)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCapture`*"] + pub fn set_onphoto(this: &ImageCapture, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "ImageCapture" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCapture`*"] + pub fn onerror(this: &ImageCapture) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ImageCapture" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCapture`*"] + pub fn set_onerror(this: &ImageCapture, value: Option<&::js_sys::Function>); + #[cfg(feature = "VideoStreamTrack")] + #[wasm_bindgen(catch, constructor, js_class = "ImageCapture")] + #[doc = "The `new ImageCapture(..)` constructor, creating a new instance of `ImageCapture`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/ImageCapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCapture`, `VideoStreamTrack`*"] + pub fn new(track: &VideoStreamTrack) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "ImageCapture" , js_name = takePhoto ) ] + #[doc = "The `takePhoto()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCapture/takePhoto)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCapture`*"] + pub fn take_photo(this: &ImageCapture) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_ImageCaptureError.rs b/crates/web-sys/src/features/gen_ImageCaptureError.rs new file mode 100644 index 00000000..0dae36f4 --- /dev/null +++ b/crates/web-sys/src/features/gen_ImageCaptureError.rs @@ -0,0 +1,46 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ImageCaptureError , typescript_type = "ImageCaptureError" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ImageCaptureError` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"] + pub type ImageCaptureError; + # [ wasm_bindgen ( structural , method , getter , js_class = "ImageCaptureError" , js_name = code ) ] + #[doc = "Getter for the `code` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureError/code)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"] + pub fn code(this: &ImageCaptureError) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "ImageCaptureError" , js_name = message ) ] + #[doc = "Getter for the `message` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureError/message)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"] + pub fn message(this: &ImageCaptureError) -> String; +} +impl ImageCaptureError { + #[doc = "The `ImageCaptureError.FRAME_GRAB_ERROR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"] + pub const FRAME_GRAB_ERROR: u16 = 1u64 as u16; + #[doc = "The `ImageCaptureError.SETTINGS_ERROR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"] + pub const SETTINGS_ERROR: u16 = 2u64 as u16; + #[doc = "The `ImageCaptureError.PHOTO_ERROR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"] + pub const PHOTO_ERROR: u16 = 3u64 as u16; + #[doc = "The `ImageCaptureError.ERROR_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`*"] + pub const ERROR_UNKNOWN: u16 = 4u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_ImageCaptureErrorEvent.rs b/crates/web-sys/src/features/gen_ImageCaptureErrorEvent.rs new file mode 100644 index 00000000..eccce521 --- /dev/null +++ b/crates/web-sys/src/features/gen_ImageCaptureErrorEvent.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = ImageCaptureErrorEvent , typescript_type = "ImageCaptureErrorEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ImageCaptureErrorEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureErrorEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEvent`*"] + pub type ImageCaptureErrorEvent; + #[cfg(feature = "ImageCaptureError")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ImageCaptureErrorEvent" , js_name = imageCaptureError ) ] + #[doc = "Getter for the `imageCaptureError` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureErrorEvent/imageCaptureError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`, `ImageCaptureErrorEvent`*"] + pub fn image_capture_error(this: &ImageCaptureErrorEvent) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "ImageCaptureErrorEvent")] + #[doc = "The `new ImageCaptureErrorEvent(..)` constructor, creating a new instance of `ImageCaptureErrorEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureErrorEvent/ImageCaptureErrorEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "ImageCaptureErrorEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "ImageCaptureErrorEvent")] + #[doc = "The `new ImageCaptureErrorEvent(..)` constructor, creating a new instance of `ImageCaptureErrorEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageCaptureErrorEvent/ImageCaptureErrorEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEvent`, `ImageCaptureErrorEventInit`*"] + pub fn new_with_image_capture_error_init_dict( + type_: &str, + image_capture_error_init_dict: &ImageCaptureErrorEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_ImageCaptureErrorEventInit.rs b/crates/web-sys/src/features/gen_ImageCaptureErrorEventInit.rs new file mode 100644 index 00000000..8ac6e26e --- /dev/null +++ b/crates/web-sys/src/features/gen_ImageCaptureErrorEventInit.rs @@ -0,0 +1,91 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ImageCaptureErrorEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ImageCaptureErrorEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEventInit`*"] + pub type ImageCaptureErrorEventInit; +} +impl ImageCaptureErrorEventInit { + #[doc = "Construct a new `ImageCaptureErrorEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCaptureErrorEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ImageCaptureError")] + #[doc = "Change the `imageCaptureError` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageCaptureError`, `ImageCaptureErrorEventInit`*"] + pub fn image_capture_error(&mut self, val: Option<&ImageCaptureError>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("imageCaptureError"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ImageData.rs b/crates/web-sys/src/features/gen_ImageData.rs new file mode 100644 index 00000000..38b679ea --- /dev/null +++ b/crates/web-sys/src/features/gen_ImageData.rs @@ -0,0 +1,63 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ImageData , typescript_type = "ImageData" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ImageData` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`*"] + pub type ImageData; + # [ wasm_bindgen ( structural , method , getter , js_class = "ImageData" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`*"] + pub fn width(this: &ImageData) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "ImageData" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`*"] + pub fn height(this: &ImageData) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "ImageData" , js_name = data ) ] + #[doc = "Getter for the `data` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/data)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`*"] + pub fn data(this: &ImageData) -> ::wasm_bindgen::Clamped>; + #[wasm_bindgen(catch, constructor, js_class = "ImageData")] + #[doc = "The `new ImageData(..)` constructor, creating a new instance of `ImageData`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/ImageData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`*"] + pub fn new_with_sw(sw: u32, sh: u32) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "ImageData")] + #[doc = "The `new ImageData(..)` constructor, creating a new instance of `ImageData`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/ImageData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`*"] + pub fn new_with_u8_clamped_array( + data: ::wasm_bindgen::Clamped<&mut [u8]>, + sw: u32, + ) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "ImageData")] + #[doc = "The `new ImageData(..)` constructor, creating a new instance of `ImageData`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ImageData/ImageData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`*"] + pub fn new_with_u8_clamped_array_and_sh( + data: ::wasm_bindgen::Clamped<&mut [u8]>, + sw: u32, + sh: u32, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_InputEvent.rs b/crates/web-sys/src/features/gen_InputEvent.rs new file mode 100644 index 00000000..56eecb92 --- /dev/null +++ b/crates/web-sys/src/features/gen_InputEvent.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = InputEvent , typescript_type = "InputEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `InputEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `InputEvent`*"] + pub type InputEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "InputEvent" , js_name = isComposing ) ] + #[doc = "Getter for the `isComposing` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/isComposing)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `InputEvent`*"] + pub fn is_composing(this: &InputEvent) -> bool; + #[wasm_bindgen(catch, constructor, js_class = "InputEvent")] + #[doc = "The `new InputEvent(..)` constructor, creating a new instance of `InputEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/InputEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `InputEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "InputEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "InputEvent")] + #[doc = "The `new InputEvent(..)` constructor, creating a new instance of `InputEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent/InputEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `InputEvent`, `InputEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &InputEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_InputEventInit.rs b/crates/web-sys/src/features/gen_InputEventInit.rs new file mode 100644 index 00000000..7836ac24 --- /dev/null +++ b/crates/web-sys/src/features/gen_InputEventInit.rs @@ -0,0 +1,118 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = InputEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `InputEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] + pub type InputEventInit; +} +impl InputEventInit { + #[doc = "Construct a new `InputEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `detail` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] + pub fn detail(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Window")] + #[doc = "Change the `view` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `InputEventInit`, `Window`*"] + pub fn view(&mut self, val: Option<&Window>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `isComposing` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `InputEventInit`*"] + pub fn is_composing(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("isComposing"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_InstallTriggerData.rs b/crates/web-sys/src/features/gen_InstallTriggerData.rs new file mode 100644 index 00000000..ac9595a4 --- /dev/null +++ b/crates/web-sys/src/features/gen_InstallTriggerData.rs @@ -0,0 +1,65 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = InstallTriggerData ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `InstallTriggerData` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `InstallTriggerData`*"] + pub type InstallTriggerData; +} +impl InstallTriggerData { + #[doc = "Construct a new `InstallTriggerData`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `InstallTriggerData`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `Hash` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `InstallTriggerData`*"] + pub fn hash(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("Hash"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `IconURL` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `InstallTriggerData`*"] + pub fn icon_url(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("IconURL"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `URL` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `InstallTriggerData`*"] + pub fn url(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("URL"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_IntersectionObserver.rs b/crates/web-sys/src/features/gen_IntersectionObserver.rs new file mode 100644 index 00000000..a36f25a9 --- /dev/null +++ b/crates/web-sys/src/features/gen_IntersectionObserver.rs @@ -0,0 +1,85 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IntersectionObserver , typescript_type = "IntersectionObserver" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IntersectionObserver` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`*"] + pub type IntersectionObserver; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IntersectionObserver" , js_name = root ) ] + #[doc = "Getter for the `root` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/root)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `IntersectionObserver`*"] + pub fn root(this: &IntersectionObserver) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "IntersectionObserver" , js_name = rootMargin ) ] + #[doc = "Getter for the `rootMargin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/rootMargin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`*"] + pub fn root_margin(this: &IntersectionObserver) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "IntersectionObserver" , js_name = thresholds ) ] + #[doc = "Getter for the `thresholds` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/thresholds)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`*"] + pub fn thresholds(this: &IntersectionObserver) -> ::js_sys::Array; + #[wasm_bindgen(catch, constructor, js_class = "IntersectionObserver")] + #[doc = "The `new IntersectionObserver(..)` constructor, creating a new instance of `IntersectionObserver`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/IntersectionObserver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`*"] + pub fn new(intersection_callback: &::js_sys::Function) + -> Result; + #[cfg(feature = "IntersectionObserverInit")] + #[wasm_bindgen(catch, constructor, js_class = "IntersectionObserver")] + #[doc = "The `new IntersectionObserver(..)` constructor, creating a new instance of `IntersectionObserver`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/IntersectionObserver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`, `IntersectionObserverInit`*"] + pub fn new_with_options( + intersection_callback: &::js_sys::Function, + options: &IntersectionObserverInit, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "IntersectionObserver" , js_name = disconnect ) ] + #[doc = "The `disconnect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/disconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`*"] + pub fn disconnect(this: &IntersectionObserver); + #[cfg(feature = "Element")] + # [ wasm_bindgen ( method , structural , js_class = "IntersectionObserver" , js_name = observe ) ] + #[doc = "The `observe()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/observe)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `IntersectionObserver`*"] + pub fn observe(this: &IntersectionObserver, target: &Element); + # [ wasm_bindgen ( method , structural , js_class = "IntersectionObserver" , js_name = takeRecords ) ] + #[doc = "The `takeRecords()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/takeRecords)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntersectionObserver`*"] + pub fn take_records(this: &IntersectionObserver) -> ::js_sys::Array; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( method , structural , js_class = "IntersectionObserver" , js_name = unobserve ) ] + #[doc = "The `unobserve()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/unobserve)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `IntersectionObserver`*"] + pub fn unobserve(this: &IntersectionObserver, target: &Element); +} diff --git a/crates/web-sys/src/features/gen_IntersectionObserverEntry.rs b/crates/web-sys/src/features/gen_IntersectionObserverEntry.rs new file mode 100644 index 00000000..a908f0ec --- /dev/null +++ b/crates/web-sys/src/features/gen_IntersectionObserverEntry.rs @@ -0,0 +1,67 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IntersectionObserverEntry , typescript_type = "IntersectionObserverEntry" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IntersectionObserverEntry` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntry`*"] + pub type IntersectionObserverEntry; + # [ wasm_bindgen ( structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = time ) ] + #[doc = "Getter for the `time` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/time)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntry`*"] + pub fn time(this: &IntersectionObserverEntry) -> f64; + #[cfg(feature = "DomRectReadOnly")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = rootBounds ) ] + #[doc = "Getter for the `rootBounds` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/rootBounds)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `IntersectionObserverEntry`*"] + pub fn root_bounds(this: &IntersectionObserverEntry) -> Option; + #[cfg(feature = "DomRectReadOnly")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = boundingClientRect ) ] + #[doc = "Getter for the `boundingClientRect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/boundingClientRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `IntersectionObserverEntry`*"] + pub fn bounding_client_rect(this: &IntersectionObserverEntry) -> DomRectReadOnly; + #[cfg(feature = "DomRectReadOnly")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = intersectionRect ) ] + #[doc = "Getter for the `intersectionRect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/intersectionRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectReadOnly`, `IntersectionObserverEntry`*"] + pub fn intersection_rect(this: &IntersectionObserverEntry) -> DomRectReadOnly; + # [ wasm_bindgen ( structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = isIntersecting ) ] + #[doc = "Getter for the `isIntersecting` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/isIntersecting)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntry`*"] + pub fn is_intersecting(this: &IntersectionObserverEntry) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = intersectionRatio ) ] + #[doc = "Getter for the `intersectionRatio` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/intersectionRatio)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntry`*"] + pub fn intersection_ratio(this: &IntersectionObserverEntry) -> f64; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "IntersectionObserverEntry" , js_name = target ) ] + #[doc = "Getter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserverEntry/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `IntersectionObserverEntry`*"] + pub fn target(this: &IntersectionObserverEntry) -> Element; +} diff --git a/crates/web-sys/src/features/gen_IntersectionObserverEntryInit.rs b/crates/web-sys/src/features/gen_IntersectionObserverEntryInit.rs new file mode 100644 index 00000000..1fd137ca --- /dev/null +++ b/crates/web-sys/src/features/gen_IntersectionObserverEntryInit.rs @@ -0,0 +1,116 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IntersectionObserverEntryInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IntersectionObserverEntryInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntryInit`*"] + pub type IntersectionObserverEntryInit; +} +impl IntersectionObserverEntryInit { + #[cfg(all(feature = "DomRectInit", feature = "Element",))] + #[doc = "Construct a new `IntersectionObserverEntryInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `Element`, `IntersectionObserverEntryInit`*"] + pub fn new( + bounding_client_rect: &DomRectInit, + intersection_rect: &DomRectInit, + root_bounds: &DomRectInit, + target: &Element, + time: f64, + ) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.bounding_client_rect(bounding_client_rect); + ret.intersection_rect(intersection_rect); + ret.root_bounds(root_bounds); + ret.target(target); + ret.time(time); + ret + } + #[cfg(feature = "DomRectInit")] + #[doc = "Change the `boundingClientRect` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `IntersectionObserverEntryInit`*"] + pub fn bounding_client_rect(&mut self, val: &DomRectInit) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("boundingClientRect"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "DomRectInit")] + #[doc = "Change the `intersectionRect` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `IntersectionObserverEntryInit`*"] + pub fn intersection_rect(&mut self, val: &DomRectInit) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("intersectionRect"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "DomRectInit")] + #[doc = "Change the `rootBounds` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectInit`, `IntersectionObserverEntryInit`*"] + pub fn root_bounds(&mut self, val: &DomRectInit) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("rootBounds"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Element")] + #[doc = "Change the `target` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `IntersectionObserverEntryInit`*"] + pub fn target(&mut self, val: &Element) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("target"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `time` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverEntryInit`*"] + pub fn time(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("time"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_IntersectionObserverInit.rs b/crates/web-sys/src/features/gen_IntersectionObserverInit.rs new file mode 100644 index 00000000..a2a8d895 --- /dev/null +++ b/crates/web-sys/src/features/gen_IntersectionObserverInit.rs @@ -0,0 +1,70 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IntersectionObserverInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IntersectionObserverInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverInit`*"] + pub type IntersectionObserverInit; +} +impl IntersectionObserverInit { + #[doc = "Construct a new `IntersectionObserverInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "Element")] + #[doc = "Change the `root` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `IntersectionObserverInit`*"] + pub fn root(&mut self, val: Option<&Element>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("root"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `rootMargin` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverInit`*"] + pub fn root_margin(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("rootMargin"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `threshold` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntersectionObserverInit`*"] + pub fn threshold(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("threshold"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_IntlUtils.rs b/crates/web-sys/src/features/gen_IntlUtils.rs new file mode 100644 index 00000000..3d9e29a0 --- /dev/null +++ b/crates/web-sys/src/features/gen_IntlUtils.rs @@ -0,0 +1,48 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = IntlUtils , typescript_type = "IntlUtils" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IntlUtils` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntlUtils)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntlUtils`*"] + pub type IntlUtils; + #[cfg(feature = "DisplayNameResult")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IntlUtils" , js_name = getDisplayNames ) ] + #[doc = "The `getDisplayNames()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntlUtils/getDisplayNames)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DisplayNameResult`, `IntlUtils`*"] + pub fn get_display_names( + this: &IntlUtils, + locales: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(all(feature = "DisplayNameOptions", feature = "DisplayNameResult",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "IntlUtils" , js_name = getDisplayNames ) ] + #[doc = "The `getDisplayNames()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntlUtils/getDisplayNames)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DisplayNameOptions`, `DisplayNameResult`, `IntlUtils`*"] + pub fn get_display_names_with_options( + this: &IntlUtils, + locales: &::wasm_bindgen::JsValue, + options: &DisplayNameOptions, + ) -> Result; + #[cfg(feature = "LocaleInfo")] + # [ wasm_bindgen ( catch , method , structural , js_class = "IntlUtils" , js_name = getLocaleInfo ) ] + #[doc = "The `getLocaleInfo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/IntlUtils/getLocaleInfo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IntlUtils`, `LocaleInfo`*"] + pub fn get_locale_info( + this: &IntlUtils, + locales: &::wasm_bindgen::JsValue, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_IterableKeyAndValueResult.rs b/crates/web-sys/src/features/gen_IterableKeyAndValueResult.rs new file mode 100644 index 00000000..10f9666a --- /dev/null +++ b/crates/web-sys/src/features/gen_IterableKeyAndValueResult.rs @@ -0,0 +1,48 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IterableKeyAndValueResult ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IterableKeyAndValueResult` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IterableKeyAndValueResult`*"] + pub type IterableKeyAndValueResult; +} +impl IterableKeyAndValueResult { + #[doc = "Construct a new `IterableKeyAndValueResult`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IterableKeyAndValueResult`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `done` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IterableKeyAndValueResult`*"] + pub fn done(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("done"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `value` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IterableKeyAndValueResult`*"] + pub fn value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_IterableKeyOrValueResult.rs b/crates/web-sys/src/features/gen_IterableKeyOrValueResult.rs new file mode 100644 index 00000000..d94fb349 --- /dev/null +++ b/crates/web-sys/src/features/gen_IterableKeyOrValueResult.rs @@ -0,0 +1,48 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = IterableKeyOrValueResult ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `IterableKeyOrValueResult` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IterableKeyOrValueResult`*"] + pub type IterableKeyOrValueResult; +} +impl IterableKeyOrValueResult { + #[doc = "Construct a new `IterableKeyOrValueResult`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IterableKeyOrValueResult`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `done` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IterableKeyOrValueResult`*"] + pub fn done(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("done"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `value` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IterableKeyOrValueResult`*"] + pub fn value(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_IterationCompositeOperation.rs b/crates/web-sys/src/features/gen_IterationCompositeOperation.rs new file mode 100644 index 00000000..b4aa9f6c --- /dev/null +++ b/crates/web-sys/src/features/gen_IterationCompositeOperation.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `IterationCompositeOperation` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `IterationCompositeOperation`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum IterationCompositeOperation { + Replace = "replace", + Accumulate = "accumulate", +} diff --git a/crates/web-sys/src/features/gen_JsonWebKey.rs b/crates/web-sys/src/features/gen_JsonWebKey.rs new file mode 100644 index 00000000..9903b8dd --- /dev/null +++ b/crates/web-sys/src/features/gen_JsonWebKey.rs @@ -0,0 +1,261 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = JsonWebKey ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `JsonWebKey` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub type JsonWebKey; +} +impl JsonWebKey { + #[doc = "Construct a new `JsonWebKey`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn new(kty: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.kty(kty); + ret + } + #[doc = "Change the `alg` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn alg(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("alg"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `crv` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn crv(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("crv"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `d` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn d(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("d"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `dp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn dp(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dp"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `dq` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn dq(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dq"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `e` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn e(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("e"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ext` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn ext(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ext"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `k` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn k(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("k"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `key_ops` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn key_ops(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("key_ops"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `kty` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn kty(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("kty"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `n` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn n(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("n"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `oth` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn oth(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("oth"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `p` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn p(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `q` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn q(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("q"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `qi` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn qi(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("qi"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `use` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn use_(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("use"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `x` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn x(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("x"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `y` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `JsonWebKey`*"] + pub fn y(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("y"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_KeyAlgorithm.rs b/crates/web-sys/src/features/gen_KeyAlgorithm.rs new file mode 100644 index 00000000..bd9021b4 --- /dev/null +++ b/crates/web-sys/src/features/gen_KeyAlgorithm.rs @@ -0,0 +1,36 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = KeyAlgorithm ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `KeyAlgorithm` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyAlgorithm`*"] + pub type KeyAlgorithm; +} +impl KeyAlgorithm { + #[doc = "Construct a new `KeyAlgorithm`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyAlgorithm`*"] + pub fn new(name: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyAlgorithm`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_KeyEvent.rs b/crates/web-sys/src/features/gen_KeyEvent.rs new file mode 100644 index 00000000..99d9d579 --- /dev/null +++ b/crates/web-sys/src/features/gen_KeyEvent.rs @@ -0,0 +1,905 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = KeyEvent , typescript_type = "KeyEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `KeyEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub type KeyEvent; + # [ wasm_bindgen ( method , structural , js_class = "KeyEvent" , js_name = initKeyEvent ) ] + #[doc = "The `initKeyEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub fn init_key_event(this: &KeyEvent, type_: &str); + # [ wasm_bindgen ( method , structural , js_class = "KeyEvent" , js_name = initKeyEvent ) ] + #[doc = "The `initKeyEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub fn init_key_event_with_can_bubble(this: &KeyEvent, type_: &str, can_bubble: bool); + # [ wasm_bindgen ( method , structural , js_class = "KeyEvent" , js_name = initKeyEvent ) ] + #[doc = "The `initKeyEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub fn init_key_event_with_can_bubble_and_cancelable( + this: &KeyEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "KeyEvent" , js_name = initKeyEvent ) ] + #[doc = "The `initKeyEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`, `Window`*"] + pub fn init_key_event_with_can_bubble_and_cancelable_and_view( + this: &KeyEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "KeyEvent" , js_name = initKeyEvent ) ] + #[doc = "The `initKeyEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`, `Window`*"] + pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key( + this: &KeyEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + ctrl_key: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "KeyEvent" , js_name = initKeyEvent ) ] + #[doc = "The `initKeyEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`, `Window`*"] + pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key_and_alt_key( + this: &KeyEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + ctrl_key: bool, + alt_key: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "KeyEvent" , js_name = initKeyEvent ) ] + #[doc = "The `initKeyEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`, `Window`*"] + pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key_and_alt_key_and_shift_key( + this: &KeyEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + ctrl_key: bool, + alt_key: bool, + shift_key: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "KeyEvent" , js_name = initKeyEvent ) ] + #[doc = "The `initKeyEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`, `Window`*"] + pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key( + this: &KeyEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + ctrl_key: bool, + alt_key: bool, + shift_key: bool, + meta_key: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "KeyEvent" , js_name = initKeyEvent ) ] + #[doc = "The `initKeyEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`, `Window`*"] + pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_key_code( + this: &KeyEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + ctrl_key: bool, + alt_key: bool, + shift_key: bool, + meta_key: bool, + key_code: u32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "KeyEvent" , js_name = initKeyEvent ) ] + #[doc = "The `initKeyEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyEvent/initKeyEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`, `Window`*"] + pub fn init_key_event_with_can_bubble_and_cancelable_and_view_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_key_code_and_char_code( + this: &KeyEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + ctrl_key: bool, + alt_key: bool, + shift_key: bool, + meta_key: bool, + key_code: u32, + char_code: u32, + ); +} +impl KeyEvent { + #[doc = "The `KeyEvent.DOM_VK_CANCEL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_CANCEL: u32 = 3u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_HELP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_HELP: u32 = 6u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_BACK_SPACE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_BACK_SPACE: u32 = 8u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_TAB` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_TAB: u32 = 9u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_CLEAR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_CLEAR: u32 = 12u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_RETURN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_RETURN: u32 = 13u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_SHIFT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_SHIFT: u32 = 16u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_CONTROL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_CONTROL: u32 = 17u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_ALT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_ALT: u32 = 18u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_PAUSE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_PAUSE: u32 = 19u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_CAPS_LOCK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_CAPS_LOCK: u32 = 20u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_KANA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_KANA: u32 = 21u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_HANGUL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_HANGUL: u32 = 21u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_EISU` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_EISU: u32 = 22u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_JUNJA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_JUNJA: u32 = 23u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_FINAL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_FINAL: u32 = 24u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_HANJA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_HANJA: u32 = 25u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_KANJI` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_KANJI: u32 = 25u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_ESCAPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_ESCAPE: u32 = 27u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_CONVERT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_CONVERT: u32 = 28u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_NONCONVERT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_NONCONVERT: u32 = 29u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_ACCEPT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_ACCEPT: u32 = 30u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_MODECHANGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_MODECHANGE: u32 = 31u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_SPACE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_SPACE: u32 = 32u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_PAGE_UP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_PAGE_UP: u32 = 33u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_PAGE_DOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_PAGE_DOWN: u32 = 34u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_END` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_END: u32 = 35u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_HOME` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_HOME: u32 = 36u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_LEFT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_LEFT: u32 = 37u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_UP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_UP: u32 = 38u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_RIGHT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_RIGHT: u32 = 39u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_DOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_DOWN: u32 = 40u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_SELECT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_SELECT: u32 = 41u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_PRINT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_PRINT: u32 = 42u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_EXECUTE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_EXECUTE: u32 = 43u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_PRINTSCREEN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_PRINTSCREEN: u32 = 44u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_INSERT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_INSERT: u32 = 45u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_DELETE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_DELETE: u32 = 46u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_0` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_0: u32 = 48u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_1` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_1: u32 = 49u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_2: u32 = 50u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_3: u32 = 51u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_4: u32 = 52u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_5` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_5: u32 = 53u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_6` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_6: u32 = 54u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_7` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_7: u32 = 55u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_8: u32 = 56u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_9` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_9: u32 = 57u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_COLON` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_COLON: u32 = 58u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_SEMICOLON` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_SEMICOLON: u32 = 59u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_LESS_THAN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_LESS_THAN: u32 = 60u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_EQUALS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_EQUALS: u32 = 61u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_GREATER_THAN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_GREATER_THAN: u32 = 62u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_QUESTION_MARK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_QUESTION_MARK: u32 = 63u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_AT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_AT: u32 = 64u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_A` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_A: u32 = 65u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_B` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_B: u32 = 66u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_C` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_C: u32 = 67u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_D` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_D: u32 = 68u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_E` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_E: u32 = 69u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F: u32 = 70u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_G` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_G: u32 = 71u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_H` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_H: u32 = 72u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_I` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_I: u32 = 73u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_J` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_J: u32 = 74u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_K` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_K: u32 = 75u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_L` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_L: u32 = 76u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_M` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_M: u32 = 77u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_N` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_N: u32 = 78u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_O` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_O: u32 = 79u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_P` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_P: u32 = 80u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_Q` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_Q: u32 = 81u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_R` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_R: u32 = 82u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_S` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_S: u32 = 83u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_T` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_T: u32 = 84u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_U` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_U: u32 = 85u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_V` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_V: u32 = 86u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_W` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_W: u32 = 87u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_X` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_X: u32 = 88u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_Y` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_Y: u32 = 89u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_Z` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_Z: u32 = 90u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN: u32 = 91u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_CONTEXT_MENU` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_CONTEXT_MENU: u32 = 93u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_SLEEP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_SLEEP: u32 = 95u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_NUMPAD0` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_NUMPAD0: u32 = 96u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_NUMPAD1` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_NUMPAD1: u32 = 97u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_NUMPAD2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_NUMPAD2: u32 = 98u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_NUMPAD3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_NUMPAD3: u32 = 99u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_NUMPAD4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_NUMPAD4: u32 = 100u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_NUMPAD5` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_NUMPAD5: u32 = 101u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_NUMPAD6` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_NUMPAD6: u32 = 102u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_NUMPAD7` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_NUMPAD7: u32 = 103u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_NUMPAD8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_NUMPAD8: u32 = 104u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_NUMPAD9` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_NUMPAD9: u32 = 105u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_MULTIPLY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_MULTIPLY: u32 = 106u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_ADD` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_ADD: u32 = 107u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_SEPARATOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_SEPARATOR: u32 = 108u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_SUBTRACT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_SUBTRACT: u32 = 109u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_DECIMAL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_DECIMAL: u32 = 110u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_DIVIDE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_DIVIDE: u32 = 111u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F1` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F1: u32 = 112u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F2: u32 = 113u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F3: u32 = 114u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F4: u32 = 115u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F5` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F5: u32 = 116u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F6` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F6: u32 = 117u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F7` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F7: u32 = 118u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F8: u32 = 119u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F9` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F9: u32 = 120u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F10` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F10: u32 = 121u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F11` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F11: u32 = 122u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F12` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F12: u32 = 123u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F13` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F13: u32 = 124u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F14` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F14: u32 = 125u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F15` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F15: u32 = 126u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F16` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F16: u32 = 127u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F17` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F17: u32 = 128u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F18` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F18: u32 = 129u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F19` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F19: u32 = 130u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F20` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F20: u32 = 131u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F21` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F21: u32 = 132u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F22` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F22: u32 = 133u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F23` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F23: u32 = 134u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_F24` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_F24: u32 = 135u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_NUM_LOCK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_NUM_LOCK: u32 = 144u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_SCROLL_LOCK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_SCROLL_LOCK: u32 = 145u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_FJ_JISHO` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_FJ_JISHO: u32 = 146u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_FJ_MASSHOU` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_FJ_MASSHOU: u32 = 147u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_FJ_TOUROKU` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_FJ_TOUROKU: u32 = 148u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_FJ_LOYA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_FJ_LOYA: u32 = 149u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_FJ_ROYA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_FJ_ROYA: u32 = 150u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_CIRCUMFLEX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_CIRCUMFLEX: u32 = 160u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_EXCLAMATION` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_EXCLAMATION: u32 = 161u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_DOUBLE_QUOTE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_DOUBLE_QUOTE: u32 = 162u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_HASH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_HASH: u32 = 163u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_DOLLAR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_DOLLAR: u32 = 164u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_PERCENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_PERCENT: u32 = 165u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_AMPERSAND` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_AMPERSAND: u32 = 166u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_UNDERSCORE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_UNDERSCORE: u32 = 167u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_OPEN_PAREN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_OPEN_PAREN: u32 = 168u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_CLOSE_PAREN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_CLOSE_PAREN: u32 = 169u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_ASTERISK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_ASTERISK: u32 = 170u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_PLUS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_PLUS: u32 = 171u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_PIPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_PIPE: u32 = 172u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_HYPHEN_MINUS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_HYPHEN_MINUS: u32 = 173u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_OPEN_CURLY_BRACKET` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_OPEN_CURLY_BRACKET: u32 = 174u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_CLOSE_CURLY_BRACKET` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_CLOSE_CURLY_BRACKET: u32 = 175u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_TILDE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_TILDE: u32 = 176u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_VOLUME_MUTE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_VOLUME_MUTE: u32 = 181u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_VOLUME_DOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_VOLUME_DOWN: u32 = 182u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_VOLUME_UP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_VOLUME_UP: u32 = 183u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_COMMA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_COMMA: u32 = 188u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_PERIOD` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_PERIOD: u32 = 190u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_SLASH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_SLASH: u32 = 191u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_BACK_QUOTE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_BACK_QUOTE: u32 = 192u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_OPEN_BRACKET` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_OPEN_BRACKET: u32 = 219u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_BACK_SLASH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_BACK_SLASH: u32 = 220u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_CLOSE_BRACKET` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_CLOSE_BRACKET: u32 = 221u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_QUOTE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_QUOTE: u32 = 222u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_META` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_META: u32 = 224u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_ALTGR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_ALTGR: u32 = 225u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_ICO_HELP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_ICO_HELP: u32 = 227u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_ICO_00` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_ICO_00: u32 = 228u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_PROCESSKEY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_PROCESSKEY: u32 = 229u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_ICO_CLEAR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_ICO_CLEAR: u32 = 230u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_RESET` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_RESET: u32 = 233u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_JUMP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_JUMP: u32 = 234u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_PA1` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_PA1: u32 = 235u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_PA2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_PA2: u32 = 236u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_PA3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_PA3: u32 = 237u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_WSCTRL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_WSCTRL: u32 = 238u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_CUSEL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_CUSEL: u32 = 239u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_ATTN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_ATTN: u32 = 240u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_FINISH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_FINISH: u32 = 241u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_COPY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_COPY: u32 = 242u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_AUTO` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_AUTO: u32 = 243u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_ENLW` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_ENLW: u32 = 244u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_BACKTAB` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_BACKTAB: u32 = 245u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_ATTN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_ATTN: u32 = 246u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_CRSEL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_CRSEL: u32 = 247u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_EXSEL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_EXSEL: u32 = 248u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_EREOF` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_EREOF: u32 = 249u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_PLAY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_PLAY: u32 = 250u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_ZOOM` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_ZOOM: u32 = 251u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_PA1` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_PA1: u32 = 253u64 as u32; + #[doc = "The `KeyEvent.DOM_VK_WIN_OEM_CLEAR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyEvent`*"] + pub const DOM_VK_WIN_OEM_CLEAR: u32 = 254u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_KeyIdsInitData.rs b/crates/web-sys/src/features/gen_KeyIdsInitData.rs new file mode 100644 index 00000000..44f46961 --- /dev/null +++ b/crates/web-sys/src/features/gen_KeyIdsInitData.rs @@ -0,0 +1,36 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = KeyIdsInitData ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `KeyIdsInitData` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyIdsInitData`*"] + pub type KeyIdsInitData; +} +impl KeyIdsInitData { + #[doc = "Construct a new `KeyIdsInitData`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyIdsInitData`*"] + pub fn new(kids: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.kids(kids); + ret + } + #[doc = "Change the `kids` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyIdsInitData`*"] + pub fn kids(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("kids"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_KeyboardEvent.rs b/crates/web-sys/src/features/gen_KeyboardEvent.rs new file mode 100644 index 00000000..9d55a6ef --- /dev/null +++ b/crates/web-sys/src/features/gen_KeyboardEvent.rs @@ -0,0 +1,283 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = KeyboardEvent , typescript_type = "KeyboardEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `KeyboardEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub type KeyboardEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "KeyboardEvent" , js_name = charCode ) ] + #[doc = "Getter for the `charCode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/charCode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub fn char_code(this: &KeyboardEvent) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "KeyboardEvent" , js_name = keyCode ) ] + #[doc = "Getter for the `keyCode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub fn key_code(this: &KeyboardEvent) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "KeyboardEvent" , js_name = altKey ) ] + #[doc = "Getter for the `altKey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/altKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub fn alt_key(this: &KeyboardEvent) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "KeyboardEvent" , js_name = ctrlKey ) ] + #[doc = "Getter for the `ctrlKey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/ctrlKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub fn ctrl_key(this: &KeyboardEvent) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "KeyboardEvent" , js_name = shiftKey ) ] + #[doc = "Getter for the `shiftKey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/shiftKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub fn shift_key(this: &KeyboardEvent) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "KeyboardEvent" , js_name = metaKey ) ] + #[doc = "Getter for the `metaKey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/metaKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub fn meta_key(this: &KeyboardEvent) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "KeyboardEvent" , js_name = location ) ] + #[doc = "Getter for the `location` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/location)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub fn location(this: &KeyboardEvent) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "KeyboardEvent" , js_name = repeat ) ] + #[doc = "Getter for the `repeat` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub fn repeat(this: &KeyboardEvent) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "KeyboardEvent" , js_name = isComposing ) ] + #[doc = "Getter for the `isComposing` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/isComposing)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub fn is_composing(this: &KeyboardEvent) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "KeyboardEvent" , js_name = key ) ] + #[doc = "Getter for the `key` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub fn key(this: &KeyboardEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "KeyboardEvent" , js_name = code ) ] + #[doc = "Getter for the `code` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub fn code(this: &KeyboardEvent) -> String; + #[wasm_bindgen(catch, constructor, js_class = "KeyboardEvent")] + #[doc = "The `new KeyboardEvent(..)` constructor, creating a new instance of `KeyboardEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/KeyboardEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub fn new(type_arg: &str) -> Result; + #[cfg(feature = "KeyboardEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "KeyboardEvent")] + #[doc = "The `new KeyboardEvent(..)` constructor, creating a new instance of `KeyboardEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/KeyboardEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`, `KeyboardEventInit`*"] + pub fn new_with_keyboard_event_init_dict( + type_arg: &str, + keyboard_event_init_dict: &KeyboardEventInit, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "KeyboardEvent" , js_name = getModifierState ) ] + #[doc = "The `getModifierState()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/getModifierState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub fn get_modifier_state(this: &KeyboardEvent, key: &str) -> bool; + # [ wasm_bindgen ( catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent ) ] + #[doc = "The `initKeyboardEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub fn init_keyboard_event(this: &KeyboardEvent, type_arg: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent ) ] + #[doc = "The `initKeyboardEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub fn init_keyboard_event_with_bubbles_arg( + this: &KeyboardEvent, + type_arg: &str, + bubbles_arg: bool, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent ) ] + #[doc = "The `initKeyboardEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg( + this: &KeyboardEvent, + type_arg: &str, + bubbles_arg: bool, + cancelable_arg: bool, + ) -> Result<(), JsValue>; + #[cfg(feature = "Window")] + # [ wasm_bindgen ( catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent ) ] + #[doc = "The `initKeyboardEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`, `Window`*"] + pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg( + this: &KeyboardEvent, + type_arg: &str, + bubbles_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + ) -> Result<(), JsValue>; + #[cfg(feature = "Window")] + # [ wasm_bindgen ( catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent ) ] + #[doc = "The `initKeyboardEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`, `Window`*"] + pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg( + this: &KeyboardEvent, + type_arg: &str, + bubbles_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + key_arg: &str, + ) -> Result<(), JsValue>; + #[cfg(feature = "Window")] + # [ wasm_bindgen ( catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent ) ] + #[doc = "The `initKeyboardEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`, `Window`*"] + pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg_and_location_arg( + this: &KeyboardEvent, + type_arg: &str, + bubbles_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + key_arg: &str, + location_arg: u32, + ) -> Result<(), JsValue>; + #[cfg(feature = "Window")] + # [ wasm_bindgen ( catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent ) ] + #[doc = "The `initKeyboardEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`, `Window`*"] + pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg_and_location_arg_and_ctrl_key( + this: &KeyboardEvent, + type_arg: &str, + bubbles_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + key_arg: &str, + location_arg: u32, + ctrl_key: bool, + ) -> Result<(), JsValue>; + #[cfg(feature = "Window")] + # [ wasm_bindgen ( catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent ) ] + #[doc = "The `initKeyboardEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`, `Window`*"] + pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg_and_location_arg_and_ctrl_key_and_alt_key( + this: &KeyboardEvent, + type_arg: &str, + bubbles_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + key_arg: &str, + location_arg: u32, + ctrl_key: bool, + alt_key: bool, + ) -> Result<(), JsValue>; + #[cfg(feature = "Window")] + # [ wasm_bindgen ( catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent ) ] + #[doc = "The `initKeyboardEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`, `Window`*"] + pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg_and_location_arg_and_ctrl_key_and_alt_key_and_shift_key( + this: &KeyboardEvent, + type_arg: &str, + bubbles_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + key_arg: &str, + location_arg: u32, + ctrl_key: bool, + alt_key: bool, + shift_key: bool, + ) -> Result<(), JsValue>; + #[cfg(feature = "Window")] + # [ wasm_bindgen ( catch , method , structural , js_class = "KeyboardEvent" , js_name = initKeyboardEvent ) ] + #[doc = "The `initKeyboardEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/initKeyboardEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`, `Window`*"] + pub fn init_keyboard_event_with_bubbles_arg_and_cancelable_arg_and_view_arg_and_key_arg_and_location_arg_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key( + this: &KeyboardEvent, + type_arg: &str, + bubbles_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + key_arg: &str, + location_arg: u32, + ctrl_key: bool, + alt_key: bool, + shift_key: bool, + meta_key: bool, + ) -> Result<(), JsValue>; +} +impl KeyboardEvent { + #[doc = "The `KeyboardEvent.DOM_KEY_LOCATION_STANDARD` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub const DOM_KEY_LOCATION_STANDARD: u32 = 0u64 as u32; + #[doc = "The `KeyboardEvent.DOM_KEY_LOCATION_LEFT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub const DOM_KEY_LOCATION_LEFT: u32 = 1u64 as u32; + #[doc = "The `KeyboardEvent.DOM_KEY_LOCATION_RIGHT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub const DOM_KEY_LOCATION_RIGHT: u32 = 2u64 as u32; + #[doc = "The `KeyboardEvent.DOM_KEY_LOCATION_NUMPAD` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEvent`*"] + pub const DOM_KEY_LOCATION_NUMPAD: u32 = 3u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_KeyboardEventInit.rs b/crates/web-sys/src/features/gen_KeyboardEventInit.rs new file mode 100644 index 00000000..220124dd --- /dev/null +++ b/crates/web-sys/src/features/gen_KeyboardEventInit.rs @@ -0,0 +1,440 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = KeyboardEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `KeyboardEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub type KeyboardEventInit; +} +impl KeyboardEventInit { + #[doc = "Construct a new `KeyboardEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `detail` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn detail(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Window")] + #[doc = "Change the `view` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`, `Window`*"] + pub fn view(&mut self, val: Option<&Window>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `altKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn alt_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("altKey"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ctrlKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn ctrl_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("ctrlKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `metaKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn meta_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("metaKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierAltGraph` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierAltGraph"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierCapsLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierCapsLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierFn` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn modifier_fn(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierFn"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierFnLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierFnLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierNumLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierNumLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierOS` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn modifier_os(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierOS"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierScrollLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierScrollLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierSymbol` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierSymbol"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierSymbolLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierSymbolLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `shiftKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn shift_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("shiftKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `charCode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn char_code(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("charCode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `code` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn code(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("code"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `isComposing` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn is_composing(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("isComposing"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `key` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn key(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("key"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `keyCode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn key_code(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("keyCode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `location` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn location(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("location"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `repeat` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn repeat(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("repeat"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `which` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyboardEventInit`*"] + pub fn which(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("which"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_KeyframeEffect.rs b/crates/web-sys/src/features/gen_KeyframeEffect.rs new file mode 100644 index 00000000..ade78a93 --- /dev/null +++ b/crates/web-sys/src/features/gen_KeyframeEffect.rs @@ -0,0 +1,154 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AnimationEffect , extends = :: js_sys :: Object , js_name = KeyframeEffect , typescript_type = "KeyframeEffect" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `KeyframeEffect` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"] + pub type KeyframeEffect; + # [ wasm_bindgen ( structural , method , getter , js_class = "KeyframeEffect" , js_name = target ) ] + #[doc = "Getter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"] + pub fn target(this: &KeyframeEffect) -> Option<::js_sys::Object>; + # [ wasm_bindgen ( structural , method , setter , js_class = "KeyframeEffect" , js_name = target ) ] + #[doc = "Setter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"] + pub fn set_target(this: &KeyframeEffect, value: Option<&::js_sys::Object>); + #[cfg(feature = "IterationCompositeOperation")] + # [ wasm_bindgen ( structural , method , getter , js_class = "KeyframeEffect" , js_name = iterationComposite ) ] + #[doc = "Getter for the `iterationComposite` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/iterationComposite)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IterationCompositeOperation`, `KeyframeEffect`*"] + pub fn iteration_composite(this: &KeyframeEffect) -> IterationCompositeOperation; + #[cfg(feature = "IterationCompositeOperation")] + # [ wasm_bindgen ( structural , method , setter , js_class = "KeyframeEffect" , js_name = iterationComposite ) ] + #[doc = "Setter for the `iterationComposite` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/iterationComposite)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IterationCompositeOperation`, `KeyframeEffect`*"] + pub fn set_iteration_composite(this: &KeyframeEffect, value: IterationCompositeOperation); + #[cfg(feature = "CompositeOperation")] + # [ wasm_bindgen ( structural , method , getter , js_class = "KeyframeEffect" , js_name = composite ) ] + #[doc = "Getter for the `composite` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/composite)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositeOperation`, `KeyframeEffect`*"] + pub fn composite(this: &KeyframeEffect) -> CompositeOperation; + #[cfg(feature = "CompositeOperation")] + # [ wasm_bindgen ( structural , method , setter , js_class = "KeyframeEffect" , js_name = composite ) ] + #[doc = "Setter for the `composite` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/composite)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositeOperation`, `KeyframeEffect`*"] + pub fn set_composite(this: &KeyframeEffect, value: CompositeOperation); + #[cfg(feature = "Element")] + #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")] + #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `KeyframeEffect`*"] + pub fn new_with_opt_element_and_keyframes( + target: Option<&Element>, + keyframes: Option<&::js_sys::Object>, + ) -> Result; + #[cfg(feature = "CssPseudoElement")] + #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")] + #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`, `KeyframeEffect`*"] + pub fn new_with_opt_css_pseudo_element_and_keyframes( + target: Option<&CssPseudoElement>, + keyframes: Option<&::js_sys::Object>, + ) -> Result; + #[cfg(feature = "Element")] + #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")] + #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `KeyframeEffect`*"] + pub fn new_with_opt_element_and_keyframes_and_f64( + target: Option<&Element>, + keyframes: Option<&::js_sys::Object>, + options: f64, + ) -> Result; + #[cfg(feature = "CssPseudoElement")] + #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")] + #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`, `KeyframeEffect`*"] + pub fn new_with_opt_css_pseudo_element_and_keyframes_and_f64( + target: Option<&CssPseudoElement>, + keyframes: Option<&::js_sys::Object>, + options: f64, + ) -> Result; + #[cfg(all(feature = "Element", feature = "KeyframeEffectOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")] + #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `KeyframeEffect`, `KeyframeEffectOptions`*"] + pub fn new_with_opt_element_and_keyframes_and_keyframe_effect_options( + target: Option<&Element>, + keyframes: Option<&::js_sys::Object>, + options: &KeyframeEffectOptions, + ) -> Result; + #[cfg(all(feature = "CssPseudoElement", feature = "KeyframeEffectOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")] + #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssPseudoElement`, `KeyframeEffect`, `KeyframeEffectOptions`*"] + pub fn new_with_opt_css_pseudo_element_and_keyframes_and_keyframe_effect_options( + target: Option<&CssPseudoElement>, + keyframes: Option<&::js_sys::Object>, + options: &KeyframeEffectOptions, + ) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "KeyframeEffect")] + #[doc = "The `new KeyframeEffect(..)` constructor, creating a new instance of `KeyframeEffect`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"] + pub fn new_with_source(source: &KeyframeEffect) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "KeyframeEffect" , js_name = getKeyframes ) ] + #[doc = "The `getKeyframes()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/getKeyframes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"] + pub fn get_keyframes(this: &KeyframeEffect) -> Result<::js_sys::Array, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "KeyframeEffect" , js_name = setKeyframes ) ] + #[doc = "The `setKeyframes()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/KeyframeEffect/setKeyframes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyframeEffect`*"] + pub fn set_keyframes( + this: &KeyframeEffect, + keyframes: Option<&::js_sys::Object>, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_KeyframeEffectOptions.rs b/crates/web-sys/src/features/gen_KeyframeEffectOptions.rs new file mode 100644 index 00000000..2aa8e9a9 --- /dev/null +++ b/crates/web-sys/src/features/gen_KeyframeEffectOptions.rs @@ -0,0 +1,185 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = KeyframeEffectOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `KeyframeEffectOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] + pub type KeyframeEffectOptions; +} +impl KeyframeEffectOptions { + #[doc = "Construct a new `KeyframeEffectOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `delay` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] + pub fn delay(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("delay"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "PlaybackDirection")] + #[doc = "Change the `direction` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`, `PlaybackDirection`*"] + pub fn direction(&mut self, val: PlaybackDirection) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("direction"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `duration` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] + pub fn duration(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("duration"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `easing` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] + pub fn easing(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("easing"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `endDelay` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] + pub fn end_delay(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("endDelay"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "FillMode")] + #[doc = "Change the `fill` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FillMode`, `KeyframeEffectOptions`*"] + pub fn fill(&mut self, val: FillMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("fill"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `iterationStart` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] + pub fn iteration_start(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iterationStart"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `iterations` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `KeyframeEffectOptions`*"] + pub fn iterations(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iterations"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "CompositeOperation")] + #[doc = "Change the `composite` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CompositeOperation`, `KeyframeEffectOptions`*"] + pub fn composite(&mut self, val: CompositeOperation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composite"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "IterationCompositeOperation")] + #[doc = "Change the `iterationComposite` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IterationCompositeOperation`, `KeyframeEffectOptions`*"] + pub fn iteration_composite(&mut self, val: IterationCompositeOperation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iterationComposite"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_L10nElement.rs b/crates/web-sys/src/features/gen_L10nElement.rs new file mode 100644 index 00000000..258c8904 --- /dev/null +++ b/crates/web-sys/src/features/gen_L10nElement.rs @@ -0,0 +1,120 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = L10nElement ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `L10nElement` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] + pub type L10nElement; +} +impl L10nElement { + #[doc = "Construct a new `L10nElement`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] + pub fn new(l10n_id: &str, local_name: &str, namespace_uri: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.l10n_id(l10n_id); + ret.local_name(local_name); + ret.namespace_uri(namespace_uri); + ret + } + #[doc = "Change the `l10nArgs` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] + pub fn l10n_args(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("l10nArgs"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `l10nAttrs` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] + pub fn l10n_attrs(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("l10nAttrs"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `l10nId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] + pub fn l10n_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("l10nId"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `localName` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] + pub fn local_name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("localName"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `namespaceURI` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] + pub fn namespace_uri(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("namespaceURI"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `L10nElement`*"] + pub fn type_(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_L10nValue.rs b/crates/web-sys/src/features/gen_L10nValue.rs new file mode 100644 index 00000000..b8d29254 --- /dev/null +++ b/crates/web-sys/src/features/gen_L10nValue.rs @@ -0,0 +1,52 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = L10nValue ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `L10nValue` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `L10nValue`*"] + pub type L10nValue; +} +impl L10nValue { + #[doc = "Construct a new `L10nValue`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `L10nValue`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `attributes` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `L10nValue`*"] + pub fn attributes(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("attributes"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `value` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `L10nValue`*"] + pub fn value(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("value"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_LifecycleCallbacks.rs b/crates/web-sys/src/features/gen_LifecycleCallbacks.rs new file mode 100644 index 00000000..de6f1987 --- /dev/null +++ b/crates/web-sys/src/features/gen_LifecycleCallbacks.rs @@ -0,0 +1,90 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = LifecycleCallbacks ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `LifecycleCallbacks` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] + pub type LifecycleCallbacks; +} +impl LifecycleCallbacks { + #[doc = "Construct a new `LifecycleCallbacks`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `adoptedCallback` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] + pub fn adopted_callback(&mut self, val: &::js_sys::Function) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("adoptedCallback"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `attributeChangedCallback` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] + pub fn attribute_changed_callback(&mut self, val: &::js_sys::Function) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("attributeChangedCallback"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `connectedCallback` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] + pub fn connected_callback(&mut self, val: &::js_sys::Function) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("connectedCallback"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `disconnectedCallback` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `LifecycleCallbacks`*"] + pub fn disconnected_callback(&mut self, val: &::js_sys::Function) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("disconnectedCallback"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_LineAlignSetting.rs b/crates/web-sys/src/features/gen_LineAlignSetting.rs new file mode 100644 index 00000000..a8c4e011 --- /dev/null +++ b/crates/web-sys/src/features/gen_LineAlignSetting.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `LineAlignSetting` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `LineAlignSetting`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum LineAlignSetting { + Start = "start", + Center = "center", + End = "end", +} diff --git a/crates/web-sys/src/features/gen_ListBoxObject.rs b/crates/web-sys/src/features/gen_ListBoxObject.rs new file mode 100644 index 00000000..b7d4471e --- /dev/null +++ b/crates/web-sys/src/features/gen_ListBoxObject.rs @@ -0,0 +1,79 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ListBoxObject , typescript_type = "ListBoxObject" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ListBoxObject` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] + pub type ListBoxObject; + # [ wasm_bindgen ( method , structural , js_class = "ListBoxObject" , js_name = ensureIndexIsVisible ) ] + #[doc = "The `ensureIndexIsVisible()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/ensureIndexIsVisible)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] + pub fn ensure_index_is_visible(this: &ListBoxObject, row_index: i32); + # [ wasm_bindgen ( method , structural , js_class = "ListBoxObject" , js_name = getIndexOfFirstVisibleRow ) ] + #[doc = "The `getIndexOfFirstVisibleRow()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getIndexOfFirstVisibleRow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] + pub fn get_index_of_first_visible_row(this: &ListBoxObject) -> i32; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( method , structural , js_class = "ListBoxObject" , js_name = getIndexOfItem ) ] + #[doc = "The `getIndexOfItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getIndexOfItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `ListBoxObject`*"] + pub fn get_index_of_item(this: &ListBoxObject, item: &Element) -> i32; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( method , structural , js_class = "ListBoxObject" , js_name = getItemAtIndex ) ] + #[doc = "The `getItemAtIndex()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getItemAtIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `ListBoxObject`*"] + pub fn get_item_at_index(this: &ListBoxObject, index: i32) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "ListBoxObject" , js_name = getNumberOfVisibleRows ) ] + #[doc = "The `getNumberOfVisibleRows()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getNumberOfVisibleRows)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] + pub fn get_number_of_visible_rows(this: &ListBoxObject) -> i32; + # [ wasm_bindgen ( method , structural , js_class = "ListBoxObject" , js_name = getRowCount ) ] + #[doc = "The `getRowCount()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getRowCount)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] + pub fn get_row_count(this: &ListBoxObject) -> i32; + # [ wasm_bindgen ( method , structural , js_class = "ListBoxObject" , js_name = getRowHeight ) ] + #[doc = "The `getRowHeight()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/getRowHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] + pub fn get_row_height(this: &ListBoxObject) -> i32; + # [ wasm_bindgen ( method , structural , js_class = "ListBoxObject" , js_name = scrollByLines ) ] + #[doc = "The `scrollByLines()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/scrollByLines)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] + pub fn scroll_by_lines(this: &ListBoxObject, num_lines: i32); + # [ wasm_bindgen ( method , structural , js_class = "ListBoxObject" , js_name = scrollToIndex ) ] + #[doc = "The `scrollToIndex()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ListBoxObject/scrollToIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ListBoxObject`*"] + pub fn scroll_to_index(this: &ListBoxObject, row_index: i32); +} diff --git a/crates/web-sys/src/features/gen_LocalMediaStream.rs b/crates/web-sys/src/features/gen_LocalMediaStream.rs new file mode 100644 index 00000000..69bad08a --- /dev/null +++ b/crates/web-sys/src/features/gen_LocalMediaStream.rs @@ -0,0 +1,21 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = MediaStream , extends = EventTarget , extends = :: js_sys :: Object , js_name = LocalMediaStream , typescript_type = "LocalMediaStream" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `LocalMediaStream` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LocalMediaStream)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `LocalMediaStream`*"] + pub type LocalMediaStream; + # [ wasm_bindgen ( method , structural , js_class = "LocalMediaStream" , js_name = stop ) ] + #[doc = "The `stop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/LocalMediaStream/stop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `LocalMediaStream`*"] + pub fn stop(this: &LocalMediaStream); +} diff --git a/crates/web-sys/src/features/gen_LocaleInfo.rs b/crates/web-sys/src/features/gen_LocaleInfo.rs new file mode 100644 index 00000000..97c90e6f --- /dev/null +++ b/crates/web-sys/src/features/gen_LocaleInfo.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = LocaleInfo ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `LocaleInfo` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `LocaleInfo`*"] + pub type LocaleInfo; +} +impl LocaleInfo { + #[doc = "Construct a new `LocaleInfo`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `LocaleInfo`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `direction` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `LocaleInfo`*"] + pub fn direction(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("direction"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `locale` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `LocaleInfo`*"] + pub fn locale(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("locale"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Location.rs b/crates/web-sys/src/features/gen_Location.rs new file mode 100644 index 00000000..4093de7c --- /dev/null +++ b/crates/web-sys/src/features/gen_Location.rs @@ -0,0 +1,161 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Location , typescript_type = "Location" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Location` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub type Location; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Location" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn href(this: &Location) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Location" , js_name = href ) ] + #[doc = "Setter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn set_href(this: &Location, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Location" , js_name = origin ) ] + #[doc = "Getter for the `origin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/origin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn origin(this: &Location) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Location" , js_name = protocol ) ] + #[doc = "Getter for the `protocol` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/protocol)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn protocol(this: &Location) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Location" , js_name = protocol ) ] + #[doc = "Setter for the `protocol` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/protocol)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn set_protocol(this: &Location, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Location" , js_name = host ) ] + #[doc = "Getter for the `host` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/host)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn host(this: &Location) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Location" , js_name = host ) ] + #[doc = "Setter for the `host` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/host)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn set_host(this: &Location, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Location" , js_name = hostname ) ] + #[doc = "Getter for the `hostname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hostname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn hostname(this: &Location) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Location" , js_name = hostname ) ] + #[doc = "Setter for the `hostname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hostname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn set_hostname(this: &Location, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Location" , js_name = port ) ] + #[doc = "Getter for the `port` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/port)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn port(this: &Location) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Location" , js_name = port ) ] + #[doc = "Setter for the `port` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/port)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn set_port(this: &Location, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Location" , js_name = pathname ) ] + #[doc = "Getter for the `pathname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/pathname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn pathname(this: &Location) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Location" , js_name = pathname ) ] + #[doc = "Setter for the `pathname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/pathname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn set_pathname(this: &Location, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Location" , js_name = search ) ] + #[doc = "Getter for the `search` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/search)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn search(this: &Location) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Location" , js_name = search ) ] + #[doc = "Setter for the `search` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/search)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn set_search(this: &Location, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Location" , js_name = hash ) ] + #[doc = "Getter for the `hash` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hash)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn hash(this: &Location) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Location" , js_name = hash ) ] + #[doc = "Setter for the `hash` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/hash)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn set_hash(this: &Location, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Location" , js_name = assign ) ] + #[doc = "The `assign()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/assign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn assign(this: &Location, url: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Location" , js_name = reload ) ] + #[doc = "The `reload()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/reload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn reload(this: &Location) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Location" , js_name = reload ) ] + #[doc = "The `reload()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/reload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn reload_with_forceget(this: &Location, forceget: bool) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Location" , js_name = replace ) ] + #[doc = "The `replace()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Location/replace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`*"] + pub fn replace(this: &Location, url: &str) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_MediaCapabilities.rs b/crates/web-sys/src/features/gen_MediaCapabilities.rs new file mode 100644 index 00000000..f7392880 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaCapabilities.rs @@ -0,0 +1,36 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaCapabilities , typescript_type = "MediaCapabilities" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaCapabilities` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilities)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaCapabilities`*"] + pub type MediaCapabilities; + #[cfg(feature = "MediaDecodingConfiguration")] + # [ wasm_bindgen ( method , structural , js_class = "MediaCapabilities" , js_name = decodingInfo ) ] + #[doc = "The `decodingInfo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilities/decodingInfo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaCapabilities`, `MediaDecodingConfiguration`*"] + pub fn decoding_info( + this: &MediaCapabilities, + configuration: &MediaDecodingConfiguration, + ) -> ::js_sys::Promise; + #[cfg(feature = "MediaEncodingConfiguration")] + # [ wasm_bindgen ( method , structural , js_class = "MediaCapabilities" , js_name = encodingInfo ) ] + #[doc = "The `encodingInfo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilities/encodingInfo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaCapabilities`, `MediaEncodingConfiguration`*"] + pub fn encoding_info( + this: &MediaCapabilities, + configuration: &MediaEncodingConfiguration, + ) -> ::js_sys::Promise; +} diff --git a/crates/web-sys/src/features/gen_MediaCapabilitiesInfo.rs b/crates/web-sys/src/features/gen_MediaCapabilitiesInfo.rs new file mode 100644 index 00000000..0c8b651c --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaCapabilitiesInfo.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaCapabilitiesInfo , typescript_type = "MediaCapabilitiesInfo" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaCapabilitiesInfo` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilitiesInfo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaCapabilitiesInfo`*"] + pub type MediaCapabilitiesInfo; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaCapabilitiesInfo" , js_name = supported ) ] + #[doc = "Getter for the `supported` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilitiesInfo/supported)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaCapabilitiesInfo`*"] + pub fn supported(this: &MediaCapabilitiesInfo) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaCapabilitiesInfo" , js_name = smooth ) ] + #[doc = "Getter for the `smooth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilitiesInfo/smooth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaCapabilitiesInfo`*"] + pub fn smooth(this: &MediaCapabilitiesInfo) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaCapabilitiesInfo" , js_name = powerEfficient ) ] + #[doc = "Getter for the `powerEfficient` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaCapabilitiesInfo/powerEfficient)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaCapabilitiesInfo`*"] + pub fn power_efficient(this: &MediaCapabilitiesInfo) -> bool; +} diff --git a/crates/web-sys/src/features/gen_MediaConfiguration.rs b/crates/web-sys/src/features/gen_MediaConfiguration.rs new file mode 100644 index 00000000..1a227e4e --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaConfiguration.rs @@ -0,0 +1,50 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaConfiguration ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaConfiguration` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaConfiguration`*"] + pub type MediaConfiguration; +} +impl MediaConfiguration { + #[doc = "Construct a new `MediaConfiguration`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaConfiguration`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "AudioConfiguration")] + #[doc = "Change the `audio` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`, `MediaConfiguration`*"] + pub fn audio(&mut self, val: &AudioConfiguration) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("audio"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "VideoConfiguration")] + #[doc = "Change the `video` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaConfiguration`, `VideoConfiguration`*"] + pub fn video(&mut self, val: &VideoConfiguration) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("video"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaDecodingConfiguration.rs b/crates/web-sys/src/features/gen_MediaDecodingConfiguration.rs new file mode 100644 index 00000000..4018bcdd --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaDecodingConfiguration.rs @@ -0,0 +1,66 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaDecodingConfiguration ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaDecodingConfiguration` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDecodingConfiguration`*"] + pub type MediaDecodingConfiguration; +} +impl MediaDecodingConfiguration { + #[cfg(feature = "MediaDecodingType")] + #[doc = "Construct a new `MediaDecodingConfiguration`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDecodingConfiguration`, `MediaDecodingType`*"] + pub fn new(type_: MediaDecodingType) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.type_(type_); + ret + } + #[cfg(feature = "AudioConfiguration")] + #[doc = "Change the `audio` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`, `MediaDecodingConfiguration`*"] + pub fn audio(&mut self, val: &AudioConfiguration) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("audio"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "VideoConfiguration")] + #[doc = "Change the `video` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDecodingConfiguration`, `VideoConfiguration`*"] + pub fn video(&mut self, val: &VideoConfiguration) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("video"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "MediaDecodingType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDecodingConfiguration`, `MediaDecodingType`*"] + pub fn type_(&mut self, val: MediaDecodingType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaDecodingType.rs b/crates/web-sys/src/features/gen_MediaDecodingType.rs new file mode 100644 index 00000000..79ae5f89 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaDecodingType.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `MediaDecodingType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `MediaDecodingType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MediaDecodingType { + File = "file", + MediaSource = "media-source", +} diff --git a/crates/web-sys/src/features/gen_MediaDeviceInfo.rs b/crates/web-sys/src/features/gen_MediaDeviceInfo.rs new file mode 100644 index 00000000..0d51d5f8 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaDeviceInfo.rs @@ -0,0 +1,50 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaDeviceInfo , typescript_type = "MediaDeviceInfo" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaDeviceInfo` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"] + pub type MediaDeviceInfo; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaDeviceInfo" , js_name = deviceId ) ] + #[doc = "Getter for the `deviceId` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/deviceId)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"] + pub fn device_id(this: &MediaDeviceInfo) -> String; + #[cfg(feature = "MediaDeviceKind")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaDeviceInfo" , js_name = kind ) ] + #[doc = "Getter for the `kind` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/kind)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`, `MediaDeviceKind`*"] + pub fn kind(this: &MediaDeviceInfo) -> MediaDeviceKind; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaDeviceInfo" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"] + pub fn label(this: &MediaDeviceInfo) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaDeviceInfo" , js_name = groupId ) ] + #[doc = "Getter for the `groupId` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/groupId)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"] + pub fn group_id(this: &MediaDeviceInfo) -> String; + # [ wasm_bindgen ( method , structural , js_class = "MediaDeviceInfo" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDeviceInfo`*"] + pub fn to_json(this: &MediaDeviceInfo) -> ::js_sys::Object; +} diff --git a/crates/web-sys/src/features/gen_MediaDeviceKind.rs b/crates/web-sys/src/features/gen_MediaDeviceKind.rs new file mode 100644 index 00000000..ff9873c2 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaDeviceKind.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `MediaDeviceKind` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `MediaDeviceKind`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MediaDeviceKind { + Audioinput = "audioinput", + Audiooutput = "audiooutput", + Videoinput = "videoinput", +} diff --git a/crates/web-sys/src/features/gen_MediaDevices.rs b/crates/web-sys/src/features/gen_MediaDevices.rs new file mode 100644 index 00000000..4f2b1e1d --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaDevices.rs @@ -0,0 +1,61 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaDevices , typescript_type = "MediaDevices" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaDevices` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] + pub type MediaDevices; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaDevices" , js_name = ondevicechange ) ] + #[doc = "Getter for the `ondevicechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/ondevicechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] + pub fn ondevicechange(this: &MediaDevices) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaDevices" , js_name = ondevicechange ) ] + #[doc = "Setter for the `ondevicechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/ondevicechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] + pub fn set_ondevicechange(this: &MediaDevices, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaDevices" , js_name = enumerateDevices ) ] + #[doc = "The `enumerateDevices()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/enumerateDevices)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] + pub fn enumerate_devices(this: &MediaDevices) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "MediaTrackSupportedConstraints")] + # [ wasm_bindgen ( method , structural , js_class = "MediaDevices" , js_name = getSupportedConstraints ) ] + #[doc = "The `getSupportedConstraints()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getSupportedConstraints)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDevices`, `MediaTrackSupportedConstraints`*"] + pub fn get_supported_constraints(this: &MediaDevices) -> MediaTrackSupportedConstraints; + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaDevices" , js_name = getUserMedia ) ] + #[doc = "The `getUserMedia()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDevices`*"] + pub fn get_user_media(this: &MediaDevices) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "MediaStreamConstraints")] + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaDevices" , js_name = getUserMedia ) ] + #[doc = "The `getUserMedia()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDevices`, `MediaStreamConstraints`*"] + pub fn get_user_media_with_constraints( + this: &MediaDevices, + constraints: &MediaStreamConstraints, + ) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_MediaElementAudioSourceNode.rs b/crates/web-sys/src/features/gen_MediaElementAudioSourceNode.rs new file mode 100644 index 00000000..fc8b8073 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaElementAudioSourceNode.rs @@ -0,0 +1,25 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaElementAudioSourceNode , typescript_type = "MediaElementAudioSourceNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaElementAudioSourceNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaElementAudioSourceNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaElementAudioSourceNode`*"] + pub type MediaElementAudioSourceNode; + #[cfg(all(feature = "AudioContext", feature = "MediaElementAudioSourceOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "MediaElementAudioSourceNode")] + #[doc = "The `new MediaElementAudioSourceNode(..)` constructor, creating a new instance of `MediaElementAudioSourceNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaElementAudioSourceNode/MediaElementAudioSourceNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `MediaElementAudioSourceNode`, `MediaElementAudioSourceOptions`*"] + pub fn new( + context: &AudioContext, + options: &MediaElementAudioSourceOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_MediaElementAudioSourceOptions.rs b/crates/web-sys/src/features/gen_MediaElementAudioSourceOptions.rs new file mode 100644 index 00000000..fccbad55 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaElementAudioSourceOptions.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaElementAudioSourceOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaElementAudioSourceOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaElementAudioSourceOptions`*"] + pub type MediaElementAudioSourceOptions; +} +impl MediaElementAudioSourceOptions { + #[cfg(feature = "HtmlMediaElement")] + #[doc = "Construct a new `MediaElementAudioSourceOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaElementAudioSourceOptions`*"] + pub fn new(media_element: &HtmlMediaElement) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.media_element(media_element); + ret + } + #[cfg(feature = "HtmlMediaElement")] + #[doc = "Change the `mediaElement` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlMediaElement`, `MediaElementAudioSourceOptions`*"] + pub fn media_element(&mut self, val: &HtmlMediaElement) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mediaElement"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaEncodingConfiguration.rs b/crates/web-sys/src/features/gen_MediaEncodingConfiguration.rs new file mode 100644 index 00000000..ba9d92ef --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaEncodingConfiguration.rs @@ -0,0 +1,66 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaEncodingConfiguration ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaEncodingConfiguration` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaEncodingConfiguration`*"] + pub type MediaEncodingConfiguration; +} +impl MediaEncodingConfiguration { + #[cfg(feature = "MediaEncodingType")] + #[doc = "Construct a new `MediaEncodingConfiguration`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaEncodingConfiguration`, `MediaEncodingType`*"] + pub fn new(type_: MediaEncodingType) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.type_(type_); + ret + } + #[cfg(feature = "AudioConfiguration")] + #[doc = "Change the `audio` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioConfiguration`, `MediaEncodingConfiguration`*"] + pub fn audio(&mut self, val: &AudioConfiguration) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("audio"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "VideoConfiguration")] + #[doc = "Change the `video` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaEncodingConfiguration`, `VideoConfiguration`*"] + pub fn video(&mut self, val: &VideoConfiguration) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("video"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "MediaEncodingType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaEncodingConfiguration`, `MediaEncodingType`*"] + pub fn type_(&mut self, val: MediaEncodingType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaEncodingType.rs b/crates/web-sys/src/features/gen_MediaEncodingType.rs new file mode 100644 index 00000000..e478627c --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaEncodingType.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `MediaEncodingType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `MediaEncodingType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MediaEncodingType { + Record = "record", + Transmission = "transmission", +} diff --git a/crates/web-sys/src/features/gen_MediaEncryptedEvent.rs b/crates/web-sys/src/features/gen_MediaEncryptedEvent.rs new file mode 100644 index 00000000..c2801de5 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaEncryptedEvent.rs @@ -0,0 +1,46 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = MediaEncryptedEvent , typescript_type = "MediaEncryptedEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaEncryptedEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaEncryptedEvent`*"] + pub type MediaEncryptedEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaEncryptedEvent" , js_name = initDataType ) ] + #[doc = "Getter for the `initDataType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent/initDataType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaEncryptedEvent`*"] + pub fn init_data_type(this: &MediaEncryptedEvent) -> String; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "MediaEncryptedEvent" , js_name = initData ) ] + #[doc = "Getter for the `initData` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent/initData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaEncryptedEvent`*"] + pub fn init_data(this: &MediaEncryptedEvent) -> Result, JsValue>; + #[wasm_bindgen(catch, constructor, js_class = "MediaEncryptedEvent")] + #[doc = "The `new MediaEncryptedEvent(..)` constructor, creating a new instance of `MediaEncryptedEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent/MediaEncryptedEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaEncryptedEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "MediaKeyNeededEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "MediaEncryptedEvent")] + #[doc = "The `new MediaEncryptedEvent(..)` constructor, creating a new instance of `MediaEncryptedEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaEncryptedEvent/MediaEncryptedEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaEncryptedEvent`, `MediaKeyNeededEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &MediaKeyNeededEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_MediaError.rs b/crates/web-sys/src/features/gen_MediaError.rs new file mode 100644 index 00000000..753a4897 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaError.rs @@ -0,0 +1,46 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaError , typescript_type = "MediaError" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaError` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaError`*"] + pub type MediaError; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaError" , js_name = code ) ] + #[doc = "Getter for the `code` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaError/code)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaError`*"] + pub fn code(this: &MediaError) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaError" , js_name = message ) ] + #[doc = "Getter for the `message` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaError/message)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaError`*"] + pub fn message(this: &MediaError) -> String; +} +impl MediaError { + #[doc = "The `MediaError.MEDIA_ERR_ABORTED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaError`*"] + pub const MEDIA_ERR_ABORTED: u16 = 1u64 as u16; + #[doc = "The `MediaError.MEDIA_ERR_NETWORK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaError`*"] + pub const MEDIA_ERR_NETWORK: u16 = 2u64 as u16; + #[doc = "The `MediaError.MEDIA_ERR_DECODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaError`*"] + pub const MEDIA_ERR_DECODE: u16 = 3u64 as u16; + #[doc = "The `MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaError`*"] + pub const MEDIA_ERR_SRC_NOT_SUPPORTED: u16 = 4u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_MediaKeyError.rs b/crates/web-sys/src/features/gen_MediaKeyError.rs new file mode 100644 index 00000000..b27cbabc --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaKeyError.rs @@ -0,0 +1,21 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = MediaKeyError , typescript_type = "MediaKeyError" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaKeyError` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyError`*"] + pub type MediaKeyError; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaKeyError" , js_name = systemCode ) ] + #[doc = "Getter for the `systemCode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyError/systemCode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyError`*"] + pub fn system_code(this: &MediaKeyError) -> u32; +} diff --git a/crates/web-sys/src/features/gen_MediaKeyMessageEvent.rs b/crates/web-sys/src/features/gen_MediaKeyMessageEvent.rs new file mode 100644 index 00000000..7dfce268 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaKeyMessageEvent.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = MediaKeyMessageEvent , typescript_type = "MediaKeyMessageEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaKeyMessageEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEvent`*"] + pub type MediaKeyMessageEvent; + #[cfg(feature = "MediaKeyMessageType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaKeyMessageEvent" , js_name = messageType ) ] + #[doc = "Getter for the `messageType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyMessageEvent/messageType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEvent`, `MediaKeyMessageType`*"] + pub fn message_type(this: &MediaKeyMessageEvent) -> MediaKeyMessageType; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "MediaKeyMessageEvent" , js_name = message ) ] + #[doc = "Getter for the `message` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyMessageEvent/message)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEvent`*"] + pub fn message(this: &MediaKeyMessageEvent) -> Result<::js_sys::ArrayBuffer, JsValue>; + #[cfg(feature = "MediaKeyMessageEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "MediaKeyMessageEvent")] + #[doc = "The `new MediaKeyMessageEvent(..)` constructor, creating a new instance of `MediaKeyMessageEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyMessageEvent/MediaKeyMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEvent`, `MediaKeyMessageEventInit`*"] + pub fn new( + type_: &str, + event_init_dict: &MediaKeyMessageEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_MediaKeyMessageEventInit.rs b/crates/web-sys/src/features/gen_MediaKeyMessageEventInit.rs new file mode 100644 index 00000000..62c3a63d --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaKeyMessageEventInit.rs @@ -0,0 +1,111 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaKeyMessageEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaKeyMessageEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] + pub type MediaKeyMessageEventInit; +} +impl MediaKeyMessageEventInit { + #[cfg(feature = "MediaKeyMessageType")] + #[doc = "Construct a new `MediaKeyMessageEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`, `MediaKeyMessageType`*"] + pub fn new(message: &::js_sys::ArrayBuffer, message_type: MediaKeyMessageType) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.message(message); + ret.message_type(message_type); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `message` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`*"] + pub fn message(&mut self, val: &::js_sys::ArrayBuffer) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("message"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "MediaKeyMessageType")] + #[doc = "Change the `messageType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageEventInit`, `MediaKeyMessageType`*"] + pub fn message_type(&mut self, val: MediaKeyMessageType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("messageType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaKeyMessageType.rs b/crates/web-sys/src/features/gen_MediaKeyMessageType.rs new file mode 100644 index 00000000..b101fb7e --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaKeyMessageType.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `MediaKeyMessageType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `MediaKeyMessageType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MediaKeyMessageType { + LicenseRequest = "license-request", + LicenseRenewal = "license-renewal", + LicenseRelease = "license-release", + IndividualizationRequest = "individualization-request", +} diff --git a/crates/web-sys/src/features/gen_MediaKeyNeededEventInit.rs b/crates/web-sys/src/features/gen_MediaKeyNeededEventInit.rs new file mode 100644 index 00000000..8c7bfd7a --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaKeyNeededEventInit.rs @@ -0,0 +1,107 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaKeyNeededEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaKeyNeededEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] + pub type MediaKeyNeededEventInit; +} +impl MediaKeyNeededEventInit { + #[doc = "Construct a new `MediaKeyNeededEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `initData` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] + pub fn init_data(&mut self, val: Option<&::js_sys::ArrayBuffer>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("initData"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `initDataType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyNeededEventInit`*"] + pub fn init_data_type(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("initDataType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaKeySession.rs b/crates/web-sys/src/features/gen_MediaKeySession.rs new file mode 100644 index 00000000..d199b49f --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaKeySession.rs @@ -0,0 +1,139 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaKeySession , typescript_type = "MediaKeySession" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaKeySession` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub type MediaKeySession; + #[cfg(feature = "MediaKeyError")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaKeySession" , js_name = error ) ] + #[doc = "Getter for the `error` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyError`, `MediaKeySession`*"] + pub fn error(this: &MediaKeySession) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaKeySession" , js_name = sessionId ) ] + #[doc = "Getter for the `sessionId` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/sessionId)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn session_id(this: &MediaKeySession) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaKeySession" , js_name = expiration ) ] + #[doc = "Getter for the `expiration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/expiration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn expiration(this: &MediaKeySession) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaKeySession" , js_name = closed ) ] + #[doc = "Getter for the `closed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/closed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn closed(this: &MediaKeySession) -> ::js_sys::Promise; + #[cfg(feature = "MediaKeyStatusMap")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaKeySession" , js_name = keyStatuses ) ] + #[doc = "Getter for the `keyStatuses` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/keyStatuses)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`, `MediaKeyStatusMap`*"] + pub fn key_statuses(this: &MediaKeySession) -> MediaKeyStatusMap; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaKeySession" , js_name = onkeystatuseschange ) ] + #[doc = "Getter for the `onkeystatuseschange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onkeystatuseschange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn onkeystatuseschange(this: &MediaKeySession) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaKeySession" , js_name = onkeystatuseschange ) ] + #[doc = "Setter for the `onkeystatuseschange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onkeystatuseschange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn set_onkeystatuseschange(this: &MediaKeySession, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaKeySession" , js_name = onmessage ) ] + #[doc = "Getter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn onmessage(this: &MediaKeySession) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaKeySession" , js_name = onmessage ) ] + #[doc = "Setter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn set_onmessage(this: &MediaKeySession, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( method , structural , js_class = "MediaKeySession" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn close(this: &MediaKeySession) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "MediaKeySession" , js_name = generateRequest ) ] + #[doc = "The `generateRequest()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/generateRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn generate_request_with_buffer_source( + this: &MediaKeySession, + init_data_type: &str, + init_data: &::js_sys::Object, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "MediaKeySession" , js_name = generateRequest ) ] + #[doc = "The `generateRequest()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/generateRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn generate_request_with_u8_array( + this: &MediaKeySession, + init_data_type: &str, + init_data: &mut [u8], + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "MediaKeySession" , js_name = load ) ] + #[doc = "The `load()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/load)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn load(this: &MediaKeySession, session_id: &str) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "MediaKeySession" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn remove(this: &MediaKeySession) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "MediaKeySession" , js_name = update ) ] + #[doc = "The `update()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/update)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn update_with_buffer_source( + this: &MediaKeySession, + response: &::js_sys::Object, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "MediaKeySession" , js_name = update ) ] + #[doc = "The `update()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySession/update)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`*"] + pub fn update_with_u8_array(this: &MediaKeySession, response: &mut [u8]) -> ::js_sys::Promise; +} diff --git a/crates/web-sys/src/features/gen_MediaKeySessionType.rs b/crates/web-sys/src/features/gen_MediaKeySessionType.rs new file mode 100644 index 00000000..c50b308c --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaKeySessionType.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `MediaKeySessionType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `MediaKeySessionType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MediaKeySessionType { + Temporary = "temporary", + PersistentLicense = "persistent-license", +} diff --git a/crates/web-sys/src/features/gen_MediaKeyStatus.rs b/crates/web-sys/src/features/gen_MediaKeyStatus.rs new file mode 100644 index 00000000..7e24d37a --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaKeyStatus.rs @@ -0,0 +1,16 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `MediaKeyStatus` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `MediaKeyStatus`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MediaKeyStatus { + Usable = "usable", + Expired = "expired", + Released = "released", + OutputRestricted = "output-restricted", + OutputDownscaled = "output-downscaled", + StatusPending = "status-pending", + InternalError = "internal-error", +} diff --git a/crates/web-sys/src/features/gen_MediaKeyStatusMap.rs b/crates/web-sys/src/features/gen_MediaKeyStatusMap.rs new file mode 100644 index 00000000..9fd6b405 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaKeyStatusMap.rs @@ -0,0 +1,55 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaKeyStatusMap , typescript_type = "MediaKeyStatusMap" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaKeyStatusMap` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] + pub type MediaKeyStatusMap; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaKeyStatusMap" , js_name = size ) ] + #[doc = "Getter for the `size` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/size)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] + pub fn size(this: &MediaKeyStatusMap) -> u32; + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaKeyStatusMap" , js_name = get ) ] + #[doc = "The `get()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/get)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] + pub fn get_with_buffer_source( + this: &MediaKeyStatusMap, + key_id: &::js_sys::Object, + ) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaKeyStatusMap" , js_name = get ) ] + #[doc = "The `get()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/get)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] + pub fn get_with_u8_array( + this: &MediaKeyStatusMap, + key_id: &mut [u8], + ) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "MediaKeyStatusMap" , js_name = has ) ] + #[doc = "The `has()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/has)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] + pub fn has_with_buffer_source(this: &MediaKeyStatusMap, key_id: &::js_sys::Object) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "MediaKeyStatusMap" , js_name = has ) ] + #[doc = "The `has()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeyStatusMap/has)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeyStatusMap`*"] + pub fn has_with_u8_array(this: &MediaKeyStatusMap, key_id: &mut [u8]) -> bool; +} diff --git a/crates/web-sys/src/features/gen_MediaKeySystemAccess.rs b/crates/web-sys/src/features/gen_MediaKeySystemAccess.rs new file mode 100644 index 00000000..39ef32ad --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaKeySystemAccess.rs @@ -0,0 +1,36 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaKeySystemAccess , typescript_type = "MediaKeySystemAccess" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaKeySystemAccess` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemAccess`*"] + pub type MediaKeySystemAccess; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaKeySystemAccess" , js_name = keySystem ) ] + #[doc = "Getter for the `keySystem` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess/keySystem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemAccess`*"] + pub fn key_system(this: &MediaKeySystemAccess) -> String; + # [ wasm_bindgen ( method , structural , js_class = "MediaKeySystemAccess" , js_name = createMediaKeys ) ] + #[doc = "The `createMediaKeys()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess/createMediaKeys)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemAccess`*"] + pub fn create_media_keys(this: &MediaKeySystemAccess) -> ::js_sys::Promise; + #[cfg(feature = "MediaKeySystemConfiguration")] + # [ wasm_bindgen ( method , structural , js_class = "MediaKeySystemAccess" , js_name = getConfiguration ) ] + #[doc = "The `getConfiguration()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeySystemAccess/getConfiguration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemAccess`, `MediaKeySystemConfiguration`*"] + pub fn get_configuration(this: &MediaKeySystemAccess) -> MediaKeySystemConfiguration; +} diff --git a/crates/web-sys/src/features/gen_MediaKeySystemConfiguration.rs b/crates/web-sys/src/features/gen_MediaKeySystemConfiguration.rs new file mode 100644 index 00000000..d256e764 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaKeySystemConfiguration.rs @@ -0,0 +1,139 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaKeySystemConfiguration ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaKeySystemConfiguration` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] + pub type MediaKeySystemConfiguration; +} +impl MediaKeySystemConfiguration { + #[doc = "Construct a new `MediaKeySystemConfiguration`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `audioCapabilities` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] + pub fn audio_capabilities(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("audioCapabilities"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "MediaKeysRequirement")] + #[doc = "Change the `distinctiveIdentifier` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`, `MediaKeysRequirement`*"] + pub fn distinctive_identifier(&mut self, val: MediaKeysRequirement) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("distinctiveIdentifier"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `initDataTypes` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] + pub fn init_data_types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("initDataTypes"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] + pub fn label(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "MediaKeysRequirement")] + #[doc = "Change the `persistentState` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`, `MediaKeysRequirement`*"] + pub fn persistent_state(&mut self, val: MediaKeysRequirement) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("persistentState"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `sessionTypes` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] + pub fn session_types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sessionTypes"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `videoCapabilities` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemConfiguration`*"] + pub fn video_capabilities(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("videoCapabilities"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaKeySystemMediaCapability.rs b/crates/web-sys/src/features/gen_MediaKeySystemMediaCapability.rs new file mode 100644 index 00000000..dd7624b2 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaKeySystemMediaCapability.rs @@ -0,0 +1,56 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaKeySystemMediaCapability ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaKeySystemMediaCapability` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemMediaCapability`*"] + pub type MediaKeySystemMediaCapability; +} +impl MediaKeySystemMediaCapability { + #[doc = "Construct a new `MediaKeySystemMediaCapability`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemMediaCapability`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `contentType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemMediaCapability`*"] + pub fn content_type(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("contentType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `robustness` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemMediaCapability`*"] + pub fn robustness(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("robustness"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaKeySystemStatus.rs b/crates/web-sys/src/features/gen_MediaKeySystemStatus.rs new file mode 100644 index 00000000..eaf627da --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaKeySystemStatus.rs @@ -0,0 +1,15 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `MediaKeySystemStatus` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `MediaKeySystemStatus`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MediaKeySystemStatus { + Available = "available", + ApiDisabled = "api-disabled", + CdmDisabled = "cdm-disabled", + CdmNotSupported = "cdm-not-supported", + CdmNotInstalled = "cdm-not-installed", + CdmCreated = "cdm-created", +} diff --git a/crates/web-sys/src/features/gen_MediaKeys.rs b/crates/web-sys/src/features/gen_MediaKeys.rs new file mode 100644 index 00000000..5f4a4dda --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaKeys.rs @@ -0,0 +1,78 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaKeys , typescript_type = "MediaKeys" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaKeys` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] + pub type MediaKeys; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaKeys" , js_name = keySystem ) ] + #[doc = "Getter for the `keySystem` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/keySystem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] + pub fn key_system(this: &MediaKeys) -> String; + #[cfg(feature = "MediaKeySession")] + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaKeys" , js_name = createSession ) ] + #[doc = "The `createSession()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/createSession)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`, `MediaKeys`*"] + pub fn create_session(this: &MediaKeys) -> Result; + #[cfg(all(feature = "MediaKeySession", feature = "MediaKeySessionType",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaKeys" , js_name = createSession ) ] + #[doc = "The `createSession()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/createSession)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySession`, `MediaKeySessionType`, `MediaKeys`*"] + pub fn create_session_with_session_type( + this: &MediaKeys, + session_type: MediaKeySessionType, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "MediaKeys" , js_name = getStatusForPolicy ) ] + #[doc = "The `getStatusForPolicy()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/getStatusForPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] + pub fn get_status_for_policy(this: &MediaKeys) -> ::js_sys::Promise; + #[cfg(feature = "MediaKeysPolicy")] + # [ wasm_bindgen ( method , structural , js_class = "MediaKeys" , js_name = getStatusForPolicy ) ] + #[doc = "The `getStatusForPolicy()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/getStatusForPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeys`, `MediaKeysPolicy`*"] + pub fn get_status_for_policy_with_policy( + this: &MediaKeys, + policy: &MediaKeysPolicy, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "MediaKeys" , js_name = setServerCertificate ) ] + #[doc = "The `setServerCertificate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/setServerCertificate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] + pub fn set_server_certificate_with_buffer_source( + this: &MediaKeys, + server_certificate: &::js_sys::Object, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "MediaKeys" , js_name = setServerCertificate ) ] + #[doc = "The `setServerCertificate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaKeys/setServerCertificate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeys`*"] + pub fn set_server_certificate_with_u8_array( + this: &MediaKeys, + server_certificate: &mut [u8], + ) -> ::js_sys::Promise; +} diff --git a/crates/web-sys/src/features/gen_MediaKeysPolicy.rs b/crates/web-sys/src/features/gen_MediaKeysPolicy.rs new file mode 100644 index 00000000..da03f062 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaKeysPolicy.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaKeysPolicy ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaKeysPolicy` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeysPolicy`*"] + pub type MediaKeysPolicy; +} +impl MediaKeysPolicy { + #[doc = "Construct a new `MediaKeysPolicy`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeysPolicy`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `minHdcpVersion` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeysPolicy`*"] + pub fn min_hdcp_version(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("minHdcpVersion"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaKeysRequirement.rs b/crates/web-sys/src/features/gen_MediaKeysRequirement.rs new file mode 100644 index 00000000..8703cbe6 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaKeysRequirement.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `MediaKeysRequirement` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `MediaKeysRequirement`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MediaKeysRequirement { + Required = "required", + Optional = "optional", + NotAllowed = "not-allowed", +} diff --git a/crates/web-sys/src/features/gen_MediaList.rs b/crates/web-sys/src/features/gen_MediaList.rs new file mode 100644 index 00000000..4a3b7e45 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaList.rs @@ -0,0 +1,63 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaList , typescript_type = "MediaList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] + pub type MediaList; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaList" , js_name = mediaText ) ] + #[doc = "Getter for the `mediaText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/mediaText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] + pub fn media_text(this: &MediaList) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaList" , js_name = mediaText ) ] + #[doc = "Setter for the `mediaText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/mediaText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] + pub fn set_media_text(this: &MediaList, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] + pub fn length(this: &MediaList) -> u32; + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaList" , js_name = appendMedium ) ] + #[doc = "The `appendMedium()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/appendMedium)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] + pub fn append_medium(this: &MediaList, new_medium: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaList" , js_name = deleteMedium ) ] + #[doc = "The `deleteMedium()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/deleteMedium)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] + pub fn delete_medium(this: &MediaList, old_medium: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "MediaList" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaList/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] + pub fn item(this: &MediaList, index: u32) -> Option; + #[wasm_bindgen(method, structural, js_class = "MediaList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaList`*"] + pub fn get(this: &MediaList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_MediaQueryList.rs b/crates/web-sys/src/features/gen_MediaQueryList.rs new file mode 100644 index 00000000..37ccbcc3 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaQueryList.rs @@ -0,0 +1,84 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaQueryList , typescript_type = "MediaQueryList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaQueryList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] + pub type MediaQueryList; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaQueryList" , js_name = media ) ] + #[doc = "Getter for the `media` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/media)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] + pub fn media(this: &MediaQueryList) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaQueryList" , js_name = matches ) ] + #[doc = "Getter for the `matches` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/matches)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] + pub fn matches(this: &MediaQueryList) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaQueryList" , js_name = onchange ) ] + #[doc = "Getter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] + pub fn onchange(this: &MediaQueryList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaQueryList" , js_name = onchange ) ] + #[doc = "Setter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] + pub fn set_onchange(this: &MediaQueryList, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaQueryList" , js_name = addListener ) ] + #[doc = "The `addListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/addListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] + pub fn add_listener_with_opt_callback( + this: &MediaQueryList, + listener: Option<&::js_sys::Function>, + ) -> Result<(), JsValue>; + #[cfg(feature = "EventListener")] + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaQueryList" , js_name = addListener ) ] + #[doc = "The `addListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/addListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventListener`, `MediaQueryList`*"] + pub fn add_listener_with_opt_event_listener( + this: &MediaQueryList, + listener: Option<&EventListener>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaQueryList" , js_name = removeListener ) ] + #[doc = "The `removeListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/removeListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`*"] + pub fn remove_listener_with_opt_callback( + this: &MediaQueryList, + listener: Option<&::js_sys::Function>, + ) -> Result<(), JsValue>; + #[cfg(feature = "EventListener")] + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaQueryList" , js_name = removeListener ) ] + #[doc = "The `removeListener()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryList/removeListener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventListener`, `MediaQueryList`*"] + pub fn remove_listener_with_opt_event_listener( + this: &MediaQueryList, + listener: Option<&EventListener>, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_MediaQueryListEvent.rs b/crates/web-sys/src/features/gen_MediaQueryListEvent.rs new file mode 100644 index 00000000..2422dd54 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaQueryListEvent.rs @@ -0,0 +1,46 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = MediaQueryListEvent , typescript_type = "MediaQueryListEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaQueryListEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEvent`*"] + pub type MediaQueryListEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaQueryListEvent" , js_name = media ) ] + #[doc = "Getter for the `media` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/media)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEvent`*"] + pub fn media(this: &MediaQueryListEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaQueryListEvent" , js_name = matches ) ] + #[doc = "Getter for the `matches` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/matches)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEvent`*"] + pub fn matches(this: &MediaQueryListEvent) -> bool; + #[wasm_bindgen(catch, constructor, js_class = "MediaQueryListEvent")] + #[doc = "The `new MediaQueryListEvent(..)` constructor, creating a new instance of `MediaQueryListEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/MediaQueryListEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "MediaQueryListEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "MediaQueryListEvent")] + #[doc = "The `new MediaQueryListEvent(..)` constructor, creating a new instance of `MediaQueryListEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaQueryListEvent/MediaQueryListEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEvent`, `MediaQueryListEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &MediaQueryListEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_MediaQueryListEventInit.rs b/crates/web-sys/src/features/gen_MediaQueryListEventInit.rs new file mode 100644 index 00000000..942ea9db --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaQueryListEventInit.rs @@ -0,0 +1,103 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaQueryListEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaQueryListEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] + pub type MediaQueryListEventInit; +} +impl MediaQueryListEventInit { + #[doc = "Construct a new `MediaQueryListEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `matches` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] + pub fn matches(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("matches"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `media` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryListEventInit`*"] + pub fn media(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("media"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaRecorder.rs b/crates/web-sys/src/features/gen_MediaRecorder.rs new file mode 100644 index 00000000..7f107e35 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaRecorder.rs @@ -0,0 +1,206 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaRecorder , typescript_type = "MediaRecorder" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaRecorder` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub type MediaRecorder; + #[cfg(feature = "MediaStream")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaRecorder" , js_name = stream ) ] + #[doc = "Getter for the `stream` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/stream)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`, `MediaStream`*"] + pub fn stream(this: &MediaRecorder) -> MediaStream; + #[cfg(feature = "RecordingState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaRecorder" , js_name = state ) ] + #[doc = "Getter for the `state` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/state)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`, `RecordingState`*"] + pub fn state(this: &MediaRecorder) -> RecordingState; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaRecorder" , js_name = mimeType ) ] + #[doc = "Getter for the `mimeType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/mimeType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn mime_type(this: &MediaRecorder) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaRecorder" , js_name = ondataavailable ) ] + #[doc = "Getter for the `ondataavailable` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ondataavailable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn ondataavailable(this: &MediaRecorder) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaRecorder" , js_name = ondataavailable ) ] + #[doc = "Setter for the `ondataavailable` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/ondataavailable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn set_ondataavailable(this: &MediaRecorder, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaRecorder" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn onerror(this: &MediaRecorder) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaRecorder" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn set_onerror(this: &MediaRecorder, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaRecorder" , js_name = onstart ) ] + #[doc = "Getter for the `onstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn onstart(this: &MediaRecorder) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaRecorder" , js_name = onstart ) ] + #[doc = "Setter for the `onstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn set_onstart(this: &MediaRecorder, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaRecorder" , js_name = onstop ) ] + #[doc = "Getter for the `onstop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn onstop(this: &MediaRecorder) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaRecorder" , js_name = onstop ) ] + #[doc = "Setter for the `onstop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onstop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn set_onstop(this: &MediaRecorder, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaRecorder" , js_name = onwarning ) ] + #[doc = "Getter for the `onwarning` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onwarning)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn onwarning(this: &MediaRecorder) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaRecorder" , js_name = onwarning ) ] + #[doc = "Setter for the `onwarning` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/onwarning)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn set_onwarning(this: &MediaRecorder, value: Option<&::js_sys::Function>); + #[cfg(feature = "MediaStream")] + #[wasm_bindgen(catch, constructor, js_class = "MediaRecorder")] + #[doc = "The `new MediaRecorder(..)` constructor, creating a new instance of `MediaRecorder`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/MediaRecorder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`, `MediaStream`*"] + pub fn new_with_media_stream(stream: &MediaStream) -> Result; + #[cfg(all(feature = "MediaRecorderOptions", feature = "MediaStream",))] + #[wasm_bindgen(catch, constructor, js_class = "MediaRecorder")] + #[doc = "The `new MediaRecorder(..)` constructor, creating a new instance of `MediaRecorder`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/MediaRecorder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`, `MediaRecorderOptions`, `MediaStream`*"] + pub fn new_with_media_stream_and_media_recorder_options( + stream: &MediaStream, + options: &MediaRecorderOptions, + ) -> Result; + #[cfg(feature = "AudioNode")] + #[wasm_bindgen(catch, constructor, js_class = "MediaRecorder")] + #[doc = "The `new MediaRecorder(..)` constructor, creating a new instance of `MediaRecorder`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/MediaRecorder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `MediaRecorder`*"] + pub fn new_with_audio_node(node: &AudioNode) -> Result; + #[cfg(feature = "AudioNode")] + #[wasm_bindgen(catch, constructor, js_class = "MediaRecorder")] + #[doc = "The `new MediaRecorder(..)` constructor, creating a new instance of `MediaRecorder`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/MediaRecorder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `MediaRecorder`*"] + pub fn new_with_audio_node_and_u32( + node: &AudioNode, + output: u32, + ) -> Result; + #[cfg(all(feature = "AudioNode", feature = "MediaRecorderOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "MediaRecorder")] + #[doc = "The `new MediaRecorder(..)` constructor, creating a new instance of `MediaRecorder`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/MediaRecorder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioNode`, `MediaRecorder`, `MediaRecorderOptions`*"] + pub fn new_with_audio_node_and_u32_and_options( + node: &AudioNode, + output: u32, + options: &MediaRecorderOptions, + ) -> Result; + # [ wasm_bindgen ( static_method_of = MediaRecorder , js_class = "MediaRecorder" , js_name = isTypeSupported ) ] + #[doc = "The `isTypeSupported()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/isTypeSupported)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn is_type_supported(type_: &str) -> bool; + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaRecorder" , js_name = pause ) ] + #[doc = "The `pause()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/pause)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn pause(this: &MediaRecorder) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaRecorder" , js_name = requestData ) ] + #[doc = "The `requestData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/requestData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn request_data(this: &MediaRecorder) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaRecorder" , js_name = resume ) ] + #[doc = "The `resume()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/resume)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn resume(this: &MediaRecorder) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaRecorder" , js_name = start ) ] + #[doc = "The `start()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn start(this: &MediaRecorder) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaRecorder" , js_name = start ) ] + #[doc = "The `start()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn start_with_time_slice(this: &MediaRecorder, time_slice: i32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaRecorder" , js_name = stop ) ] + #[doc = "The `stop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder/stop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorder`*"] + pub fn stop(this: &MediaRecorder) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_MediaRecorderErrorEvent.rs b/crates/web-sys/src/features/gen_MediaRecorderErrorEvent.rs new file mode 100644 index 00000000..11af9baa --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaRecorderErrorEvent.rs @@ -0,0 +1,33 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = MediaRecorderErrorEvent , typescript_type = "MediaRecorderErrorEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaRecorderErrorEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorderErrorEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEvent`*"] + pub type MediaRecorderErrorEvent; + #[cfg(feature = "DomException")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaRecorderErrorEvent" , js_name = error ) ] + #[doc = "Getter for the `error` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorderErrorEvent/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`, `MediaRecorderErrorEvent`*"] + pub fn error(this: &MediaRecorderErrorEvent) -> DomException; + #[cfg(feature = "MediaRecorderErrorEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "MediaRecorderErrorEvent")] + #[doc = "The `new MediaRecorderErrorEvent(..)` constructor, creating a new instance of `MediaRecorderErrorEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorderErrorEvent/MediaRecorderErrorEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEvent`, `MediaRecorderErrorEventInit`*"] + pub fn new( + type_: &str, + event_init_dict: &MediaRecorderErrorEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_MediaRecorderErrorEventInit.rs b/crates/web-sys/src/features/gen_MediaRecorderErrorEventInit.rs new file mode 100644 index 00000000..329219b6 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaRecorderErrorEventInit.rs @@ -0,0 +1,89 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaRecorderErrorEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaRecorderErrorEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEventInit`*"] + pub type MediaRecorderErrorEventInit; +} +impl MediaRecorderErrorEventInit { + #[cfg(feature = "DomException")] + #[doc = "Construct a new `MediaRecorderErrorEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`, `MediaRecorderErrorEventInit`*"] + pub fn new(error: &DomException) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.error(error); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorderErrorEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "DomException")] + #[doc = "Change the `error` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomException`, `MediaRecorderErrorEventInit`*"] + pub fn error(&mut self, val: &DomException) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaRecorderOptions.rs b/crates/web-sys/src/features/gen_MediaRecorderOptions.rs new file mode 100644 index 00000000..51bdc641 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaRecorderOptions.rs @@ -0,0 +1,90 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaRecorderOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaRecorderOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] + pub type MediaRecorderOptions; +} +impl MediaRecorderOptions { + #[doc = "Construct a new `MediaRecorderOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `audioBitsPerSecond` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] + pub fn audio_bits_per_second(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("audioBitsPerSecond"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `bitsPerSecond` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] + pub fn bits_per_second(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bitsPerSecond"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mimeType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] + pub fn mime_type(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mimeType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `videoBitsPerSecond` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaRecorderOptions`*"] + pub fn video_bits_per_second(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("videoBitsPerSecond"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaSource.rs b/crates/web-sys/src/features/gen_MediaSource.rs new file mode 100644 index 00000000..4ac0e89d --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaSource.rs @@ -0,0 +1,160 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaSource , typescript_type = "MediaSource" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaSource` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] + pub type MediaSource; + #[cfg(feature = "SourceBufferList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaSource" , js_name = sourceBuffers ) ] + #[doc = "Getter for the `sourceBuffers` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/sourceBuffers)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `SourceBufferList`*"] + pub fn source_buffers(this: &MediaSource) -> SourceBufferList; + #[cfg(feature = "SourceBufferList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaSource" , js_name = activeSourceBuffers ) ] + #[doc = "Getter for the `activeSourceBuffers` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/activeSourceBuffers)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `SourceBufferList`*"] + pub fn active_source_buffers(this: &MediaSource) -> SourceBufferList; + #[cfg(feature = "MediaSourceReadyState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaSource" , js_name = readyState ) ] + #[doc = "Getter for the `readyState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/readyState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `MediaSourceReadyState`*"] + pub fn ready_state(this: &MediaSource) -> MediaSourceReadyState; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaSource" , js_name = duration ) ] + #[doc = "Getter for the `duration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/duration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] + pub fn duration(this: &MediaSource) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaSource" , js_name = duration ) ] + #[doc = "Setter for the `duration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/duration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] + pub fn set_duration(this: &MediaSource, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaSource" , js_name = onsourceopen ) ] + #[doc = "Getter for the `onsourceopen` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceopen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] + pub fn onsourceopen(this: &MediaSource) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaSource" , js_name = onsourceopen ) ] + #[doc = "Setter for the `onsourceopen` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceopen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] + pub fn set_onsourceopen(this: &MediaSource, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaSource" , js_name = onsourceended ) ] + #[doc = "Getter for the `onsourceended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] + pub fn onsourceended(this: &MediaSource) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaSource" , js_name = onsourceended ) ] + #[doc = "Setter for the `onsourceended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] + pub fn set_onsourceended(this: &MediaSource, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaSource" , js_name = onsourceclosed ) ] + #[doc = "Getter for the `onsourceclosed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceclosed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] + pub fn onsourceclosed(this: &MediaSource) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaSource" , js_name = onsourceclosed ) ] + #[doc = "Setter for the `onsourceclosed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/onsourceclosed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] + pub fn set_onsourceclosed(this: &MediaSource, value: Option<&::js_sys::Function>); + #[wasm_bindgen(catch, constructor, js_class = "MediaSource")] + #[doc = "The `new MediaSource(..)` constructor, creating a new instance of `MediaSource`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/MediaSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] + pub fn new() -> Result; + #[cfg(feature = "SourceBuffer")] + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaSource" , js_name = addSourceBuffer ) ] + #[doc = "The `addSourceBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/addSourceBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `SourceBuffer`*"] + pub fn add_source_buffer(this: &MediaSource, type_: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaSource" , js_name = clearLiveSeekableRange ) ] + #[doc = "The `clearLiveSeekableRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/clearLiveSeekableRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] + pub fn clear_live_seekable_range(this: &MediaSource) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaSource" , js_name = endOfStream ) ] + #[doc = "The `endOfStream()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/endOfStream)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] + pub fn end_of_stream(this: &MediaSource) -> Result<(), JsValue>; + #[cfg(feature = "MediaSourceEndOfStreamError")] + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaSource" , js_name = endOfStream ) ] + #[doc = "The `endOfStream()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/endOfStream)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `MediaSourceEndOfStreamError`*"] + pub fn end_of_stream_with_error( + this: &MediaSource, + error: MediaSourceEndOfStreamError, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( static_method_of = MediaSource , js_class = "MediaSource" , js_name = isTypeSupported ) ] + #[doc = "The `isTypeSupported()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/isTypeSupported)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] + pub fn is_type_supported(type_: &str) -> bool; + #[cfg(feature = "SourceBuffer")] + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaSource" , js_name = removeSourceBuffer ) ] + #[doc = "The `removeSourceBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/removeSourceBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `SourceBuffer`*"] + pub fn remove_source_buffer( + this: &MediaSource, + source_buffer: &SourceBuffer, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaSource" , js_name = setLiveSeekableRange ) ] + #[doc = "The `setLiveSeekableRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaSource/setLiveSeekableRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`*"] + pub fn set_live_seekable_range(this: &MediaSource, start: f64, end: f64) + -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_MediaSourceEndOfStreamError.rs b/crates/web-sys/src/features/gen_MediaSourceEndOfStreamError.rs new file mode 100644 index 00000000..76edf0e6 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaSourceEndOfStreamError.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `MediaSourceEndOfStreamError` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `MediaSourceEndOfStreamError`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MediaSourceEndOfStreamError { + Network = "network", + Decode = "decode", +} diff --git a/crates/web-sys/src/features/gen_MediaSourceEnum.rs b/crates/web-sys/src/features/gen_MediaSourceEnum.rs new file mode 100644 index 00000000..a3d8326e --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaSourceEnum.rs @@ -0,0 +1,17 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `MediaSourceEnum` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `MediaSourceEnum`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MediaSourceEnum { + Camera = "camera", + Screen = "screen", + Application = "application", + Window = "window", + Browser = "browser", + Microphone = "microphone", + AudioCapture = "audioCapture", + Other = "other", +} diff --git a/crates/web-sys/src/features/gen_MediaSourceReadyState.rs b/crates/web-sys/src/features/gen_MediaSourceReadyState.rs new file mode 100644 index 00000000..b0033cbc --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaSourceReadyState.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `MediaSourceReadyState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `MediaSourceReadyState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MediaSourceReadyState { + Closed = "closed", + Open = "open", + Ended = "ended", +} diff --git a/crates/web-sys/src/features/gen_MediaStream.rs b/crates/web-sys/src/features/gen_MediaStream.rs new file mode 100644 index 00000000..6e8b8b36 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaStream.rs @@ -0,0 +1,136 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaStream , typescript_type = "MediaStream" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaStream` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] + pub type MediaStream; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStream" , js_name = id ) ] + #[doc = "Getter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] + pub fn id(this: &MediaStream) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStream" , js_name = active ) ] + #[doc = "Getter for the `active` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/active)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] + pub fn active(this: &MediaStream) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStream" , js_name = onaddtrack ) ] + #[doc = "Getter for the `onaddtrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/onaddtrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] + pub fn onaddtrack(this: &MediaStream) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaStream" , js_name = onaddtrack ) ] + #[doc = "Setter for the `onaddtrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/onaddtrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] + pub fn set_onaddtrack(this: &MediaStream, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStream" , js_name = onremovetrack ) ] + #[doc = "Getter for the `onremovetrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/onremovetrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] + pub fn onremovetrack(this: &MediaStream) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaStream" , js_name = onremovetrack ) ] + #[doc = "Setter for the `onremovetrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/onremovetrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] + pub fn set_onremovetrack(this: &MediaStream, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStream" , js_name = currentTime ) ] + #[doc = "Getter for the `currentTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/currentTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] + pub fn current_time(this: &MediaStream) -> f64; + #[wasm_bindgen(catch, constructor, js_class = "MediaStream")] + #[doc = "The `new MediaStream(..)` constructor, creating a new instance of `MediaStream`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/MediaStream)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "MediaStream")] + #[doc = "The `new MediaStream(..)` constructor, creating a new instance of `MediaStream`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/MediaStream)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] + pub fn new_with_stream(stream: &MediaStream) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "MediaStream")] + #[doc = "The `new MediaStream(..)` constructor, creating a new instance of `MediaStream`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/MediaStream)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] + pub fn new_with_tracks(tracks: &::wasm_bindgen::JsValue) -> Result; + #[cfg(feature = "MediaStreamTrack")] + # [ wasm_bindgen ( method , structural , js_class = "MediaStream" , js_name = addTrack ) ] + #[doc = "The `addTrack()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/addTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`*"] + pub fn add_track(this: &MediaStream, track: &MediaStreamTrack); + # [ wasm_bindgen ( method , structural , js_class = "MediaStream" , js_name = clone ) ] + #[doc = "The `clone()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/clone)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] + pub fn clone(this: &MediaStream) -> MediaStream; + # [ wasm_bindgen ( method , structural , js_class = "MediaStream" , js_name = getAudioTracks ) ] + #[doc = "The `getAudioTracks()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/getAudioTracks)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] + pub fn get_audio_tracks(this: &MediaStream) -> ::js_sys::Array; + #[cfg(feature = "MediaStreamTrack")] + # [ wasm_bindgen ( method , structural , js_class = "MediaStream" , js_name = getTrackById ) ] + #[doc = "The `getTrackById()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/getTrackById)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`*"] + pub fn get_track_by_id(this: &MediaStream, track_id: &str) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "MediaStream" , js_name = getTracks ) ] + #[doc = "The `getTracks()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/getTracks)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] + pub fn get_tracks(this: &MediaStream) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "MediaStream" , js_name = getVideoTracks ) ] + #[doc = "The `getVideoTracks()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/getVideoTracks)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`*"] + pub fn get_video_tracks(this: &MediaStream) -> ::js_sys::Array; + #[cfg(feature = "MediaStreamTrack")] + # [ wasm_bindgen ( method , structural , js_class = "MediaStream" , js_name = removeTrack ) ] + #[doc = "The `removeTrack()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStream/removeTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`*"] + pub fn remove_track(this: &MediaStream, track: &MediaStreamTrack); +} diff --git a/crates/web-sys/src/features/gen_MediaStreamAudioDestinationNode.rs b/crates/web-sys/src/features/gen_MediaStreamAudioDestinationNode.rs new file mode 100644 index 00000000..4ee745c1 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaStreamAudioDestinationNode.rs @@ -0,0 +1,41 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaStreamAudioDestinationNode , typescript_type = "MediaStreamAudioDestinationNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaStreamAudioDestinationNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioDestinationNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamAudioDestinationNode`*"] + pub type MediaStreamAudioDestinationNode; + #[cfg(feature = "MediaStream")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStreamAudioDestinationNode" , js_name = stream ) ] + #[doc = "Getter for the `stream` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioDestinationNode/stream)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamAudioDestinationNode`*"] + pub fn stream(this: &MediaStreamAudioDestinationNode) -> MediaStream; + #[cfg(feature = "AudioContext")] + #[wasm_bindgen(catch, constructor, js_class = "MediaStreamAudioDestinationNode")] + #[doc = "The `new MediaStreamAudioDestinationNode(..)` constructor, creating a new instance of `MediaStreamAudioDestinationNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioDestinationNode/MediaStreamAudioDestinationNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `MediaStreamAudioDestinationNode`*"] + pub fn new(context: &AudioContext) -> Result; + #[cfg(all(feature = "AudioContext", feature = "AudioNodeOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "MediaStreamAudioDestinationNode")] + #[doc = "The `new MediaStreamAudioDestinationNode(..)` constructor, creating a new instance of `MediaStreamAudioDestinationNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioDestinationNode/MediaStreamAudioDestinationNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `AudioNodeOptions`, `MediaStreamAudioDestinationNode`*"] + pub fn new_with_options( + context: &AudioContext, + options: &AudioNodeOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_MediaStreamAudioSourceNode.rs b/crates/web-sys/src/features/gen_MediaStreamAudioSourceNode.rs new file mode 100644 index 00000000..23446673 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaStreamAudioSourceNode.rs @@ -0,0 +1,25 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaStreamAudioSourceNode , typescript_type = "MediaStreamAudioSourceNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaStreamAudioSourceNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioSourceNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamAudioSourceNode`*"] + pub type MediaStreamAudioSourceNode; + #[cfg(all(feature = "AudioContext", feature = "MediaStreamAudioSourceOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "MediaStreamAudioSourceNode")] + #[doc = "The `new MediaStreamAudioSourceNode(..)` constructor, creating a new instance of `MediaStreamAudioSourceNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamAudioSourceNode/MediaStreamAudioSourceNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContext`, `MediaStreamAudioSourceNode`, `MediaStreamAudioSourceOptions`*"] + pub fn new( + context: &AudioContext, + options: &MediaStreamAudioSourceOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_MediaStreamAudioSourceOptions.rs b/crates/web-sys/src/features/gen_MediaStreamAudioSourceOptions.rs new file mode 100644 index 00000000..de5e7a9e --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaStreamAudioSourceOptions.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaStreamAudioSourceOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaStreamAudioSourceOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamAudioSourceOptions`*"] + pub type MediaStreamAudioSourceOptions; +} +impl MediaStreamAudioSourceOptions { + #[cfg(feature = "MediaStream")] + #[doc = "Construct a new `MediaStreamAudioSourceOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamAudioSourceOptions`*"] + pub fn new(media_stream: &MediaStream) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.media_stream(media_stream); + ret + } + #[cfg(feature = "MediaStream")] + #[doc = "Change the `mediaStream` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamAudioSourceOptions`*"] + pub fn media_stream(&mut self, val: &MediaStream) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mediaStream"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaStreamConstraints.rs b/crates/web-sys/src/features/gen_MediaStreamConstraints.rs new file mode 100644 index 00000000..d581fe5c --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaStreamConstraints.rs @@ -0,0 +1,95 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaStreamConstraints ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaStreamConstraints` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] + pub type MediaStreamConstraints; +} +impl MediaStreamConstraints { + #[doc = "Construct a new `MediaStreamConstraints`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `audio` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] + pub fn audio(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("audio"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `fake` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] + pub fn fake(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("fake"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `peerIdentity` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] + pub fn peer_identity(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("peerIdentity"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `picture` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] + pub fn picture(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("picture"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `video` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamConstraints`*"] + pub fn video(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("video"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaStreamError.rs b/crates/web-sys/src/features/gen_MediaStreamError.rs new file mode 100644 index 00000000..01083ef4 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaStreamError.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = MediaStreamError , typescript_type = "MediaStreamError" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaStreamError` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamError`*"] + pub type MediaStreamError; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStreamError" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamError/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamError`*"] + pub fn name(this: &MediaStreamError) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStreamError" , js_name = message ) ] + #[doc = "Getter for the `message` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamError/message)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamError`*"] + pub fn message(this: &MediaStreamError) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStreamError" , js_name = constraint ) ] + #[doc = "Getter for the `constraint` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamError/constraint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamError`*"] + pub fn constraint(this: &MediaStreamError) -> Option; +} diff --git a/crates/web-sys/src/features/gen_MediaStreamEvent.rs b/crates/web-sys/src/features/gen_MediaStreamEvent.rs new file mode 100644 index 00000000..6d620d95 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaStreamEvent.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = MediaStreamEvent , typescript_type = "MediaStreamEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaStreamEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamEvent`*"] + pub type MediaStreamEvent; + #[cfg(feature = "MediaStream")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStreamEvent" , js_name = stream ) ] + #[doc = "Getter for the `stream` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamEvent/stream)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamEvent`*"] + pub fn stream(this: &MediaStreamEvent) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "MediaStreamEvent")] + #[doc = "The `new MediaStreamEvent(..)` constructor, creating a new instance of `MediaStreamEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamEvent/MediaStreamEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "MediaStreamEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "MediaStreamEvent")] + #[doc = "The `new MediaStreamEvent(..)` constructor, creating a new instance of `MediaStreamEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamEvent/MediaStreamEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamEvent`, `MediaStreamEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &MediaStreamEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_MediaStreamEventInit.rs b/crates/web-sys/src/features/gen_MediaStreamEventInit.rs new file mode 100644 index 00000000..b1c6ff03 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaStreamEventInit.rs @@ -0,0 +1,88 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaStreamEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaStreamEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamEventInit`*"] + pub type MediaStreamEventInit; +} +impl MediaStreamEventInit { + #[doc = "Construct a new `MediaStreamEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "MediaStream")] + #[doc = "Change the `stream` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamEventInit`*"] + pub fn stream(&mut self, val: Option<&MediaStream>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("stream"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaStreamTrack.rs b/crates/web-sys/src/features/gen_MediaStreamTrack.rs new file mode 100644 index 00000000..44dea2a2 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaStreamTrack.rs @@ -0,0 +1,154 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = MediaStreamTrack , typescript_type = "MediaStreamTrack" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaStreamTrack` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] + pub type MediaStreamTrack; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStreamTrack" , js_name = kind ) ] + #[doc = "Getter for the `kind` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/kind)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] + pub fn kind(this: &MediaStreamTrack) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStreamTrack" , js_name = id ) ] + #[doc = "Getter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] + pub fn id(this: &MediaStreamTrack) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStreamTrack" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] + pub fn label(this: &MediaStreamTrack) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStreamTrack" , js_name = enabled ) ] + #[doc = "Getter for the `enabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] + pub fn enabled(this: &MediaStreamTrack) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaStreamTrack" , js_name = enabled ) ] + #[doc = "Setter for the `enabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/enabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] + pub fn set_enabled(this: &MediaStreamTrack, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStreamTrack" , js_name = muted ) ] + #[doc = "Getter for the `muted` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/muted)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] + pub fn muted(this: &MediaStreamTrack) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStreamTrack" , js_name = onmute ) ] + #[doc = "Getter for the `onmute` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onmute)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] + pub fn onmute(this: &MediaStreamTrack) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaStreamTrack" , js_name = onmute ) ] + #[doc = "Setter for the `onmute` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onmute)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] + pub fn set_onmute(this: &MediaStreamTrack, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStreamTrack" , js_name = onunmute ) ] + #[doc = "Getter for the `onunmute` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onunmute)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] + pub fn onunmute(this: &MediaStreamTrack) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaStreamTrack" , js_name = onunmute ) ] + #[doc = "Setter for the `onunmute` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onunmute)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] + pub fn set_onunmute(this: &MediaStreamTrack, value: Option<&::js_sys::Function>); + #[cfg(feature = "MediaStreamTrackState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStreamTrack" , js_name = readyState ) ] + #[doc = "Getter for the `readyState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/readyState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaStreamTrackState`*"] + pub fn ready_state(this: &MediaStreamTrack) -> MediaStreamTrackState; + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStreamTrack" , js_name = onended ) ] + #[doc = "Getter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] + pub fn onended(this: &MediaStreamTrack) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MediaStreamTrack" , js_name = onended ) ] + #[doc = "Setter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] + pub fn set_onended(this: &MediaStreamTrack, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaStreamTrack" , js_name = applyConstraints ) ] + #[doc = "The `applyConstraints()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/applyConstraints)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] + pub fn apply_constraints(this: &MediaStreamTrack) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "MediaTrackConstraints")] + # [ wasm_bindgen ( catch , method , structural , js_class = "MediaStreamTrack" , js_name = applyConstraints ) ] + #[doc = "The `applyConstraints()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/applyConstraints)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaTrackConstraints`*"] + pub fn apply_constraints_with_constraints( + this: &MediaStreamTrack, + constraints: &MediaTrackConstraints, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "MediaStreamTrack" , js_name = clone ) ] + #[doc = "The `clone()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/clone)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] + pub fn clone(this: &MediaStreamTrack) -> MediaStreamTrack; + #[cfg(feature = "MediaTrackConstraints")] + # [ wasm_bindgen ( method , structural , js_class = "MediaStreamTrack" , js_name = getConstraints ) ] + #[doc = "The `getConstraints()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getConstraints)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaTrackConstraints`*"] + pub fn get_constraints(this: &MediaStreamTrack) -> MediaTrackConstraints; + #[cfg(feature = "MediaTrackSettings")] + # [ wasm_bindgen ( method , structural , js_class = "MediaStreamTrack" , js_name = getSettings ) ] + #[doc = "The `getSettings()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/getSettings)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaTrackSettings`*"] + pub fn get_settings(this: &MediaStreamTrack) -> MediaTrackSettings; + # [ wasm_bindgen ( method , structural , js_class = "MediaStreamTrack" , js_name = stop ) ] + #[doc = "The `stop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/stop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`*"] + pub fn stop(this: &MediaStreamTrack); +} diff --git a/crates/web-sys/src/features/gen_MediaStreamTrackEvent.rs b/crates/web-sys/src/features/gen_MediaStreamTrackEvent.rs new file mode 100644 index 00000000..1d219f65 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaStreamTrackEvent.rs @@ -0,0 +1,33 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = MediaStreamTrackEvent , typescript_type = "MediaStreamTrackEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaStreamTrackEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEvent`*"] + pub type MediaStreamTrackEvent; + #[cfg(feature = "MediaStreamTrack")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MediaStreamTrackEvent" , js_name = track ) ] + #[doc = "Getter for the `track` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackEvent/track)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaStreamTrackEvent`*"] + pub fn track(this: &MediaStreamTrackEvent) -> MediaStreamTrack; + #[cfg(feature = "MediaStreamTrackEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "MediaStreamTrackEvent")] + #[doc = "The `new MediaStreamTrackEvent(..)` constructor, creating a new instance of `MediaStreamTrackEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrackEvent/MediaStreamTrackEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEvent`, `MediaStreamTrackEventInit`*"] + pub fn new( + type_: &str, + event_init_dict: &MediaStreamTrackEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_MediaStreamTrackEventInit.rs b/crates/web-sys/src/features/gen_MediaStreamTrackEventInit.rs new file mode 100644 index 00000000..02dfb14b --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaStreamTrackEventInit.rs @@ -0,0 +1,89 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaStreamTrackEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaStreamTrackEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEventInit`*"] + pub type MediaStreamTrackEventInit; +} +impl MediaStreamTrackEventInit { + #[cfg(feature = "MediaStreamTrack")] + #[doc = "Construct a new `MediaStreamTrackEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaStreamTrackEventInit`*"] + pub fn new(track: &MediaStreamTrack) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.track(track); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "MediaStreamTrack")] + #[doc = "Change the `track` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `MediaStreamTrackEventInit`*"] + pub fn track(&mut self, val: &MediaStreamTrack) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("track"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaStreamTrackState.rs b/crates/web-sys/src/features/gen_MediaStreamTrackState.rs new file mode 100644 index 00000000..66d23902 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaStreamTrackState.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `MediaStreamTrackState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `MediaStreamTrackState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MediaStreamTrackState { + Live = "live", + Ended = "ended", +} diff --git a/crates/web-sys/src/features/gen_MediaTrackConstraintSet.rs b/crates/web-sys/src/features/gen_MediaTrackConstraintSet.rs new file mode 100644 index 00000000..4c6a2f63 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaTrackConstraintSet.rs @@ -0,0 +1,287 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaTrackConstraintSet ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaTrackConstraintSet` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub type MediaTrackConstraintSet; +} +impl MediaTrackConstraintSet { + #[doc = "Construct a new `MediaTrackConstraintSet`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `autoGainControl` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub fn auto_gain_control(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("autoGainControl"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `browserWindow` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub fn browser_window(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("browserWindow"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub fn channel_count(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `deviceId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub fn device_id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("deviceId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `echoCancellation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub fn echo_cancellation(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("echoCancellation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `facingMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub fn facing_mode(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("facingMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `frameRate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub fn frame_rate(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("frameRate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `height` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub fn height(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mediaSource` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub fn media_source(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mediaSource"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `noiseSuppression` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub fn noise_suppression(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("noiseSuppression"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `scrollWithPage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub fn scroll_with_page(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("scrollWithPage"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `viewportHeight` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub fn viewport_height(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("viewportHeight"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `viewportOffsetX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub fn viewport_offset_x(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("viewportOffsetX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `viewportOffsetY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub fn viewport_offset_y(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("viewportOffsetY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `viewportWidth` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub fn viewport_width(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("viewportWidth"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `width` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraintSet`*"] + pub fn width(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaTrackConstraints.rs b/crates/web-sys/src/features/gen_MediaTrackConstraints.rs new file mode 100644 index 00000000..7a1e8b06 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaTrackConstraints.rs @@ -0,0 +1,304 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaTrackConstraints ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaTrackConstraints` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub type MediaTrackConstraints; +} +impl MediaTrackConstraints { + #[doc = "Construct a new `MediaTrackConstraints`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `autoGainControl` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn auto_gain_control(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("autoGainControl"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `browserWindow` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn browser_window(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("browserWindow"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn channel_count(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `deviceId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn device_id(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("deviceId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `echoCancellation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn echo_cancellation(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("echoCancellation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `facingMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn facing_mode(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("facingMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `frameRate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn frame_rate(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("frameRate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `height` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn height(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mediaSource` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn media_source(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mediaSource"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `noiseSuppression` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn noise_suppression(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("noiseSuppression"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `scrollWithPage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn scroll_with_page(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("scrollWithPage"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `viewportHeight` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn viewport_height(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("viewportHeight"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `viewportOffsetX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn viewport_offset_x(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("viewportOffsetX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `viewportOffsetY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn viewport_offset_y(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("viewportOffsetY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `viewportWidth` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn viewport_width(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("viewportWidth"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `width` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn width(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `advanced` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackConstraints`*"] + pub fn advanced(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("advanced"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaTrackSettings.rs b/crates/web-sys/src/features/gen_MediaTrackSettings.rs new file mode 100644 index 00000000..8a919309 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaTrackSettings.rs @@ -0,0 +1,168 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaTrackSettings ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaTrackSettings` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] + pub type MediaTrackSettings; +} +impl MediaTrackSettings { + #[doc = "Construct a new `MediaTrackSettings`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `autoGainControl` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] + pub fn auto_gain_control(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("autoGainControl"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] + pub fn channel_count(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `deviceId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] + pub fn device_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("deviceId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `echoCancellation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] + pub fn echo_cancellation(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("echoCancellation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `facingMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] + pub fn facing_mode(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("facingMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `frameRate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] + pub fn frame_rate(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("frameRate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `height` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] + pub fn height(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `noiseSuppression` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] + pub fn noise_suppression(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("noiseSuppression"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `width` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSettings`*"] + pub fn width(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MediaTrackSupportedConstraints.rs b/crates/web-sys/src/features/gen_MediaTrackSupportedConstraints.rs new file mode 100644 index 00000000..3bca9c61 --- /dev/null +++ b/crates/web-sys/src/features/gen_MediaTrackSupportedConstraints.rs @@ -0,0 +1,267 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MediaTrackSupportedConstraints ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MediaTrackSupportedConstraints` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] + pub type MediaTrackSupportedConstraints; +} +impl MediaTrackSupportedConstraints { + #[doc = "Construct a new `MediaTrackSupportedConstraints`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `aspectRatio` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] + pub fn aspect_ratio(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("aspectRatio"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `autoGainControl` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] + pub fn auto_gain_control(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("autoGainControl"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] + pub fn channel_count(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `deviceId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] + pub fn device_id(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("deviceId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `echoCancellation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] + pub fn echo_cancellation(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("echoCancellation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `facingMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] + pub fn facing_mode(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("facingMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `frameRate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] + pub fn frame_rate(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("frameRate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `groupId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] + pub fn group_id(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("groupId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `height` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] + pub fn height(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `latency` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] + pub fn latency(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("latency"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `noiseSuppression` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] + pub fn noise_suppression(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("noiseSuppression"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `sampleRate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] + pub fn sample_rate(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sampleRate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `sampleSize` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] + pub fn sample_size(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sampleSize"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `volume` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] + pub fn volume(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("volume"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `width` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaTrackSupportedConstraints`*"] + pub fn width(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MessageChannel.rs b/crates/web-sys/src/features/gen_MessageChannel.rs new file mode 100644 index 00000000..9755c10d --- /dev/null +++ b/crates/web-sys/src/features/gen_MessageChannel.rs @@ -0,0 +1,37 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MessageChannel , typescript_type = "MessageChannel" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MessageChannel` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageChannel`*"] + pub type MessageChannel; + #[cfg(feature = "MessagePort")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MessageChannel" , js_name = port1 ) ] + #[doc = "Getter for the `port1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/port1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageChannel`, `MessagePort`*"] + pub fn port1(this: &MessageChannel) -> MessagePort; + #[cfg(feature = "MessagePort")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MessageChannel" , js_name = port2 ) ] + #[doc = "Getter for the `port2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/port2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageChannel`, `MessagePort`*"] + pub fn port2(this: &MessageChannel) -> MessagePort; + #[wasm_bindgen(catch, constructor, js_class = "MessageChannel")] + #[doc = "The `new MessageChannel(..)` constructor, creating a new instance of `MessageChannel`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageChannel/MessageChannel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageChannel`*"] + pub fn new() -> Result; +} diff --git a/crates/web-sys/src/features/gen_MessageEvent.rs b/crates/web-sys/src/features/gen_MessageEvent.rs new file mode 100644 index 00000000..842ccfb6 --- /dev/null +++ b/crates/web-sys/src/features/gen_MessageEvent.rs @@ -0,0 +1,240 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = MessageEvent , typescript_type = "MessageEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MessageEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] + pub type MessageEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "MessageEvent" , js_name = data ) ] + #[doc = "Getter for the `data` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/data)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] + pub fn data(this: &MessageEvent) -> ::wasm_bindgen::JsValue; + # [ wasm_bindgen ( structural , method , getter , js_class = "MessageEvent" , js_name = origin ) ] + #[doc = "Getter for the `origin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/origin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] + pub fn origin(this: &MessageEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "MessageEvent" , js_name = lastEventId ) ] + #[doc = "Getter for the `lastEventId` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/lastEventId)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] + pub fn last_event_id(this: &MessageEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "MessageEvent" , js_name = source ) ] + #[doc = "Getter for the `source` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/source)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] + pub fn source(this: &MessageEvent) -> Option<::js_sys::Object>; + # [ wasm_bindgen ( structural , method , getter , js_class = "MessageEvent" , js_name = ports ) ] + #[doc = "Getter for the `ports` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/ports)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] + pub fn ports(this: &MessageEvent) -> ::js_sys::Array; + #[wasm_bindgen(catch, constructor, js_class = "MessageEvent")] + #[doc = "The `new MessageEvent(..)` constructor, creating a new instance of `MessageEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/MessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "MessageEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "MessageEvent")] + #[doc = "The `new MessageEvent(..)` constructor, creating a new instance of `MessageEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/MessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`, `MessageEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &MessageEventInit, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "MessageEvent" , js_name = initMessageEvent ) ] + #[doc = "The `initMessageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] + pub fn init_message_event(this: &MessageEvent, type_: &str); + # [ wasm_bindgen ( method , structural , js_class = "MessageEvent" , js_name = initMessageEvent ) ] + #[doc = "The `initMessageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] + pub fn init_message_event_with_bubbles(this: &MessageEvent, type_: &str, bubbles: bool); + # [ wasm_bindgen ( method , structural , js_class = "MessageEvent" , js_name = initMessageEvent ) ] + #[doc = "The `initMessageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] + pub fn init_message_event_with_bubbles_and_cancelable( + this: &MessageEvent, + type_: &str, + bubbles: bool, + cancelable: bool, + ); + # [ wasm_bindgen ( method , structural , js_class = "MessageEvent" , js_name = initMessageEvent ) ] + #[doc = "The `initMessageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] + pub fn init_message_event_with_bubbles_and_cancelable_and_data( + this: &MessageEvent, + type_: &str, + bubbles: bool, + cancelable: bool, + data: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( method , structural , js_class = "MessageEvent" , js_name = initMessageEvent ) ] + #[doc = "The `initMessageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] + pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin( + this: &MessageEvent, + type_: &str, + bubbles: bool, + cancelable: bool, + data: &::wasm_bindgen::JsValue, + origin: &str, + ); + # [ wasm_bindgen ( method , structural , js_class = "MessageEvent" , js_name = initMessageEvent ) ] + #[doc = "The `initMessageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`*"] + pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin_and_last_event_id( + this: &MessageEvent, + type_: &str, + bubbles: bool, + cancelable: bool, + data: &::wasm_bindgen::JsValue, + origin: &str, + last_event_id: &str, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MessageEvent" , js_name = initMessageEvent ) ] + #[doc = "The `initMessageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`, `Window`*"] + pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin_and_last_event_id_and_opt_window( + this: &MessageEvent, + type_: &str, + bubbles: bool, + cancelable: bool, + data: &::wasm_bindgen::JsValue, + origin: &str, + last_event_id: &str, + source: Option<&Window>, + ); + #[cfg(feature = "MessagePort")] + # [ wasm_bindgen ( method , structural , js_class = "MessageEvent" , js_name = initMessageEvent ) ] + #[doc = "The `initMessageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`, `MessagePort`*"] + pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin_and_last_event_id_and_opt_message_port( + this: &MessageEvent, + type_: &str, + bubbles: bool, + cancelable: bool, + data: &::wasm_bindgen::JsValue, + origin: &str, + last_event_id: &str, + source: Option<&MessagePort>, + ); + #[cfg(feature = "ServiceWorker")] + # [ wasm_bindgen ( method , structural , js_class = "MessageEvent" , js_name = initMessageEvent ) ] + #[doc = "The `initMessageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`, `ServiceWorker`*"] + pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin_and_last_event_id_and_opt_service_worker( + this: &MessageEvent, + type_: &str, + bubbles: bool, + cancelable: bool, + data: &::wasm_bindgen::JsValue, + origin: &str, + last_event_id: &str, + source: Option<&ServiceWorker>, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MessageEvent" , js_name = initMessageEvent ) ] + #[doc = "The `initMessageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`, `Window`*"] + pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin_and_last_event_id_and_opt_window_and_ports( + this: &MessageEvent, + type_: &str, + bubbles: bool, + cancelable: bool, + data: &::wasm_bindgen::JsValue, + origin: &str, + last_event_id: &str, + source: Option<&Window>, + ports: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "MessagePort")] + # [ wasm_bindgen ( method , structural , js_class = "MessageEvent" , js_name = initMessageEvent ) ] + #[doc = "The `initMessageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`, `MessagePort`*"] + pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin_and_last_event_id_and_opt_message_port_and_ports( + this: &MessageEvent, + type_: &str, + bubbles: bool, + cancelable: bool, + data: &::wasm_bindgen::JsValue, + origin: &str, + last_event_id: &str, + source: Option<&MessagePort>, + ports: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "ServiceWorker")] + # [ wasm_bindgen ( method , structural , js_class = "MessageEvent" , js_name = initMessageEvent ) ] + #[doc = "The `initMessageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessageEvent/initMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEvent`, `ServiceWorker`*"] + pub fn init_message_event_with_bubbles_and_cancelable_and_data_and_origin_and_last_event_id_and_opt_service_worker_and_ports( + this: &MessageEvent, + type_: &str, + bubbles: bool, + cancelable: bool, + data: &::wasm_bindgen::JsValue, + origin: &str, + last_event_id: &str, + source: Option<&ServiceWorker>, + ports: &::wasm_bindgen::JsValue, + ); +} diff --git a/crates/web-sys/src/features/gen_MessageEventInit.rs b/crates/web-sys/src/features/gen_MessageEventInit.rs new file mode 100644 index 00000000..fbe22993 --- /dev/null +++ b/crates/web-sys/src/features/gen_MessageEventInit.rs @@ -0,0 +1,144 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MessageEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MessageEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] + pub type MessageEventInit; +} +impl MessageEventInit { + #[doc = "Construct a new `MessageEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `data` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] + pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `lastEventId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] + pub fn last_event_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("lastEventId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `origin` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] + pub fn origin(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ports` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] + pub fn ports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ports"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `source` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessageEventInit`*"] + pub fn source(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MessagePort.rs b/crates/web-sys/src/features/gen_MessagePort.rs new file mode 100644 index 00000000..3cbbc6e4 --- /dev/null +++ b/crates/web-sys/src/features/gen_MessagePort.rs @@ -0,0 +1,77 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = MessagePort , typescript_type = "MessagePort" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MessagePort` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] + pub type MessagePort; + # [ wasm_bindgen ( structural , method , getter , js_class = "MessagePort" , js_name = onmessage ) ] + #[doc = "Getter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] + pub fn onmessage(this: &MessagePort) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MessagePort" , js_name = onmessage ) ] + #[doc = "Setter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] + pub fn set_onmessage(this: &MessagePort, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "MessagePort" , js_name = onmessageerror ) ] + #[doc = "Getter for the `onmessageerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessageerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] + pub fn onmessageerror(this: &MessagePort) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MessagePort" , js_name = onmessageerror ) ] + #[doc = "Setter for the `onmessageerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/onmessageerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] + pub fn set_onmessageerror(this: &MessagePort, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( method , structural , js_class = "MessagePort" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] + pub fn close(this: &MessagePort); + # [ wasm_bindgen ( catch , method , structural , js_class = "MessagePort" , js_name = postMessage ) ] + #[doc = "The `postMessage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/postMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] + pub fn post_message( + this: &MessagePort, + message: &::wasm_bindgen::JsValue, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "MessagePort" , js_name = postMessage ) ] + #[doc = "The `postMessage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/postMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] + pub fn post_message_with_transferable( + this: &MessagePort, + message: &::wasm_bindgen::JsValue, + transferable: &::wasm_bindgen::JsValue, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "MessagePort" , js_name = start ) ] + #[doc = "The `start()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MessagePort/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessagePort`*"] + pub fn start(this: &MessagePort); +} diff --git a/crates/web-sys/src/features/gen_MidiAccess.rs b/crates/web-sys/src/features/gen_MidiAccess.rs new file mode 100644 index 00000000..7b22f4dd --- /dev/null +++ b/crates/web-sys/src/features/gen_MidiAccess.rs @@ -0,0 +1,51 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = MIDIAccess , typescript_type = "MIDIAccess" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MidiAccess` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiAccess`*"] + pub type MidiAccess; + #[cfg(feature = "MidiInputMap")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MIDIAccess" , js_name = inputs ) ] + #[doc = "Getter for the `inputs` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/inputs)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiAccess`, `MidiInputMap`*"] + pub fn inputs(this: &MidiAccess) -> MidiInputMap; + #[cfg(feature = "MidiOutputMap")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MIDIAccess" , js_name = outputs ) ] + #[doc = "Getter for the `outputs` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/outputs)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiAccess`, `MidiOutputMap`*"] + pub fn outputs(this: &MidiAccess) -> MidiOutputMap; + # [ wasm_bindgen ( structural , method , getter , js_class = "MIDIAccess" , js_name = onstatechange ) ] + #[doc = "Getter for the `onstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/onstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiAccess`*"] + pub fn onstatechange(this: &MidiAccess) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MIDIAccess" , js_name = onstatechange ) ] + #[doc = "Setter for the `onstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/onstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiAccess`*"] + pub fn set_onstatechange(this: &MidiAccess, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "MIDIAccess" , js_name = sysexEnabled ) ] + #[doc = "Getter for the `sysexEnabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIAccess/sysexEnabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiAccess`*"] + pub fn sysex_enabled(this: &MidiAccess) -> bool; +} diff --git a/crates/web-sys/src/features/gen_MidiConnectionEvent.rs b/crates/web-sys/src/features/gen_MidiConnectionEvent.rs new file mode 100644 index 00000000..59594ae9 --- /dev/null +++ b/crates/web-sys/src/features/gen_MidiConnectionEvent.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = MIDIConnectionEvent , typescript_type = "MIDIConnectionEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MidiConnectionEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIConnectionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEvent`*"] + pub type MidiConnectionEvent; + #[cfg(feature = "MidiPort")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MIDIConnectionEvent" , js_name = port ) ] + #[doc = "Getter for the `port` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIConnectionEvent/port)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEvent`, `MidiPort`*"] + pub fn port(this: &MidiConnectionEvent) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "MIDIConnectionEvent")] + #[doc = "The `new MidiConnectionEvent(..)` constructor, creating a new instance of `MidiConnectionEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIConnectionEvent/MIDIConnectionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "MidiConnectionEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "MIDIConnectionEvent")] + #[doc = "The `new MidiConnectionEvent(..)` constructor, creating a new instance of `MidiConnectionEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIConnectionEvent/MIDIConnectionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEvent`, `MidiConnectionEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &MidiConnectionEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_MidiConnectionEventInit.rs b/crates/web-sys/src/features/gen_MidiConnectionEventInit.rs new file mode 100644 index 00000000..8fecb273 --- /dev/null +++ b/crates/web-sys/src/features/gen_MidiConnectionEventInit.rs @@ -0,0 +1,87 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MIDIConnectionEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MidiConnectionEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`*"] + pub type MidiConnectionEventInit; +} +impl MidiConnectionEventInit { + #[doc = "Construct a new `MidiConnectionEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "MidiPort")] + #[doc = "Change the `port` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiConnectionEventInit`, `MidiPort`*"] + pub fn port(&mut self, val: Option<&MidiPort>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("port"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MidiInput.rs b/crates/web-sys/src/features/gen_MidiInput.rs new file mode 100644 index 00000000..813f391b --- /dev/null +++ b/crates/web-sys/src/features/gen_MidiInput.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = MidiPort , extends = EventTarget , extends = :: js_sys :: Object , js_name = MIDIInput , typescript_type = "MIDIInput" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MidiInput` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInput)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiInput`*"] + pub type MidiInput; + # [ wasm_bindgen ( structural , method , getter , js_class = "MIDIInput" , js_name = onmidimessage ) ] + #[doc = "Getter for the `onmidimessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInput/onmidimessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiInput`*"] + pub fn onmidimessage(this: &MidiInput) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MIDIInput" , js_name = onmidimessage ) ] + #[doc = "Setter for the `onmidimessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInput/onmidimessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiInput`*"] + pub fn set_onmidimessage(this: &MidiInput, value: Option<&::js_sys::Function>); +} diff --git a/crates/web-sys/src/features/gen_MidiInputMap.rs b/crates/web-sys/src/features/gen_MidiInputMap.rs new file mode 100644 index 00000000..93a42be3 --- /dev/null +++ b/crates/web-sys/src/features/gen_MidiInputMap.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MIDIInputMap , typescript_type = "MIDIInputMap" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MidiInputMap` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIInputMap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiInputMap`*"] + pub type MidiInputMap; +} diff --git a/crates/web-sys/src/features/gen_MidiMessageEvent.rs b/crates/web-sys/src/features/gen_MidiMessageEvent.rs new file mode 100644 index 00000000..a2d002c4 --- /dev/null +++ b/crates/web-sys/src/features/gen_MidiMessageEvent.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = MIDIMessageEvent , typescript_type = "MIDIMessageEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MidiMessageEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiMessageEvent`*"] + pub type MidiMessageEvent; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "MIDIMessageEvent" , js_name = data ) ] + #[doc = "Getter for the `data` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIMessageEvent/data)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiMessageEvent`*"] + pub fn data(this: &MidiMessageEvent) -> Result, JsValue>; + #[wasm_bindgen(catch, constructor, js_class = "MIDIMessageEvent")] + #[doc = "The `new MidiMessageEvent(..)` constructor, creating a new instance of `MidiMessageEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIMessageEvent/MIDIMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiMessageEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "MidiMessageEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "MIDIMessageEvent")] + #[doc = "The `new MidiMessageEvent(..)` constructor, creating a new instance of `MidiMessageEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIMessageEvent/MIDIMessageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiMessageEvent`, `MidiMessageEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &MidiMessageEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_MidiMessageEventInit.rs b/crates/web-sys/src/features/gen_MidiMessageEventInit.rs new file mode 100644 index 00000000..49d0fc31 --- /dev/null +++ b/crates/web-sys/src/features/gen_MidiMessageEventInit.rs @@ -0,0 +1,73 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MIDIMessageEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MidiMessageEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] + pub type MidiMessageEventInit; +} +impl MidiMessageEventInit { + #[doc = "Construct a new `MidiMessageEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiMessageEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MidiOptions.rs b/crates/web-sys/src/features/gen_MidiOptions.rs new file mode 100644 index 00000000..3ebc87a8 --- /dev/null +++ b/crates/web-sys/src/features/gen_MidiOptions.rs @@ -0,0 +1,52 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MIDIOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MidiOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiOptions`*"] + pub type MidiOptions; +} +impl MidiOptions { + #[doc = "Construct a new `MidiOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `software` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiOptions`*"] + pub fn software(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("software"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `sysex` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiOptions`*"] + pub fn sysex(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("sysex"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MidiOutput.rs b/crates/web-sys/src/features/gen_MidiOutput.rs new file mode 100644 index 00000000..2bf253af --- /dev/null +++ b/crates/web-sys/src/features/gen_MidiOutput.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = MidiPort , extends = EventTarget , extends = :: js_sys :: Object , js_name = MIDIOutput , typescript_type = "MIDIOutput" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MidiOutput` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"] + pub type MidiOutput; + # [ wasm_bindgen ( method , structural , js_class = "MIDIOutput" , js_name = clear ) ] + #[doc = "The `clear()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/clear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"] + pub fn clear(this: &MidiOutput); + # [ wasm_bindgen ( catch , method , structural , js_class = "MIDIOutput" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"] + pub fn send(this: &MidiOutput, data: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "MIDIOutput" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutput/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiOutput`*"] + pub fn send_with_timestamp( + this: &MidiOutput, + data: &::wasm_bindgen::JsValue, + timestamp: f64, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_MidiOutputMap.rs b/crates/web-sys/src/features/gen_MidiOutputMap.rs new file mode 100644 index 00000000..6a4527cc --- /dev/null +++ b/crates/web-sys/src/features/gen_MidiOutputMap.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MIDIOutputMap , typescript_type = "MIDIOutputMap" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MidiOutputMap` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIOutputMap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiOutputMap`*"] + pub type MidiOutputMap; +} diff --git a/crates/web-sys/src/features/gen_MidiPort.rs b/crates/web-sys/src/features/gen_MidiPort.rs new file mode 100644 index 00000000..5edefcde --- /dev/null +++ b/crates/web-sys/src/features/gen_MidiPort.rs @@ -0,0 +1,94 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = MIDIPort , typescript_type = "MIDIPort" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MidiPort` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] + pub type MidiPort; + # [ wasm_bindgen ( structural , method , getter , js_class = "MIDIPort" , js_name = id ) ] + #[doc = "Getter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] + pub fn id(this: &MidiPort) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "MIDIPort" , js_name = manufacturer ) ] + #[doc = "Getter for the `manufacturer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/manufacturer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] + pub fn manufacturer(this: &MidiPort) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "MIDIPort" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] + pub fn name(this: &MidiPort) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "MIDIPort" , js_name = version ) ] + #[doc = "Getter for the `version` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/version)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] + pub fn version(this: &MidiPort) -> Option; + #[cfg(feature = "MidiPortType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MIDIPort" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiPort`, `MidiPortType`*"] + pub fn type_(this: &MidiPort) -> MidiPortType; + #[cfg(feature = "MidiPortDeviceState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MIDIPort" , js_name = state ) ] + #[doc = "Getter for the `state` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/state)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiPort`, `MidiPortDeviceState`*"] + pub fn state(this: &MidiPort) -> MidiPortDeviceState; + #[cfg(feature = "MidiPortConnectionState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MIDIPort" , js_name = connection ) ] + #[doc = "Getter for the `connection` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/connection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiPort`, `MidiPortConnectionState`*"] + pub fn connection(this: &MidiPort) -> MidiPortConnectionState; + # [ wasm_bindgen ( structural , method , getter , js_class = "MIDIPort" , js_name = onstatechange ) ] + #[doc = "Getter for the `onstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/onstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] + pub fn onstatechange(this: &MidiPort) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "MIDIPort" , js_name = onstatechange ) ] + #[doc = "Setter for the `onstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/onstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] + pub fn set_onstatechange(this: &MidiPort, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( method , structural , js_class = "MIDIPort" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] + pub fn close(this: &MidiPort) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "MIDIPort" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MIDIPort/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiPort`*"] + pub fn open(this: &MidiPort) -> ::js_sys::Promise; +} diff --git a/crates/web-sys/src/features/gen_MidiPortConnectionState.rs b/crates/web-sys/src/features/gen_MidiPortConnectionState.rs new file mode 100644 index 00000000..ae25b7e4 --- /dev/null +++ b/crates/web-sys/src/features/gen_MidiPortConnectionState.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `MidiPortConnectionState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `MidiPortConnectionState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MidiPortConnectionState { + Open = "open", + Closed = "closed", + Pending = "pending", +} diff --git a/crates/web-sys/src/features/gen_MidiPortDeviceState.rs b/crates/web-sys/src/features/gen_MidiPortDeviceState.rs new file mode 100644 index 00000000..c443c64e --- /dev/null +++ b/crates/web-sys/src/features/gen_MidiPortDeviceState.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `MidiPortDeviceState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `MidiPortDeviceState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MidiPortDeviceState { + Disconnected = "disconnected", + Connected = "connected", +} diff --git a/crates/web-sys/src/features/gen_MidiPortType.rs b/crates/web-sys/src/features/gen_MidiPortType.rs new file mode 100644 index 00000000..d987ea7b --- /dev/null +++ b/crates/web-sys/src/features/gen_MidiPortType.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `MidiPortType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `MidiPortType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum MidiPortType { + Input = "input", + Output = "output", +} diff --git a/crates/web-sys/src/features/gen_MimeType.rs b/crates/web-sys/src/features/gen_MimeType.rs new file mode 100644 index 00000000..f4480c48 --- /dev/null +++ b/crates/web-sys/src/features/gen_MimeType.rs @@ -0,0 +1,43 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MimeType , typescript_type = "MimeType" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MimeType` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MimeType`*"] + pub type MimeType; + # [ wasm_bindgen ( structural , method , getter , js_class = "MimeType" , js_name = description ) ] + #[doc = "Getter for the `description` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType/description)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MimeType`*"] + pub fn description(this: &MimeType) -> String; + #[cfg(feature = "Plugin")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MimeType" , js_name = enabledPlugin ) ] + #[doc = "Getter for the `enabledPlugin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType/enabledPlugin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MimeType`, `Plugin`*"] + pub fn enabled_plugin(this: &MimeType) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "MimeType" , js_name = suffixes ) ] + #[doc = "Getter for the `suffixes` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType/suffixes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MimeType`*"] + pub fn suffixes(this: &MimeType) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "MimeType" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeType/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MimeType`*"] + pub fn type_(this: &MimeType) -> String; +} diff --git a/crates/web-sys/src/features/gen_MimeTypeArray.rs b/crates/web-sys/src/features/gen_MimeTypeArray.rs new file mode 100644 index 00000000..59c87dbd --- /dev/null +++ b/crates/web-sys/src/features/gen_MimeTypeArray.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MimeTypeArray , typescript_type = "MimeTypeArray" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MimeTypeArray` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MimeTypeArray`*"] + pub type MimeTypeArray; + # [ wasm_bindgen ( structural , method , getter , js_class = "MimeTypeArray" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MimeTypeArray`*"] + pub fn length(this: &MimeTypeArray) -> u32; + #[cfg(feature = "MimeType")] + # [ wasm_bindgen ( method , structural , js_class = "MimeTypeArray" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MimeType`, `MimeTypeArray`*"] + pub fn item(this: &MimeTypeArray, index: u32) -> Option; + #[cfg(feature = "MimeType")] + # [ wasm_bindgen ( method , structural , js_class = "MimeTypeArray" , js_name = namedItem ) ] + #[doc = "The `namedItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MimeTypeArray/namedItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MimeType`, `MimeTypeArray`*"] + pub fn named_item(this: &MimeTypeArray, name: &str) -> Option; + #[cfg(feature = "MimeType")] + #[wasm_bindgen(method, structural, js_class = "MimeTypeArray", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MimeType`, `MimeTypeArray`*"] + pub fn get_with_index(this: &MimeTypeArray, index: u32) -> Option; + #[cfg(feature = "MimeType")] + #[wasm_bindgen(method, structural, js_class = "MimeTypeArray", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MimeType`, `MimeTypeArray`*"] + pub fn get_with_name(this: &MimeTypeArray, name: &str) -> Option; +} diff --git a/crates/web-sys/src/features/gen_MouseEvent.rs b/crates/web-sys/src/features/gen_MouseEvent.rs new file mode 100644 index 00000000..4681356c --- /dev/null +++ b/crates/web-sys/src/features/gen_MouseEvent.rs @@ -0,0 +1,430 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = MouseEvent , typescript_type = "MouseEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MouseEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub type MouseEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = screenX ) ] + #[doc = "Getter for the `screenX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn screen_x(this: &MouseEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = screenY ) ] + #[doc = "Getter for the `screenY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn screen_y(this: &MouseEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = clientX ) ] + #[doc = "Getter for the `clientX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn client_x(this: &MouseEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = clientY ) ] + #[doc = "Getter for the `clientY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn client_y(this: &MouseEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn x(this: &MouseEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn y(this: &MouseEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = offsetX ) ] + #[doc = "Getter for the `offsetX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn offset_x(this: &MouseEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = offsetY ) ] + #[doc = "Getter for the `offsetY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn offset_y(this: &MouseEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = ctrlKey ) ] + #[doc = "Getter for the `ctrlKey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/ctrlKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn ctrl_key(this: &MouseEvent) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = shiftKey ) ] + #[doc = "Getter for the `shiftKey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/shiftKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn shift_key(this: &MouseEvent) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = altKey ) ] + #[doc = "Getter for the `altKey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/altKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn alt_key(this: &MouseEvent) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = metaKey ) ] + #[doc = "Getter for the `metaKey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/metaKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn meta_key(this: &MouseEvent) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = button ) ] + #[doc = "Getter for the `button` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn button(this: &MouseEvent) -> i16; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = buttons ) ] + #[doc = "Getter for the `buttons` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn buttons(this: &MouseEvent) -> u16; + #[cfg(feature = "EventTarget")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = relatedTarget ) ] + #[doc = "Getter for the `relatedTarget` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/relatedTarget)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseEvent`*"] + pub fn related_target(this: &MouseEvent) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = region ) ] + #[doc = "Getter for the `region` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/region)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn region(this: &MouseEvent) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = movementX ) ] + #[doc = "Getter for the `movementX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn movement_x(this: &MouseEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseEvent" , js_name = movementY ) ] + #[doc = "Getter for the `movementY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn movement_y(this: &MouseEvent) -> i32; + #[wasm_bindgen(catch, constructor, js_class = "MouseEvent")] + #[doc = "The `new MouseEvent(..)` constructor, creating a new instance of `MouseEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn new(type_arg: &str) -> Result; + #[cfg(feature = "MouseEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "MouseEvent")] + #[doc = "The `new MouseEvent(..)` constructor, creating a new instance of `MouseEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `MouseEventInit`*"] + pub fn new_with_mouse_event_init_dict( + type_arg: &str, + mouse_event_init_dict: &MouseEventInit, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "MouseEvent" , js_name = getModifierState ) ] + #[doc = "The `getModifierState()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/getModifierState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn get_modifier_state(this: &MouseEvent, key_arg: &str) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "MouseEvent" , js_name = initMouseEvent ) ] + #[doc = "The `initMouseEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn init_mouse_event(this: &MouseEvent, type_arg: &str); + # [ wasm_bindgen ( method , structural , js_class = "MouseEvent" , js_name = initMouseEvent ) ] + #[doc = "The `initMouseEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn init_mouse_event_with_can_bubble_arg( + this: &MouseEvent, + type_arg: &str, + can_bubble_arg: bool, + ); + # [ wasm_bindgen ( method , structural , js_class = "MouseEvent" , js_name = initMouseEvent ) ] + #[doc = "The `initMouseEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`*"] + pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg( + this: &MouseEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseEvent" , js_name = initMouseEvent ) ] + #[doc = "The `initMouseEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] + pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg( + this: &MouseEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseEvent" , js_name = initMouseEvent ) ] + #[doc = "The `initMouseEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] + pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg( + this: &MouseEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + detail_arg: i32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseEvent" , js_name = initMouseEvent ) ] + #[doc = "The `initMouseEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] + pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg( + this: &MouseEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + detail_arg: i32, + screen_x_arg: i32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseEvent" , js_name = initMouseEvent ) ] + #[doc = "The `initMouseEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] + pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg( + this: &MouseEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + detail_arg: i32, + screen_x_arg: i32, + screen_y_arg: i32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseEvent" , js_name = initMouseEvent ) ] + #[doc = "The `initMouseEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] + pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg( + this: &MouseEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + detail_arg: i32, + screen_x_arg: i32, + screen_y_arg: i32, + client_x_arg: i32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseEvent" , js_name = initMouseEvent ) ] + #[doc = "The `initMouseEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] + pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg( + this: &MouseEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + detail_arg: i32, + screen_x_arg: i32, + screen_y_arg: i32, + client_x_arg: i32, + client_y_arg: i32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseEvent" , js_name = initMouseEvent ) ] + #[doc = "The `initMouseEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] + pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg( + this: &MouseEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + detail_arg: i32, + screen_x_arg: i32, + screen_y_arg: i32, + client_x_arg: i32, + client_y_arg: i32, + ctrl_key_arg: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseEvent" , js_name = initMouseEvent ) ] + #[doc = "The `initMouseEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] + pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg( + this: &MouseEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + detail_arg: i32, + screen_x_arg: i32, + screen_y_arg: i32, + client_x_arg: i32, + client_y_arg: i32, + ctrl_key_arg: bool, + alt_key_arg: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseEvent" , js_name = initMouseEvent ) ] + #[doc = "The `initMouseEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] + pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg( + this: &MouseEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + detail_arg: i32, + screen_x_arg: i32, + screen_y_arg: i32, + client_x_arg: i32, + client_y_arg: i32, + ctrl_key_arg: bool, + alt_key_arg: bool, + shift_key_arg: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseEvent" , js_name = initMouseEvent ) ] + #[doc = "The `initMouseEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] + pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg_and_meta_key_arg( + this: &MouseEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + detail_arg: i32, + screen_x_arg: i32, + screen_y_arg: i32, + client_x_arg: i32, + client_y_arg: i32, + ctrl_key_arg: bool, + alt_key_arg: bool, + shift_key_arg: bool, + meta_key_arg: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseEvent" , js_name = initMouseEvent ) ] + #[doc = "The `initMouseEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEvent`, `Window`*"] + pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg_and_meta_key_arg_and_button_arg( + this: &MouseEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + detail_arg: i32, + screen_x_arg: i32, + screen_y_arg: i32, + client_x_arg: i32, + client_y_arg: i32, + ctrl_key_arg: bool, + alt_key_arg: bool, + shift_key_arg: bool, + meta_key_arg: bool, + button_arg: i16, + ); + #[cfg(all(feature = "EventTarget", feature = "Window",))] + # [ wasm_bindgen ( method , structural , js_class = "MouseEvent" , js_name = initMouseEvent ) ] + #[doc = "The `initMouseEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/initMouseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseEvent`, `Window`*"] + pub fn init_mouse_event_with_can_bubble_arg_and_cancelable_arg_and_view_arg_and_detail_arg_and_screen_x_arg_and_screen_y_arg_and_client_x_arg_and_client_y_arg_and_ctrl_key_arg_and_alt_key_arg_and_shift_key_arg_and_meta_key_arg_and_button_arg_and_related_target_arg( + this: &MouseEvent, + type_arg: &str, + can_bubble_arg: bool, + cancelable_arg: bool, + view_arg: Option<&Window>, + detail_arg: i32, + screen_x_arg: i32, + screen_y_arg: i32, + client_x_arg: i32, + client_y_arg: i32, + ctrl_key_arg: bool, + alt_key_arg: bool, + shift_key_arg: bool, + meta_key_arg: bool, + button_arg: i16, + related_target_arg: Option<&EventTarget>, + ); +} diff --git a/crates/web-sys/src/features/gen_MouseEventInit.rs b/crates/web-sys/src/features/gen_MouseEventInit.rs new file mode 100644 index 00000000..9ad468ce --- /dev/null +++ b/crates/web-sys/src/features/gen_MouseEventInit.rs @@ -0,0 +1,470 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MouseEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MouseEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub type MouseEventInit; +} +impl MouseEventInit { + #[doc = "Construct a new `MouseEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `detail` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn detail(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Window")] + #[doc = "Change the `view` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`, `Window`*"] + pub fn view(&mut self, val: Option<&Window>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `altKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn alt_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("altKey"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ctrlKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn ctrl_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("ctrlKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `metaKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn meta_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("metaKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierAltGraph` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierAltGraph"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierCapsLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierCapsLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierFn` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn modifier_fn(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierFn"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierFnLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierFnLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierNumLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierNumLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierOS` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn modifier_os(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierOS"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierScrollLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierScrollLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierSymbol` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierSymbol"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierSymbolLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierSymbolLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `shiftKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn shift_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("shiftKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `button` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn button(&mut self, val: i16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("button"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `buttons` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn buttons(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("buttons"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `clientX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn client_x(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("clientX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `clientY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn client_y(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("clientY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `movementX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn movement_x(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("movementX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `movementY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn movement_y(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("movementY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "EventTarget")] + #[doc = "Change the `relatedTarget` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseEventInit`*"] + pub fn related_target(&mut self, val: Option<&EventTarget>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("relatedTarget"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `screenX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn screen_x(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("screenX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `screenY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseEventInit`*"] + pub fn screen_y(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("screenY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MouseScrollEvent.rs b/crates/web-sys/src/features/gen_MouseScrollEvent.rs new file mode 100644 index 00000000..5f4e4767 --- /dev/null +++ b/crates/web-sys/src/features/gen_MouseScrollEvent.rs @@ -0,0 +1,321 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = MouseEvent , extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = MouseScrollEvent , typescript_type = "MouseScrollEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MouseScrollEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"] + pub type MouseScrollEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "MouseScrollEvent" , js_name = axis ) ] + #[doc = "Getter for the `axis` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/axis)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"] + pub fn axis(this: &MouseScrollEvent) -> i32; + # [ wasm_bindgen ( method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent ) ] + #[doc = "The `initMouseScrollEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"] + pub fn init_mouse_scroll_event(this: &MouseScrollEvent, type_: &str); + # [ wasm_bindgen ( method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent ) ] + #[doc = "The `initMouseScrollEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"] + pub fn init_mouse_scroll_event_with_can_bubble( + this: &MouseScrollEvent, + type_: &str, + can_bubble: bool, + ); + # [ wasm_bindgen ( method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent ) ] + #[doc = "The `initMouseScrollEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"] + pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable( + this: &MouseScrollEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent ) ] + #[doc = "The `initMouseScrollEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] + pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view( + this: &MouseScrollEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent ) ] + #[doc = "The `initMouseScrollEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] + pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail( + this: &MouseScrollEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent ) ] + #[doc = "The `initMouseScrollEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] + pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x( + this: &MouseScrollEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + screen_x: i32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent ) ] + #[doc = "The `initMouseScrollEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] + pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y( + this: &MouseScrollEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + screen_x: i32, + screen_y: i32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent ) ] + #[doc = "The `initMouseScrollEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] + pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x( + this: &MouseScrollEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + screen_x: i32, + screen_y: i32, + client_x: i32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent ) ] + #[doc = "The `initMouseScrollEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] + pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y( + this: &MouseScrollEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + screen_x: i32, + screen_y: i32, + client_x: i32, + client_y: i32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent ) ] + #[doc = "The `initMouseScrollEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] + pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key( + this: &MouseScrollEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + screen_x: i32, + screen_y: i32, + client_x: i32, + client_y: i32, + ctrl_key: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent ) ] + #[doc = "The `initMouseScrollEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] + pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key( + this: &MouseScrollEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + screen_x: i32, + screen_y: i32, + client_x: i32, + client_y: i32, + ctrl_key: bool, + alt_key: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent ) ] + #[doc = "The `initMouseScrollEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] + pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key( + this: &MouseScrollEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + screen_x: i32, + screen_y: i32, + client_x: i32, + client_y: i32, + ctrl_key: bool, + alt_key: bool, + shift_key: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent ) ] + #[doc = "The `initMouseScrollEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] + pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key( + this: &MouseScrollEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + screen_x: i32, + screen_y: i32, + client_x: i32, + client_y: i32, + ctrl_key: bool, + alt_key: bool, + shift_key: bool, + meta_key: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent ) ] + #[doc = "The `initMouseScrollEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`, `Window`*"] + pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_button( + this: &MouseScrollEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + screen_x: i32, + screen_y: i32, + client_x: i32, + client_y: i32, + ctrl_key: bool, + alt_key: bool, + shift_key: bool, + meta_key: bool, + button: i16, + ); + #[cfg(all(feature = "EventTarget", feature = "Window",))] + # [ wasm_bindgen ( method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent ) ] + #[doc = "The `initMouseScrollEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseScrollEvent`, `Window`*"] + pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_button_and_related_target( + this: &MouseScrollEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + screen_x: i32, + screen_y: i32, + client_x: i32, + client_y: i32, + ctrl_key: bool, + alt_key: bool, + shift_key: bool, + meta_key: bool, + button: i16, + related_target: Option<&EventTarget>, + ); + #[cfg(all(feature = "EventTarget", feature = "Window",))] + # [ wasm_bindgen ( method , structural , js_class = "MouseScrollEvent" , js_name = initMouseScrollEvent ) ] + #[doc = "The `initMouseScrollEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MouseScrollEvent/initMouseScrollEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `MouseScrollEvent`, `Window`*"] + pub fn init_mouse_scroll_event_with_can_bubble_and_cancelable_and_view_and_detail_and_screen_x_and_screen_y_and_client_x_and_client_y_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_button_and_related_target_and_axis( + this: &MouseScrollEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + screen_x: i32, + screen_y: i32, + client_x: i32, + client_y: i32, + ctrl_key: bool, + alt_key: bool, + shift_key: bool, + meta_key: bool, + button: i16, + related_target: Option<&EventTarget>, + axis: i32, + ); +} +impl MouseScrollEvent { + #[doc = "The `MouseScrollEvent.HORIZONTAL_AXIS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"] + pub const HORIZONTAL_AXIS: i32 = 1u64 as i32; + #[doc = "The `MouseScrollEvent.VERTICAL_AXIS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MouseScrollEvent`*"] + pub const VERTICAL_AXIS: i32 = 2u64 as i32; +} diff --git a/crates/web-sys/src/features/gen_MozDebug.rs b/crates/web-sys/src/features/gen_MozDebug.rs new file mode 100644 index 00000000..eb02dd6b --- /dev/null +++ b/crates/web-sys/src/features/gen_MozDebug.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = MOZ_debug , typescript_type = "MOZ_debug" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MozDebug` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MOZ_debug)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MozDebug`*"] + pub type MozDebug; + # [ wasm_bindgen ( catch , method , structural , js_class = "MOZ_debug" , js_name = getParameter ) ] + #[doc = "The `getParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MOZ_debug/getParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MozDebug`*"] + pub fn get_parameter(this: &MozDebug, pname: u32) -> Result<::wasm_bindgen::JsValue, JsValue>; +} +impl MozDebug { + #[doc = "The `MOZ_debug.EXTENSIONS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MozDebug`*"] + pub const EXTENSIONS: u32 = 7939u64 as u32; + #[doc = "The `MOZ_debug.WSI_INFO` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MozDebug`*"] + pub const WSI_INFO: u32 = 65536u64 as u32; + #[doc = "The `MOZ_debug.UNPACK_REQUIRE_FASTPATH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MozDebug`*"] + pub const UNPACK_REQUIRE_FASTPATH: u32 = 65537u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_MutationEvent.rs b/crates/web-sys/src/features/gen_MutationEvent.rs new file mode 100644 index 00000000..66444f30 --- /dev/null +++ b/crates/web-sys/src/features/gen_MutationEvent.rs @@ -0,0 +1,174 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = MutationEvent , typescript_type = "MutationEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MutationEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] + pub type MutationEvent; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MutationEvent" , js_name = relatedNode ) ] + #[doc = "Getter for the `relatedNode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/relatedNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationEvent`, `Node`*"] + pub fn related_node(this: &MutationEvent) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "MutationEvent" , js_name = prevValue ) ] + #[doc = "Getter for the `prevValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/prevValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] + pub fn prev_value(this: &MutationEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "MutationEvent" , js_name = newValue ) ] + #[doc = "Getter for the `newValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/newValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] + pub fn new_value(this: &MutationEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "MutationEvent" , js_name = attrName ) ] + #[doc = "Getter for the `attrName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/attrName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] + pub fn attr_name(this: &MutationEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "MutationEvent" , js_name = attrChange ) ] + #[doc = "Getter for the `attrChange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/attrChange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] + pub fn attr_change(this: &MutationEvent) -> u16; + # [ wasm_bindgen ( catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent ) ] + #[doc = "The `initMutationEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] + pub fn init_mutation_event(this: &MutationEvent, type_: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent ) ] + #[doc = "The `initMutationEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] + pub fn init_mutation_event_with_can_bubble( + this: &MutationEvent, + type_: &str, + can_bubble: bool, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent ) ] + #[doc = "The `initMutationEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] + pub fn init_mutation_event_with_can_bubble_and_cancelable( + this: &MutationEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + ) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent ) ] + #[doc = "The `initMutationEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationEvent`, `Node`*"] + pub fn init_mutation_event_with_can_bubble_and_cancelable_and_related_node( + this: &MutationEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + related_node: Option<&Node>, + ) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent ) ] + #[doc = "The `initMutationEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationEvent`, `Node`*"] + pub fn init_mutation_event_with_can_bubble_and_cancelable_and_related_node_and_prev_value( + this: &MutationEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + related_node: Option<&Node>, + prev_value: &str, + ) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent ) ] + #[doc = "The `initMutationEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationEvent`, `Node`*"] + pub fn init_mutation_event_with_can_bubble_and_cancelable_and_related_node_and_prev_value_and_new_value( + this: &MutationEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + related_node: Option<&Node>, + prev_value: &str, + new_value: &str, + ) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent ) ] + #[doc = "The `initMutationEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationEvent`, `Node`*"] + pub fn init_mutation_event_with_can_bubble_and_cancelable_and_related_node_and_prev_value_and_new_value_and_attr_name( + this: &MutationEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + related_node: Option<&Node>, + prev_value: &str, + new_value: &str, + attr_name: &str, + ) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "MutationEvent" , js_name = initMutationEvent ) ] + #[doc = "The `initMutationEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationEvent/initMutationEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationEvent`, `Node`*"] + pub fn init_mutation_event_with_can_bubble_and_cancelable_and_related_node_and_prev_value_and_new_value_and_attr_name_and_attr_change( + this: &MutationEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + related_node: Option<&Node>, + prev_value: &str, + new_value: &str, + attr_name: &str, + attr_change: u16, + ) -> Result<(), JsValue>; +} +impl MutationEvent { + #[doc = "The `MutationEvent.MODIFICATION` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] + pub const MODIFICATION: u16 = 1u64 as u16; + #[doc = "The `MutationEvent.ADDITION` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] + pub const ADDITION: u16 = 2u64 as u16; + #[doc = "The `MutationEvent.REMOVAL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationEvent`*"] + pub const REMOVAL: u16 = 3u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_MutationObserver.rs b/crates/web-sys/src/features/gen_MutationObserver.rs new file mode 100644 index 00000000..4764e644 --- /dev/null +++ b/crates/web-sys/src/features/gen_MutationObserver.rs @@ -0,0 +1,55 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MutationObserver , typescript_type = "MutationObserver" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MutationObserver` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObserver`*"] + pub type MutationObserver; + #[wasm_bindgen(catch, constructor, js_class = "MutationObserver")] + #[doc = "The `new MutationObserver(..)` constructor, creating a new instance of `MutationObserver`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/MutationObserver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObserver`*"] + pub fn new(mutation_callback: &::js_sys::Function) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "MutationObserver" , js_name = disconnect ) ] + #[doc = "The `disconnect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/disconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObserver`*"] + pub fn disconnect(this: &MutationObserver); + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "MutationObserver" , js_name = observe ) ] + #[doc = "The `observe()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/observe)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObserver`, `Node`*"] + pub fn observe(this: &MutationObserver, target: &Node) -> Result<(), JsValue>; + #[cfg(all(feature = "MutationObserverInit", feature = "Node",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "MutationObserver" , js_name = observe ) ] + #[doc = "The `observe()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/observe)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObserver`, `MutationObserverInit`, `Node`*"] + pub fn observe_with_options( + this: &MutationObserver, + target: &Node, + options: &MutationObserverInit, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "MutationObserver" , js_name = takeRecords ) ] + #[doc = "The `takeRecords()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationObserver/takeRecords)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObserver`*"] + pub fn take_records(this: &MutationObserver) -> ::js_sys::Array; +} diff --git a/crates/web-sys/src/features/gen_MutationObserverInit.rs b/crates/web-sys/src/features/gen_MutationObserverInit.rs new file mode 100644 index 00000000..9f92e46f --- /dev/null +++ b/crates/web-sys/src/features/gen_MutationObserverInit.rs @@ -0,0 +1,175 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MutationObserverInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MutationObserverInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] + pub type MutationObserverInit; +} +impl MutationObserverInit { + #[doc = "Construct a new `MutationObserverInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `animations` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] + pub fn animations(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("animations"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `attributeFilter` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] + pub fn attribute_filter(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("attributeFilter"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `attributeOldValue` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] + pub fn attribute_old_value(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("attributeOldValue"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `attributes` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] + pub fn attributes(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("attributes"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `characterData` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] + pub fn character_data(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("characterData"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `characterDataOldValue` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] + pub fn character_data_old_value(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("characterDataOldValue"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `childList` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] + pub fn child_list(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("childList"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `nativeAnonymousChildList` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] + pub fn native_anonymous_child_list(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("nativeAnonymousChildList"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `subtree` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObserverInit`*"] + pub fn subtree(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("subtree"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MutationObservingInfo.rs b/crates/web-sys/src/features/gen_MutationObservingInfo.rs new file mode 100644 index 00000000..5cc5dbec --- /dev/null +++ b/crates/web-sys/src/features/gen_MutationObservingInfo.rs @@ -0,0 +1,193 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MutationObservingInfo ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MutationObservingInfo` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] + pub type MutationObservingInfo; +} +impl MutationObservingInfo { + #[doc = "Construct a new `MutationObservingInfo`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `animations` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] + pub fn animations(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("animations"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `attributeFilter` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] + pub fn attribute_filter(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("attributeFilter"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `attributeOldValue` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] + pub fn attribute_old_value(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("attributeOldValue"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `attributes` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] + pub fn attributes(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("attributes"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `characterData` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] + pub fn character_data(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("characterData"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `characterDataOldValue` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] + pub fn character_data_old_value(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("characterDataOldValue"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `childList` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] + pub fn child_list(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("childList"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `nativeAnonymousChildList` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] + pub fn native_anonymous_child_list(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("nativeAnonymousChildList"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `subtree` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`*"] + pub fn subtree(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("subtree"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Node")] + #[doc = "Change the `observedNode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationObservingInfo`, `Node`*"] + pub fn observed_node(&mut self, val: Option<&Node>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("observedNode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_MutationRecord.rs b/crates/web-sys/src/features/gen_MutationRecord.rs new file mode 100644 index 00000000..8b732a4a --- /dev/null +++ b/crates/web-sys/src/features/gen_MutationRecord.rs @@ -0,0 +1,82 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = MutationRecord , typescript_type = "MutationRecord" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `MutationRecord` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"] + pub type MutationRecord; + # [ wasm_bindgen ( structural , method , getter , js_class = "MutationRecord" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"] + pub fn type_(this: &MutationRecord) -> String; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MutationRecord" , js_name = target ) ] + #[doc = "Getter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `Node`*"] + pub fn target(this: &MutationRecord) -> Option; + #[cfg(feature = "NodeList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MutationRecord" , js_name = addedNodes ) ] + #[doc = "Getter for the `addedNodes` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/addedNodes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `NodeList`*"] + pub fn added_nodes(this: &MutationRecord) -> NodeList; + #[cfg(feature = "NodeList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MutationRecord" , js_name = removedNodes ) ] + #[doc = "Getter for the `removedNodes` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/removedNodes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `NodeList`*"] + pub fn removed_nodes(this: &MutationRecord) -> NodeList; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MutationRecord" , js_name = previousSibling ) ] + #[doc = "Getter for the `previousSibling` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/previousSibling)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `Node`*"] + pub fn previous_sibling(this: &MutationRecord) -> Option; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , method , getter , js_class = "MutationRecord" , js_name = nextSibling ) ] + #[doc = "Getter for the `nextSibling` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/nextSibling)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationRecord`, `Node`*"] + pub fn next_sibling(this: &MutationRecord) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "MutationRecord" , js_name = attributeName ) ] + #[doc = "Getter for the `attributeName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/attributeName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"] + pub fn attribute_name(this: &MutationRecord) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "MutationRecord" , js_name = attributeNamespace ) ] + #[doc = "Getter for the `attributeNamespace` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/attributeNamespace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"] + pub fn attribute_namespace(this: &MutationRecord) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "MutationRecord" , js_name = oldValue ) ] + #[doc = "Getter for the `oldValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/MutationRecord/oldValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MutationRecord`*"] + pub fn old_value(this: &MutationRecord) -> Option; +} diff --git a/crates/web-sys/src/features/gen_NamedNodeMap.rs b/crates/web-sys/src/features/gen_NamedNodeMap.rs new file mode 100644 index 00000000..15e1a2af --- /dev/null +++ b/crates/web-sys/src/features/gen_NamedNodeMap.rs @@ -0,0 +1,101 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = NamedNodeMap , typescript_type = "NamedNodeMap" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `NamedNodeMap` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NamedNodeMap`*"] + pub type NamedNodeMap; + # [ wasm_bindgen ( structural , method , getter , js_class = "NamedNodeMap" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NamedNodeMap`*"] + pub fn length(this: &NamedNodeMap) -> u32; + #[cfg(feature = "Attr")] + # [ wasm_bindgen ( method , structural , js_class = "NamedNodeMap" , js_name = getNamedItem ) ] + #[doc = "The `getNamedItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/getNamedItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] + pub fn get_named_item(this: &NamedNodeMap, name: &str) -> Option; + #[cfg(feature = "Attr")] + # [ wasm_bindgen ( method , structural , js_class = "NamedNodeMap" , js_name = getNamedItemNS ) ] + #[doc = "The `getNamedItemNS()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/getNamedItemNS)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] + pub fn get_named_item_ns( + this: &NamedNodeMap, + namespace_uri: Option<&str>, + local_name: &str, + ) -> Option; + #[cfg(feature = "Attr")] + # [ wasm_bindgen ( method , structural , js_class = "NamedNodeMap" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] + pub fn item(this: &NamedNodeMap, index: u32) -> Option; + #[cfg(feature = "Attr")] + # [ wasm_bindgen ( catch , method , structural , js_class = "NamedNodeMap" , js_name = removeNamedItem ) ] + #[doc = "The `removeNamedItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/removeNamedItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] + pub fn remove_named_item(this: &NamedNodeMap, name: &str) -> Result; + #[cfg(feature = "Attr")] + # [ wasm_bindgen ( catch , method , structural , js_class = "NamedNodeMap" , js_name = removeNamedItemNS ) ] + #[doc = "The `removeNamedItemNS()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/removeNamedItemNS)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] + pub fn remove_named_item_ns( + this: &NamedNodeMap, + namespace_uri: Option<&str>, + local_name: &str, + ) -> Result; + #[cfg(feature = "Attr")] + # [ wasm_bindgen ( catch , method , structural , js_class = "NamedNodeMap" , js_name = setNamedItem ) ] + #[doc = "The `setNamedItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/setNamedItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] + pub fn set_named_item(this: &NamedNodeMap, arg: &Attr) -> Result, JsValue>; + #[cfg(feature = "Attr")] + # [ wasm_bindgen ( catch , method , structural , js_class = "NamedNodeMap" , js_name = setNamedItemNS ) ] + #[doc = "The `setNamedItemNS()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NamedNodeMap/setNamedItemNS)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] + pub fn set_named_item_ns(this: &NamedNodeMap, arg: &Attr) -> Result, JsValue>; + #[cfg(feature = "Attr")] + #[wasm_bindgen(method, structural, js_class = "NamedNodeMap", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] + pub fn get_with_name(this: &NamedNodeMap, name: &str) -> Option; + #[cfg(feature = "Attr")] + #[wasm_bindgen(method, structural, js_class = "NamedNodeMap", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Attr`, `NamedNodeMap`*"] + pub fn get_with_index(this: &NamedNodeMap, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_NativeOsFileReadOptions.rs b/crates/web-sys/src/features/gen_NativeOsFileReadOptions.rs new file mode 100644 index 00000000..218be11e --- /dev/null +++ b/crates/web-sys/src/features/gen_NativeOsFileReadOptions.rs @@ -0,0 +1,52 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = NativeOSFileReadOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `NativeOsFileReadOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NativeOsFileReadOptions`*"] + pub type NativeOsFileReadOptions; +} +impl NativeOsFileReadOptions { + #[doc = "Construct a new `NativeOsFileReadOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NativeOsFileReadOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bytes` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NativeOsFileReadOptions`*"] + pub fn bytes(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("bytes"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `encoding` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NativeOsFileReadOptions`*"] + pub fn encoding(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("encoding"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_NativeOsFileWriteAtomicOptions.rs b/crates/web-sys/src/features/gen_NativeOsFileWriteAtomicOptions.rs new file mode 100644 index 00000000..9ba0a6a2 --- /dev/null +++ b/crates/web-sys/src/features/gen_NativeOsFileWriteAtomicOptions.rs @@ -0,0 +1,99 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = NativeOSFileWriteAtomicOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `NativeOsFileWriteAtomicOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] + pub type NativeOsFileWriteAtomicOptions; +} +impl NativeOsFileWriteAtomicOptions { + #[doc = "Construct a new `NativeOsFileWriteAtomicOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `backupTo` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] + pub fn backup_to(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("backupTo"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `bytes` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] + pub fn bytes(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("bytes"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `flush` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] + pub fn flush(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("flush"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `noOverwrite` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] + pub fn no_overwrite(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("noOverwrite"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `tmpPath` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NativeOsFileWriteAtomicOptions`*"] + pub fn tmp_path(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("tmpPath"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_NavigationType.rs b/crates/web-sys/src/features/gen_NavigationType.rs new file mode 100644 index 00000000..0ec80186 --- /dev/null +++ b/crates/web-sys/src/features/gen_NavigationType.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `NavigationType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `NavigationType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum NavigationType { + Navigate = "navigate", + Reload = "reload", + BackForward = "back_forward", + Prerender = "prerender", +} diff --git a/crates/web-sys/src/features/gen_Navigator.rs b/crates/web-sys/src/features/gen_Navigator.rs new file mode 100644 index 00000000..3c6eb7a8 --- /dev/null +++ b/crates/web-sys/src/features/gen_Navigator.rs @@ -0,0 +1,397 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Navigator , typescript_type = "Navigator" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Navigator` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub type Navigator; + #[cfg(feature = "Permissions")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Navigator" , js_name = permissions ) ] + #[doc = "Getter for the `permissions` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/permissions)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Permissions`*"] + pub fn permissions(this: &Navigator) -> Result; + #[cfg(feature = "MimeTypeArray")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Navigator" , js_name = mimeTypes ) ] + #[doc = "Getter for the `mimeTypes` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mimeTypes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MimeTypeArray`, `Navigator`*"] + pub fn mime_types(this: &Navigator) -> Result; + #[cfg(feature = "PluginArray")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Navigator" , js_name = plugins ) ] + #[doc = "Getter for the `plugins` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/plugins)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`, `PluginArray`*"] + pub fn plugins(this: &Navigator) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "Navigator" , js_name = doNotTrack ) ] + #[doc = "Getter for the `doNotTrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/doNotTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn do_not_track(this: &Navigator) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Navigator" , js_name = maxTouchPoints ) ] + #[doc = "Getter for the `maxTouchPoints` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/maxTouchPoints)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn max_touch_points(this: &Navigator) -> i32; + #[cfg(feature = "MediaCapabilities")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Navigator" , js_name = mediaCapabilities ) ] + #[doc = "Getter for the `mediaCapabilities` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaCapabilities)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaCapabilities`, `Navigator`*"] + pub fn media_capabilities(this: &Navigator) -> MediaCapabilities; + #[cfg(feature = "NetworkInformation")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Navigator" , js_name = connection ) ] + #[doc = "Getter for the `connection` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/connection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`, `NetworkInformation`*"] + pub fn connection(this: &Navigator) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "Navigator" , js_name = activeVRDisplays ) ] + #[doc = "Getter for the `activeVRDisplays` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/activeVRDisplays)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn active_vr_displays(this: &Navigator) -> ::js_sys::Array; + #[cfg(feature = "MediaDevices")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Navigator" , js_name = mediaDevices ) ] + #[doc = "Getter for the `mediaDevices` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/mediaDevices)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaDevices`, `Navigator`*"] + pub fn media_devices(this: &Navigator) -> Result; + #[cfg(feature = "ServiceWorkerContainer")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Navigator" , js_name = serviceWorker ) ] + #[doc = "Getter for the `serviceWorker` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/serviceWorker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`, `ServiceWorkerContainer`*"] + pub fn service_worker(this: &Navigator) -> ServiceWorkerContainer; + #[cfg(feature = "Presentation")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Navigator" , js_name = presentation ) ] + #[doc = "Getter for the `presentation` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/presentation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Presentation`*"] + pub fn presentation(this: &Navigator) -> Result, JsValue>; + #[cfg(feature = "CredentialsContainer")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Navigator" , js_name = credentials ) ] + #[doc = "Getter for the `credentials` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/credentials)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CredentialsContainer`, `Navigator`*"] + pub fn credentials(this: &Navigator) -> CredentialsContainer; + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "Gpu")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Navigator" , js_name = gpu ) ] + #[doc = "Getter for the `gpu` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/gpu)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gpu`, `Navigator`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn gpu(this: &Navigator) -> Gpu; + # [ wasm_bindgen ( structural , method , getter , js_class = "Navigator" , js_name = hardwareConcurrency ) ] + #[doc = "Getter for the `hardwareConcurrency` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hardwareConcurrency)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn hardware_concurrency(this: &Navigator) -> f64; + #[cfg(feature = "Geolocation")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Navigator" , js_name = geolocation ) ] + #[doc = "Getter for the `geolocation` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/geolocation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Geolocation`, `Navigator`*"] + pub fn geolocation(this: &Navigator) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Navigator" , js_name = appCodeName ) ] + #[doc = "Getter for the `appCodeName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appCodeName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn app_code_name(this: &Navigator) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "Navigator" , js_name = appName ) ] + #[doc = "Getter for the `appName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn app_name(this: &Navigator) -> String; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Navigator" , js_name = appVersion ) ] + #[doc = "Getter for the `appVersion` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appVersion)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn app_version(this: &Navigator) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Navigator" , js_name = platform ) ] + #[doc = "Getter for the `platform` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/platform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn platform(this: &Navigator) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Navigator" , js_name = userAgent ) ] + #[doc = "Getter for the `userAgent` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn user_agent(this: &Navigator) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "Navigator" , js_name = product ) ] + #[doc = "Getter for the `product` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/product)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn product(this: &Navigator) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Navigator" , js_name = language ) ] + #[doc = "Getter for the `language` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn language(this: &Navigator) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Navigator" , js_name = languages ) ] + #[doc = "Getter for the `languages` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/languages)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn languages(this: &Navigator) -> ::js_sys::Array; + # [ wasm_bindgen ( structural , method , getter , js_class = "Navigator" , js_name = onLine ) ] + #[doc = "Getter for the `onLine` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/onLine)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn on_line(this: &Navigator) -> bool; + #[cfg(feature = "StorageManager")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Navigator" , js_name = storage ) ] + #[doc = "Getter for the `storage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/storage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`, `StorageManager`*"] + pub fn storage(this: &Navigator) -> StorageManager; + # [ wasm_bindgen ( catch , method , structural , js_class = "Navigator" , js_name = getGamepads ) ] + #[doc = "The `getGamepads()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getGamepads)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn get_gamepads(this: &Navigator) -> Result<::js_sys::Array, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Navigator" , js_name = getVRDisplays ) ] + #[doc = "The `getVRDisplays()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getVRDisplays)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn get_vr_displays(this: &Navigator) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "GamepadServiceTest")] + # [ wasm_bindgen ( method , structural , js_class = "Navigator" , js_name = requestGamepadServiceTest ) ] + #[doc = "The `requestGamepadServiceTest()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestGamepadServiceTest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GamepadServiceTest`, `Navigator`*"] + pub fn request_gamepad_service_test(this: &Navigator) -> GamepadServiceTest; + # [ wasm_bindgen ( catch , method , structural , js_class = "Navigator" , js_name = requestMIDIAccess ) ] + #[doc = "The `requestMIDIAccess()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMIDIAccess)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn request_midi_access(this: &Navigator) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "MidiOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Navigator" , js_name = requestMIDIAccess ) ] + #[doc = "The `requestMIDIAccess()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMIDIAccess)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MidiOptions`, `Navigator`*"] + pub fn request_midi_access_with_options( + this: &Navigator, + options: &MidiOptions, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "Navigator" , js_name = requestMediaKeySystemAccess ) ] + #[doc = "The `requestMediaKeySystemAccess()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestMediaKeySystemAccess)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn request_media_key_system_access( + this: &Navigator, + key_system: &str, + supported_configurations: &::wasm_bindgen::JsValue, + ) -> ::js_sys::Promise; + #[cfg(feature = "VrServiceTest")] + # [ wasm_bindgen ( method , structural , js_class = "Navigator" , js_name = requestVRServiceTest ) ] + #[doc = "The `requestVRServiceTest()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/requestVRServiceTest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`, `VrServiceTest`*"] + pub fn request_vr_service_test(this: &Navigator) -> VrServiceTest; + # [ wasm_bindgen ( catch , method , structural , js_class = "Navigator" , js_name = sendBeacon ) ] + #[doc = "The `sendBeacon()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn send_beacon(this: &Navigator, url: &str) -> Result; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Navigator" , js_name = sendBeacon ) ] + #[doc = "The `sendBeacon()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `Navigator`*"] + pub fn send_beacon_with_opt_blob( + this: &Navigator, + url: &str, + data: Option<&Blob>, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Navigator" , js_name = sendBeacon ) ] + #[doc = "The `sendBeacon()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn send_beacon_with_opt_buffer_source( + this: &Navigator, + url: &str, + data: Option<&::js_sys::Object>, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Navigator" , js_name = sendBeacon ) ] + #[doc = "The `sendBeacon()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn send_beacon_with_opt_u8_array( + this: &Navigator, + url: &str, + data: Option<&mut [u8]>, + ) -> Result; + #[cfg(feature = "FormData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Navigator" , js_name = sendBeacon ) ] + #[doc = "The `sendBeacon()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FormData`, `Navigator`*"] + pub fn send_beacon_with_opt_form_data( + this: &Navigator, + url: &str, + data: Option<&FormData>, + ) -> Result; + #[cfg(feature = "UrlSearchParams")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Navigator" , js_name = sendBeacon ) ] + #[doc = "The `sendBeacon()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`, `UrlSearchParams`*"] + pub fn send_beacon_with_opt_url_search_params( + this: &Navigator, + url: &str, + data: Option<&UrlSearchParams>, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Navigator" , js_name = sendBeacon ) ] + #[doc = "The `sendBeacon()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn send_beacon_with_opt_str( + this: &Navigator, + url: &str, + data: Option<&str>, + ) -> Result; + #[cfg(feature = "ReadableStream")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Navigator" , js_name = sendBeacon ) ] + #[doc = "The `sendBeacon()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`, `ReadableStream`*"] + pub fn send_beacon_with_opt_readable_stream( + this: &Navigator, + url: &str, + data: Option<&ReadableStream>, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "Navigator" , js_name = vibrate ) ] + #[doc = "The `vibrate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vibrate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn vibrate_with_duration(this: &Navigator, duration: u32) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "Navigator" , js_name = vibrate ) ] + #[doc = "The `vibrate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vibrate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn vibrate_with_pattern(this: &Navigator, pattern: &::wasm_bindgen::JsValue) -> bool; + # [ wasm_bindgen ( catch , method , structural , js_class = "Navigator" , js_name = registerContentHandler ) ] + #[doc = "The `registerContentHandler()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerContentHandler)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn register_content_handler( + this: &Navigator, + mime_type: &str, + url: &str, + title: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Navigator" , js_name = registerProtocolHandler ) ] + #[doc = "The `registerProtocolHandler()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn register_protocol_handler( + this: &Navigator, + scheme: &str, + url: &str, + title: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "Navigator" , js_name = taintEnabled ) ] + #[doc = "The `taintEnabled()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/taintEnabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`*"] + pub fn taint_enabled(this: &Navigator) -> bool; +} diff --git a/crates/web-sys/src/features/gen_NavigatorAutomationInformation.rs b/crates/web-sys/src/features/gen_NavigatorAutomationInformation.rs new file mode 100644 index 00000000..69fddc2a --- /dev/null +++ b/crates/web-sys/src/features/gen_NavigatorAutomationInformation.rs @@ -0,0 +1,21 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = NavigatorAutomationInformation , typescript_type = "NavigatorAutomationInformation" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `NavigatorAutomationInformation` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorAutomationInformation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NavigatorAutomationInformation`*"] + pub type NavigatorAutomationInformation; + # [ wasm_bindgen ( structural , method , getter , js_class = "NavigatorAutomationInformation" , js_name = webdriver ) ] + #[doc = "Getter for the `webdriver` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorAutomationInformation/webdriver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NavigatorAutomationInformation`*"] + pub fn webdriver(this: &NavigatorAutomationInformation) -> bool; +} diff --git a/crates/web-sys/src/features/gen_NetworkCommandOptions.rs b/crates/web-sys/src/features/gen_NetworkCommandOptions.rs new file mode 100644 index 00000000..d288469a --- /dev/null +++ b/crates/web-sys/src/features/gen_NetworkCommandOptions.rs @@ -0,0 +1,683 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = NetworkCommandOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `NetworkCommandOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub type NetworkCommandOptions; +} +impl NetworkCommandOptions { + #[doc = "Construct a new `NetworkCommandOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `cmd` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn cmd(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("cmd"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `curExternalIfname` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn cur_external_ifname(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("curExternalIfname"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `curInternalIfname` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn cur_internal_ifname(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("curInternalIfname"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `dns1` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn dns1(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dns1"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `dns1_long` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn dns1_long(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("dns1_long"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `dns2` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn dns2(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dns2"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `dns2_long` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn dns2_long(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("dns2_long"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `dnses` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn dnses(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dnses"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `domain` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn domain(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("domain"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `enable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn enable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("enable"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `enabled` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn enabled(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("enabled"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `endIp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn end_ip(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("endIp"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `externalIfname` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn external_ifname(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("externalIfname"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `gateway` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn gateway(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("gateway"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `gateway_long` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn gateway_long(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("gateway_long"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `gateways` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn gateways(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("gateways"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn id(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ifname` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn ifname(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ifname"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `interfaceList` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn interface_list(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("interfaceList"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `internalIfname` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn internal_ifname(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("internalIfname"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ip` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn ip(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ip"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ipaddr` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn ipaddr(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ipaddr"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `key` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn key(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("key"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `link` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn link(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("link"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mask` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn mask(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mask"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `maskLength` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn mask_length(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maskLength"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn mode(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mode"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mtu` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn mtu(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mtu"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `preExternalIfname` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn pre_external_ifname(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("preExternalIfname"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `preInternalIfname` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn pre_internal_ifname(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("preInternalIfname"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `prefix` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn prefix(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("prefix"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `prefixLength` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn prefix_length(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("prefixLength"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `report` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn report(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("report"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `security` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn security(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("security"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `serverIp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn server_ip(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("serverIp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ssid` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn ssid(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ssid"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `startIp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn start_ip(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("startIp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `threshold` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn threshold(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("threshold"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `usbEndIp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn usb_end_ip(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("usbEndIp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `usbStartIp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn usb_start_ip(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("usbStartIp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `wifiEndIp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn wifi_end_ip(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("wifiEndIp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `wifiStartIp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn wifi_start_ip(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("wifiStartIp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `wifictrlinterfacename` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkCommandOptions`*"] + pub fn wifictrlinterfacename(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("wifictrlinterfacename"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_NetworkInformation.rs b/crates/web-sys/src/features/gen_NetworkInformation.rs new file mode 100644 index 00000000..f0841c2b --- /dev/null +++ b/crates/web-sys/src/features/gen_NetworkInformation.rs @@ -0,0 +1,36 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = NetworkInformation , typescript_type = "NetworkInformation" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `NetworkInformation` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkInformation`*"] + pub type NetworkInformation; + #[cfg(feature = "ConnectionType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "NetworkInformation" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConnectionType`, `NetworkInformation`*"] + pub fn type_(this: &NetworkInformation) -> ConnectionType; + # [ wasm_bindgen ( structural , method , getter , js_class = "NetworkInformation" , js_name = ontypechange ) ] + #[doc = "Getter for the `ontypechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/ontypechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkInformation`*"] + pub fn ontypechange(this: &NetworkInformation) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "NetworkInformation" , js_name = ontypechange ) ] + #[doc = "Setter for the `ontypechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NetworkInformation/ontypechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkInformation`*"] + pub fn set_ontypechange(this: &NetworkInformation, value: Option<&::js_sys::Function>); +} diff --git a/crates/web-sys/src/features/gen_NetworkResultOptions.rs b/crates/web-sys/src/features/gen_NetworkResultOptions.rs new file mode 100644 index 00000000..f2124501 --- /dev/null +++ b/crates/web-sys/src/features/gen_NetworkResultOptions.rs @@ -0,0 +1,551 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = NetworkResultOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `NetworkResultOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub type NetworkResultOptions; +} +impl NetworkResultOptions { + #[doc = "Construct a new `NetworkResultOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `broadcast` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn broadcast(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("broadcast"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `curExternalIfname` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn cur_external_ifname(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("curExternalIfname"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `curInternalIfname` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn cur_internal_ifname(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("curInternalIfname"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `dns1` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn dns1(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dns1"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `dns1_str` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn dns1_str(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("dns1_str"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `dns2` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn dns2(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dns2"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `dns2_str` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn dns2_str(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("dns2_str"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `enable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn enable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("enable"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `error` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn error(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `flag` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn flag(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("flag"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `gateway` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn gateway(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("gateway"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `gateway_str` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn gateway_str(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("gateway_str"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn id(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `interfaceList` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn interface_list(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("interfaceList"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ipAddr` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn ip_addr(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ipAddr"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ipaddr` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn ipaddr(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ipaddr"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ipaddr_str` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn ipaddr_str(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("ipaddr_str"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `lease` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn lease(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("lease"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `macAddr` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn mac_addr(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("macAddr"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mask` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn mask(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mask"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mask_str` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn mask_str(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mask_str"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `netId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn net_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("netId"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `prefixLength` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn prefix_length(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("prefixLength"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `reason` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn reason(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("reason"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `reply` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn reply(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("reply"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `result` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn result(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("result"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `resultCode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn result_code(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("resultCode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `resultReason` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn result_reason(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("resultReason"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ret` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn ret(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ret"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `route` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn route(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("route"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `server` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn server(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("server"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `server_str` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn server_str(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("server_str"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `success` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn success(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("success"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `topic` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn topic(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("topic"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `vendor_str` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkResultOptions`*"] + pub fn vendor_str(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("vendor_str"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Node.rs b/crates/web-sys/src/features/gen_Node.rs new file mode 100644 index 00000000..039a6904 --- /dev/null +++ b/crates/web-sys/src/features/gen_Node.rs @@ -0,0 +1,323 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = Node , typescript_type = "Node" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Node` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub type Node; + # [ wasm_bindgen ( structural , method , getter , js_class = "Node" , js_name = nodeType ) ] + #[doc = "Getter for the `nodeType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn node_type(this: &Node) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "Node" , js_name = nodeName ) ] + #[doc = "Getter for the `nodeName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn node_name(this: &Node) -> String; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Node" , js_name = baseURI ) ] + #[doc = "Getter for the `baseURI` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/baseURI)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn base_uri(this: &Node) -> Result, JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "Node" , js_name = isConnected ) ] + #[doc = "Getter for the `isConnected` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/isConnected)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn is_connected(this: &Node) -> bool; + #[cfg(feature = "Document")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Node" , js_name = ownerDocument ) ] + #[doc = "Getter for the `ownerDocument` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/ownerDocument)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Node`*"] + pub fn owner_document(this: &Node) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Node" , js_name = parentNode ) ] + #[doc = "Getter for the `parentNode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/parentNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn parent_node(this: &Node) -> Option; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Node" , js_name = parentElement ) ] + #[doc = "Getter for the `parentElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/parentElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `Node`*"] + pub fn parent_element(this: &Node) -> Option; + #[cfg(feature = "NodeList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Node" , js_name = childNodes ) ] + #[doc = "Getter for the `childNodes` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/childNodes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeList`*"] + pub fn child_nodes(this: &Node) -> NodeList; + # [ wasm_bindgen ( structural , method , getter , js_class = "Node" , js_name = firstChild ) ] + #[doc = "Getter for the `firstChild` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/firstChild)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn first_child(this: &Node) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Node" , js_name = lastChild ) ] + #[doc = "Getter for the `lastChild` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/lastChild)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn last_child(this: &Node) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Node" , js_name = previousSibling ) ] + #[doc = "Getter for the `previousSibling` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/previousSibling)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn previous_sibling(this: &Node) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Node" , js_name = nextSibling ) ] + #[doc = "Getter for the `nextSibling` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/nextSibling)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn next_sibling(this: &Node) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Node" , js_name = nodeValue ) ] + #[doc = "Getter for the `nodeValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn node_value(this: &Node) -> Option; + # [ wasm_bindgen ( structural , method , setter , js_class = "Node" , js_name = nodeValue ) ] + #[doc = "Setter for the `nodeValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn set_node_value(this: &Node, value: Option<&str>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Node" , js_name = textContent ) ] + #[doc = "Getter for the `textContent` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn text_content(this: &Node) -> Option; + # [ wasm_bindgen ( structural , method , setter , js_class = "Node" , js_name = textContent ) ] + #[doc = "Setter for the `textContent` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn set_text_content(this: &Node, value: Option<&str>); + # [ wasm_bindgen ( catch , method , structural , js_class = "Node" , js_name = appendChild ) ] + #[doc = "The `appendChild()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn append_child(this: &Node, node: &Node) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Node" , js_name = cloneNode ) ] + #[doc = "The `cloneNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/cloneNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn clone_node(this: &Node) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Node" , js_name = cloneNode ) ] + #[doc = "The `cloneNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/cloneNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn clone_node_with_deep(this: &Node, deep: bool) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "Node" , js_name = compareDocumentPosition ) ] + #[doc = "The `compareDocumentPosition()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn compare_document_position(this: &Node, other: &Node) -> u16; + # [ wasm_bindgen ( method , structural , js_class = "Node" , js_name = contains ) ] + #[doc = "The `contains()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/contains)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn contains(this: &Node, other: Option<&Node>) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "Node" , js_name = getRootNode ) ] + #[doc = "The `getRootNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/getRootNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn get_root_node(this: &Node) -> Node; + #[cfg(feature = "GetRootNodeOptions")] + # [ wasm_bindgen ( method , structural , js_class = "Node" , js_name = getRootNode ) ] + #[doc = "The `getRootNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/getRootNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetRootNodeOptions`, `Node`*"] + pub fn get_root_node_with_options(this: &Node, options: &GetRootNodeOptions) -> Node; + # [ wasm_bindgen ( method , structural , js_class = "Node" , js_name = hasChildNodes ) ] + #[doc = "The `hasChildNodes()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/hasChildNodes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn has_child_nodes(this: &Node) -> bool; + # [ wasm_bindgen ( catch , method , structural , js_class = "Node" , js_name = insertBefore ) ] + #[doc = "The `insertBefore()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/insertBefore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn insert_before(this: &Node, node: &Node, child: Option<&Node>) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "Node" , js_name = isDefaultNamespace ) ] + #[doc = "The `isDefaultNamespace()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/isDefaultNamespace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn is_default_namespace(this: &Node, namespace: Option<&str>) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "Node" , js_name = isEqualNode ) ] + #[doc = "The `isEqualNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/isEqualNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn is_equal_node(this: &Node, node: Option<&Node>) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "Node" , js_name = isSameNode ) ] + #[doc = "The `isSameNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/isSameNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn is_same_node(this: &Node, node: Option<&Node>) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "Node" , js_name = lookupNamespaceURI ) ] + #[doc = "The `lookupNamespaceURI()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/lookupNamespaceURI)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn lookup_namespace_uri(this: &Node, prefix: Option<&str>) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "Node" , js_name = lookupPrefix ) ] + #[doc = "The `lookupPrefix()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/lookupPrefix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn lookup_prefix(this: &Node, namespace: Option<&str>) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "Node" , js_name = normalize ) ] + #[doc = "The `normalize()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/normalize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn normalize(this: &Node); + # [ wasm_bindgen ( catch , method , structural , js_class = "Node" , js_name = removeChild ) ] + #[doc = "The `removeChild()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/removeChild)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn remove_child(this: &Node, child: &Node) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Node" , js_name = replaceChild ) ] + #[doc = "The `replaceChild()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Node/replaceChild)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub fn replace_child(this: &Node, node: &Node, child: &Node) -> Result; +} +impl Node { + #[doc = "The `Node.ELEMENT_NODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const ELEMENT_NODE: u16 = 1u64 as u16; + #[doc = "The `Node.ATTRIBUTE_NODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const ATTRIBUTE_NODE: u16 = 2u64 as u16; + #[doc = "The `Node.TEXT_NODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const TEXT_NODE: u16 = 3u64 as u16; + #[doc = "The `Node.CDATA_SECTION_NODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const CDATA_SECTION_NODE: u16 = 4u64 as u16; + #[doc = "The `Node.ENTITY_REFERENCE_NODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const ENTITY_REFERENCE_NODE: u16 = 5u64 as u16; + #[doc = "The `Node.ENTITY_NODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const ENTITY_NODE: u16 = 6u64 as u16; + #[doc = "The `Node.PROCESSING_INSTRUCTION_NODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const PROCESSING_INSTRUCTION_NODE: u16 = 7u64 as u16; + #[doc = "The `Node.COMMENT_NODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const COMMENT_NODE: u16 = 8u64 as u16; + #[doc = "The `Node.DOCUMENT_NODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const DOCUMENT_NODE: u16 = 9u64 as u16; + #[doc = "The `Node.DOCUMENT_TYPE_NODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const DOCUMENT_TYPE_NODE: u16 = 10u64 as u16; + #[doc = "The `Node.DOCUMENT_FRAGMENT_NODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const DOCUMENT_FRAGMENT_NODE: u16 = 11u64 as u16; + #[doc = "The `Node.NOTATION_NODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const NOTATION_NODE: u16 = 12u64 as u16; + #[doc = "The `Node.DOCUMENT_POSITION_DISCONNECTED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const DOCUMENT_POSITION_DISCONNECTED: u16 = 1u64 as u16; + #[doc = "The `Node.DOCUMENT_POSITION_PRECEDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const DOCUMENT_POSITION_PRECEDING: u16 = 2u64 as u16; + #[doc = "The `Node.DOCUMENT_POSITION_FOLLOWING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const DOCUMENT_POSITION_FOLLOWING: u16 = 4u64 as u16; + #[doc = "The `Node.DOCUMENT_POSITION_CONTAINS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const DOCUMENT_POSITION_CONTAINS: u16 = 8u64 as u16; + #[doc = "The `Node.DOCUMENT_POSITION_CONTAINED_BY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const DOCUMENT_POSITION_CONTAINED_BY: u16 = 16u64 as u16; + #[doc = "The `Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`*"] + pub const DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: u16 = 32u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_NodeFilter.rs b/crates/web-sys/src/features/gen_NodeFilter.rs new file mode 100644 index 00000000..f83621aa --- /dev/null +++ b/crates/web-sys/src/features/gen_NodeFilter.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = NodeFilter ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `NodeFilter` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NodeFilter`*"] + pub type NodeFilter; +} +impl NodeFilter { + #[doc = "Construct a new `NodeFilter`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NodeFilter`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `acceptNode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NodeFilter`*"] + pub fn accept_node(&mut self, val: &::js_sys::Function) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("acceptNode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_NodeIterator.rs b/crates/web-sys/src/features/gen_NodeIterator.rs new file mode 100644 index 00000000..37e06c8b --- /dev/null +++ b/crates/web-sys/src/features/gen_NodeIterator.rs @@ -0,0 +1,75 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = NodeIterator , typescript_type = "NodeIterator" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `NodeIterator` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NodeIterator`*"] + pub type NodeIterator; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , method , getter , js_class = "NodeIterator" , js_name = root ) ] + #[doc = "Getter for the `root` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/root)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeIterator`*"] + pub fn root(this: &NodeIterator) -> Node; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , method , getter , js_class = "NodeIterator" , js_name = referenceNode ) ] + #[doc = "Getter for the `referenceNode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/referenceNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeIterator`*"] + pub fn reference_node(this: &NodeIterator) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "NodeIterator" , js_name = pointerBeforeReferenceNode ) ] + #[doc = "Getter for the `pointerBeforeReferenceNode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/pointerBeforeReferenceNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NodeIterator`*"] + pub fn pointer_before_reference_node(this: &NodeIterator) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "NodeIterator" , js_name = whatToShow ) ] + #[doc = "Getter for the `whatToShow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/whatToShow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NodeIterator`*"] + pub fn what_to_show(this: &NodeIterator) -> u32; + #[cfg(feature = "NodeFilter")] + # [ wasm_bindgen ( structural , method , getter , js_class = "NodeIterator" , js_name = filter ) ] + #[doc = "Getter for the `filter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/filter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NodeFilter`, `NodeIterator`*"] + pub fn filter(this: &NodeIterator) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "NodeIterator" , js_name = detach ) ] + #[doc = "The `detach()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/detach)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NodeIterator`*"] + pub fn detach(this: &NodeIterator); + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "NodeIterator" , js_name = nextNode ) ] + #[doc = "The `nextNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/nextNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeIterator`*"] + pub fn next_node(this: &NodeIterator) -> Result, JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "NodeIterator" , js_name = previousNode ) ] + #[doc = "The `previousNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeIterator/previousNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeIterator`*"] + pub fn previous_node(this: &NodeIterator) -> Result, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_NodeList.rs b/crates/web-sys/src/features/gen_NodeList.rs new file mode 100644 index 00000000..c203107d --- /dev/null +++ b/crates/web-sys/src/features/gen_NodeList.rs @@ -0,0 +1,37 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = NodeList , typescript_type = "NodeList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `NodeList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NodeList`*"] + pub type NodeList; + # [ wasm_bindgen ( structural , method , getter , js_class = "NodeList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NodeList`*"] + pub fn length(this: &NodeList) -> u32; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( method , structural , js_class = "NodeList" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NodeList/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeList`*"] + pub fn item(this: &NodeList, index: u32) -> Option; + #[cfg(feature = "Node")] + #[wasm_bindgen(method, structural, js_class = "NodeList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `NodeList`*"] + pub fn get(this: &NodeList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_Notification.rs b/crates/web-sys/src/features/gen_Notification.rs new file mode 100644 index 00000000..709cd20f --- /dev/null +++ b/crates/web-sys/src/features/gen_Notification.rs @@ -0,0 +1,191 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = Notification , typescript_type = "Notification" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Notification` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub type Notification; + #[cfg(feature = "NotificationPermission")] + # [ wasm_bindgen ( structural , static_method_of = Notification , getter , js_class = "Notification" , js_name = permission ) ] + #[doc = "Getter for the `permission` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/permission)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`, `NotificationPermission`*"] + pub fn permission() -> NotificationPermission; + # [ wasm_bindgen ( structural , method , getter , js_class = "Notification" , js_name = onclick ) ] + #[doc = "Getter for the `onclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn onclick(this: &Notification) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Notification" , js_name = onclick ) ] + #[doc = "Setter for the `onclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn set_onclick(this: &Notification, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Notification" , js_name = onshow ) ] + #[doc = "Getter for the `onshow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onshow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn onshow(this: &Notification) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Notification" , js_name = onshow ) ] + #[doc = "Setter for the `onshow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onshow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn set_onshow(this: &Notification, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Notification" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn onerror(this: &Notification) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Notification" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn set_onerror(this: &Notification, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Notification" , js_name = onclose ) ] + #[doc = "Getter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn onclose(this: &Notification) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Notification" , js_name = onclose ) ] + #[doc = "Setter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn set_onclose(this: &Notification, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Notification" , js_name = title ) ] + #[doc = "Getter for the `title` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/title)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn title(this: &Notification) -> String; + #[cfg(feature = "NotificationDirection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Notification" , js_name = dir ) ] + #[doc = "Getter for the `dir` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/dir)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`, `NotificationDirection`*"] + pub fn dir(this: &Notification) -> NotificationDirection; + # [ wasm_bindgen ( structural , method , getter , js_class = "Notification" , js_name = lang ) ] + #[doc = "Getter for the `lang` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/lang)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn lang(this: &Notification) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Notification" , js_name = body ) ] + #[doc = "Getter for the `body` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/body)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn body(this: &Notification) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Notification" , js_name = tag ) ] + #[doc = "Getter for the `tag` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/tag)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn tag(this: &Notification) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Notification" , js_name = icon ) ] + #[doc = "Getter for the `icon` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/icon)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn icon(this: &Notification) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Notification" , js_name = requireInteraction ) ] + #[doc = "Getter for the `requireInteraction` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/requireInteraction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn require_interaction(this: &Notification) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "Notification" , js_name = data ) ] + #[doc = "Getter for the `data` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/data)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn data(this: &Notification) -> ::wasm_bindgen::JsValue; + #[wasm_bindgen(catch, constructor, js_class = "Notification")] + #[doc = "The `new Notification(..)` constructor, creating a new instance of `Notification`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn new(title: &str) -> Result; + #[cfg(feature = "NotificationOptions")] + #[wasm_bindgen(catch, constructor, js_class = "Notification")] + #[doc = "The `new Notification(..)` constructor, creating a new instance of `Notification`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`, `NotificationOptions`*"] + pub fn new_with_options( + title: &str, + options: &NotificationOptions, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "Notification" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn close(this: &Notification); + # [ wasm_bindgen ( catch , static_method_of = Notification , js_class = "Notification" , js_name = get ) ] + #[doc = "The `get()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/get)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn get() -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "GetNotificationOptions")] + # [ wasm_bindgen ( catch , static_method_of = Notification , js_class = "Notification" , js_name = get ) ] + #[doc = "The `get()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/get)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetNotificationOptions`, `Notification`*"] + pub fn get_with_filter(filter: &GetNotificationOptions) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , static_method_of = Notification , js_class = "Notification" , js_name = requestPermission ) ] + #[doc = "The `requestPermission()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/requestPermission)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn request_permission() -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , static_method_of = Notification , js_class = "Notification" , js_name = requestPermission ) ] + #[doc = "The `requestPermission()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Notification/requestPermission)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`*"] + pub fn request_permission_with_permission_callback( + permission_callback: &::js_sys::Function, + ) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_NotificationBehavior.rs b/crates/web-sys/src/features/gen_NotificationBehavior.rs new file mode 100644 index 00000000..5a157b83 --- /dev/null +++ b/crates/web-sys/src/features/gen_NotificationBehavior.rs @@ -0,0 +1,107 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = NotificationBehavior ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `NotificationBehavior` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"] + pub type NotificationBehavior; +} +impl NotificationBehavior { + #[doc = "Construct a new `NotificationBehavior`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `noclear` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"] + pub fn noclear(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("noclear"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `noscreen` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"] + pub fn noscreen(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("noscreen"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `showOnlyOnce` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"] + pub fn show_only_once(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("showOnlyOnce"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `soundFile` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"] + pub fn sound_file(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("soundFile"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `vibrationPattern` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationBehavior`*"] + pub fn vibration_pattern(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("vibrationPattern"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_NotificationDirection.rs b/crates/web-sys/src/features/gen_NotificationDirection.rs new file mode 100644 index 00000000..6af83262 --- /dev/null +++ b/crates/web-sys/src/features/gen_NotificationDirection.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `NotificationDirection` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `NotificationDirection`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum NotificationDirection { + Auto = "auto", + Ltr = "ltr", + Rtl = "rtl", +} diff --git a/crates/web-sys/src/features/gen_NotificationEvent.rs b/crates/web-sys/src/features/gen_NotificationEvent.rs new file mode 100644 index 00000000..4591b62b --- /dev/null +++ b/crates/web-sys/src/features/gen_NotificationEvent.rs @@ -0,0 +1,33 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = ExtendableEvent , extends = Event , extends = :: js_sys :: Object , js_name = NotificationEvent , typescript_type = "NotificationEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `NotificationEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NotificationEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationEvent`*"] + pub type NotificationEvent; + #[cfg(feature = "Notification")] + # [ wasm_bindgen ( structural , method , getter , js_class = "NotificationEvent" , js_name = notification ) ] + #[doc = "Getter for the `notification` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NotificationEvent/notification)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`, `NotificationEvent`*"] + pub fn notification(this: &NotificationEvent) -> Notification; + #[cfg(feature = "NotificationEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "NotificationEvent")] + #[doc = "The `new NotificationEvent(..)` constructor, creating a new instance of `NotificationEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/NotificationEvent/NotificationEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationEvent`, `NotificationEventInit`*"] + pub fn new( + type_: &str, + event_init_dict: &NotificationEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_NotificationEventInit.rs b/crates/web-sys/src/features/gen_NotificationEventInit.rs new file mode 100644 index 00000000..1ec1e395 --- /dev/null +++ b/crates/web-sys/src/features/gen_NotificationEventInit.rs @@ -0,0 +1,93 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = NotificationEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `NotificationEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationEventInit`*"] + pub type NotificationEventInit; +} +impl NotificationEventInit { + #[cfg(feature = "Notification")] + #[doc = "Construct a new `NotificationEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`, `NotificationEventInit`*"] + pub fn new(notification: &Notification) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.notification(notification); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Notification")] + #[doc = "Change the `notification` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Notification`, `NotificationEventInit`*"] + pub fn notification(&mut self, val: &Notification) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("notification"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_NotificationOptions.rs b/crates/web-sys/src/features/gen_NotificationOptions.rs new file mode 100644 index 00000000..f2cc2de9 --- /dev/null +++ b/crates/web-sys/src/features/gen_NotificationOptions.rs @@ -0,0 +1,118 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = NotificationOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `NotificationOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] + pub type NotificationOptions; +} +impl NotificationOptions { + #[doc = "Construct a new `NotificationOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `body` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] + pub fn body(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("body"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `data` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] + pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "NotificationDirection")] + #[doc = "Change the `dir` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationDirection`, `NotificationOptions`*"] + pub fn dir(&mut self, val: NotificationDirection) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("dir"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `icon` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] + pub fn icon(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("icon"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `lang` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] + pub fn lang(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("lang"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `requireInteraction` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] + pub fn require_interaction(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("requireInteraction"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `tag` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`*"] + pub fn tag(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("tag"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_NotificationPermission.rs b/crates/web-sys/src/features/gen_NotificationPermission.rs new file mode 100644 index 00000000..33530560 --- /dev/null +++ b/crates/web-sys/src/features/gen_NotificationPermission.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `NotificationPermission` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `NotificationPermission`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum NotificationPermission { + Default = "default", + Denied = "denied", + Granted = "granted", +} diff --git a/crates/web-sys/src/features/gen_ObserverCallback.rs b/crates/web-sys/src/features/gen_ObserverCallback.rs new file mode 100644 index 00000000..5b34cd27 --- /dev/null +++ b/crates/web-sys/src/features/gen_ObserverCallback.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ObserverCallback ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ObserverCallback` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ObserverCallback`*"] + pub type ObserverCallback; +} +impl ObserverCallback { + #[doc = "Construct a new `ObserverCallback`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ObserverCallback`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `handleEvent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ObserverCallback`*"] + pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("handleEvent"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_OesElementIndexUint.rs b/crates/web-sys/src/features/gen_OesElementIndexUint.rs new file mode 100644 index 00000000..d983cdd6 --- /dev/null +++ b/crates/web-sys/src/features/gen_OesElementIndexUint.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_element_index_uint , typescript_type = "OES_element_index_uint" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `OesElementIndexUint` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_element_index_uint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OesElementIndexUint`*"] + pub type OesElementIndexUint; +} diff --git a/crates/web-sys/src/features/gen_OesStandardDerivatives.rs b/crates/web-sys/src/features/gen_OesStandardDerivatives.rs new file mode 100644 index 00000000..ada63668 --- /dev/null +++ b/crates/web-sys/src/features/gen_OesStandardDerivatives.rs @@ -0,0 +1,20 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_standard_derivatives , typescript_type = "OES_standard_derivatives" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `OesStandardDerivatives` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_standard_derivatives)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OesStandardDerivatives`*"] + pub type OesStandardDerivatives; +} +impl OesStandardDerivatives { + #[doc = "The `OES_standard_derivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OesStandardDerivatives`*"] + pub const FRAGMENT_SHADER_DERIVATIVE_HINT_OES: u32 = 35723u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_OesTextureFloat.rs b/crates/web-sys/src/features/gen_OesTextureFloat.rs new file mode 100644 index 00000000..9ab54419 --- /dev/null +++ b/crates/web-sys/src/features/gen_OesTextureFloat.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_texture_float , typescript_type = "OES_texture_float" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `OesTextureFloat` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_texture_float)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OesTextureFloat`*"] + pub type OesTextureFloat; +} diff --git a/crates/web-sys/src/features/gen_OesTextureFloatLinear.rs b/crates/web-sys/src/features/gen_OesTextureFloatLinear.rs new file mode 100644 index 00000000..c1f3a519 --- /dev/null +++ b/crates/web-sys/src/features/gen_OesTextureFloatLinear.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_texture_float_linear , typescript_type = "OES_texture_float_linear" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `OesTextureFloatLinear` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_texture_float_linear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OesTextureFloatLinear`*"] + pub type OesTextureFloatLinear; +} diff --git a/crates/web-sys/src/features/gen_OesTextureHalfFloat.rs b/crates/web-sys/src/features/gen_OesTextureHalfFloat.rs new file mode 100644 index 00000000..592916d3 --- /dev/null +++ b/crates/web-sys/src/features/gen_OesTextureHalfFloat.rs @@ -0,0 +1,20 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_texture_half_float , typescript_type = "OES_texture_half_float" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `OesTextureHalfFloat` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_texture_half_float)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OesTextureHalfFloat`*"] + pub type OesTextureHalfFloat; +} +impl OesTextureHalfFloat { + #[doc = "The `OES_texture_half_float.HALF_FLOAT_OES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OesTextureHalfFloat`*"] + pub const HALF_FLOAT_OES: u32 = 36193u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_OesTextureHalfFloatLinear.rs b/crates/web-sys/src/features/gen_OesTextureHalfFloatLinear.rs new file mode 100644 index 00000000..94b45e7b --- /dev/null +++ b/crates/web-sys/src/features/gen_OesTextureHalfFloatLinear.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_texture_half_float_linear , typescript_type = "OES_texture_half_float_linear" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `OesTextureHalfFloatLinear` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_texture_half_float_linear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OesTextureHalfFloatLinear`*"] + pub type OesTextureHalfFloatLinear; +} diff --git a/crates/web-sys/src/features/gen_OesVertexArrayObject.rs b/crates/web-sys/src/features/gen_OesVertexArrayObject.rs new file mode 100644 index 00000000..ebcea6a3 --- /dev/null +++ b/crates/web-sys/src/features/gen_OesVertexArrayObject.rs @@ -0,0 +1,61 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = OES_vertex_array_object , typescript_type = "OES_vertex_array_object" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `OesVertexArrayObject` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`*"] + pub type OesVertexArrayObject; + #[cfg(feature = "WebGlVertexArrayObject")] + # [ wasm_bindgen ( method , structural , js_class = "OES_vertex_array_object" , js_name = bindVertexArrayOES ) ] + #[doc = "The `bindVertexArrayOES()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/bindVertexArrayOES)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`, `WebGlVertexArrayObject`*"] + pub fn bind_vertex_array_oes( + this: &OesVertexArrayObject, + array_object: Option<&WebGlVertexArrayObject>, + ); + #[cfg(feature = "WebGlVertexArrayObject")] + # [ wasm_bindgen ( method , structural , js_class = "OES_vertex_array_object" , js_name = createVertexArrayOES ) ] + #[doc = "The `createVertexArrayOES()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/createVertexArrayOES)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`, `WebGlVertexArrayObject`*"] + pub fn create_vertex_array_oes(this: &OesVertexArrayObject) -> Option; + #[cfg(feature = "WebGlVertexArrayObject")] + # [ wasm_bindgen ( method , structural , js_class = "OES_vertex_array_object" , js_name = deleteVertexArrayOES ) ] + #[doc = "The `deleteVertexArrayOES()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/deleteVertexArrayOES)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`, `WebGlVertexArrayObject`*"] + pub fn delete_vertex_array_oes( + this: &OesVertexArrayObject, + array_object: Option<&WebGlVertexArrayObject>, + ); + #[cfg(feature = "WebGlVertexArrayObject")] + # [ wasm_bindgen ( method , structural , js_class = "OES_vertex_array_object" , js_name = isVertexArrayOES ) ] + #[doc = "The `isVertexArrayOES()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OES_vertex_array_object/isVertexArrayOES)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`, `WebGlVertexArrayObject`*"] + pub fn is_vertex_array_oes( + this: &OesVertexArrayObject, + array_object: Option<&WebGlVertexArrayObject>, + ) -> bool; +} +impl OesVertexArrayObject { + #[doc = "The `OES_vertex_array_object.VERTEX_ARRAY_BINDING_OES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OesVertexArrayObject`*"] + pub const VERTEX_ARRAY_BINDING_OES: u32 = 34229u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_OfflineAudioCompletionEvent.rs b/crates/web-sys/src/features/gen_OfflineAudioCompletionEvent.rs new file mode 100644 index 00000000..4cec2ef8 --- /dev/null +++ b/crates/web-sys/src/features/gen_OfflineAudioCompletionEvent.rs @@ -0,0 +1,33 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = OfflineAudioCompletionEvent , typescript_type = "OfflineAudioCompletionEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `OfflineAudioCompletionEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioCompletionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEvent`*"] + pub type OfflineAudioCompletionEvent; + #[cfg(feature = "AudioBuffer")] + # [ wasm_bindgen ( structural , method , getter , js_class = "OfflineAudioCompletionEvent" , js_name = renderedBuffer ) ] + #[doc = "Getter for the `renderedBuffer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioCompletionEvent/renderedBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `OfflineAudioCompletionEvent`*"] + pub fn rendered_buffer(this: &OfflineAudioCompletionEvent) -> AudioBuffer; + #[cfg(feature = "OfflineAudioCompletionEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "OfflineAudioCompletionEvent")] + #[doc = "The `new OfflineAudioCompletionEvent(..)` constructor, creating a new instance of `OfflineAudioCompletionEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioCompletionEvent/OfflineAudioCompletionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEvent`, `OfflineAudioCompletionEventInit`*"] + pub fn new( + type_: &str, + event_init_dict: &OfflineAudioCompletionEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_OfflineAudioCompletionEventInit.rs b/crates/web-sys/src/features/gen_OfflineAudioCompletionEventInit.rs new file mode 100644 index 00000000..5cd9c624 --- /dev/null +++ b/crates/web-sys/src/features/gen_OfflineAudioCompletionEventInit.rs @@ -0,0 +1,93 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = OfflineAudioCompletionEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `OfflineAudioCompletionEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEventInit`*"] + pub type OfflineAudioCompletionEventInit; +} +impl OfflineAudioCompletionEventInit { + #[cfg(feature = "AudioBuffer")] + #[doc = "Construct a new `OfflineAudioCompletionEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `OfflineAudioCompletionEventInit`*"] + pub fn new(rendered_buffer: &AudioBuffer) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.rendered_buffer(rendered_buffer); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioCompletionEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "AudioBuffer")] + #[doc = "Change the `renderedBuffer` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `OfflineAudioCompletionEventInit`*"] + pub fn rendered_buffer(&mut self, val: &AudioBuffer) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("renderedBuffer"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_OfflineAudioContext.rs b/crates/web-sys/src/features/gen_OfflineAudioContext.rs new file mode 100644 index 00000000..730a1981 --- /dev/null +++ b/crates/web-sys/src/features/gen_OfflineAudioContext.rs @@ -0,0 +1,412 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( vendor_prefix = webkit , extends = BaseAudioContext , extends = EventTarget , extends = :: js_sys :: Object , js_name = OfflineAudioContext , typescript_type = "OfflineAudioContext" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `OfflineAudioContext` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] + pub type OfflineAudioContext; + # [ wasm_bindgen ( structural , method , getter , js_class = "OfflineAudioContext" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] + pub fn length(this: &OfflineAudioContext) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "OfflineAudioContext" , js_name = oncomplete ) ] + #[doc = "Getter for the `oncomplete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/oncomplete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] + pub fn oncomplete(this: &OfflineAudioContext) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "OfflineAudioContext" , js_name = oncomplete ) ] + #[doc = "Setter for the `oncomplete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/oncomplete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] + pub fn set_oncomplete(this: &OfflineAudioContext, value: Option<&::js_sys::Function>); + #[cfg(feature = "AudioDestinationNode")] + # [ wasm_bindgen ( structural , method , getter , js_class = "OfflineAudioContext" , js_name = destination ) ] + #[doc = "Getter for the `destination` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/destination)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioDestinationNode`, `OfflineAudioContext`*"] + pub fn destination(this: &OfflineAudioContext) -> AudioDestinationNode; + # [ wasm_bindgen ( structural , method , getter , js_class = "OfflineAudioContext" , js_name = sampleRate ) ] + #[doc = "Getter for the `sampleRate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/sampleRate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] + pub fn sample_rate(this: &OfflineAudioContext) -> f32; + # [ wasm_bindgen ( structural , method , getter , js_class = "OfflineAudioContext" , js_name = currentTime ) ] + #[doc = "Getter for the `currentTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/currentTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] + pub fn current_time(this: &OfflineAudioContext) -> f64; + #[cfg(feature = "AudioListener")] + # [ wasm_bindgen ( structural , method , getter , js_class = "OfflineAudioContext" , js_name = listener ) ] + #[doc = "Getter for the `listener` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/listener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioListener`, `OfflineAudioContext`*"] + pub fn listener(this: &OfflineAudioContext) -> AudioListener; + #[cfg(feature = "AudioContextState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "OfflineAudioContext" , js_name = state ) ] + #[doc = "Getter for the `state` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/state)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioContextState`, `OfflineAudioContext`*"] + pub fn state(this: &OfflineAudioContext) -> AudioContextState; + #[cfg(feature = "AudioWorklet")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "OfflineAudioContext" , js_name = audioWorklet ) ] + #[doc = "Getter for the `audioWorklet` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/audioWorklet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioWorklet`, `OfflineAudioContext`*"] + pub fn audio_worklet(this: &OfflineAudioContext) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "OfflineAudioContext" , js_name = onstatechange ) ] + #[doc = "Getter for the `onstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/onstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] + pub fn onstatechange(this: &OfflineAudioContext) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "OfflineAudioContext" , js_name = onstatechange ) ] + #[doc = "Setter for the `onstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/onstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] + pub fn set_onstatechange(this: &OfflineAudioContext, value: Option<&::js_sys::Function>); + #[cfg(feature = "OfflineAudioContextOptions")] + #[wasm_bindgen(catch, constructor, js_class = "OfflineAudioContext")] + #[doc = "The `new OfflineAudioContext(..)` constructor, creating a new instance of `OfflineAudioContext`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/OfflineAudioContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `OfflineAudioContextOptions`*"] + pub fn new_with_context_options( + context_options: &OfflineAudioContextOptions, + ) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "OfflineAudioContext")] + #[doc = "The `new OfflineAudioContext(..)` constructor, creating a new instance of `OfflineAudioContext`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/OfflineAudioContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] + pub fn new_with_number_of_channels_and_length_and_sample_rate( + number_of_channels: u32, + length: u32, + sample_rate: f32, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = startRendering ) ] + #[doc = "The `startRendering()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/startRendering)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] + pub fn start_rendering(this: &OfflineAudioContext) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "AnalyserNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createAnalyser ) ] + #[doc = "The `createAnalyser()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createAnalyser)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AnalyserNode`, `OfflineAudioContext`*"] + pub fn create_analyser(this: &OfflineAudioContext) -> Result; + #[cfg(feature = "BiquadFilterNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createBiquadFilter ) ] + #[doc = "The `createBiquadFilter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createBiquadFilter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BiquadFilterNode`, `OfflineAudioContext`*"] + pub fn create_biquad_filter(this: &OfflineAudioContext) -> Result; + #[cfg(feature = "AudioBuffer")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createBuffer ) ] + #[doc = "The `createBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBuffer`, `OfflineAudioContext`*"] + pub fn create_buffer( + this: &OfflineAudioContext, + number_of_channels: u32, + length: u32, + sample_rate: f32, + ) -> Result; + #[cfg(feature = "AudioBufferSourceNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createBufferSource ) ] + #[doc = "The `createBufferSource()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createBufferSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioBufferSourceNode`, `OfflineAudioContext`*"] + pub fn create_buffer_source( + this: &OfflineAudioContext, + ) -> Result; + #[cfg(feature = "ChannelMergerNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createChannelMerger ) ] + #[doc = "The `createChannelMerger()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createChannelMerger)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelMergerNode`, `OfflineAudioContext`*"] + pub fn create_channel_merger(this: &OfflineAudioContext) -> Result; + #[cfg(feature = "ChannelMergerNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createChannelMerger ) ] + #[doc = "The `createChannelMerger()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createChannelMerger)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelMergerNode`, `OfflineAudioContext`*"] + pub fn create_channel_merger_with_number_of_inputs( + this: &OfflineAudioContext, + number_of_inputs: u32, + ) -> Result; + #[cfg(feature = "ChannelSplitterNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createChannelSplitter ) ] + #[doc = "The `createChannelSplitter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createChannelSplitter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterNode`, `OfflineAudioContext`*"] + pub fn create_channel_splitter( + this: &OfflineAudioContext, + ) -> Result; + #[cfg(feature = "ChannelSplitterNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createChannelSplitter ) ] + #[doc = "The `createChannelSplitter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createChannelSplitter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelSplitterNode`, `OfflineAudioContext`*"] + pub fn create_channel_splitter_with_number_of_outputs( + this: &OfflineAudioContext, + number_of_outputs: u32, + ) -> Result; + #[cfg(feature = "ConstantSourceNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createConstantSource ) ] + #[doc = "The `createConstantSource()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createConstantSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConstantSourceNode`, `OfflineAudioContext`*"] + pub fn create_constant_source( + this: &OfflineAudioContext, + ) -> Result; + #[cfg(feature = "ConvolverNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createConvolver ) ] + #[doc = "The `createConvolver()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createConvolver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvolverNode`, `OfflineAudioContext`*"] + pub fn create_convolver(this: &OfflineAudioContext) -> Result; + #[cfg(feature = "DelayNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createDelay ) ] + #[doc = "The `createDelay()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createDelay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DelayNode`, `OfflineAudioContext`*"] + pub fn create_delay(this: &OfflineAudioContext) -> Result; + #[cfg(feature = "DelayNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createDelay ) ] + #[doc = "The `createDelay()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createDelay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DelayNode`, `OfflineAudioContext`*"] + pub fn create_delay_with_max_delay_time( + this: &OfflineAudioContext, + max_delay_time: f64, + ) -> Result; + #[cfg(feature = "DynamicsCompressorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createDynamicsCompressor ) ] + #[doc = "The `createDynamicsCompressor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createDynamicsCompressor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DynamicsCompressorNode`, `OfflineAudioContext`*"] + pub fn create_dynamics_compressor( + this: &OfflineAudioContext, + ) -> Result; + #[cfg(feature = "GainNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createGain ) ] + #[doc = "The `createGain()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createGain)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GainNode`, `OfflineAudioContext`*"] + pub fn create_gain(this: &OfflineAudioContext) -> Result; + #[cfg(feature = "IirFilterNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createIIRFilter ) ] + #[doc = "The `createIIRFilter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createIIRFilter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IirFilterNode`, `OfflineAudioContext`*"] + pub fn create_iir_filter( + this: &OfflineAudioContext, + feedforward: &::wasm_bindgen::JsValue, + feedback: &::wasm_bindgen::JsValue, + ) -> Result; + #[cfg(feature = "OscillatorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createOscillator ) ] + #[doc = "The `createOscillator()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createOscillator)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `OscillatorNode`*"] + pub fn create_oscillator(this: &OfflineAudioContext) -> Result; + #[cfg(feature = "PannerNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createPanner ) ] + #[doc = "The `createPanner()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createPanner)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `PannerNode`*"] + pub fn create_panner(this: &OfflineAudioContext) -> Result; + #[cfg(feature = "PeriodicWave")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createPeriodicWave ) ] + #[doc = "The `createPeriodicWave()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createPeriodicWave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `PeriodicWave`*"] + pub fn create_periodic_wave( + this: &OfflineAudioContext, + real: &mut [f32], + imag: &mut [f32], + ) -> Result; + #[cfg(all(feature = "PeriodicWave", feature = "PeriodicWaveConstraints",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createPeriodicWave ) ] + #[doc = "The `createPeriodicWave()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createPeriodicWave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `PeriodicWave`, `PeriodicWaveConstraints`*"] + pub fn create_periodic_wave_with_constraints( + this: &OfflineAudioContext, + real: &mut [f32], + imag: &mut [f32], + constraints: &PeriodicWaveConstraints, + ) -> Result; + #[cfg(feature = "ScriptProcessorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createScriptProcessor ) ] + #[doc = "The `createScriptProcessor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createScriptProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `ScriptProcessorNode`*"] + pub fn create_script_processor( + this: &OfflineAudioContext, + ) -> Result; + #[cfg(feature = "ScriptProcessorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createScriptProcessor ) ] + #[doc = "The `createScriptProcessor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createScriptProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `ScriptProcessorNode`*"] + pub fn create_script_processor_with_buffer_size( + this: &OfflineAudioContext, + buffer_size: u32, + ) -> Result; + #[cfg(feature = "ScriptProcessorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createScriptProcessor ) ] + #[doc = "The `createScriptProcessor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createScriptProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `ScriptProcessorNode`*"] + pub fn create_script_processor_with_buffer_size_and_number_of_input_channels( + this: &OfflineAudioContext, + buffer_size: u32, + number_of_input_channels: u32, + ) -> Result; + #[cfg(feature = "ScriptProcessorNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createScriptProcessor ) ] + #[doc = "The `createScriptProcessor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createScriptProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `ScriptProcessorNode`*"] + pub fn create_script_processor_with_buffer_size_and_number_of_input_channels_and_number_of_output_channels( + this: &OfflineAudioContext, + buffer_size: u32, + number_of_input_channels: u32, + number_of_output_channels: u32, + ) -> Result; + #[cfg(feature = "StereoPannerNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createStereoPanner ) ] + #[doc = "The `createStereoPanner()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createStereoPanner)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `StereoPannerNode`*"] + pub fn create_stereo_panner(this: &OfflineAudioContext) -> Result; + #[cfg(feature = "WaveShaperNode")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = createWaveShaper ) ] + #[doc = "The `createWaveShaper()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/createWaveShaper)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`, `WaveShaperNode`*"] + pub fn create_wave_shaper(this: &OfflineAudioContext) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = decodeAudioData ) ] + #[doc = "The `decodeAudioData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/decodeAudioData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] + pub fn decode_audio_data( + this: &OfflineAudioContext, + audio_data: &::js_sys::ArrayBuffer, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = decodeAudioData ) ] + #[doc = "The `decodeAudioData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/decodeAudioData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] + pub fn decode_audio_data_with_success_callback( + this: &OfflineAudioContext, + audio_data: &::js_sys::ArrayBuffer, + success_callback: &::js_sys::Function, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = decodeAudioData ) ] + #[doc = "The `decodeAudioData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/decodeAudioData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] + pub fn decode_audio_data_with_success_callback_and_error_callback( + this: &OfflineAudioContext, + audio_data: &::js_sys::ArrayBuffer, + success_callback: &::js_sys::Function, + error_callback: &::js_sys::Function, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineAudioContext" , js_name = resume ) ] + #[doc = "The `resume()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioContext/resume)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContext`*"] + pub fn resume(this: &OfflineAudioContext) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_OfflineAudioContextOptions.rs b/crates/web-sys/src/features/gen_OfflineAudioContextOptions.rs new file mode 100644 index 00000000..81ca0e74 --- /dev/null +++ b/crates/web-sys/src/features/gen_OfflineAudioContextOptions.rs @@ -0,0 +1,72 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = OfflineAudioContextOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `OfflineAudioContextOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContextOptions`*"] + pub type OfflineAudioContextOptions; +} +impl OfflineAudioContextOptions { + #[doc = "Construct a new `OfflineAudioContextOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContextOptions`*"] + pub fn new(length: u32, sample_rate: f32) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.length(length); + ret.sample_rate(sample_rate); + ret + } + #[doc = "Change the `length` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContextOptions`*"] + pub fn length(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("length"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `numberOfChannels` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContextOptions`*"] + pub fn number_of_channels(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("numberOfChannels"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `sampleRate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineAudioContextOptions`*"] + pub fn sample_rate(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sampleRate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_OfflineResourceList.rs b/crates/web-sys/src/features/gen_OfflineResourceList.rs new file mode 100644 index 00000000..3f018c81 --- /dev/null +++ b/crates/web-sys/src/features/gen_OfflineResourceList.rs @@ -0,0 +1,173 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = OfflineResourceList , typescript_type = "OfflineResourceList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `OfflineResourceList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub type OfflineResourceList; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "OfflineResourceList" , js_name = status ) ] + #[doc = "Getter for the `status` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/status)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn status(this: &OfflineResourceList) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "OfflineResourceList" , js_name = onchecking ) ] + #[doc = "Getter for the `onchecking` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onchecking)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn onchecking(this: &OfflineResourceList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "OfflineResourceList" , js_name = onchecking ) ] + #[doc = "Setter for the `onchecking` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onchecking)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn set_onchecking(this: &OfflineResourceList, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "OfflineResourceList" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn onerror(this: &OfflineResourceList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "OfflineResourceList" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn set_onerror(this: &OfflineResourceList, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "OfflineResourceList" , js_name = onnoupdate ) ] + #[doc = "Getter for the `onnoupdate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onnoupdate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn onnoupdate(this: &OfflineResourceList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "OfflineResourceList" , js_name = onnoupdate ) ] + #[doc = "Setter for the `onnoupdate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onnoupdate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn set_onnoupdate(this: &OfflineResourceList, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "OfflineResourceList" , js_name = ondownloading ) ] + #[doc = "Getter for the `ondownloading` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/ondownloading)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn ondownloading(this: &OfflineResourceList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "OfflineResourceList" , js_name = ondownloading ) ] + #[doc = "Setter for the `ondownloading` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/ondownloading)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn set_ondownloading(this: &OfflineResourceList, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "OfflineResourceList" , js_name = onprogress ) ] + #[doc = "Getter for the `onprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn onprogress(this: &OfflineResourceList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "OfflineResourceList" , js_name = onprogress ) ] + #[doc = "Setter for the `onprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn set_onprogress(this: &OfflineResourceList, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "OfflineResourceList" , js_name = onupdateready ) ] + #[doc = "Getter for the `onupdateready` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onupdateready)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn onupdateready(this: &OfflineResourceList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "OfflineResourceList" , js_name = onupdateready ) ] + #[doc = "Setter for the `onupdateready` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onupdateready)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn set_onupdateready(this: &OfflineResourceList, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "OfflineResourceList" , js_name = oncached ) ] + #[doc = "Getter for the `oncached` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/oncached)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn oncached(this: &OfflineResourceList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "OfflineResourceList" , js_name = oncached ) ] + #[doc = "Setter for the `oncached` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/oncached)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn set_oncached(this: &OfflineResourceList, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "OfflineResourceList" , js_name = onobsolete ) ] + #[doc = "Getter for the `onobsolete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onobsolete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn onobsolete(this: &OfflineResourceList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "OfflineResourceList" , js_name = onobsolete ) ] + #[doc = "Setter for the `onobsolete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/onobsolete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn set_onobsolete(this: &OfflineResourceList, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineResourceList" , js_name = swapCache ) ] + #[doc = "The `swapCache()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/swapCache)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn swap_cache(this: &OfflineResourceList) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "OfflineResourceList" , js_name = update ) ] + #[doc = "The `update()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OfflineResourceList/update)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub fn update(this: &OfflineResourceList) -> Result<(), JsValue>; +} +impl OfflineResourceList { + #[doc = "The `OfflineResourceList.UNCACHED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub const UNCACHED: u16 = 0i64 as u16; + #[doc = "The `OfflineResourceList.IDLE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub const IDLE: u16 = 1u64 as u16; + #[doc = "The `OfflineResourceList.CHECKING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub const CHECKING: u16 = 2u64 as u16; + #[doc = "The `OfflineResourceList.DOWNLOADING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub const DOWNLOADING: u16 = 3u64 as u16; + #[doc = "The `OfflineResourceList.UPDATEREADY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub const UPDATEREADY: u16 = 4u64 as u16; + #[doc = "The `OfflineResourceList.OBSOLETE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OfflineResourceList`*"] + pub const OBSOLETE: u16 = 5u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_OffscreenCanvas.rs b/crates/web-sys/src/features/gen_OffscreenCanvas.rs new file mode 100644 index 00000000..3ffd8113 --- /dev/null +++ b/crates/web-sys/src/features/gen_OffscreenCanvas.rs @@ -0,0 +1,106 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = OffscreenCanvas , typescript_type = "OffscreenCanvas" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `OffscreenCanvas` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] + pub type OffscreenCanvas; + # [ wasm_bindgen ( structural , method , getter , js_class = "OffscreenCanvas" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] + pub fn width(this: &OffscreenCanvas) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "OffscreenCanvas" , js_name = width ) ] + #[doc = "Setter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] + pub fn set_width(this: &OffscreenCanvas, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "OffscreenCanvas" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] + pub fn height(this: &OffscreenCanvas) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "OffscreenCanvas" , js_name = height ) ] + #[doc = "Setter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] + pub fn set_height(this: &OffscreenCanvas, value: u32); + #[wasm_bindgen(catch, constructor, js_class = "OffscreenCanvas")] + #[doc = "The `new OffscreenCanvas(..)` constructor, creating a new instance of `OffscreenCanvas`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/OffscreenCanvas)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] + pub fn new(width: u32, height: u32) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "OffscreenCanvas" , js_name = getContext ) ] + #[doc = "The `getContext()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/getContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] + pub fn get_context( + this: &OffscreenCanvas, + context_id: &str, + ) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "OffscreenCanvas" , js_name = getContext ) ] + #[doc = "The `getContext()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/getContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] + pub fn get_context_with_context_options( + this: &OffscreenCanvas, + context_id: &str, + context_options: &::wasm_bindgen::JsValue, + ) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "OffscreenCanvas" , js_name = toBlob ) ] + #[doc = "The `toBlob()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/toBlob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] + pub fn to_blob(this: &OffscreenCanvas) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "OffscreenCanvas" , js_name = toBlob ) ] + #[doc = "The `toBlob()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/toBlob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] + pub fn to_blob_with_type( + this: &OffscreenCanvas, + type_: &str, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "OffscreenCanvas" , js_name = toBlob ) ] + #[doc = "The `toBlob()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/toBlob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OffscreenCanvas`*"] + pub fn to_blob_with_type_and_encoder_options( + this: &OffscreenCanvas, + type_: &str, + encoder_options: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( catch , method , structural , js_class = "OffscreenCanvas" , js_name = transferToImageBitmap ) ] + #[doc = "The `transferToImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas/transferToImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `OffscreenCanvas`*"] + pub fn transfer_to_image_bitmap(this: &OffscreenCanvas) -> Result; +} diff --git a/crates/web-sys/src/features/gen_OpenWindowEventDetail.rs b/crates/web-sys/src/features/gen_OpenWindowEventDetail.rs new file mode 100644 index 00000000..1936bacf --- /dev/null +++ b/crates/web-sys/src/features/gen_OpenWindowEventDetail.rs @@ -0,0 +1,83 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = OpenWindowEventDetail ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `OpenWindowEventDetail` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] + pub type OpenWindowEventDetail; +} +impl OpenWindowEventDetail { + #[doc = "Construct a new `OpenWindowEventDetail`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `features` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] + pub fn features(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("features"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Node")] + #[doc = "Change the `frameElement` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `OpenWindowEventDetail`*"] + pub fn frame_element(&mut self, val: Option<&Node>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("frameElement"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `url` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OpenWindowEventDetail`*"] + pub fn url(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("url"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_OptionalEffectTiming.rs b/crates/web-sys/src/features/gen_OptionalEffectTiming.rs new file mode 100644 index 00000000..18810653 --- /dev/null +++ b/crates/web-sys/src/features/gen_OptionalEffectTiming.rs @@ -0,0 +1,149 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = OptionalEffectTiming ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `OptionalEffectTiming` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] + pub type OptionalEffectTiming; +} +impl OptionalEffectTiming { + #[doc = "Construct a new `OptionalEffectTiming`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `delay` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] + pub fn delay(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("delay"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "PlaybackDirection")] + #[doc = "Change the `direction` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`, `PlaybackDirection`*"] + pub fn direction(&mut self, val: PlaybackDirection) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("direction"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `duration` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] + pub fn duration(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("duration"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `easing` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] + pub fn easing(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("easing"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `endDelay` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] + pub fn end_delay(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("endDelay"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "FillMode")] + #[doc = "Change the `fill` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FillMode`, `OptionalEffectTiming`*"] + pub fn fill(&mut self, val: FillMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("fill"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `iterationStart` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] + pub fn iteration_start(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iterationStart"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `iterations` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OptionalEffectTiming`*"] + pub fn iterations(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iterations"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_OrientationLockType.rs b/crates/web-sys/src/features/gen_OrientationLockType.rs new file mode 100644 index 00000000..fd5c86e8 --- /dev/null +++ b/crates/web-sys/src/features/gen_OrientationLockType.rs @@ -0,0 +1,17 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `OrientationLockType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `OrientationLockType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum OrientationLockType { + Any = "any", + Natural = "natural", + Landscape = "landscape", + Portrait = "portrait", + PortraitPrimary = "portrait-primary", + PortraitSecondary = "portrait-secondary", + LandscapePrimary = "landscape-primary", + LandscapeSecondary = "landscape-secondary", +} diff --git a/crates/web-sys/src/features/gen_OrientationType.rs b/crates/web-sys/src/features/gen_OrientationType.rs new file mode 100644 index 00000000..15ecbc59 --- /dev/null +++ b/crates/web-sys/src/features/gen_OrientationType.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `OrientationType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `OrientationType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum OrientationType { + PortraitPrimary = "portrait-primary", + PortraitSecondary = "portrait-secondary", + LandscapePrimary = "landscape-primary", + LandscapeSecondary = "landscape-secondary", +} diff --git a/crates/web-sys/src/features/gen_OscillatorNode.rs b/crates/web-sys/src/features/gen_OscillatorNode.rs new file mode 100644 index 00000000..e4e78bbd --- /dev/null +++ b/crates/web-sys/src/features/gen_OscillatorNode.rs @@ -0,0 +1,115 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioScheduledSourceNode , extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = OscillatorNode , typescript_type = "OscillatorNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `OscillatorNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] + pub type OscillatorNode; + #[cfg(feature = "OscillatorType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "OscillatorNode" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`, `OscillatorType`*"] + pub fn type_(this: &OscillatorNode) -> OscillatorType; + #[cfg(feature = "OscillatorType")] + # [ wasm_bindgen ( structural , method , setter , js_class = "OscillatorNode" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`, `OscillatorType`*"] + pub fn set_type(this: &OscillatorNode, value: OscillatorType); + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "OscillatorNode" , js_name = frequency ) ] + #[doc = "Getter for the `frequency` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/frequency)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `OscillatorNode`*"] + pub fn frequency(this: &OscillatorNode) -> AudioParam; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "OscillatorNode" , js_name = detune ) ] + #[doc = "Getter for the `detune` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/detune)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `OscillatorNode`*"] + pub fn detune(this: &OscillatorNode) -> AudioParam; + # [ wasm_bindgen ( structural , method , getter , js_class = "OscillatorNode" , js_name = onended ) ] + #[doc = "Getter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] + pub fn onended(this: &OscillatorNode) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "OscillatorNode" , js_name = onended ) ] + #[doc = "Setter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] + pub fn set_onended(this: &OscillatorNode, value: Option<&::js_sys::Function>); + #[cfg(feature = "BaseAudioContext")] + #[wasm_bindgen(catch, constructor, js_class = "OscillatorNode")] + #[doc = "The `new OscillatorNode(..)` constructor, creating a new instance of `OscillatorNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/OscillatorNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `OscillatorNode`*"] + pub fn new(context: &BaseAudioContext) -> Result; + #[cfg(all(feature = "BaseAudioContext", feature = "OscillatorOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "OscillatorNode")] + #[doc = "The `new OscillatorNode(..)` constructor, creating a new instance of `OscillatorNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/OscillatorNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `OscillatorNode`, `OscillatorOptions`*"] + pub fn new_with_options( + context: &BaseAudioContext, + options: &OscillatorOptions, + ) -> Result; + #[cfg(feature = "PeriodicWave")] + # [ wasm_bindgen ( method , structural , js_class = "OscillatorNode" , js_name = setPeriodicWave ) ] + #[doc = "The `setPeriodicWave()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/setPeriodicWave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`, `PeriodicWave`*"] + pub fn set_periodic_wave(this: &OscillatorNode, periodic_wave: &PeriodicWave); + # [ wasm_bindgen ( catch , method , structural , js_class = "OscillatorNode" , js_name = start ) ] + #[doc = "The `start()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] + pub fn start(this: &OscillatorNode) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "OscillatorNode" , js_name = start ) ] + #[doc = "The `start()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] + pub fn start_with_when(this: &OscillatorNode, when: f64) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "OscillatorNode" , js_name = stop ) ] + #[doc = "The `stop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/stop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] + pub fn stop(this: &OscillatorNode) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "OscillatorNode" , js_name = stop ) ] + #[doc = "The `stop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OscillatorNode/stop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OscillatorNode`*"] + pub fn stop_with_when(this: &OscillatorNode, when: f64) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_OscillatorOptions.rs b/crates/web-sys/src/features/gen_OscillatorOptions.rs new file mode 100644 index 00000000..c13948a7 --- /dev/null +++ b/crates/web-sys/src/features/gen_OscillatorOptions.rs @@ -0,0 +1,138 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = OscillatorOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `OscillatorOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`*"] + pub type OscillatorOptions; +} +impl OscillatorOptions { + #[doc = "Construct a new `OscillatorOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`*"] + pub fn channel_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelCountMode")] + #[doc = "Change the `channelCountMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `OscillatorOptions`*"] + pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCountMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelInterpretation")] + #[doc = "Change the `channelInterpretation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `OscillatorOptions`*"] + pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelInterpretation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `detune` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`*"] + pub fn detune(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detune"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `frequency` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`*"] + pub fn frequency(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("frequency"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "PeriodicWave")] + #[doc = "Change the `periodicWave` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`, `PeriodicWave`*"] + pub fn periodic_wave(&mut self, val: &PeriodicWave) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("periodicWave"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "OscillatorType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OscillatorOptions`, `OscillatorType`*"] + pub fn type_(&mut self, val: OscillatorType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_OscillatorType.rs b/crates/web-sys/src/features/gen_OscillatorType.rs new file mode 100644 index 00000000..49272cf5 --- /dev/null +++ b/crates/web-sys/src/features/gen_OscillatorType.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `OscillatorType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `OscillatorType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum OscillatorType { + Sine = "sine", + Square = "square", + Sawtooth = "sawtooth", + Triangle = "triangle", + Custom = "custom", +} diff --git a/crates/web-sys/src/features/gen_OverSampleType.rs b/crates/web-sys/src/features/gen_OverSampleType.rs new file mode 100644 index 00000000..bbedb3db --- /dev/null +++ b/crates/web-sys/src/features/gen_OverSampleType.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `OverSampleType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `OverSampleType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum OverSampleType { + None = "none", + N2x = "2x", + N4x = "4x", +} diff --git a/crates/web-sys/src/features/gen_PageTransitionEvent.rs b/crates/web-sys/src/features/gen_PageTransitionEvent.rs new file mode 100644 index 00000000..ddebe05a --- /dev/null +++ b/crates/web-sys/src/features/gen_PageTransitionEvent.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = PageTransitionEvent , typescript_type = "PageTransitionEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PageTransitionEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PageTransitionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PageTransitionEvent`*"] + pub type PageTransitionEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "PageTransitionEvent" , js_name = persisted ) ] + #[doc = "Getter for the `persisted` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PageTransitionEvent/persisted)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PageTransitionEvent`*"] + pub fn persisted(this: &PageTransitionEvent) -> bool; + #[wasm_bindgen(catch, constructor, js_class = "PageTransitionEvent")] + #[doc = "The `new PageTransitionEvent(..)` constructor, creating a new instance of `PageTransitionEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PageTransitionEvent/PageTransitionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PageTransitionEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "PageTransitionEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "PageTransitionEvent")] + #[doc = "The `new PageTransitionEvent(..)` constructor, creating a new instance of `PageTransitionEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PageTransitionEvent/PageTransitionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PageTransitionEvent`, `PageTransitionEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &PageTransitionEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_PageTransitionEventInit.rs b/crates/web-sys/src/features/gen_PageTransitionEventInit.rs new file mode 100644 index 00000000..dbc469f2 --- /dev/null +++ b/crates/web-sys/src/features/gen_PageTransitionEventInit.rs @@ -0,0 +1,107 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PageTransitionEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PageTransitionEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] + pub type PageTransitionEventInit; +} +impl PageTransitionEventInit { + #[doc = "Construct a new `PageTransitionEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `inFrameSwap` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] + pub fn in_frame_swap(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("inFrameSwap"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `persisted` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PageTransitionEventInit`*"] + pub fn persisted(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("persisted"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PaintRequest.rs b/crates/web-sys/src/features/gen_PaintRequest.rs new file mode 100644 index 00000000..9d808979 --- /dev/null +++ b/crates/web-sys/src/features/gen_PaintRequest.rs @@ -0,0 +1,29 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PaintRequest , typescript_type = "PaintRequest" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PaintRequest` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaintRequest`*"] + pub type PaintRequest; + #[cfg(feature = "DomRect")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PaintRequest" , js_name = clientRect ) ] + #[doc = "Getter for the `clientRect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequest/clientRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`, `PaintRequest`*"] + pub fn client_rect(this: &PaintRequest) -> DomRect; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaintRequest" , js_name = reason ) ] + #[doc = "Getter for the `reason` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequest/reason)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaintRequest`*"] + pub fn reason(this: &PaintRequest) -> String; +} diff --git a/crates/web-sys/src/features/gen_PaintRequestList.rs b/crates/web-sys/src/features/gen_PaintRequestList.rs new file mode 100644 index 00000000..2d81bcdc --- /dev/null +++ b/crates/web-sys/src/features/gen_PaintRequestList.rs @@ -0,0 +1,37 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PaintRequestList , typescript_type = "PaintRequestList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PaintRequestList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequestList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaintRequestList`*"] + pub type PaintRequestList; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaintRequestList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequestList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaintRequestList`*"] + pub fn length(this: &PaintRequestList) -> u32; + #[cfg(feature = "PaintRequest")] + # [ wasm_bindgen ( method , structural , js_class = "PaintRequestList" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintRequestList/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaintRequest`, `PaintRequestList`*"] + pub fn item(this: &PaintRequestList, index: u32) -> Option; + #[cfg(feature = "PaintRequest")] + #[wasm_bindgen(method, structural, js_class = "PaintRequestList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaintRequest`, `PaintRequestList`*"] + pub fn get(this: &PaintRequestList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_PaintWorkletGlobalScope.rs b/crates/web-sys/src/features/gen_PaintWorkletGlobalScope.rs new file mode 100644 index 00000000..ab3a5553 --- /dev/null +++ b/crates/web-sys/src/features/gen_PaintWorkletGlobalScope.rs @@ -0,0 +1,25 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = WorkletGlobalScope , extends = :: js_sys :: Object , js_name = PaintWorkletGlobalScope , typescript_type = "PaintWorkletGlobalScope" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PaintWorkletGlobalScope` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintWorkletGlobalScope)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaintWorkletGlobalScope`*"] + pub type PaintWorkletGlobalScope; + # [ wasm_bindgen ( method , structural , js_class = "PaintWorkletGlobalScope" , js_name = registerPaint ) ] + #[doc = "The `registerPaint()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaintWorkletGlobalScope/registerPaint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaintWorkletGlobalScope`*"] + pub fn register_paint( + this: &PaintWorkletGlobalScope, + name: &str, + paint_ctor: &::js_sys::Function, + ); +} diff --git a/crates/web-sys/src/features/gen_PannerNode.rs b/crates/web-sys/src/features/gen_PannerNode.rs new file mode 100644 index 00000000..a1bb7f21 --- /dev/null +++ b/crates/web-sys/src/features/gen_PannerNode.rs @@ -0,0 +1,218 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = PannerNode , typescript_type = "PannerNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PannerNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] + pub type PannerNode; + #[cfg(feature = "PanningModelType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PannerNode" , js_name = panningModel ) ] + #[doc = "Getter for the `panningModel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/panningModel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`, `PanningModelType`*"] + pub fn panning_model(this: &PannerNode) -> PanningModelType; + #[cfg(feature = "PanningModelType")] + # [ wasm_bindgen ( structural , method , setter , js_class = "PannerNode" , js_name = panningModel ) ] + #[doc = "Setter for the `panningModel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/panningModel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`, `PanningModelType`*"] + pub fn set_panning_model(this: &PannerNode, value: PanningModelType); + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PannerNode" , js_name = positionX ) ] + #[doc = "Getter for the `positionX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] + pub fn position_x(this: &PannerNode) -> AudioParam; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PannerNode" , js_name = positionY ) ] + #[doc = "Getter for the `positionY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] + pub fn position_y(this: &PannerNode) -> AudioParam; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PannerNode" , js_name = positionZ ) ] + #[doc = "Getter for the `positionZ` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/positionZ)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] + pub fn position_z(this: &PannerNode) -> AudioParam; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PannerNode" , js_name = orientationX ) ] + #[doc = "Getter for the `orientationX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] + pub fn orientation_x(this: &PannerNode) -> AudioParam; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PannerNode" , js_name = orientationY ) ] + #[doc = "Getter for the `orientationY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] + pub fn orientation_y(this: &PannerNode) -> AudioParam; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PannerNode" , js_name = orientationZ ) ] + #[doc = "Getter for the `orientationZ` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/orientationZ)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `PannerNode`*"] + pub fn orientation_z(this: &PannerNode) -> AudioParam; + #[cfg(feature = "DistanceModelType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PannerNode" , js_name = distanceModel ) ] + #[doc = "Getter for the `distanceModel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/distanceModel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DistanceModelType`, `PannerNode`*"] + pub fn distance_model(this: &PannerNode) -> DistanceModelType; + #[cfg(feature = "DistanceModelType")] + # [ wasm_bindgen ( structural , method , setter , js_class = "PannerNode" , js_name = distanceModel ) ] + #[doc = "Setter for the `distanceModel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/distanceModel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DistanceModelType`, `PannerNode`*"] + pub fn set_distance_model(this: &PannerNode, value: DistanceModelType); + # [ wasm_bindgen ( structural , method , getter , js_class = "PannerNode" , js_name = refDistance ) ] + #[doc = "Getter for the `refDistance` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/refDistance)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] + pub fn ref_distance(this: &PannerNode) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "PannerNode" , js_name = refDistance ) ] + #[doc = "Setter for the `refDistance` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/refDistance)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] + pub fn set_ref_distance(this: &PannerNode, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "PannerNode" , js_name = maxDistance ) ] + #[doc = "Getter for the `maxDistance` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/maxDistance)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] + pub fn max_distance(this: &PannerNode) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "PannerNode" , js_name = maxDistance ) ] + #[doc = "Setter for the `maxDistance` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/maxDistance)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] + pub fn set_max_distance(this: &PannerNode, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "PannerNode" , js_name = rolloffFactor ) ] + #[doc = "Getter for the `rolloffFactor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/rolloffFactor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] + pub fn rolloff_factor(this: &PannerNode) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "PannerNode" , js_name = rolloffFactor ) ] + #[doc = "Setter for the `rolloffFactor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/rolloffFactor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] + pub fn set_rolloff_factor(this: &PannerNode, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "PannerNode" , js_name = coneInnerAngle ) ] + #[doc = "Getter for the `coneInnerAngle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneInnerAngle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] + pub fn cone_inner_angle(this: &PannerNode) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "PannerNode" , js_name = coneInnerAngle ) ] + #[doc = "Setter for the `coneInnerAngle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneInnerAngle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] + pub fn set_cone_inner_angle(this: &PannerNode, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "PannerNode" , js_name = coneOuterAngle ) ] + #[doc = "Getter for the `coneOuterAngle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterAngle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] + pub fn cone_outer_angle(this: &PannerNode) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "PannerNode" , js_name = coneOuterAngle ) ] + #[doc = "Setter for the `coneOuterAngle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterAngle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] + pub fn set_cone_outer_angle(this: &PannerNode, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "PannerNode" , js_name = coneOuterGain ) ] + #[doc = "Getter for the `coneOuterGain` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterGain)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] + pub fn cone_outer_gain(this: &PannerNode) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "PannerNode" , js_name = coneOuterGain ) ] + #[doc = "Setter for the `coneOuterGain` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/coneOuterGain)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] + pub fn set_cone_outer_gain(this: &PannerNode, value: f64); + #[cfg(feature = "BaseAudioContext")] + #[wasm_bindgen(catch, constructor, js_class = "PannerNode")] + #[doc = "The `new PannerNode(..)` constructor, creating a new instance of `PannerNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/PannerNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PannerNode`*"] + pub fn new(context: &BaseAudioContext) -> Result; + #[cfg(all(feature = "BaseAudioContext", feature = "PannerOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "PannerNode")] + #[doc = "The `new PannerNode(..)` constructor, creating a new instance of `PannerNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/PannerNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PannerNode`, `PannerOptions`*"] + pub fn new_with_options( + context: &BaseAudioContext, + options: &PannerOptions, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "PannerNode" , js_name = setOrientation ) ] + #[doc = "The `setOrientation()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setOrientation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] + pub fn set_orientation(this: &PannerNode, x: f64, y: f64, z: f64); + # [ wasm_bindgen ( method , structural , js_class = "PannerNode" , js_name = setPosition ) ] + #[doc = "The `setPosition()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setPosition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] + pub fn set_position(this: &PannerNode, x: f64, y: f64, z: f64); + # [ wasm_bindgen ( method , structural , js_class = "PannerNode" , js_name = setVelocity ) ] + #[doc = "The `setVelocity()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PannerNode/setVelocity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerNode`*"] + pub fn set_velocity(this: &PannerNode, x: f64, y: f64, z: f64); +} diff --git a/crates/web-sys/src/features/gen_PannerOptions.rs b/crates/web-sys/src/features/gen_PannerOptions.rs new file mode 100644 index 00000000..6c3a41d9 --- /dev/null +++ b/crates/web-sys/src/features/gen_PannerOptions.rs @@ -0,0 +1,315 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PannerOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PannerOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] + pub type PannerOptions; +} +impl PannerOptions { + #[doc = "Construct a new `PannerOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] + pub fn channel_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelCountMode")] + #[doc = "Change the `channelCountMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `PannerOptions`*"] + pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCountMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelInterpretation")] + #[doc = "Change the `channelInterpretation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `PannerOptions`*"] + pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelInterpretation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `coneInnerAngle` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] + pub fn cone_inner_angle(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("coneInnerAngle"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `coneOuterAngle` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] + pub fn cone_outer_angle(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("coneOuterAngle"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `coneOuterGain` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] + pub fn cone_outer_gain(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("coneOuterGain"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "DistanceModelType")] + #[doc = "Change the `distanceModel` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DistanceModelType`, `PannerOptions`*"] + pub fn distance_model(&mut self, val: DistanceModelType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("distanceModel"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `maxDistance` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] + pub fn max_distance(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maxDistance"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `orientationX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] + pub fn orientation_x(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("orientationX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `orientationY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] + pub fn orientation_y(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("orientationY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `orientationZ` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] + pub fn orientation_z(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("orientationZ"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "PanningModelType")] + #[doc = "Change the `panningModel` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerOptions`, `PanningModelType`*"] + pub fn panning_model(&mut self, val: PanningModelType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("panningModel"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `positionX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] + pub fn position_x(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("positionX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `positionY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] + pub fn position_y(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("positionY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `positionZ` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] + pub fn position_z(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("positionZ"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `refDistance` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] + pub fn ref_distance(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("refDistance"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `rolloffFactor` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PannerOptions`*"] + pub fn rolloff_factor(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("rolloffFactor"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PanningModelType.rs b/crates/web-sys/src/features/gen_PanningModelType.rs new file mode 100644 index 00000000..bdee90bc --- /dev/null +++ b/crates/web-sys/src/features/gen_PanningModelType.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `PanningModelType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `PanningModelType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum PanningModelType { + Equalpower = "equalpower", + Hrtf = "HRTF", +} diff --git a/crates/web-sys/src/features/gen_Path2d.rs b/crates/web-sys/src/features/gen_Path2d.rs new file mode 100644 index 00000000..e2e79906 --- /dev/null +++ b/crates/web-sys/src/features/gen_Path2d.rs @@ -0,0 +1,176 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Path2D , typescript_type = "Path2D" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Path2d` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] + pub type Path2d; + #[wasm_bindgen(catch, constructor, js_class = "Path2D")] + #[doc = "The `new Path2d(..)` constructor, creating a new instance of `Path2d`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/Path2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Path2D")] + #[doc = "The `new Path2d(..)` constructor, creating a new instance of `Path2d`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/Path2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] + pub fn new_with_other(other: &Path2d) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Path2D")] + #[doc = "The `new Path2d(..)` constructor, creating a new instance of `Path2d`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/Path2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] + pub fn new_with_path_string(path_string: &str) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "Path2D" , js_name = addPath ) ] + #[doc = "The `addPath()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/addPath)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] + pub fn add_path(this: &Path2d, path: &Path2d); + #[cfg(feature = "SvgMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "Path2D" , js_name = addPath ) ] + #[doc = "The `addPath()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/addPath)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Path2d`, `SvgMatrix`*"] + pub fn add_path_with_transformation(this: &Path2d, path: &Path2d, transformation: &SvgMatrix); + # [ wasm_bindgen ( catch , method , structural , js_class = "Path2D" , js_name = arc ) ] + #[doc = "The `arc()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/arc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] + pub fn arc( + this: &Path2d, + x: f64, + y: f64, + radius: f64, + start_angle: f64, + end_angle: f64, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Path2D" , js_name = arc ) ] + #[doc = "The `arc()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/arc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] + pub fn arc_with_anticlockwise( + this: &Path2d, + x: f64, + y: f64, + radius: f64, + start_angle: f64, + end_angle: f64, + anticlockwise: bool, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Path2D" , js_name = arcTo ) ] + #[doc = "The `arcTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/arcTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] + pub fn arc_to( + this: &Path2d, + x1: f64, + y1: f64, + x2: f64, + y2: f64, + radius: f64, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "Path2D" , js_name = bezierCurveTo ) ] + #[doc = "The `bezierCurveTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/bezierCurveTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] + pub fn bezier_curve_to( + this: &Path2d, + cp1x: f64, + cp1y: f64, + cp2x: f64, + cp2y: f64, + x: f64, + y: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "Path2D" , js_name = closePath ) ] + #[doc = "The `closePath()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/closePath)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] + pub fn close_path(this: &Path2d); + # [ wasm_bindgen ( catch , method , structural , js_class = "Path2D" , js_name = ellipse ) ] + #[doc = "The `ellipse()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/ellipse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] + pub fn ellipse( + this: &Path2d, + x: f64, + y: f64, + radius_x: f64, + radius_y: f64, + rotation: f64, + start_angle: f64, + end_angle: f64, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Path2D" , js_name = ellipse ) ] + #[doc = "The `ellipse()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/ellipse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] + pub fn ellipse_with_anticlockwise( + this: &Path2d, + x: f64, + y: f64, + radius_x: f64, + radius_y: f64, + rotation: f64, + start_angle: f64, + end_angle: f64, + anticlockwise: bool, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "Path2D" , js_name = lineTo ) ] + #[doc = "The `lineTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/lineTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] + pub fn line_to(this: &Path2d, x: f64, y: f64); + # [ wasm_bindgen ( method , structural , js_class = "Path2D" , js_name = moveTo ) ] + #[doc = "The `moveTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/moveTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] + pub fn move_to(this: &Path2d, x: f64, y: f64); + # [ wasm_bindgen ( method , structural , js_class = "Path2D" , js_name = quadraticCurveTo ) ] + #[doc = "The `quadraticCurveTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/quadraticCurveTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] + pub fn quadratic_curve_to(this: &Path2d, cpx: f64, cpy: f64, x: f64, y: f64); + # [ wasm_bindgen ( method , structural , js_class = "Path2D" , js_name = rect ) ] + #[doc = "The `rect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Path2D/rect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Path2d`*"] + pub fn rect(this: &Path2d, x: f64, y: f64, w: f64, h: f64); +} diff --git a/crates/web-sys/src/features/gen_PaymentAddress.rs b/crates/web-sys/src/features/gen_PaymentAddress.rs new file mode 100644 index 00000000..60fc9849 --- /dev/null +++ b/crates/web-sys/src/features/gen_PaymentAddress.rs @@ -0,0 +1,98 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PaymentAddress , typescript_type = "PaymentAddress" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PaymentAddress` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] + pub type PaymentAddress; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentAddress" , js_name = country ) ] + #[doc = "Getter for the `country` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/country)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] + pub fn country(this: &PaymentAddress) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentAddress" , js_name = addressLine ) ] + #[doc = "Getter for the `addressLine` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/addressLine)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] + pub fn address_line(this: &PaymentAddress) -> ::js_sys::Array; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentAddress" , js_name = region ) ] + #[doc = "Getter for the `region` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/region)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] + pub fn region(this: &PaymentAddress) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentAddress" , js_name = city ) ] + #[doc = "Getter for the `city` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/city)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] + pub fn city(this: &PaymentAddress) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentAddress" , js_name = dependentLocality ) ] + #[doc = "Getter for the `dependentLocality` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/dependentLocality)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] + pub fn dependent_locality(this: &PaymentAddress) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentAddress" , js_name = postalCode ) ] + #[doc = "Getter for the `postalCode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/postalCode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] + pub fn postal_code(this: &PaymentAddress) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentAddress" , js_name = sortingCode ) ] + #[doc = "Getter for the `sortingCode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/sortingCode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] + pub fn sorting_code(this: &PaymentAddress) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentAddress" , js_name = languageCode ) ] + #[doc = "Getter for the `languageCode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/languageCode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] + pub fn language_code(this: &PaymentAddress) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentAddress" , js_name = organization ) ] + #[doc = "Getter for the `organization` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/organization)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] + pub fn organization(this: &PaymentAddress) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentAddress" , js_name = recipient ) ] + #[doc = "Getter for the `recipient` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/recipient)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] + pub fn recipient(this: &PaymentAddress) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentAddress" , js_name = phone ) ] + #[doc = "Getter for the `phone` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/phone)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] + pub fn phone(this: &PaymentAddress) -> String; + # [ wasm_bindgen ( method , structural , js_class = "PaymentAddress" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentAddress/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`*"] + pub fn to_json(this: &PaymentAddress) -> ::js_sys::Object; +} diff --git a/crates/web-sys/src/features/gen_PaymentComplete.rs b/crates/web-sys/src/features/gen_PaymentComplete.rs new file mode 100644 index 00000000..77812acf --- /dev/null +++ b/crates/web-sys/src/features/gen_PaymentComplete.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `PaymentComplete` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `PaymentComplete`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum PaymentComplete { + Success = "success", + Fail = "fail", + Unknown = "unknown", +} diff --git a/crates/web-sys/src/features/gen_PaymentMethodChangeEvent.rs b/crates/web-sys/src/features/gen_PaymentMethodChangeEvent.rs new file mode 100644 index 00000000..83f50c74 --- /dev/null +++ b/crates/web-sys/src/features/gen_PaymentMethodChangeEvent.rs @@ -0,0 +1,46 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = PaymentRequestUpdateEvent , extends = Event , extends = :: js_sys :: Object , js_name = PaymentMethodChangeEvent , typescript_type = "PaymentMethodChangeEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PaymentMethodChangeEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentMethodChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEvent`*"] + pub type PaymentMethodChangeEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentMethodChangeEvent" , js_name = methodName ) ] + #[doc = "Getter for the `methodName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentMethodChangeEvent/methodName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEvent`*"] + pub fn method_name(this: &PaymentMethodChangeEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentMethodChangeEvent" , js_name = methodDetails ) ] + #[doc = "Getter for the `methodDetails` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentMethodChangeEvent/methodDetails)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEvent`*"] + pub fn method_details(this: &PaymentMethodChangeEvent) -> Option<::js_sys::Object>; + #[wasm_bindgen(catch, constructor, js_class = "PaymentMethodChangeEvent")] + #[doc = "The `new PaymentMethodChangeEvent(..)` constructor, creating a new instance of `PaymentMethodChangeEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentMethodChangeEvent/PaymentMethodChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "PaymentMethodChangeEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "PaymentMethodChangeEvent")] + #[doc = "The `new PaymentMethodChangeEvent(..)` constructor, creating a new instance of `PaymentMethodChangeEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentMethodChangeEvent/PaymentMethodChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEvent`, `PaymentMethodChangeEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &PaymentMethodChangeEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_PaymentMethodChangeEventInit.rs b/crates/web-sys/src/features/gen_PaymentMethodChangeEventInit.rs new file mode 100644 index 00000000..0ca962ab --- /dev/null +++ b/crates/web-sys/src/features/gen_PaymentMethodChangeEventInit.rs @@ -0,0 +1,108 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PaymentMethodChangeEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PaymentMethodChangeEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] + pub type PaymentMethodChangeEventInit; +} +impl PaymentMethodChangeEventInit { + #[doc = "Construct a new `PaymentMethodChangeEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] + pub fn new(method_name: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.method_name(method_name); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `methodDetails` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] + pub fn method_details(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("methodDetails"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `methodName` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentMethodChangeEventInit`*"] + pub fn method_name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("methodName"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PaymentRequestUpdateEvent.rs b/crates/web-sys/src/features/gen_PaymentRequestUpdateEvent.rs new file mode 100644 index 00000000..c4970cb9 --- /dev/null +++ b/crates/web-sys/src/features/gen_PaymentRequestUpdateEvent.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = PaymentRequestUpdateEvent , typescript_type = "PaymentRequestUpdateEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PaymentRequestUpdateEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestUpdateEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEvent`*"] + pub type PaymentRequestUpdateEvent; + #[wasm_bindgen(catch, constructor, js_class = "PaymentRequestUpdateEvent")] + #[doc = "The `new PaymentRequestUpdateEvent(..)` constructor, creating a new instance of `PaymentRequestUpdateEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestUpdateEvent/PaymentRequestUpdateEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "PaymentRequestUpdateEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "PaymentRequestUpdateEvent")] + #[doc = "The `new PaymentRequestUpdateEvent(..)` constructor, creating a new instance of `PaymentRequestUpdateEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestUpdateEvent/PaymentRequestUpdateEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEvent`, `PaymentRequestUpdateEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &PaymentRequestUpdateEventInit, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "PaymentRequestUpdateEvent" , js_name = updateWith ) ] + #[doc = "The `updateWith()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequestUpdateEvent/updateWith)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEvent`*"] + pub fn update_with( + this: &PaymentRequestUpdateEvent, + details_promise: &::js_sys::Promise, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_PaymentRequestUpdateEventInit.rs b/crates/web-sys/src/features/gen_PaymentRequestUpdateEventInit.rs new file mode 100644 index 00000000..c483fef1 --- /dev/null +++ b/crates/web-sys/src/features/gen_PaymentRequestUpdateEventInit.rs @@ -0,0 +1,73 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PaymentRequestUpdateEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PaymentRequestUpdateEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEventInit`*"] + pub type PaymentRequestUpdateEventInit; +} +impl PaymentRequestUpdateEventInit { + #[doc = "Construct a new `PaymentRequestUpdateEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentRequestUpdateEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PaymentResponse.rs b/crates/web-sys/src/features/gen_PaymentResponse.rs new file mode 100644 index 00000000..e2cdadad --- /dev/null +++ b/crates/web-sys/src/features/gen_PaymentResponse.rs @@ -0,0 +1,96 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PaymentResponse , typescript_type = "PaymentResponse" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PaymentResponse` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] + pub type PaymentResponse; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentResponse" , js_name = requestId ) ] + #[doc = "Getter for the `requestId` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/requestId)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] + pub fn request_id(this: &PaymentResponse) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentResponse" , js_name = methodName ) ] + #[doc = "Getter for the `methodName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/methodName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] + pub fn method_name(this: &PaymentResponse) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentResponse" , js_name = details ) ] + #[doc = "Getter for the `details` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/details)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] + pub fn details(this: &PaymentResponse) -> ::js_sys::Object; + #[cfg(feature = "PaymentAddress")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentResponse" , js_name = shippingAddress ) ] + #[doc = "Getter for the `shippingAddress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/shippingAddress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentAddress`, `PaymentResponse`*"] + pub fn shipping_address(this: &PaymentResponse) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentResponse" , js_name = shippingOption ) ] + #[doc = "Getter for the `shippingOption` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/shippingOption)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] + pub fn shipping_option(this: &PaymentResponse) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentResponse" , js_name = payerName ) ] + #[doc = "Getter for the `payerName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/payerName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] + pub fn payer_name(this: &PaymentResponse) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentResponse" , js_name = payerEmail ) ] + #[doc = "Getter for the `payerEmail` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/payerEmail)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] + pub fn payer_email(this: &PaymentResponse) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "PaymentResponse" , js_name = payerPhone ) ] + #[doc = "Getter for the `payerPhone` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/payerPhone)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] + pub fn payer_phone(this: &PaymentResponse) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "PaymentResponse" , js_name = complete ) ] + #[doc = "The `complete()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/complete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] + pub fn complete(this: &PaymentResponse) -> ::js_sys::Promise; + #[cfg(feature = "PaymentComplete")] + # [ wasm_bindgen ( method , structural , js_class = "PaymentResponse" , js_name = complete ) ] + #[doc = "The `complete()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/complete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentComplete`, `PaymentResponse`*"] + pub fn complete_with_result( + this: &PaymentResponse, + result: PaymentComplete, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "PaymentResponse" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PaymentResponse/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PaymentResponse`*"] + pub fn to_json(this: &PaymentResponse) -> ::js_sys::Object; +} diff --git a/crates/web-sys/src/features/gen_Pbkdf2Params.rs b/crates/web-sys/src/features/gen_Pbkdf2Params.rs new file mode 100644 index 00000000..51725f29 --- /dev/null +++ b/crates/web-sys/src/features/gen_Pbkdf2Params.rs @@ -0,0 +1,87 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Pbkdf2Params ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Pbkdf2Params` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] + pub type Pbkdf2Params; +} +impl Pbkdf2Params { + #[doc = "Construct a new `Pbkdf2Params`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] + pub fn new( + name: &str, + hash: &::wasm_bindgen::JsValue, + iterations: u32, + salt: &::js_sys::Object, + ) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.hash(hash); + ret.iterations(iterations); + ret.salt(salt); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `hash` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] + pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hash"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `iterations` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] + pub fn iterations(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iterations"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `salt` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Pbkdf2Params`*"] + pub fn salt(&mut self, val: &::js_sys::Object) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("salt"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PcImplIceConnectionState.rs b/crates/web-sys/src/features/gen_PcImplIceConnectionState.rs new file mode 100644 index 00000000..f79b4ea0 --- /dev/null +++ b/crates/web-sys/src/features/gen_PcImplIceConnectionState.rs @@ -0,0 +1,16 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `PcImplIceConnectionState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `PcImplIceConnectionState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum PcImplIceConnectionState { + New = "new", + Checking = "checking", + Connected = "connected", + Completed = "completed", + Failed = "failed", + Disconnected = "disconnected", + Closed = "closed", +} diff --git a/crates/web-sys/src/features/gen_PcImplIceGatheringState.rs b/crates/web-sys/src/features/gen_PcImplIceGatheringState.rs new file mode 100644 index 00000000..dd9fe873 --- /dev/null +++ b/crates/web-sys/src/features/gen_PcImplIceGatheringState.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `PcImplIceGatheringState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `PcImplIceGatheringState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum PcImplIceGatheringState { + New = "new", + Gathering = "gathering", + Complete = "complete", +} diff --git a/crates/web-sys/src/features/gen_PcImplSignalingState.rs b/crates/web-sys/src/features/gen_PcImplSignalingState.rs new file mode 100644 index 00000000..bc940be7 --- /dev/null +++ b/crates/web-sys/src/features/gen_PcImplSignalingState.rs @@ -0,0 +1,16 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `PcImplSignalingState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `PcImplSignalingState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum PcImplSignalingState { + SignalingInvalid = "SignalingInvalid", + SignalingStable = "SignalingStable", + SignalingHaveLocalOffer = "SignalingHaveLocalOffer", + SignalingHaveRemoteOffer = "SignalingHaveRemoteOffer", + SignalingHaveLocalPranswer = "SignalingHaveLocalPranswer", + SignalingHaveRemotePranswer = "SignalingHaveRemotePranswer", + SignalingClosed = "SignalingClosed", +} diff --git a/crates/web-sys/src/features/gen_PcObserverStateType.rs b/crates/web-sys/src/features/gen_PcObserverStateType.rs new file mode 100644 index 00000000..11a74b3d --- /dev/null +++ b/crates/web-sys/src/features/gen_PcObserverStateType.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `PcObserverStateType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `PcObserverStateType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum PcObserverStateType { + None = "None", + IceConnectionState = "IceConnectionState", + IceGatheringState = "IceGatheringState", + SignalingState = "SignalingState", +} diff --git a/crates/web-sys/src/features/gen_Performance.rs b/crates/web-sys/src/features/gen_Performance.rs new file mode 100644 index 00000000..263e35b5 --- /dev/null +++ b/crates/web-sys/src/features/gen_Performance.rs @@ -0,0 +1,176 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = Performance , typescript_type = "Performance" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Performance` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub type Performance; + # [ wasm_bindgen ( structural , method , getter , js_class = "Performance" , js_name = timeOrigin ) ] + #[doc = "Getter for the `timeOrigin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/timeOrigin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn time_origin(this: &Performance) -> f64; + #[cfg(feature = "PerformanceTiming")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Performance" , js_name = timing ) ] + #[doc = "Getter for the `timing` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/timing)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`, `PerformanceTiming`*"] + pub fn timing(this: &Performance) -> PerformanceTiming; + #[cfg(feature = "PerformanceNavigation")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Performance" , js_name = navigation ) ] + #[doc = "Getter for the `navigation` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/navigation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`, `PerformanceNavigation`*"] + pub fn navigation(this: &Performance) -> PerformanceNavigation; + # [ wasm_bindgen ( structural , method , getter , js_class = "Performance" , js_name = onresourcetimingbufferfull ) ] + #[doc = "Getter for the `onresourcetimingbufferfull` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/onresourcetimingbufferfull)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn onresourcetimingbufferfull(this: &Performance) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Performance" , js_name = onresourcetimingbufferfull ) ] + #[doc = "Setter for the `onresourcetimingbufferfull` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/onresourcetimingbufferfull)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn set_onresourcetimingbufferfull(this: &Performance, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( method , structural , js_class = "Performance" , js_name = clearMarks ) ] + #[doc = "The `clearMarks()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMarks)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn clear_marks(this: &Performance); + # [ wasm_bindgen ( method , structural , js_class = "Performance" , js_name = clearMarks ) ] + #[doc = "The `clearMarks()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMarks)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn clear_marks_with_mark_name(this: &Performance, mark_name: &str); + # [ wasm_bindgen ( method , structural , js_class = "Performance" , js_name = clearMeasures ) ] + #[doc = "The `clearMeasures()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMeasures)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn clear_measures(this: &Performance); + # [ wasm_bindgen ( method , structural , js_class = "Performance" , js_name = clearMeasures ) ] + #[doc = "The `clearMeasures()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearMeasures)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn clear_measures_with_measure_name(this: &Performance, measure_name: &str); + # [ wasm_bindgen ( method , structural , js_class = "Performance" , js_name = clearResourceTimings ) ] + #[doc = "The `clearResourceTimings()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/clearResourceTimings)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn clear_resource_timings(this: &Performance); + # [ wasm_bindgen ( method , structural , js_class = "Performance" , js_name = getEntries ) ] + #[doc = "The `getEntries()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntries)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn get_entries(this: &Performance) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "Performance" , js_name = getEntriesByName ) ] + #[doc = "The `getEntriesByName()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntriesByName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn get_entries_by_name(this: &Performance, name: &str) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "Performance" , js_name = getEntriesByName ) ] + #[doc = "The `getEntriesByName()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntriesByName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn get_entries_by_name_with_entry_type( + this: &Performance, + name: &str, + entry_type: &str, + ) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "Performance" , js_name = getEntriesByType ) ] + #[doc = "The `getEntriesByType()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/getEntriesByType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn get_entries_by_type(this: &Performance, entry_type: &str) -> ::js_sys::Array; + # [ wasm_bindgen ( catch , method , structural , js_class = "Performance" , js_name = mark ) ] + #[doc = "The `mark()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/mark)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn mark(this: &Performance, mark_name: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Performance" , js_name = measure ) ] + #[doc = "The `measure()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn measure(this: &Performance, measure_name: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Performance" , js_name = measure ) ] + #[doc = "The `measure()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn measure_with_start_mark( + this: &Performance, + measure_name: &str, + start_mark: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Performance" , js_name = measure ) ] + #[doc = "The `measure()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn measure_with_start_mark_and_end_mark( + this: &Performance, + measure_name: &str, + start_mark: &str, + end_mark: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "Performance" , js_name = now ) ] + #[doc = "The `now()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/now)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn now(this: &Performance) -> f64; + # [ wasm_bindgen ( method , structural , js_class = "Performance" , js_name = setResourceTimingBufferSize ) ] + #[doc = "The `setResourceTimingBufferSize()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/setResourceTimingBufferSize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn set_resource_timing_buffer_size(this: &Performance, max_size: u32); + # [ wasm_bindgen ( method , structural , js_class = "Performance" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Performance/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`*"] + pub fn to_json(this: &Performance) -> ::js_sys::Object; +} diff --git a/crates/web-sys/src/features/gen_PerformanceEntry.rs b/crates/web-sys/src/features/gen_PerformanceEntry.rs new file mode 100644 index 00000000..5991c897 --- /dev/null +++ b/crates/web-sys/src/features/gen_PerformanceEntry.rs @@ -0,0 +1,49 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PerformanceEntry , typescript_type = "PerformanceEntry" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PerformanceEntry` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] + pub type PerformanceEntry; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceEntry" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] + pub fn name(this: &PerformanceEntry) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceEntry" , js_name = entryType ) ] + #[doc = "Getter for the `entryType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/entryType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] + pub fn entry_type(this: &PerformanceEntry) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceEntry" , js_name = startTime ) ] + #[doc = "Getter for the `startTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/startTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] + pub fn start_time(this: &PerformanceEntry) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceEntry" , js_name = duration ) ] + #[doc = "Getter for the `duration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/duration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] + pub fn duration(this: &PerformanceEntry) -> f64; + # [ wasm_bindgen ( method , structural , js_class = "PerformanceEntry" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntry`*"] + pub fn to_json(this: &PerformanceEntry) -> ::js_sys::Object; +} diff --git a/crates/web-sys/src/features/gen_PerformanceEntryEventInit.rs b/crates/web-sys/src/features/gen_PerformanceEntryEventInit.rs new file mode 100644 index 00000000..f0369fb4 --- /dev/null +++ b/crates/web-sys/src/features/gen_PerformanceEntryEventInit.rs @@ -0,0 +1,164 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PerformanceEntryEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PerformanceEntryEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] + pub type PerformanceEntryEventInit; +} +impl PerformanceEntryEventInit { + #[doc = "Construct a new `PerformanceEntryEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `duration` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] + pub fn duration(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("duration"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `entryType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] + pub fn entry_type(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("entryType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `epoch` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] + pub fn epoch(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("epoch"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `origin` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] + pub fn origin(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `startTime` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryEventInit`*"] + pub fn start_time(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("startTime"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PerformanceEntryFilterOptions.rs b/crates/web-sys/src/features/gen_PerformanceEntryFilterOptions.rs new file mode 100644 index 00000000..f2579407 --- /dev/null +++ b/crates/web-sys/src/features/gen_PerformanceEntryFilterOptions.rs @@ -0,0 +1,69 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PerformanceEntryFilterOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PerformanceEntryFilterOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] + pub type PerformanceEntryFilterOptions; +} +impl PerformanceEntryFilterOptions { + #[doc = "Construct a new `PerformanceEntryFilterOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `entryType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] + pub fn entry_type(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("entryType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `initiatorType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] + pub fn initiator_type(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("initiatorType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PerformanceMark.rs b/crates/web-sys/src/features/gen_PerformanceMark.rs new file mode 100644 index 00000000..f05282fd --- /dev/null +++ b/crates/web-sys/src/features/gen_PerformanceMark.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = PerformanceEntry , extends = :: js_sys :: Object , js_name = PerformanceMark , typescript_type = "PerformanceMark" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PerformanceMark` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceMark)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceMark`*"] + pub type PerformanceMark; +} diff --git a/crates/web-sys/src/features/gen_PerformanceMeasure.rs b/crates/web-sys/src/features/gen_PerformanceMeasure.rs new file mode 100644 index 00000000..63a04bac --- /dev/null +++ b/crates/web-sys/src/features/gen_PerformanceMeasure.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = PerformanceEntry , extends = :: js_sys :: Object , js_name = PerformanceMeasure , typescript_type = "PerformanceMeasure" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PerformanceMeasure` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceMeasure)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceMeasure`*"] + pub type PerformanceMeasure; +} diff --git a/crates/web-sys/src/features/gen_PerformanceNavigation.rs b/crates/web-sys/src/features/gen_PerformanceNavigation.rs new file mode 100644 index 00000000..c93cd990 --- /dev/null +++ b/crates/web-sys/src/features/gen_PerformanceNavigation.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PerformanceNavigation , typescript_type = "PerformanceNavigation" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PerformanceNavigation` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] + pub type PerformanceNavigation; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceNavigation" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] + pub fn type_(this: &PerformanceNavigation) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceNavigation" , js_name = redirectCount ) ] + #[doc = "Getter for the `redirectCount` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation/redirectCount)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] + pub fn redirect_count(this: &PerformanceNavigation) -> u16; + # [ wasm_bindgen ( method , structural , js_class = "PerformanceNavigation" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigation/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] + pub fn to_json(this: &PerformanceNavigation) -> ::js_sys::Object; +} +impl PerformanceNavigation { + #[doc = "The `PerformanceNavigation.TYPE_NAVIGATE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] + pub const TYPE_NAVIGATE: u16 = 0i64 as u16; + #[doc = "The `PerformanceNavigation.TYPE_RELOAD` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] + pub const TYPE_RELOAD: u16 = 1u64 as u16; + #[doc = "The `PerformanceNavigation.TYPE_BACK_FORWARD` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] + pub const TYPE_BACK_FORWARD: u16 = 2u64 as u16; + #[doc = "The `PerformanceNavigation.TYPE_RESERVED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigation`*"] + pub const TYPE_RESERVED: u16 = 255u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_PerformanceNavigationTiming.rs b/crates/web-sys/src/features/gen_PerformanceNavigationTiming.rs new file mode 100644 index 00000000..172e6cb4 --- /dev/null +++ b/crates/web-sys/src/features/gen_PerformanceNavigationTiming.rs @@ -0,0 +1,92 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = PerformanceResourceTiming , extends = PerformanceEntry , extends = :: js_sys :: Object , js_name = PerformanceNavigationTiming , typescript_type = "PerformanceNavigationTiming" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PerformanceNavigationTiming` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] + pub type PerformanceNavigationTiming; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = unloadEventStart ) ] + #[doc = "Getter for the `unloadEventStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/unloadEventStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] + pub fn unload_event_start(this: &PerformanceNavigationTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = unloadEventEnd ) ] + #[doc = "Getter for the `unloadEventEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/unloadEventEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] + pub fn unload_event_end(this: &PerformanceNavigationTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = domInteractive ) ] + #[doc = "Getter for the `domInteractive` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domInteractive)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] + pub fn dom_interactive(this: &PerformanceNavigationTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = domContentLoadedEventStart ) ] + #[doc = "Getter for the `domContentLoadedEventStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] + pub fn dom_content_loaded_event_start(this: &PerformanceNavigationTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = domContentLoadedEventEnd ) ] + #[doc = "Getter for the `domContentLoadedEventEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domContentLoadedEventEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] + pub fn dom_content_loaded_event_end(this: &PerformanceNavigationTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = domComplete ) ] + #[doc = "Getter for the `domComplete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/domComplete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] + pub fn dom_complete(this: &PerformanceNavigationTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = loadEventStart ) ] + #[doc = "Getter for the `loadEventStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/loadEventStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] + pub fn load_event_start(this: &PerformanceNavigationTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = loadEventEnd ) ] + #[doc = "Getter for the `loadEventEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/loadEventEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] + pub fn load_event_end(this: &PerformanceNavigationTiming) -> f64; + #[cfg(feature = "NavigationType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NavigationType`, `PerformanceNavigationTiming`*"] + pub fn type_(this: &PerformanceNavigationTiming) -> NavigationType; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceNavigationTiming" , js_name = redirectCount ) ] + #[doc = "Getter for the `redirectCount` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/redirectCount)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] + pub fn redirect_count(this: &PerformanceNavigationTiming) -> u16; + # [ wasm_bindgen ( method , structural , js_class = "PerformanceNavigationTiming" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceNavigationTiming/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceNavigationTiming`*"] + pub fn to_json(this: &PerformanceNavigationTiming) -> ::js_sys::Object; +} diff --git a/crates/web-sys/src/features/gen_PerformanceObserver.rs b/crates/web-sys/src/features/gen_PerformanceObserver.rs new file mode 100644 index 00000000..dc8633ab --- /dev/null +++ b/crates/web-sys/src/features/gen_PerformanceObserver.rs @@ -0,0 +1,43 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PerformanceObserver , typescript_type = "PerformanceObserver" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PerformanceObserver` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`*"] + pub type PerformanceObserver; + #[wasm_bindgen(catch, constructor, js_class = "PerformanceObserver")] + #[doc = "The `new PerformanceObserver(..)` constructor, creating a new instance of `PerformanceObserver`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/PerformanceObserver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`*"] + pub fn new(callback: &::js_sys::Function) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "PerformanceObserver" , js_name = disconnect ) ] + #[doc = "The `disconnect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/disconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`*"] + pub fn disconnect(this: &PerformanceObserver); + #[cfg(feature = "PerformanceObserverInit")] + # [ wasm_bindgen ( method , structural , js_class = "PerformanceObserver" , js_name = observe ) ] + #[doc = "The `observe()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/observe)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`, `PerformanceObserverInit`*"] + pub fn observe(this: &PerformanceObserver, options: &PerformanceObserverInit); + # [ wasm_bindgen ( method , structural , js_class = "PerformanceObserver" , js_name = takeRecords ) ] + #[doc = "The `takeRecords()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserver/takeRecords)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceObserver`*"] + pub fn take_records(this: &PerformanceObserver) -> ::js_sys::Array; +} diff --git a/crates/web-sys/src/features/gen_PerformanceObserverEntryList.rs b/crates/web-sys/src/features/gen_PerformanceObserverEntryList.rs new file mode 100644 index 00000000..6d35040d --- /dev/null +++ b/crates/web-sys/src/features/gen_PerformanceObserverEntryList.rs @@ -0,0 +1,60 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PerformanceObserverEntryList , typescript_type = "PerformanceObserverEntryList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PerformanceObserverEntryList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"] + pub type PerformanceObserverEntryList; + # [ wasm_bindgen ( method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntries ) ] + #[doc = "The `getEntries()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntries)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"] + pub fn get_entries(this: &PerformanceObserverEntryList) -> ::js_sys::Array; + #[cfg(feature = "PerformanceEntryFilterOptions")] + # [ wasm_bindgen ( method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntries ) ] + #[doc = "The `getEntries()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntries)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceEntryFilterOptions`, `PerformanceObserverEntryList`*"] + pub fn get_entries_with_filter( + this: &PerformanceObserverEntryList, + filter: &PerformanceEntryFilterOptions, + ) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntriesByName ) ] + #[doc = "The `getEntriesByName()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"] + pub fn get_entries_by_name(this: &PerformanceObserverEntryList, name: &str) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntriesByName ) ] + #[doc = "The `getEntriesByName()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntriesByName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"] + pub fn get_entries_by_name_with_entry_type( + this: &PerformanceObserverEntryList, + name: &str, + entry_type: &str, + ) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "PerformanceObserverEntryList" , js_name = getEntriesByType ) ] + #[doc = "The `getEntriesByType()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceObserverEntryList/getEntriesByType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverEntryList`*"] + pub fn get_entries_by_type( + this: &PerformanceObserverEntryList, + entry_type: &str, + ) -> ::js_sys::Array; +} diff --git a/crates/web-sys/src/features/gen_PerformanceObserverInit.rs b/crates/web-sys/src/features/gen_PerformanceObserverInit.rs new file mode 100644 index 00000000..1895ba32 --- /dev/null +++ b/crates/web-sys/src/features/gen_PerformanceObserverInit.rs @@ -0,0 +1,57 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PerformanceObserverInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PerformanceObserverInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverInit`*"] + pub type PerformanceObserverInit; +} +impl PerformanceObserverInit { + #[doc = "Construct a new `PerformanceObserverInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverInit`*"] + pub fn new(entry_types: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.entry_types(entry_types); + ret + } + #[doc = "Change the `buffered` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverInit`*"] + pub fn buffered(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("buffered"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `entryTypes` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceObserverInit`*"] + pub fn entry_types(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("entryTypes"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PerformanceResourceTiming.rs b/crates/web-sys/src/features/gen_PerformanceResourceTiming.rs new file mode 100644 index 00000000..cb548f9c --- /dev/null +++ b/crates/web-sys/src/features/gen_PerformanceResourceTiming.rs @@ -0,0 +1,147 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = PerformanceEntry , extends = :: js_sys :: Object , js_name = PerformanceResourceTiming , typescript_type = "PerformanceResourceTiming" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PerformanceResourceTiming` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub type PerformanceResourceTiming; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = initiatorType ) ] + #[doc = "Getter for the `initiatorType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/initiatorType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn initiator_type(this: &PerformanceResourceTiming) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = nextHopProtocol ) ] + #[doc = "Getter for the `nextHopProtocol` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/nextHopProtocol)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn next_hop_protocol(this: &PerformanceResourceTiming) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = workerStart ) ] + #[doc = "Getter for the `workerStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/workerStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn worker_start(this: &PerformanceResourceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = redirectStart ) ] + #[doc = "Getter for the `redirectStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/redirectStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn redirect_start(this: &PerformanceResourceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = redirectEnd ) ] + #[doc = "Getter for the `redirectEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/redirectEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn redirect_end(this: &PerformanceResourceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = fetchStart ) ] + #[doc = "Getter for the `fetchStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/fetchStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn fetch_start(this: &PerformanceResourceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = domainLookupStart ) ] + #[doc = "Getter for the `domainLookupStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/domainLookupStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn domain_lookup_start(this: &PerformanceResourceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = domainLookupEnd ) ] + #[doc = "Getter for the `domainLookupEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/domainLookupEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn domain_lookup_end(this: &PerformanceResourceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = connectStart ) ] + #[doc = "Getter for the `connectStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/connectStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn connect_start(this: &PerformanceResourceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = connectEnd ) ] + #[doc = "Getter for the `connectEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/connectEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn connect_end(this: &PerformanceResourceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = secureConnectionStart ) ] + #[doc = "Getter for the `secureConnectionStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/secureConnectionStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn secure_connection_start(this: &PerformanceResourceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = requestStart ) ] + #[doc = "Getter for the `requestStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/requestStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn request_start(this: &PerformanceResourceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = responseStart ) ] + #[doc = "Getter for the `responseStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/responseStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn response_start(this: &PerformanceResourceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = responseEnd ) ] + #[doc = "Getter for the `responseEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/responseEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn response_end(this: &PerformanceResourceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = transferSize ) ] + #[doc = "Getter for the `transferSize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/transferSize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn transfer_size(this: &PerformanceResourceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = encodedBodySize ) ] + #[doc = "Getter for the `encodedBodySize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/encodedBodySize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn encoded_body_size(this: &PerformanceResourceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = decodedBodySize ) ] + #[doc = "Getter for the `decodedBodySize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/decodedBodySize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn decoded_body_size(this: &PerformanceResourceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceResourceTiming" , js_name = serverTiming ) ] + #[doc = "Getter for the `serverTiming` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/serverTiming)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn server_timing(this: &PerformanceResourceTiming) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "PerformanceResourceTiming" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceResourceTiming`*"] + pub fn to_json(this: &PerformanceResourceTiming) -> ::js_sys::Object; +} diff --git a/crates/web-sys/src/features/gen_PerformanceServerTiming.rs b/crates/web-sys/src/features/gen_PerformanceServerTiming.rs new file mode 100644 index 00000000..b8eeb6c9 --- /dev/null +++ b/crates/web-sys/src/features/gen_PerformanceServerTiming.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PerformanceServerTiming , typescript_type = "PerformanceServerTiming" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PerformanceServerTiming` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceServerTiming)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceServerTiming`*"] + pub type PerformanceServerTiming; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceServerTiming" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceServerTiming/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceServerTiming`*"] + pub fn name(this: &PerformanceServerTiming) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceServerTiming" , js_name = duration ) ] + #[doc = "Getter for the `duration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceServerTiming/duration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceServerTiming`*"] + pub fn duration(this: &PerformanceServerTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceServerTiming" , js_name = description ) ] + #[doc = "Getter for the `description` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceServerTiming/description)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceServerTiming`*"] + pub fn description(this: &PerformanceServerTiming) -> String; + # [ wasm_bindgen ( method , structural , js_class = "PerformanceServerTiming" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceServerTiming/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceServerTiming`*"] + pub fn to_json(this: &PerformanceServerTiming) -> ::js_sys::Object; +} diff --git a/crates/web-sys/src/features/gen_PerformanceTiming.rs b/crates/web-sys/src/features/gen_PerformanceTiming.rs new file mode 100644 index 00000000..ef42ca1c --- /dev/null +++ b/crates/web-sys/src/features/gen_PerformanceTiming.rs @@ -0,0 +1,182 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PerformanceTiming , typescript_type = "PerformanceTiming" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PerformanceTiming` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub type PerformanceTiming; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = navigationStart ) ] + #[doc = "Getter for the `navigationStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/navigationStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn navigation_start(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = unloadEventStart ) ] + #[doc = "Getter for the `unloadEventStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/unloadEventStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn unload_event_start(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = unloadEventEnd ) ] + #[doc = "Getter for the `unloadEventEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/unloadEventEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn unload_event_end(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = redirectStart ) ] + #[doc = "Getter for the `redirectStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/redirectStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn redirect_start(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = redirectEnd ) ] + #[doc = "Getter for the `redirectEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/redirectEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn redirect_end(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = fetchStart ) ] + #[doc = "Getter for the `fetchStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/fetchStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn fetch_start(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = domainLookupStart ) ] + #[doc = "Getter for the `domainLookupStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domainLookupStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn domain_lookup_start(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = domainLookupEnd ) ] + #[doc = "Getter for the `domainLookupEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domainLookupEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn domain_lookup_end(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = connectStart ) ] + #[doc = "Getter for the `connectStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/connectStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn connect_start(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = connectEnd ) ] + #[doc = "Getter for the `connectEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/connectEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn connect_end(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = secureConnectionStart ) ] + #[doc = "Getter for the `secureConnectionStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/secureConnectionStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn secure_connection_start(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = requestStart ) ] + #[doc = "Getter for the `requestStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/requestStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn request_start(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = responseStart ) ] + #[doc = "Getter for the `responseStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/responseStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn response_start(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = responseEnd ) ] + #[doc = "Getter for the `responseEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/responseEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn response_end(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = domLoading ) ] + #[doc = "Getter for the `domLoading` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domLoading)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn dom_loading(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = domInteractive ) ] + #[doc = "Getter for the `domInteractive` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domInteractive)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn dom_interactive(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = domContentLoadedEventStart ) ] + #[doc = "Getter for the `domContentLoadedEventStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domContentLoadedEventStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn dom_content_loaded_event_start(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = domContentLoadedEventEnd ) ] + #[doc = "Getter for the `domContentLoadedEventEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domContentLoadedEventEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn dom_content_loaded_event_end(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = domComplete ) ] + #[doc = "Getter for the `domComplete` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/domComplete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn dom_complete(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = loadEventStart ) ] + #[doc = "Getter for the `loadEventStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/loadEventStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn load_event_start(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = loadEventEnd ) ] + #[doc = "Getter for the `loadEventEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/loadEventEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn load_event_end(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = timeToNonBlankPaint ) ] + #[doc = "Getter for the `timeToNonBlankPaint` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/timeToNonBlankPaint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn time_to_non_blank_paint(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "PerformanceTiming" , js_name = timeToDOMContentFlushed ) ] + #[doc = "Getter for the `timeToDOMContentFlushed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/timeToDOMContentFlushed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn time_to_dom_content_flushed(this: &PerformanceTiming) -> f64; + # [ wasm_bindgen ( method , structural , js_class = "PerformanceTiming" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceTiming/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PerformanceTiming`*"] + pub fn to_json(this: &PerformanceTiming) -> ::js_sys::Object; +} diff --git a/crates/web-sys/src/features/gen_PeriodicWave.rs b/crates/web-sys/src/features/gen_PeriodicWave.rs new file mode 100644 index 00000000..4af77913 --- /dev/null +++ b/crates/web-sys/src/features/gen_PeriodicWave.rs @@ -0,0 +1,33 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PeriodicWave , typescript_type = "PeriodicWave" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PeriodicWave` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PeriodicWave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PeriodicWave`*"] + pub type PeriodicWave; + #[cfg(feature = "BaseAudioContext")] + #[wasm_bindgen(catch, constructor, js_class = "PeriodicWave")] + #[doc = "The `new PeriodicWave(..)` constructor, creating a new instance of `PeriodicWave`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PeriodicWave/PeriodicWave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`*"] + pub fn new(context: &BaseAudioContext) -> Result; + #[cfg(all(feature = "BaseAudioContext", feature = "PeriodicWaveOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "PeriodicWave")] + #[doc = "The `new PeriodicWave(..)` constructor, creating a new instance of `PeriodicWave`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PeriodicWave/PeriodicWave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `PeriodicWave`, `PeriodicWaveOptions`*"] + pub fn new_with_options( + context: &BaseAudioContext, + options: &PeriodicWaveOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_PeriodicWaveConstraints.rs b/crates/web-sys/src/features/gen_PeriodicWaveConstraints.rs new file mode 100644 index 00000000..14262687 --- /dev/null +++ b/crates/web-sys/src/features/gen_PeriodicWaveConstraints.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PeriodicWaveConstraints ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PeriodicWaveConstraints` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveConstraints`*"] + pub type PeriodicWaveConstraints; +} +impl PeriodicWaveConstraints { + #[doc = "Construct a new `PeriodicWaveConstraints`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveConstraints`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `disableNormalization` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveConstraints`*"] + pub fn disable_normalization(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("disableNormalization"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PeriodicWaveOptions.rs b/crates/web-sys/src/features/gen_PeriodicWaveOptions.rs new file mode 100644 index 00000000..9851d188 --- /dev/null +++ b/crates/web-sys/src/features/gen_PeriodicWaveOptions.rs @@ -0,0 +1,65 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PeriodicWaveOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PeriodicWaveOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveOptions`*"] + pub type PeriodicWaveOptions; +} +impl PeriodicWaveOptions { + #[doc = "Construct a new `PeriodicWaveOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `disableNormalization` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveOptions`*"] + pub fn disable_normalization(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("disableNormalization"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `imag` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveOptions`*"] + pub fn imag(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("imag"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `real` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PeriodicWaveOptions`*"] + pub fn real(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("real"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PermissionDescriptor.rs b/crates/web-sys/src/features/gen_PermissionDescriptor.rs new file mode 100644 index 00000000..cdfcee18 --- /dev/null +++ b/crates/web-sys/src/features/gen_PermissionDescriptor.rs @@ -0,0 +1,38 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PermissionDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PermissionDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PermissionDescriptor`*"] + pub type PermissionDescriptor; +} +impl PermissionDescriptor { + #[cfg(feature = "PermissionName")] + #[doc = "Construct a new `PermissionDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PermissionDescriptor`, `PermissionName`*"] + pub fn new(name: PermissionName) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret + } + #[cfg(feature = "PermissionName")] + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PermissionDescriptor`, `PermissionName`*"] + pub fn name(&mut self, val: PermissionName) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PermissionName.rs b/crates/web-sys/src/features/gen_PermissionName.rs new file mode 100644 index 00000000..f9197160 --- /dev/null +++ b/crates/web-sys/src/features/gen_PermissionName.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `PermissionName` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `PermissionName`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum PermissionName { + Geolocation = "geolocation", + Notifications = "notifications", + Push = "push", + PersistentStorage = "persistent-storage", +} diff --git a/crates/web-sys/src/features/gen_PermissionState.rs b/crates/web-sys/src/features/gen_PermissionState.rs new file mode 100644 index 00000000..0d4de492 --- /dev/null +++ b/crates/web-sys/src/features/gen_PermissionState.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `PermissionState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `PermissionState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum PermissionState { + Granted = "granted", + Denied = "denied", + Prompt = "prompt", +} diff --git a/crates/web-sys/src/features/gen_PermissionStatus.rs b/crates/web-sys/src/features/gen_PermissionStatus.rs new file mode 100644 index 00000000..00c2f452 --- /dev/null +++ b/crates/web-sys/src/features/gen_PermissionStatus.rs @@ -0,0 +1,36 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = PermissionStatus , typescript_type = "PermissionStatus" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PermissionStatus` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PermissionStatus`*"] + pub type PermissionStatus; + #[cfg(feature = "PermissionState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PermissionStatus" , js_name = state ) ] + #[doc = "Getter for the `state` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus/state)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PermissionState`, `PermissionStatus`*"] + pub fn state(this: &PermissionStatus) -> PermissionState; + # [ wasm_bindgen ( structural , method , getter , js_class = "PermissionStatus" , js_name = onchange ) ] + #[doc = "Getter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PermissionStatus`*"] + pub fn onchange(this: &PermissionStatus) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "PermissionStatus" , js_name = onchange ) ] + #[doc = "Setter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PermissionStatus/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PermissionStatus`*"] + pub fn set_onchange(this: &PermissionStatus, value: Option<&::js_sys::Function>); +} diff --git a/crates/web-sys/src/features/gen_Permissions.rs b/crates/web-sys/src/features/gen_Permissions.rs new file mode 100644 index 00000000..70783902 --- /dev/null +++ b/crates/web-sys/src/features/gen_Permissions.rs @@ -0,0 +1,34 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Permissions , typescript_type = "Permissions" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Permissions` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Permissions)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Permissions`*"] + pub type Permissions; + # [ wasm_bindgen ( catch , method , structural , js_class = "Permissions" , js_name = query ) ] + #[doc = "The `query()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Permissions/query)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Permissions`*"] + pub fn query( + this: &Permissions, + permission: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Permissions" , js_name = revoke ) ] + #[doc = "The `revoke()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Permissions/revoke)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Permissions`*"] + pub fn revoke( + this: &Permissions, + permission: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_PlaybackDirection.rs b/crates/web-sys/src/features/gen_PlaybackDirection.rs new file mode 100644 index 00000000..94fe8e0b --- /dev/null +++ b/crates/web-sys/src/features/gen_PlaybackDirection.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `PlaybackDirection` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `PlaybackDirection`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum PlaybackDirection { + Normal = "normal", + Reverse = "reverse", + Alternate = "alternate", + AlternateReverse = "alternate-reverse", +} diff --git a/crates/web-sys/src/features/gen_Plugin.rs b/crates/web-sys/src/features/gen_Plugin.rs new file mode 100644 index 00000000..f60f0937 --- /dev/null +++ b/crates/web-sys/src/features/gen_Plugin.rs @@ -0,0 +1,81 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Plugin , typescript_type = "Plugin" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Plugin` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] + pub type Plugin; + # [ wasm_bindgen ( structural , method , getter , js_class = "Plugin" , js_name = description ) ] + #[doc = "Getter for the `description` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/description)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] + pub fn description(this: &Plugin) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Plugin" , js_name = filename ) ] + #[doc = "Getter for the `filename` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/filename)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] + pub fn filename(this: &Plugin) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Plugin" , js_name = version ) ] + #[doc = "Getter for the `version` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/version)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] + pub fn version(this: &Plugin) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Plugin" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] + pub fn name(this: &Plugin) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Plugin" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Plugin`*"] + pub fn length(this: &Plugin) -> u32; + #[cfg(feature = "MimeType")] + # [ wasm_bindgen ( method , structural , js_class = "Plugin" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MimeType`, `Plugin`*"] + pub fn item(this: &Plugin, index: u32) -> Option; + #[cfg(feature = "MimeType")] + # [ wasm_bindgen ( method , structural , js_class = "Plugin" , js_name = namedItem ) ] + #[doc = "The `namedItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Plugin/namedItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MimeType`, `Plugin`*"] + pub fn named_item(this: &Plugin, name: &str) -> Option; + #[cfg(feature = "MimeType")] + #[wasm_bindgen(method, structural, js_class = "Plugin", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MimeType`, `Plugin`*"] + pub fn get_with_index(this: &Plugin, index: u32) -> Option; + #[cfg(feature = "MimeType")] + #[wasm_bindgen(method, structural, js_class = "Plugin", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MimeType`, `Plugin`*"] + pub fn get_with_name(this: &Plugin, name: &str) -> Option; +} diff --git a/crates/web-sys/src/features/gen_PluginArray.rs b/crates/web-sys/src/features/gen_PluginArray.rs new file mode 100644 index 00000000..37aa8d40 --- /dev/null +++ b/crates/web-sys/src/features/gen_PluginArray.rs @@ -0,0 +1,67 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PluginArray , typescript_type = "PluginArray" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PluginArray` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PluginArray`*"] + pub type PluginArray; + # [ wasm_bindgen ( structural , method , getter , js_class = "PluginArray" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PluginArray`*"] + pub fn length(this: &PluginArray) -> u32; + #[cfg(feature = "Plugin")] + # [ wasm_bindgen ( method , structural , js_class = "PluginArray" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Plugin`, `PluginArray`*"] + pub fn item(this: &PluginArray, index: u32) -> Option; + #[cfg(feature = "Plugin")] + # [ wasm_bindgen ( method , structural , js_class = "PluginArray" , js_name = namedItem ) ] + #[doc = "The `namedItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/namedItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Plugin`, `PluginArray`*"] + pub fn named_item(this: &PluginArray, name: &str) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "PluginArray" , js_name = refresh ) ] + #[doc = "The `refresh()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/refresh)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PluginArray`*"] + pub fn refresh(this: &PluginArray); + # [ wasm_bindgen ( method , structural , js_class = "PluginArray" , js_name = refresh ) ] + #[doc = "The `refresh()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PluginArray/refresh)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PluginArray`*"] + pub fn refresh_with_reload_documents(this: &PluginArray, reload_documents: bool); + #[cfg(feature = "Plugin")] + #[wasm_bindgen(method, structural, js_class = "PluginArray", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Plugin`, `PluginArray`*"] + pub fn get_with_index(this: &PluginArray, index: u32) -> Option; + #[cfg(feature = "Plugin")] + #[wasm_bindgen(method, structural, js_class = "PluginArray", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Plugin`, `PluginArray`*"] + pub fn get_with_name(this: &PluginArray, name: &str) -> Option; +} diff --git a/crates/web-sys/src/features/gen_PluginCrashedEventInit.rs b/crates/web-sys/src/features/gen_PluginCrashedEventInit.rs new file mode 100644 index 00000000..252cf7da --- /dev/null +++ b/crates/web-sys/src/features/gen_PluginCrashedEventInit.rs @@ -0,0 +1,192 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PluginCrashedEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PluginCrashedEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] + pub type PluginCrashedEventInit; +} +impl PluginCrashedEventInit { + #[doc = "Construct a new `PluginCrashedEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `browserDumpID` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] + pub fn browser_dump_id(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("browserDumpID"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `gmpPlugin` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] + pub fn gmp_plugin(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("gmpPlugin"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pluginDumpID` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] + pub fn plugin_dump_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("pluginDumpID"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pluginFilename` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] + pub fn plugin_filename(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("pluginFilename"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pluginID` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] + pub fn plugin_id(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("pluginID"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pluginName` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] + pub fn plugin_name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("pluginName"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `submittedCrashReport` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PluginCrashedEventInit`*"] + pub fn submitted_crash_report(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("submittedCrashReport"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PointerEvent.rs b/crates/web-sys/src/features/gen_PointerEvent.rs new file mode 100644 index 00000000..41643e80 --- /dev/null +++ b/crates/web-sys/src/features/gen_PointerEvent.rs @@ -0,0 +1,109 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = MouseEvent , extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = PointerEvent , typescript_type = "PointerEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PointerEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] + pub type PointerEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "PointerEvent" , js_name = pointerId ) ] + #[doc = "Getter for the `pointerId` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerId)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] + pub fn pointer_id(this: &PointerEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "PointerEvent" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] + pub fn width(this: &PointerEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "PointerEvent" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] + pub fn height(this: &PointerEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "PointerEvent" , js_name = pressure ) ] + #[doc = "Getter for the `pressure` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pressure)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] + pub fn pressure(this: &PointerEvent) -> f32; + # [ wasm_bindgen ( structural , method , getter , js_class = "PointerEvent" , js_name = tangentialPressure ) ] + #[doc = "Getter for the `tangentialPressure` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/tangentialPressure)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] + pub fn tangential_pressure(this: &PointerEvent) -> f32; + # [ wasm_bindgen ( structural , method , getter , js_class = "PointerEvent" , js_name = tiltX ) ] + #[doc = "Getter for the `tiltX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/tiltX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] + pub fn tilt_x(this: &PointerEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "PointerEvent" , js_name = tiltY ) ] + #[doc = "Getter for the `tiltY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/tiltY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] + pub fn tilt_y(this: &PointerEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "PointerEvent" , js_name = twist ) ] + #[doc = "Getter for the `twist` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/twist)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] + pub fn twist(this: &PointerEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "PointerEvent" , js_name = pointerType ) ] + #[doc = "Getter for the `pointerType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] + pub fn pointer_type(this: &PointerEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PointerEvent" , js_name = isPrimary ) ] + #[doc = "Getter for the `isPrimary` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/isPrimary)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] + pub fn is_primary(this: &PointerEvent) -> bool; + #[wasm_bindgen(catch, constructor, js_class = "PointerEvent")] + #[doc = "The `new PointerEvent(..)` constructor, creating a new instance of `PointerEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/PointerEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "PointerEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "PointerEvent")] + #[doc = "The `new PointerEvent(..)` constructor, creating a new instance of `PointerEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/PointerEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEvent`, `PointerEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &PointerEventInit, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "PointerEvent" , js_name = getCoalescedEvents ) ] + #[doc = "The `getCoalescedEvents()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/getCoalescedEvents)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEvent`*"] + pub fn get_coalesced_events(this: &PointerEvent) -> ::js_sys::Array; +} diff --git a/crates/web-sys/src/features/gen_PointerEventInit.rs b/crates/web-sys/src/features/gen_PointerEventInit.rs new file mode 100644 index 00000000..9211744d --- /dev/null +++ b/crates/web-sys/src/features/gen_PointerEventInit.rs @@ -0,0 +1,638 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PointerEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PointerEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub type PointerEventInit; +} +impl PointerEventInit { + #[doc = "Construct a new `PointerEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `detail` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn detail(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Window")] + #[doc = "Change the `view` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`, `Window`*"] + pub fn view(&mut self, val: Option<&Window>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `altKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn alt_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("altKey"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ctrlKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn ctrl_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("ctrlKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `metaKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn meta_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("metaKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierAltGraph` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierAltGraph"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierCapsLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierCapsLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierFn` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn modifier_fn(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierFn"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierFnLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierFnLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierNumLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierNumLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierOS` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn modifier_os(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierOS"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierScrollLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierScrollLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierSymbol` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierSymbol"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierSymbolLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierSymbolLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `shiftKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn shift_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("shiftKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `button` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn button(&mut self, val: i16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("button"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `buttons` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn buttons(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("buttons"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `clientX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn client_x(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("clientX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `clientY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn client_y(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("clientY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `movementX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn movement_x(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("movementX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `movementY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn movement_y(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("movementY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "EventTarget")] + #[doc = "Change the `relatedTarget` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `PointerEventInit`*"] + pub fn related_target(&mut self, val: Option<&EventTarget>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("relatedTarget"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `screenX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn screen_x(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("screenX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `screenY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn screen_y(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("screenY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `coalescedEvents` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn coalesced_events(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("coalescedEvents"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `height` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn height(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `isPrimary` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn is_primary(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("isPrimary"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pointerId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn pointer_id(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("pointerId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pointerType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn pointer_type(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("pointerType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pressure` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn pressure(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("pressure"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `tangentialPressure` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn tangential_pressure(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("tangentialPressure"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `tiltX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn tilt_x(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("tiltX"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `tiltY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn tilt_y(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("tiltY"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `twist` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn twist(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("twist"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `width` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PointerEventInit`*"] + pub fn width(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PopStateEvent.rs b/crates/web-sys/src/features/gen_PopStateEvent.rs new file mode 100644 index 00000000..afc0618f --- /dev/null +++ b/crates/web-sys/src/features/gen_PopStateEvent.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = PopStateEvent , typescript_type = "PopStateEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PopStateEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopStateEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopStateEvent`*"] + pub type PopStateEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "PopStateEvent" , js_name = state ) ] + #[doc = "Getter for the `state` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopStateEvent/state)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopStateEvent`*"] + pub fn state(this: &PopStateEvent) -> ::wasm_bindgen::JsValue; + #[wasm_bindgen(catch, constructor, js_class = "PopStateEvent")] + #[doc = "The `new PopStateEvent(..)` constructor, creating a new instance of `PopStateEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopStateEvent/PopStateEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopStateEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "PopStateEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "PopStateEvent")] + #[doc = "The `new PopStateEvent(..)` constructor, creating a new instance of `PopStateEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopStateEvent/PopStateEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopStateEvent`, `PopStateEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &PopStateEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_PopStateEventInit.rs b/crates/web-sys/src/features/gen_PopStateEventInit.rs new file mode 100644 index 00000000..05983065 --- /dev/null +++ b/crates/web-sys/src/features/gen_PopStateEventInit.rs @@ -0,0 +1,86 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PopStateEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PopStateEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] + pub type PopStateEventInit; +} +impl PopStateEventInit { + #[doc = "Construct a new `PopStateEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `state` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopStateEventInit`*"] + pub fn state(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("state"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PopupBlockedEvent.rs b/crates/web-sys/src/features/gen_PopupBlockedEvent.rs new file mode 100644 index 00000000..7c880de9 --- /dev/null +++ b/crates/web-sys/src/features/gen_PopupBlockedEvent.rs @@ -0,0 +1,54 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = PopupBlockedEvent , typescript_type = "PopupBlockedEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PopupBlockedEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"] + pub type PopupBlockedEvent; + #[cfg(feature = "Window")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PopupBlockedEvent" , js_name = requestingWindow ) ] + #[doc = "Getter for the `requestingWindow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/requestingWindow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`, `Window`*"] + pub fn requesting_window(this: &PopupBlockedEvent) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "PopupBlockedEvent" , js_name = popupWindowName ) ] + #[doc = "Getter for the `popupWindowName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/popupWindowName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"] + pub fn popup_window_name(this: &PopupBlockedEvent) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "PopupBlockedEvent" , js_name = popupWindowFeatures ) ] + #[doc = "Getter for the `popupWindowFeatures` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/popupWindowFeatures)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"] + pub fn popup_window_features(this: &PopupBlockedEvent) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "PopupBlockedEvent")] + #[doc = "The `new PopupBlockedEvent(..)` constructor, creating a new instance of `PopupBlockedEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/PopupBlockedEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "PopupBlockedEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "PopupBlockedEvent")] + #[doc = "The `new PopupBlockedEvent(..)` constructor, creating a new instance of `PopupBlockedEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PopupBlockedEvent/PopupBlockedEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEvent`, `PopupBlockedEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &PopupBlockedEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_PopupBlockedEventInit.rs b/crates/web-sys/src/features/gen_PopupBlockedEventInit.rs new file mode 100644 index 00000000..66990f59 --- /dev/null +++ b/crates/web-sys/src/features/gen_PopupBlockedEventInit.rs @@ -0,0 +1,125 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PopupBlockedEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PopupBlockedEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] + pub type PopupBlockedEventInit; +} +impl PopupBlockedEventInit { + #[doc = "Construct a new `PopupBlockedEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `popupWindowFeatures` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] + pub fn popup_window_features(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("popupWindowFeatures"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `popupWindowName` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`*"] + pub fn popup_window_name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("popupWindowName"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Window")] + #[doc = "Change the `requestingWindow` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PopupBlockedEventInit`, `Window`*"] + pub fn requesting_window(&mut self, val: Option<&Window>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("requestingWindow"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Position.rs b/crates/web-sys/src/features/gen_Position.rs new file mode 100644 index 00000000..4b2f8d61 --- /dev/null +++ b/crates/web-sys/src/features/gen_Position.rs @@ -0,0 +1,29 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = Position , typescript_type = "Position" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Position` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Position)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Position`*"] + pub type Position; + #[cfg(feature = "Coordinates")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Position" , js_name = coords ) ] + #[doc = "Getter for the `coords` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Position/coords)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Coordinates`, `Position`*"] + pub fn coords(this: &Position) -> Coordinates; + # [ wasm_bindgen ( structural , method , getter , js_class = "Position" , js_name = timestamp ) ] + #[doc = "Getter for the `timestamp` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Position/timestamp)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Position`*"] + pub fn timestamp(this: &Position) -> f64; +} diff --git a/crates/web-sys/src/features/gen_PositionAlignSetting.rs b/crates/web-sys/src/features/gen_PositionAlignSetting.rs new file mode 100644 index 00000000..d6db3f17 --- /dev/null +++ b/crates/web-sys/src/features/gen_PositionAlignSetting.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `PositionAlignSetting` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `PositionAlignSetting`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum PositionAlignSetting { + LineLeft = "line-left", + Center = "center", + LineRight = "line-right", + Auto = "auto", +} diff --git a/crates/web-sys/src/features/gen_PositionError.rs b/crates/web-sys/src/features/gen_PositionError.rs new file mode 100644 index 00000000..8b472da7 --- /dev/null +++ b/crates/web-sys/src/features/gen_PositionError.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = PositionError , typescript_type = "PositionError" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PositionError` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PositionError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PositionError`*"] + pub type PositionError; + # [ wasm_bindgen ( structural , method , getter , js_class = "PositionError" , js_name = code ) ] + #[doc = "Getter for the `code` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PositionError/code)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PositionError`*"] + pub fn code(this: &PositionError) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "PositionError" , js_name = message ) ] + #[doc = "Getter for the `message` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PositionError/message)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PositionError`*"] + pub fn message(this: &PositionError) -> String; +} +impl PositionError { + #[doc = "The `PositionError.PERMISSION_DENIED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PositionError`*"] + pub const PERMISSION_DENIED: u16 = 1u64 as u16; + #[doc = "The `PositionError.POSITION_UNAVAILABLE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PositionError`*"] + pub const POSITION_UNAVAILABLE: u16 = 2u64 as u16; + #[doc = "The `PositionError.TIMEOUT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PositionError`*"] + pub const TIMEOUT: u16 = 3u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_PositionOptions.rs b/crates/web-sys/src/features/gen_PositionOptions.rs new file mode 100644 index 00000000..0e290668 --- /dev/null +++ b/crates/web-sys/src/features/gen_PositionOptions.rs @@ -0,0 +1,73 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PositionOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PositionOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PositionOptions`*"] + pub type PositionOptions; +} +impl PositionOptions { + #[doc = "Construct a new `PositionOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PositionOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `enableHighAccuracy` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PositionOptions`*"] + pub fn enable_high_accuracy(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("enableHighAccuracy"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `maximumAge` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PositionOptions`*"] + pub fn maximum_age(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maximumAge"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timeout` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PositionOptions`*"] + pub fn timeout(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timeout"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Presentation.rs b/crates/web-sys/src/features/gen_Presentation.rs new file mode 100644 index 00000000..f2f446b0 --- /dev/null +++ b/crates/web-sys/src/features/gen_Presentation.rs @@ -0,0 +1,38 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Presentation , typescript_type = "Presentation" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Presentation` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Presentation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Presentation`*"] + pub type Presentation; + #[cfg(feature = "PresentationRequest")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Presentation" , js_name = defaultRequest ) ] + #[doc = "Getter for the `defaultRequest` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Presentation/defaultRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Presentation`, `PresentationRequest`*"] + pub fn default_request(this: &Presentation) -> Option; + #[cfg(feature = "PresentationRequest")] + # [ wasm_bindgen ( structural , method , setter , js_class = "Presentation" , js_name = defaultRequest ) ] + #[doc = "Setter for the `defaultRequest` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Presentation/defaultRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Presentation`, `PresentationRequest`*"] + pub fn set_default_request(this: &Presentation, value: Option<&PresentationRequest>); + #[cfg(feature = "PresentationReceiver")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Presentation" , js_name = receiver ) ] + #[doc = "Getter for the `receiver` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Presentation/receiver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Presentation`, `PresentationReceiver`*"] + pub fn receiver(this: &Presentation) -> Option; +} diff --git a/crates/web-sys/src/features/gen_PresentationAvailability.rs b/crates/web-sys/src/features/gen_PresentationAvailability.rs new file mode 100644 index 00000000..5c7ef35a --- /dev/null +++ b/crates/web-sys/src/features/gen_PresentationAvailability.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = PresentationAvailability , typescript_type = "PresentationAvailability" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PresentationAvailability` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationAvailability)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationAvailability`*"] + pub type PresentationAvailability; + # [ wasm_bindgen ( structural , method , getter , js_class = "PresentationAvailability" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationAvailability/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationAvailability`*"] + pub fn value(this: &PresentationAvailability) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "PresentationAvailability" , js_name = onchange ) ] + #[doc = "Getter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationAvailability/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationAvailability`*"] + pub fn onchange(this: &PresentationAvailability) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "PresentationAvailability" , js_name = onchange ) ] + #[doc = "Setter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationAvailability/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationAvailability`*"] + pub fn set_onchange(this: &PresentationAvailability, value: Option<&::js_sys::Function>); +} diff --git a/crates/web-sys/src/features/gen_PresentationConnection.rs b/crates/web-sys/src/features/gen_PresentationConnection.rs new file mode 100644 index 00000000..41050396 --- /dev/null +++ b/crates/web-sys/src/features/gen_PresentationConnection.rs @@ -0,0 +1,164 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = PresentationConnection , typescript_type = "PresentationConnection" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PresentationConnection` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] + pub type PresentationConnection; + # [ wasm_bindgen ( structural , method , getter , js_class = "PresentationConnection" , js_name = id ) ] + #[doc = "Getter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] + pub fn id(this: &PresentationConnection) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "PresentationConnection" , js_name = url ) ] + #[doc = "Getter for the `url` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/url)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] + pub fn url(this: &PresentationConnection) -> String; + #[cfg(feature = "PresentationConnectionState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PresentationConnection" , js_name = state ) ] + #[doc = "Getter for the `state` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/state)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionState`*"] + pub fn state(this: &PresentationConnection) -> PresentationConnectionState; + # [ wasm_bindgen ( structural , method , getter , js_class = "PresentationConnection" , js_name = onconnect ) ] + #[doc = "Getter for the `onconnect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] + pub fn onconnect(this: &PresentationConnection) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "PresentationConnection" , js_name = onconnect ) ] + #[doc = "Setter for the `onconnect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] + pub fn set_onconnect(this: &PresentationConnection, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "PresentationConnection" , js_name = onclose ) ] + #[doc = "Getter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] + pub fn onclose(this: &PresentationConnection) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "PresentationConnection" , js_name = onclose ) ] + #[doc = "Setter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] + pub fn set_onclose(this: &PresentationConnection, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "PresentationConnection" , js_name = onterminate ) ] + #[doc = "Getter for the `onterminate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onterminate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] + pub fn onterminate(this: &PresentationConnection) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "PresentationConnection" , js_name = onterminate ) ] + #[doc = "Setter for the `onterminate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onterminate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] + pub fn set_onterminate(this: &PresentationConnection, value: Option<&::js_sys::Function>); + #[cfg(feature = "PresentationConnectionBinaryType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PresentationConnection" , js_name = binaryType ) ] + #[doc = "Getter for the `binaryType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/binaryType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionBinaryType`*"] + pub fn binary_type(this: &PresentationConnection) -> PresentationConnectionBinaryType; + #[cfg(feature = "PresentationConnectionBinaryType")] + # [ wasm_bindgen ( structural , method , setter , js_class = "PresentationConnection" , js_name = binaryType ) ] + #[doc = "Setter for the `binaryType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/binaryType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionBinaryType`*"] + pub fn set_binary_type(this: &PresentationConnection, value: PresentationConnectionBinaryType); + # [ wasm_bindgen ( structural , method , getter , js_class = "PresentationConnection" , js_name = onmessage ) ] + #[doc = "Getter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] + pub fn onmessage(this: &PresentationConnection) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "PresentationConnection" , js_name = onmessage ) ] + #[doc = "Setter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] + pub fn set_onmessage(this: &PresentationConnection, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( catch , method , structural , js_class = "PresentationConnection" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] + pub fn close(this: &PresentationConnection) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "PresentationConnection" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] + pub fn send_with_str(this: &PresentationConnection, data: &str) -> Result<(), JsValue>; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "PresentationConnection" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `PresentationConnection`*"] + pub fn send_with_blob(this: &PresentationConnection, data: &Blob) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "PresentationConnection" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] + pub fn send_with_array_buffer( + this: &PresentationConnection, + data: &::js_sys::ArrayBuffer, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "PresentationConnection" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] + pub fn send_with_array_buffer_view( + this: &PresentationConnection, + data: &::js_sys::Object, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "PresentationConnection" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] + pub fn send_with_u8_array(this: &PresentationConnection, data: &[u8]) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "PresentationConnection" , js_name = terminate ) ] + #[doc = "The `terminate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnection/terminate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`*"] + pub fn terminate(this: &PresentationConnection) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_PresentationConnectionAvailableEvent.rs b/crates/web-sys/src/features/gen_PresentationConnectionAvailableEvent.rs new file mode 100644 index 00000000..48e3da73 --- /dev/null +++ b/crates/web-sys/src/features/gen_PresentationConnectionAvailableEvent.rs @@ -0,0 +1,33 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = PresentationConnectionAvailableEvent , typescript_type = "PresentationConnectionAvailableEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PresentationConnectionAvailableEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionAvailableEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEvent`*"] + pub type PresentationConnectionAvailableEvent; + #[cfg(feature = "PresentationConnection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PresentationConnectionAvailableEvent" , js_name = connection ) ] + #[doc = "Getter for the `connection` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionAvailableEvent/connection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionAvailableEvent`*"] + pub fn connection(this: &PresentationConnectionAvailableEvent) -> PresentationConnection; + #[cfg(feature = "PresentationConnectionAvailableEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "PresentationConnectionAvailableEvent")] + #[doc = "The `new PresentationConnectionAvailableEvent(..)` constructor, creating a new instance of `PresentationConnectionAvailableEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionAvailableEvent/PresentationConnectionAvailableEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEvent`, `PresentationConnectionAvailableEventInit`*"] + pub fn new( + type_: &str, + event_init_dict: &PresentationConnectionAvailableEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_PresentationConnectionAvailableEventInit.rs b/crates/web-sys/src/features/gen_PresentationConnectionAvailableEventInit.rs new file mode 100644 index 00000000..4ac26424 --- /dev/null +++ b/crates/web-sys/src/features/gen_PresentationConnectionAvailableEventInit.rs @@ -0,0 +1,93 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PresentationConnectionAvailableEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PresentationConnectionAvailableEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEventInit`*"] + pub type PresentationConnectionAvailableEventInit; +} +impl PresentationConnectionAvailableEventInit { + #[cfg(feature = "PresentationConnection")] + #[doc = "Construct a new `PresentationConnectionAvailableEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionAvailableEventInit`*"] + pub fn new(connection: &PresentationConnection) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.connection(connection); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionAvailableEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "PresentationConnection")] + #[doc = "Change the `connection` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnection`, `PresentationConnectionAvailableEventInit`*"] + pub fn connection(&mut self, val: &PresentationConnection) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("connection"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PresentationConnectionBinaryType.rs b/crates/web-sys/src/features/gen_PresentationConnectionBinaryType.rs new file mode 100644 index 00000000..927c3791 --- /dev/null +++ b/crates/web-sys/src/features/gen_PresentationConnectionBinaryType.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `PresentationConnectionBinaryType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `PresentationConnectionBinaryType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum PresentationConnectionBinaryType { + Blob = "blob", + Arraybuffer = "arraybuffer", +} diff --git a/crates/web-sys/src/features/gen_PresentationConnectionCloseEvent.rs b/crates/web-sys/src/features/gen_PresentationConnectionCloseEvent.rs new file mode 100644 index 00000000..6e48dc62 --- /dev/null +++ b/crates/web-sys/src/features/gen_PresentationConnectionCloseEvent.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = PresentationConnectionCloseEvent , typescript_type = "PresentationConnectionCloseEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PresentationConnectionCloseEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionCloseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEvent`*"] + pub type PresentationConnectionCloseEvent; + #[cfg(feature = "PresentationConnectionClosedReason")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PresentationConnectionCloseEvent" , js_name = reason ) ] + #[doc = "Getter for the `reason` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionCloseEvent/reason)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEvent`, `PresentationConnectionClosedReason`*"] + pub fn reason(this: &PresentationConnectionCloseEvent) -> PresentationConnectionClosedReason; + # [ wasm_bindgen ( structural , method , getter , js_class = "PresentationConnectionCloseEvent" , js_name = message ) ] + #[doc = "Getter for the `message` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionCloseEvent/message)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEvent`*"] + pub fn message(this: &PresentationConnectionCloseEvent) -> String; + #[cfg(feature = "PresentationConnectionCloseEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "PresentationConnectionCloseEvent")] + #[doc = "The `new PresentationConnectionCloseEvent(..)` constructor, creating a new instance of `PresentationConnectionCloseEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionCloseEvent/PresentationConnectionCloseEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEvent`, `PresentationConnectionCloseEventInit`*"] + pub fn new( + type_: &str, + event_init_dict: &PresentationConnectionCloseEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_PresentationConnectionCloseEventInit.rs b/crates/web-sys/src/features/gen_PresentationConnectionCloseEventInit.rs new file mode 100644 index 00000000..03d70fa7 --- /dev/null +++ b/crates/web-sys/src/features/gen_PresentationConnectionCloseEventInit.rs @@ -0,0 +1,107 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PresentationConnectionCloseEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PresentationConnectionCloseEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] + pub type PresentationConnectionCloseEventInit; +} +impl PresentationConnectionCloseEventInit { + #[cfg(feature = "PresentationConnectionClosedReason")] + #[doc = "Construct a new `PresentationConnectionCloseEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`, `PresentationConnectionClosedReason`*"] + pub fn new(reason: PresentationConnectionClosedReason) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.reason(reason); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `message` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`*"] + pub fn message(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("message"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "PresentationConnectionClosedReason")] + #[doc = "Change the `reason` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionCloseEventInit`, `PresentationConnectionClosedReason`*"] + pub fn reason(&mut self, val: PresentationConnectionClosedReason) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("reason"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PresentationConnectionClosedReason.rs b/crates/web-sys/src/features/gen_PresentationConnectionClosedReason.rs new file mode 100644 index 00000000..d478b097 --- /dev/null +++ b/crates/web-sys/src/features/gen_PresentationConnectionClosedReason.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `PresentationConnectionClosedReason` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `PresentationConnectionClosedReason`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum PresentationConnectionClosedReason { + Error = "error", + Closed = "closed", + Wentaway = "wentaway", +} diff --git a/crates/web-sys/src/features/gen_PresentationConnectionList.rs b/crates/web-sys/src/features/gen_PresentationConnectionList.rs new file mode 100644 index 00000000..da3b0eb2 --- /dev/null +++ b/crates/web-sys/src/features/gen_PresentationConnectionList.rs @@ -0,0 +1,38 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = PresentationConnectionList , typescript_type = "PresentationConnectionList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PresentationConnectionList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionList`*"] + pub type PresentationConnectionList; + # [ wasm_bindgen ( structural , method , getter , js_class = "PresentationConnectionList" , js_name = connections ) ] + #[doc = "Getter for the `connections` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionList/connections)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionList`*"] + pub fn connections(this: &PresentationConnectionList) -> ::js_sys::Array; + # [ wasm_bindgen ( structural , method , getter , js_class = "PresentationConnectionList" , js_name = onconnectionavailable ) ] + #[doc = "Getter for the `onconnectionavailable` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionList/onconnectionavailable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionList`*"] + pub fn onconnectionavailable(this: &PresentationConnectionList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "PresentationConnectionList" , js_name = onconnectionavailable ) ] + #[doc = "Setter for the `onconnectionavailable` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationConnectionList/onconnectionavailable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationConnectionList`*"] + pub fn set_onconnectionavailable( + this: &PresentationConnectionList, + value: Option<&::js_sys::Function>, + ); +} diff --git a/crates/web-sys/src/features/gen_PresentationConnectionState.rs b/crates/web-sys/src/features/gen_PresentationConnectionState.rs new file mode 100644 index 00000000..68e0905a --- /dev/null +++ b/crates/web-sys/src/features/gen_PresentationConnectionState.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `PresentationConnectionState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `PresentationConnectionState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum PresentationConnectionState { + Connecting = "connecting", + Connected = "connected", + Closed = "closed", + Terminated = "terminated", +} diff --git a/crates/web-sys/src/features/gen_PresentationReceiver.rs b/crates/web-sys/src/features/gen_PresentationReceiver.rs new file mode 100644 index 00000000..174b2eee --- /dev/null +++ b/crates/web-sys/src/features/gen_PresentationReceiver.rs @@ -0,0 +1,21 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PresentationReceiver , typescript_type = "PresentationReceiver" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PresentationReceiver` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationReceiver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationReceiver`*"] + pub type PresentationReceiver; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "PresentationReceiver" , js_name = connectionList ) ] + #[doc = "Getter for the `connectionList` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationReceiver/connectionList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationReceiver`*"] + pub fn connection_list(this: &PresentationReceiver) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_PresentationRequest.rs b/crates/web-sys/src/features/gen_PresentationRequest.rs new file mode 100644 index 00000000..18f8ed41 --- /dev/null +++ b/crates/web-sys/src/features/gen_PresentationRequest.rs @@ -0,0 +1,69 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = PresentationRequest , typescript_type = "PresentationRequest" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PresentationRequest` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] + pub type PresentationRequest; + # [ wasm_bindgen ( structural , method , getter , js_class = "PresentationRequest" , js_name = onconnectionavailable ) ] + #[doc = "Getter for the `onconnectionavailable` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/onconnectionavailable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] + pub fn onconnectionavailable(this: &PresentationRequest) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "PresentationRequest" , js_name = onconnectionavailable ) ] + #[doc = "Setter for the `onconnectionavailable` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/onconnectionavailable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] + pub fn set_onconnectionavailable( + this: &PresentationRequest, + value: Option<&::js_sys::Function>, + ); + #[wasm_bindgen(catch, constructor, js_class = "PresentationRequest")] + #[doc = "The `new PresentationRequest(..)` constructor, creating a new instance of `PresentationRequest`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/PresentationRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] + pub fn new_with_url(url: &str) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "PresentationRequest")] + #[doc = "The `new PresentationRequest(..)` constructor, creating a new instance of `PresentationRequest`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/PresentationRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] + pub fn new_with_urls(urls: &::wasm_bindgen::JsValue) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "PresentationRequest" , js_name = getAvailability ) ] + #[doc = "The `getAvailability()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/getAvailability)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] + pub fn get_availability(this: &PresentationRequest) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "PresentationRequest" , js_name = reconnect ) ] + #[doc = "The `reconnect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/reconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] + pub fn reconnect( + this: &PresentationRequest, + presentation_id: &str, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "PresentationRequest" , js_name = start ) ] + #[doc = "The `start()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PresentationRequest/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PresentationRequest`*"] + pub fn start(this: &PresentationRequest) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_ProcessingInstruction.rs b/crates/web-sys/src/features/gen_ProcessingInstruction.rs new file mode 100644 index 00000000..827a8015 --- /dev/null +++ b/crates/web-sys/src/features/gen_ProcessingInstruction.rs @@ -0,0 +1,29 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = CharacterData , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = ProcessingInstruction , typescript_type = "ProcessingInstruction" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ProcessingInstruction` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProcessingInstruction`*"] + pub type ProcessingInstruction; + # [ wasm_bindgen ( structural , method , getter , js_class = "ProcessingInstruction" , js_name = target ) ] + #[doc = "Getter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProcessingInstruction`*"] + pub fn target(this: &ProcessingInstruction) -> String; + #[cfg(feature = "StyleSheet")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ProcessingInstruction" , js_name = sheet ) ] + #[doc = "Getter for the `sheet` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/sheet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProcessingInstruction`, `StyleSheet`*"] + pub fn sheet(this: &ProcessingInstruction) -> Option; +} diff --git a/crates/web-sys/src/features/gen_ProfileTimelineLayerRect.rs b/crates/web-sys/src/features/gen_ProfileTimelineLayerRect.rs new file mode 100644 index 00000000..3138425e --- /dev/null +++ b/crates/web-sys/src/features/gen_ProfileTimelineLayerRect.rs @@ -0,0 +1,75 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ProfileTimelineLayerRect ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ProfileTimelineLayerRect` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] + pub type ProfileTimelineLayerRect; +} +impl ProfileTimelineLayerRect { + #[doc = "Construct a new `ProfileTimelineLayerRect`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `height` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] + pub fn height(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `width` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] + pub fn width(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `x` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] + pub fn x(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("x"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `y` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineLayerRect`*"] + pub fn y(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("y"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ProfileTimelineMarker.rs b/crates/web-sys/src/features/gen_ProfileTimelineMarker.rs new file mode 100644 index 00000000..5c9527e0 --- /dev/null +++ b/crates/web-sys/src/features/gen_ProfileTimelineMarker.rs @@ -0,0 +1,262 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ProfileTimelineMarker ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ProfileTimelineMarker` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] + pub type ProfileTimelineMarker; +} +impl ProfileTimelineMarker { + #[doc = "Construct a new `ProfileTimelineMarker`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `causeName` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] + pub fn cause_name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("causeName"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `end` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] + pub fn end(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("end"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `endStack` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] + pub fn end_stack(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("endStack"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `eventPhase` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] + pub fn event_phase(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("eventPhase"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `isAnimationOnly` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] + pub fn is_animation_only(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("isAnimationOnly"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `isOffMainThread` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] + pub fn is_off_main_thread(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("isOffMainThread"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ProfileTimelineMessagePortOperationType")] + #[doc = "Change the `messagePortOperation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`, `ProfileTimelineMessagePortOperationType`*"] + pub fn message_port_operation( + &mut self, + val: ProfileTimelineMessagePortOperationType, + ) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("messagePortOperation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `processType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] + pub fn process_type(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("processType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `rectangles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] + pub fn rectangles(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("rectangles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `stack` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] + pub fn stack(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("stack"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `start` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] + pub fn start(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("start"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] + pub fn type_(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `unixTime` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`*"] + pub fn unix_time(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("unixTime"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ProfileTimelineWorkerOperationType")] + #[doc = "Change the `workerOperation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMarker`, `ProfileTimelineWorkerOperationType`*"] + pub fn worker_operation(&mut self, val: ProfileTimelineWorkerOperationType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("workerOperation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ProfileTimelineMessagePortOperationType.rs b/crates/web-sys/src/features/gen_ProfileTimelineMessagePortOperationType.rs new file mode 100644 index 00000000..ef447a95 --- /dev/null +++ b/crates/web-sys/src/features/gen_ProfileTimelineMessagePortOperationType.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ProfileTimelineMessagePortOperationType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ProfileTimelineMessagePortOperationType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ProfileTimelineMessagePortOperationType { + SerializeData = "serializeData", + DeserializeData = "deserializeData", +} diff --git a/crates/web-sys/src/features/gen_ProfileTimelineStackFrame.rs b/crates/web-sys/src/features/gen_ProfileTimelineStackFrame.rs new file mode 100644 index 00000000..02375a64 --- /dev/null +++ b/crates/web-sys/src/features/gen_ProfileTimelineStackFrame.rs @@ -0,0 +1,128 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ProfileTimelineStackFrame ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ProfileTimelineStackFrame` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] + pub type ProfileTimelineStackFrame; +} +impl ProfileTimelineStackFrame { + #[doc = "Construct a new `ProfileTimelineStackFrame`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `asyncCause` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] + pub fn async_cause(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("asyncCause"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `asyncParent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] + pub fn async_parent(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("asyncParent"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `column` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] + pub fn column(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("column"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `functionDisplayName` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] + pub fn function_display_name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("functionDisplayName"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `line` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] + pub fn line(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("line"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `parent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] + pub fn parent(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("parent"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `source` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProfileTimelineStackFrame`*"] + pub fn source(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ProfileTimelineWorkerOperationType.rs b/crates/web-sys/src/features/gen_ProfileTimelineWorkerOperationType.rs new file mode 100644 index 00000000..9006dda1 --- /dev/null +++ b/crates/web-sys/src/features/gen_ProfileTimelineWorkerOperationType.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ProfileTimelineWorkerOperationType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ProfileTimelineWorkerOperationType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ProfileTimelineWorkerOperationType { + SerializeDataOffMainThread = "serializeDataOffMainThread", + SerializeDataOnMainThread = "serializeDataOnMainThread", + DeserializeDataOffMainThread = "deserializeDataOffMainThread", + DeserializeDataOnMainThread = "deserializeDataOnMainThread", +} diff --git a/crates/web-sys/src/features/gen_ProgressEvent.rs b/crates/web-sys/src/features/gen_ProgressEvent.rs new file mode 100644 index 00000000..e609985c --- /dev/null +++ b/crates/web-sys/src/features/gen_ProgressEvent.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = ProgressEvent , typescript_type = "ProgressEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ProgressEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProgressEvent`*"] + pub type ProgressEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "ProgressEvent" , js_name = lengthComputable ) ] + #[doc = "Getter for the `lengthComputable` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent/lengthComputable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProgressEvent`*"] + pub fn length_computable(this: &ProgressEvent) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "ProgressEvent" , js_name = loaded ) ] + #[doc = "Getter for the `loaded` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent/loaded)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProgressEvent`*"] + pub fn loaded(this: &ProgressEvent) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "ProgressEvent" , js_name = total ) ] + #[doc = "Getter for the `total` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent/total)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProgressEvent`*"] + pub fn total(this: &ProgressEvent) -> f64; + #[wasm_bindgen(catch, constructor, js_class = "ProgressEvent")] + #[doc = "The `new ProgressEvent(..)` constructor, creating a new instance of `ProgressEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent/ProgressEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProgressEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "ProgressEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "ProgressEvent")] + #[doc = "The `new ProgressEvent(..)` constructor, creating a new instance of `ProgressEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent/ProgressEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProgressEvent`, `ProgressEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &ProgressEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_ProgressEventInit.rs b/crates/web-sys/src/features/gen_ProgressEventInit.rs new file mode 100644 index 00000000..f2d4314e --- /dev/null +++ b/crates/web-sys/src/features/gen_ProgressEventInit.rs @@ -0,0 +1,117 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ProgressEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ProgressEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] + pub type ProgressEventInit; +} +impl ProgressEventInit { + #[doc = "Construct a new `ProgressEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `lengthComputable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] + pub fn length_computable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("lengthComputable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `loaded` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] + pub fn loaded(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("loaded"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `total` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ProgressEventInit`*"] + pub fn total(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("total"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PromiseNativeHandler.rs b/crates/web-sys/src/features/gen_PromiseNativeHandler.rs new file mode 100644 index 00000000..5e5d705f --- /dev/null +++ b/crates/web-sys/src/features/gen_PromiseNativeHandler.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = PromiseNativeHandler , typescript_type = "PromiseNativeHandler" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PromiseNativeHandler` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PromiseNativeHandler)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PromiseNativeHandler`*"] + pub type PromiseNativeHandler; +} diff --git a/crates/web-sys/src/features/gen_PromiseRejectionEvent.rs b/crates/web-sys/src/features/gen_PromiseRejectionEvent.rs new file mode 100644 index 00000000..4e296f0e --- /dev/null +++ b/crates/web-sys/src/features/gen_PromiseRejectionEvent.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = PromiseRejectionEvent , typescript_type = "PromiseRejectionEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PromiseRejectionEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEvent`*"] + pub type PromiseRejectionEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "PromiseRejectionEvent" , js_name = promise ) ] + #[doc = "Getter for the `promise` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/promise)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEvent`*"] + pub fn promise(this: &PromiseRejectionEvent) -> ::js_sys::Promise; + # [ wasm_bindgen ( structural , method , getter , js_class = "PromiseRejectionEvent" , js_name = reason ) ] + #[doc = "Getter for the `reason` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/reason)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEvent`*"] + pub fn reason(this: &PromiseRejectionEvent) -> ::wasm_bindgen::JsValue; + #[cfg(feature = "PromiseRejectionEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "PromiseRejectionEvent")] + #[doc = "The `new PromiseRejectionEvent(..)` constructor, creating a new instance of `PromiseRejectionEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent/PromiseRejectionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEvent`, `PromiseRejectionEventInit`*"] + pub fn new( + type_: &str, + event_init_dict: &PromiseRejectionEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_PromiseRejectionEventInit.rs b/crates/web-sys/src/features/gen_PromiseRejectionEventInit.rs new file mode 100644 index 00000000..f2bcffe2 --- /dev/null +++ b/crates/web-sys/src/features/gen_PromiseRejectionEventInit.rs @@ -0,0 +1,105 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PromiseRejectionEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PromiseRejectionEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] + pub type PromiseRejectionEventInit; +} +impl PromiseRejectionEventInit { + #[doc = "Construct a new `PromiseRejectionEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] + pub fn new(promise: &::js_sys::Promise) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.promise(promise); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `promise` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] + pub fn promise(&mut self, val: &::js_sys::Promise) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("promise"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `reason` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PromiseRejectionEventInit`*"] + pub fn reason(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("reason"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PublicKeyCredential.rs b/crates/web-sys/src/features/gen_PublicKeyCredential.rs new file mode 100644 index 00000000..b07e9c9c --- /dev/null +++ b/crates/web-sys/src/features/gen_PublicKeyCredential.rs @@ -0,0 +1,46 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Credential , extends = :: js_sys :: Object , js_name = PublicKeyCredential , typescript_type = "PublicKeyCredential" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PublicKeyCredential` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`*"] + pub type PublicKeyCredential; + # [ wasm_bindgen ( structural , method , getter , js_class = "PublicKeyCredential" , js_name = rawId ) ] + #[doc = "Getter for the `rawId` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/rawId)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`*"] + pub fn raw_id(this: &PublicKeyCredential) -> ::js_sys::ArrayBuffer; + #[cfg(feature = "AuthenticatorResponse")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PublicKeyCredential" , js_name = response ) ] + #[doc = "Getter for the `response` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticatorResponse`, `PublicKeyCredential`*"] + pub fn response(this: &PublicKeyCredential) -> AuthenticatorResponse; + #[cfg(feature = "AuthenticationExtensionsClientOutputs")] + # [ wasm_bindgen ( method , structural , js_class = "PublicKeyCredential" , js_name = getClientExtensionResults ) ] + #[doc = "The `getClientExtensionResults()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/getClientExtensionResults)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientOutputs`, `PublicKeyCredential`*"] + pub fn get_client_extension_results( + this: &PublicKeyCredential, + ) -> AuthenticationExtensionsClientOutputs; + # [ wasm_bindgen ( static_method_of = PublicKeyCredential , js_class = "PublicKeyCredential" , js_name = isUserVerifyingPlatformAuthenticatorAvailable ) ] + #[doc = "The `isUserVerifyingPlatformAuthenticatorAvailable()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/isUserVerifyingPlatformAuthenticatorAvailable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredential`*"] + pub fn is_user_verifying_platform_authenticator_available() -> ::js_sys::Promise; +} diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialCreationOptions.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialCreationOptions.rs new file mode 100644 index 00000000..5049f9bb --- /dev/null +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialCreationOptions.rs @@ -0,0 +1,185 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PublicKeyCredentialCreationOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PublicKeyCredentialCreationOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] + pub type PublicKeyCredentialCreationOptions; +} +impl PublicKeyCredentialCreationOptions { + #[cfg(all( + feature = "PublicKeyCredentialRpEntity", + feature = "PublicKeyCredentialUserEntity", + ))] + #[doc = "Construct a new `PublicKeyCredentialCreationOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`, `PublicKeyCredentialRpEntity`, `PublicKeyCredentialUserEntity`*"] + pub fn new( + challenge: &::js_sys::Object, + pub_key_cred_params: &::wasm_bindgen::JsValue, + rp: &PublicKeyCredentialRpEntity, + user: &PublicKeyCredentialUserEntity, + ) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.challenge(challenge); + ret.pub_key_cred_params(pub_key_cred_params); + ret.rp(rp); + ret.user(user); + ret + } + #[cfg(feature = "AttestationConveyancePreference")] + #[doc = "Change the `attestation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AttestationConveyancePreference`, `PublicKeyCredentialCreationOptions`*"] + pub fn attestation(&mut self, val: AttestationConveyancePreference) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("attestation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "AuthenticatorSelectionCriteria")] + #[doc = "Change the `authenticatorSelection` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticatorSelectionCriteria`, `PublicKeyCredentialCreationOptions`*"] + pub fn authenticator_selection(&mut self, val: &AuthenticatorSelectionCriteria) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("authenticatorSelection"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `challenge` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] + pub fn challenge(&mut self, val: &::js_sys::Object) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("challenge"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `excludeCredentials` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] + pub fn exclude_credentials(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("excludeCredentials"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "AuthenticationExtensionsClientInputs")] + #[doc = "Change the `extensions` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `PublicKeyCredentialCreationOptions`*"] + pub fn extensions(&mut self, val: &AuthenticationExtensionsClientInputs) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("extensions"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pubKeyCredParams` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] + pub fn pub_key_cred_params(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("pubKeyCredParams"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "PublicKeyCredentialRpEntity")] + #[doc = "Change the `rp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`, `PublicKeyCredentialRpEntity`*"] + pub fn rp(&mut self, val: &PublicKeyCredentialRpEntity) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("rp"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timeout` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`*"] + pub fn timeout(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timeout"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "PublicKeyCredentialUserEntity")] + #[doc = "Change the `user` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialCreationOptions`, `PublicKeyCredentialUserEntity`*"] + pub fn user(&mut self, val: &PublicKeyCredentialUserEntity) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("user"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialDescriptor.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialDescriptor.rs new file mode 100644 index 00000000..461aa4b8 --- /dev/null +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialDescriptor.rs @@ -0,0 +1,69 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PublicKeyCredentialDescriptor ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PublicKeyCredentialDescriptor` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptor`*"] + pub type PublicKeyCredentialDescriptor; +} +impl PublicKeyCredentialDescriptor { + #[cfg(feature = "PublicKeyCredentialType")] + #[doc = "Construct a new `PublicKeyCredentialDescriptor`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptor`, `PublicKeyCredentialType`*"] + pub fn new(id: &::js_sys::Object, type_: PublicKeyCredentialType) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.id(id); + ret.type_(type_); + ret + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptor`*"] + pub fn id(&mut self, val: &::js_sys::Object) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `transports` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptor`*"] + pub fn transports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("transports"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "PublicKeyCredentialType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialDescriptor`, `PublicKeyCredentialType`*"] + pub fn type_(&mut self, val: PublicKeyCredentialType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialEntity.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialEntity.rs new file mode 100644 index 00000000..35cec880 --- /dev/null +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialEntity.rs @@ -0,0 +1,49 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PublicKeyCredentialEntity ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PublicKeyCredentialEntity` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialEntity`*"] + pub type PublicKeyCredentialEntity; +} +impl PublicKeyCredentialEntity { + #[doc = "Construct a new `PublicKeyCredentialEntity`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialEntity`*"] + pub fn new(name: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret + } + #[doc = "Change the `icon` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialEntity`*"] + pub fn icon(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("icon"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialEntity`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialParameters.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialParameters.rs new file mode 100644 index 00000000..0cb340f3 --- /dev/null +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialParameters.rs @@ -0,0 +1,52 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PublicKeyCredentialParameters ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PublicKeyCredentialParameters` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialParameters`*"] + pub type PublicKeyCredentialParameters; +} +impl PublicKeyCredentialParameters { + #[cfg(feature = "PublicKeyCredentialType")] + #[doc = "Construct a new `PublicKeyCredentialParameters`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialParameters`, `PublicKeyCredentialType`*"] + pub fn new(alg: i32, type_: PublicKeyCredentialType) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.alg(alg); + ret.type_(type_); + ret + } + #[doc = "Change the `alg` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialParameters`*"] + pub fn alg(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("alg"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "PublicKeyCredentialType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialParameters`, `PublicKeyCredentialType`*"] + pub fn type_(&mut self, val: PublicKeyCredentialType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialRequestOptions.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialRequestOptions.rs new file mode 100644 index 00000000..fe74886d --- /dev/null +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialRequestOptions.rs @@ -0,0 +1,123 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PublicKeyCredentialRequestOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PublicKeyCredentialRequestOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] + pub type PublicKeyCredentialRequestOptions; +} +impl PublicKeyCredentialRequestOptions { + #[doc = "Construct a new `PublicKeyCredentialRequestOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] + pub fn new(challenge: &::js_sys::Object) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.challenge(challenge); + ret + } + #[doc = "Change the `allowCredentials` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] + pub fn allow_credentials(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("allowCredentials"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `challenge` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] + pub fn challenge(&mut self, val: &::js_sys::Object) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("challenge"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "AuthenticationExtensionsClientInputs")] + #[doc = "Change the `extensions` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AuthenticationExtensionsClientInputs`, `PublicKeyCredentialRequestOptions`*"] + pub fn extensions(&mut self, val: &AuthenticationExtensionsClientInputs) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("extensions"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `rpId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] + pub fn rp_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("rpId"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timeout` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`*"] + pub fn timeout(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timeout"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "UserVerificationRequirement")] + #[doc = "Change the `userVerification` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRequestOptions`, `UserVerificationRequirement`*"] + pub fn user_verification(&mut self, val: UserVerificationRequirement) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("userVerification"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialRpEntity.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialRpEntity.rs new file mode 100644 index 00000000..a5fa3949 --- /dev/null +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialRpEntity.rs @@ -0,0 +1,62 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PublicKeyCredentialRpEntity ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PublicKeyCredentialRpEntity` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] + pub type PublicKeyCredentialRpEntity; +} +impl PublicKeyCredentialRpEntity { + #[doc = "Construct a new `PublicKeyCredentialRpEntity`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] + pub fn new(name: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret + } + #[doc = "Change the `icon` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] + pub fn icon(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("icon"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialRpEntity`*"] + pub fn id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialType.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialType.rs new file mode 100644 index 00000000..d75328e5 --- /dev/null +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialType.rs @@ -0,0 +1,10 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `PublicKeyCredentialType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum PublicKeyCredentialType { + PublicKey = "public-key", +} diff --git a/crates/web-sys/src/features/gen_PublicKeyCredentialUserEntity.rs b/crates/web-sys/src/features/gen_PublicKeyCredentialUserEntity.rs new file mode 100644 index 00000000..79d71855 --- /dev/null +++ b/crates/web-sys/src/features/gen_PublicKeyCredentialUserEntity.rs @@ -0,0 +1,81 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PublicKeyCredentialUserEntity ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PublicKeyCredentialUserEntity` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] + pub type PublicKeyCredentialUserEntity; +} +impl PublicKeyCredentialUserEntity { + #[doc = "Construct a new `PublicKeyCredentialUserEntity`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] + pub fn new(name: &str, display_name: &str, id: &::js_sys::Object) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.display_name(display_name); + ret.id(id); + ret + } + #[doc = "Change the `icon` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] + pub fn icon(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("icon"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `displayName` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] + pub fn display_name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("displayName"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PublicKeyCredentialUserEntity`*"] + pub fn id(&mut self, val: &::js_sys::Object) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PushEncryptionKeyName.rs b/crates/web-sys/src/features/gen_PushEncryptionKeyName.rs new file mode 100644 index 00000000..426f7dba --- /dev/null +++ b/crates/web-sys/src/features/gen_PushEncryptionKeyName.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `PushEncryptionKeyName` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `PushEncryptionKeyName`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum PushEncryptionKeyName { + P256dh = "p256dh", + Auth = "auth", +} diff --git a/crates/web-sys/src/features/gen_PushEvent.rs b/crates/web-sys/src/features/gen_PushEvent.rs new file mode 100644 index 00000000..67eb1679 --- /dev/null +++ b/crates/web-sys/src/features/gen_PushEvent.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = ExtendableEvent , extends = Event , extends = :: js_sys :: Object , js_name = PushEvent , typescript_type = "PushEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PushEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushEvent`*"] + pub type PushEvent; + #[cfg(feature = "PushMessageData")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PushEvent" , js_name = data ) ] + #[doc = "Getter for the `data` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushEvent/data)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushEvent`, `PushMessageData`*"] + pub fn data(this: &PushEvent) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "PushEvent")] + #[doc = "The `new PushEvent(..)` constructor, creating a new instance of `PushEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushEvent/PushEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "PushEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "PushEvent")] + #[doc = "The `new PushEvent(..)` constructor, creating a new instance of `PushEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushEvent/PushEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushEvent`, `PushEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &PushEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_PushEventInit.rs b/crates/web-sys/src/features/gen_PushEventInit.rs new file mode 100644 index 00000000..850d4fca --- /dev/null +++ b/crates/web-sys/src/features/gen_PushEventInit.rs @@ -0,0 +1,86 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PushEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PushEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] + pub type PushEventInit; +} +impl PushEventInit { + #[doc = "Construct a new `PushEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `data` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushEventInit`*"] + pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PushManager.rs b/crates/web-sys/src/features/gen_PushManager.rs new file mode 100644 index 00000000..ff807345 --- /dev/null +++ b/crates/web-sys/src/features/gen_PushManager.rs @@ -0,0 +1,57 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PushManager , typescript_type = "PushManager" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PushManager` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushManager`*"] + pub type PushManager; + # [ wasm_bindgen ( catch , method , structural , js_class = "PushManager" , js_name = getSubscription ) ] + #[doc = "The `getSubscription()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/getSubscription)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushManager`*"] + pub fn get_subscription(this: &PushManager) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "PushManager" , js_name = permissionState ) ] + #[doc = "The `permissionState()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/permissionState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushManager`*"] + pub fn permission_state(this: &PushManager) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "PushSubscriptionOptionsInit")] + # [ wasm_bindgen ( catch , method , structural , js_class = "PushManager" , js_name = permissionState ) ] + #[doc = "The `permissionState()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/permissionState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushManager`, `PushSubscriptionOptionsInit`*"] + pub fn permission_state_with_options( + this: &PushManager, + options: &PushSubscriptionOptionsInit, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "PushManager" , js_name = subscribe ) ] + #[doc = "The `subscribe()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/subscribe)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushManager`*"] + pub fn subscribe(this: &PushManager) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "PushSubscriptionOptionsInit")] + # [ wasm_bindgen ( catch , method , structural , js_class = "PushManager" , js_name = subscribe ) ] + #[doc = "The `subscribe()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushManager/subscribe)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushManager`, `PushSubscriptionOptionsInit`*"] + pub fn subscribe_with_options( + this: &PushManager, + options: &PushSubscriptionOptionsInit, + ) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_PushMessageData.rs b/crates/web-sys/src/features/gen_PushMessageData.rs new file mode 100644 index 00000000..fd90a82d --- /dev/null +++ b/crates/web-sys/src/features/gen_PushMessageData.rs @@ -0,0 +1,43 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PushMessageData , typescript_type = "PushMessageData" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PushMessageData` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushMessageData`*"] + pub type PushMessageData; + # [ wasm_bindgen ( catch , method , structural , js_class = "PushMessageData" , js_name = arrayBuffer ) ] + #[doc = "The `arrayBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData/arrayBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushMessageData`*"] + pub fn array_buffer(this: &PushMessageData) -> Result<::js_sys::ArrayBuffer, JsValue>; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "PushMessageData" , js_name = blob ) ] + #[doc = "The `blob()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData/blob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `PushMessageData`*"] + pub fn blob(this: &PushMessageData) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "PushMessageData" , js_name = json ) ] + #[doc = "The `json()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData/json)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushMessageData`*"] + pub fn json(this: &PushMessageData) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "PushMessageData" , js_name = text ) ] + #[doc = "The `text()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushMessageData/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushMessageData`*"] + pub fn text(this: &PushMessageData) -> String; +} diff --git a/crates/web-sys/src/features/gen_PushPermissionState.rs b/crates/web-sys/src/features/gen_PushPermissionState.rs new file mode 100644 index 00000000..b86708f7 --- /dev/null +++ b/crates/web-sys/src/features/gen_PushPermissionState.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `PushPermissionState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `PushPermissionState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum PushPermissionState { + Granted = "granted", + Denied = "denied", + Prompt = "prompt", +} diff --git a/crates/web-sys/src/features/gen_PushSubscription.rs b/crates/web-sys/src/features/gen_PushSubscription.rs new file mode 100644 index 00000000..a5f57ace --- /dev/null +++ b/crates/web-sys/src/features/gen_PushSubscription.rs @@ -0,0 +1,55 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PushSubscription , typescript_type = "PushSubscription" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PushSubscription` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscription`*"] + pub type PushSubscription; + # [ wasm_bindgen ( structural , method , getter , js_class = "PushSubscription" , js_name = endpoint ) ] + #[doc = "Getter for the `endpoint` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/endpoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscription`*"] + pub fn endpoint(this: &PushSubscription) -> String; + #[cfg(feature = "PushSubscriptionOptions")] + # [ wasm_bindgen ( structural , method , getter , js_class = "PushSubscription" , js_name = options ) ] + #[doc = "Getter for the `options` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/options)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscription`, `PushSubscriptionOptions`*"] + pub fn options(this: &PushSubscription) -> PushSubscriptionOptions; + #[cfg(feature = "PushEncryptionKeyName")] + # [ wasm_bindgen ( catch , method , structural , js_class = "PushSubscription" , js_name = getKey ) ] + #[doc = "The `getKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/getKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushEncryptionKeyName`, `PushSubscription`*"] + pub fn get_key( + this: &PushSubscription, + name: PushEncryptionKeyName, + ) -> Result, JsValue>; + #[cfg(feature = "PushSubscriptionJson")] + # [ wasm_bindgen ( catch , method , structural , js_class = "PushSubscription" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscription`, `PushSubscriptionJson`*"] + pub fn to_json(this: &PushSubscription) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "PushSubscription" , js_name = unsubscribe ) ] + #[doc = "The `unsubscribe()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscription/unsubscribe)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscription`*"] + pub fn unsubscribe(this: &PushSubscription) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_PushSubscriptionInit.rs b/crates/web-sys/src/features/gen_PushSubscriptionInit.rs new file mode 100644 index 00000000..c2611948 --- /dev/null +++ b/crates/web-sys/src/features/gen_PushSubscriptionInit.rs @@ -0,0 +1,105 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PushSubscriptionInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PushSubscriptionInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] + pub type PushSubscriptionInit; +} +impl PushSubscriptionInit { + #[doc = "Construct a new `PushSubscriptionInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] + pub fn new(endpoint: &str, scope: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.endpoint(endpoint); + ret.scope(scope); + ret + } + #[doc = "Change the `appServerKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] + pub fn app_server_key(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("appServerKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `authSecret` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] + pub fn auth_secret(&mut self, val: Option<&::js_sys::ArrayBuffer>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("authSecret"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `endpoint` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] + pub fn endpoint(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("endpoint"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `p256dhKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] + pub fn p256dh_key(&mut self, val: Option<&::js_sys::ArrayBuffer>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("p256dhKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `scope` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionInit`*"] + pub fn scope(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("scope"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PushSubscriptionJson.rs b/crates/web-sys/src/features/gen_PushSubscriptionJson.rs new file mode 100644 index 00000000..ae7a4a5e --- /dev/null +++ b/crates/web-sys/src/features/gen_PushSubscriptionJson.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PushSubscriptionJSON ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PushSubscriptionJson` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionJson`*"] + pub type PushSubscriptionJson; +} +impl PushSubscriptionJson { + #[doc = "Construct a new `PushSubscriptionJson`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionJson`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `endpoint` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionJson`*"] + pub fn endpoint(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("endpoint"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "PushSubscriptionKeys")] + #[doc = "Change the `keys` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionJson`, `PushSubscriptionKeys`*"] + pub fn keys(&mut self, val: &PushSubscriptionKeys) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("keys"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PushSubscriptionKeys.rs b/crates/web-sys/src/features/gen_PushSubscriptionKeys.rs new file mode 100644 index 00000000..fdcdad2f --- /dev/null +++ b/crates/web-sys/src/features/gen_PushSubscriptionKeys.rs @@ -0,0 +1,49 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PushSubscriptionKeys ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PushSubscriptionKeys` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionKeys`*"] + pub type PushSubscriptionKeys; +} +impl PushSubscriptionKeys { + #[doc = "Construct a new `PushSubscriptionKeys`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionKeys`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `auth` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionKeys`*"] + pub fn auth(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("auth"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `p256dh` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionKeys`*"] + pub fn p256dh(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("p256dh"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_PushSubscriptionOptions.rs b/crates/web-sys/src/features/gen_PushSubscriptionOptions.rs new file mode 100644 index 00000000..b1918eac --- /dev/null +++ b/crates/web-sys/src/features/gen_PushSubscriptionOptions.rs @@ -0,0 +1,23 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PushSubscriptionOptions , typescript_type = "PushSubscriptionOptions" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PushSubscriptionOptions` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscriptionOptions)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionOptions`*"] + pub type PushSubscriptionOptions; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "PushSubscriptionOptions" , js_name = applicationServerKey ) ] + #[doc = "Getter for the `applicationServerKey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/PushSubscriptionOptions/applicationServerKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionOptions`*"] + pub fn application_server_key( + this: &PushSubscriptionOptions, + ) -> Result, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_PushSubscriptionOptionsInit.rs b/crates/web-sys/src/features/gen_PushSubscriptionOptionsInit.rs new file mode 100644 index 00000000..95501cad --- /dev/null +++ b/crates/web-sys/src/features/gen_PushSubscriptionOptionsInit.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = PushSubscriptionOptionsInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `PushSubscriptionOptionsInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionOptionsInit`*"] + pub type PushSubscriptionOptionsInit; +} +impl PushSubscriptionOptionsInit { + #[doc = "Construct a new `PushSubscriptionOptionsInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionOptionsInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `applicationServerKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushSubscriptionOptionsInit`*"] + pub fn application_server_key(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("applicationServerKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RadioNodeList.rs b/crates/web-sys/src/features/gen_RadioNodeList.rs new file mode 100644 index 00000000..7a125f74 --- /dev/null +++ b/crates/web-sys/src/features/gen_RadioNodeList.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = NodeList , extends = :: js_sys :: Object , js_name = RadioNodeList , typescript_type = "RadioNodeList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RadioNodeList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RadioNodeList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RadioNodeList`*"] + pub type RadioNodeList; + # [ wasm_bindgen ( structural , method , getter , js_class = "RadioNodeList" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RadioNodeList/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RadioNodeList`*"] + pub fn value(this: &RadioNodeList) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "RadioNodeList" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RadioNodeList/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RadioNodeList`*"] + pub fn set_value(this: &RadioNodeList, value: &str); +} diff --git a/crates/web-sys/src/features/gen_Range.rs b/crates/web-sys/src/features/gen_Range.rs new file mode 100644 index 00000000..0fd8de14 --- /dev/null +++ b/crates/web-sys/src/features/gen_Range.rs @@ -0,0 +1,277 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Range , typescript_type = "Range" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Range` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`*"] + pub type Range; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Range" , js_name = startContainer ) ] + #[doc = "Getter for the `startContainer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/startContainer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] + pub fn start_container(this: &Range) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Range" , js_name = startOffset ) ] + #[doc = "Getter for the `startOffset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/startOffset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`*"] + pub fn start_offset(this: &Range) -> Result; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Range" , js_name = endContainer ) ] + #[doc = "Getter for the `endContainer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/endContainer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] + pub fn end_container(this: &Range) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Range" , js_name = endOffset ) ] + #[doc = "Getter for the `endOffset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/endOffset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`*"] + pub fn end_offset(this: &Range) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "Range" , js_name = collapsed ) ] + #[doc = "Getter for the `collapsed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/collapsed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`*"] + pub fn collapsed(this: &Range) -> bool; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Range" , js_name = commonAncestorContainer ) ] + #[doc = "Getter for the `commonAncestorContainer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/commonAncestorContainer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] + pub fn common_ancestor_container(this: &Range) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Range")] + #[doc = "The `new Range(..)` constructor, creating a new instance of `Range`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/Range)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`*"] + pub fn new() -> Result; + #[cfg(feature = "DocumentFragment")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = cloneContents ) ] + #[doc = "The `cloneContents()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/cloneContents)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Range`*"] + pub fn clone_contents(this: &Range) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "Range" , js_name = cloneRange ) ] + #[doc = "The `cloneRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/cloneRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`*"] + pub fn clone_range(this: &Range) -> Range; + # [ wasm_bindgen ( method , structural , js_class = "Range" , js_name = collapse ) ] + #[doc = "The `collapse()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/collapse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`*"] + pub fn collapse(this: &Range); + # [ wasm_bindgen ( method , structural , js_class = "Range" , js_name = collapse ) ] + #[doc = "The `collapse()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/collapse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`*"] + pub fn collapse_with_to_start(this: &Range, to_start: bool); + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = compareBoundaryPoints ) ] + #[doc = "The `compareBoundaryPoints()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/compareBoundaryPoints)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`*"] + pub fn compare_boundary_points( + this: &Range, + how: u16, + source_range: &Range, + ) -> Result; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = comparePoint ) ] + #[doc = "The `comparePoint()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/comparePoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] + pub fn compare_point(this: &Range, node: &Node, offset: u32) -> Result; + #[cfg(feature = "DocumentFragment")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = createContextualFragment ) ] + #[doc = "The `createContextualFragment()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/createContextualFragment)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Range`*"] + pub fn create_contextual_fragment( + this: &Range, + fragment: &str, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = deleteContents ) ] + #[doc = "The `deleteContents()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/deleteContents)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`*"] + pub fn delete_contents(this: &Range) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "Range" , js_name = detach ) ] + #[doc = "The `detach()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/detach)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`*"] + pub fn detach(this: &Range); + #[cfg(feature = "DocumentFragment")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = extractContents ) ] + #[doc = "The `extractContents()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/extractContents)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `Range`*"] + pub fn extract_contents(this: &Range) -> Result; + #[cfg(feature = "DomRect")] + # [ wasm_bindgen ( method , structural , js_class = "Range" , js_name = getBoundingClientRect ) ] + #[doc = "The `getBoundingClientRect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/getBoundingClientRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRect`, `Range`*"] + pub fn get_bounding_client_rect(this: &Range) -> DomRect; + #[cfg(feature = "DomRectList")] + # [ wasm_bindgen ( method , structural , js_class = "Range" , js_name = getClientRects ) ] + #[doc = "The `getClientRects()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/getClientRects)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomRectList`, `Range`*"] + pub fn get_client_rects(this: &Range) -> Option; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = insertNode ) ] + #[doc = "The `insertNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/insertNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] + pub fn insert_node(this: &Range, node: &Node) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = intersectsNode ) ] + #[doc = "The `intersectsNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/intersectsNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] + pub fn intersects_node(this: &Range, node: &Node) -> Result; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = isPointInRange ) ] + #[doc = "The `isPointInRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/isPointInRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] + pub fn is_point_in_range(this: &Range, node: &Node, offset: u32) -> Result; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = selectNode ) ] + #[doc = "The `selectNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/selectNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] + pub fn select_node(this: &Range, ref_node: &Node) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = selectNodeContents ) ] + #[doc = "The `selectNodeContents()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/selectNodeContents)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] + pub fn select_node_contents(this: &Range, ref_node: &Node) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = setEnd ) ] + #[doc = "The `setEnd()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] + pub fn set_end(this: &Range, ref_node: &Node, offset: u32) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = setEndAfter ) ] + #[doc = "The `setEndAfter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setEndAfter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] + pub fn set_end_after(this: &Range, ref_node: &Node) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = setEndBefore ) ] + #[doc = "The `setEndBefore()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setEndBefore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] + pub fn set_end_before(this: &Range, ref_node: &Node) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = setStart ) ] + #[doc = "The `setStart()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] + pub fn set_start(this: &Range, ref_node: &Node, offset: u32) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = setStartAfter ) ] + #[doc = "The `setStartAfter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setStartAfter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] + pub fn set_start_after(this: &Range, ref_node: &Node) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = setStartBefore ) ] + #[doc = "The `setStartBefore()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/setStartBefore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] + pub fn set_start_before(this: &Range, ref_node: &Node) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Range" , js_name = surroundContents ) ] + #[doc = "The `surroundContents()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Range/surroundContents)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Range`*"] + pub fn surround_contents(this: &Range, new_parent: &Node) -> Result<(), JsValue>; +} +impl Range { + #[doc = "The `Range.START_TO_START` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`*"] + pub const START_TO_START: u16 = 0i64 as u16; + #[doc = "The `Range.START_TO_END` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`*"] + pub const START_TO_END: u16 = 1u64 as u16; + #[doc = "The `Range.END_TO_END` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`*"] + pub const END_TO_END: u16 = 2u64 as u16; + #[doc = "The `Range.END_TO_START` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`*"] + pub const END_TO_START: u16 = 3u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_RcwnPerfStats.rs b/crates/web-sys/src/features/gen_RcwnPerfStats.rs new file mode 100644 index 00000000..5a200b4b --- /dev/null +++ b/crates/web-sys/src/features/gen_RcwnPerfStats.rs @@ -0,0 +1,73 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RcwnPerfStats ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RcwnPerfStats` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"] + pub type RcwnPerfStats; +} +impl RcwnPerfStats { + #[doc = "Construct a new `RcwnPerfStats`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `avgLong` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"] + pub fn avg_long(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("avgLong"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `avgShort` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"] + pub fn avg_short(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("avgShort"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `stddevLong` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RcwnPerfStats`*"] + pub fn stddev_long(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("stddevLong"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RcwnStatus.rs b/crates/web-sys/src/features/gen_RcwnStatus.rs new file mode 100644 index 00000000..12e7f2e0 --- /dev/null +++ b/crates/web-sys/src/features/gen_RcwnStatus.rs @@ -0,0 +1,124 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RcwnStatus ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RcwnStatus` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] + pub type RcwnStatus; +} +impl RcwnStatus { + #[doc = "Construct a new `RcwnStatus`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `cacheNotSlowCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] + pub fn cache_not_slow_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cacheNotSlowCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cacheSlowCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] + pub fn cache_slow_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cacheSlowCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `perfStats` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] + pub fn perf_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("perfStats"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `rcwnCacheWonCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] + pub fn rcwn_cache_won_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("rcwnCacheWonCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `rcwnNetWonCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] + pub fn rcwn_net_won_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("rcwnNetWonCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `totalNetworkRequests` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RcwnStatus`*"] + pub fn total_network_requests(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("totalNetworkRequests"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ReadableStream.rs b/crates/web-sys/src/features/gen_ReadableStream.rs new file mode 100644 index 00000000..523fcf82 --- /dev/null +++ b/crates/web-sys/src/features/gen_ReadableStream.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ReadableStream , typescript_type = "ReadableStream" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ReadableStream` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ReadableStream`*"] + pub type ReadableStream; +} diff --git a/crates/web-sys/src/features/gen_RecordingState.rs b/crates/web-sys/src/features/gen_RecordingState.rs new file mode 100644 index 00000000..b652faf7 --- /dev/null +++ b/crates/web-sys/src/features/gen_RecordingState.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RecordingState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RecordingState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RecordingState { + Inactive = "inactive", + Recording = "recording", + Paused = "paused", +} diff --git a/crates/web-sys/src/features/gen_ReferrerPolicy.rs b/crates/web-sys/src/features/gen_ReferrerPolicy.rs new file mode 100644 index 00000000..8a04af57 --- /dev/null +++ b/crates/web-sys/src/features/gen_ReferrerPolicy.rs @@ -0,0 +1,18 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ReferrerPolicy` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ReferrerPolicy`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ReferrerPolicy { + None = "", + NoReferrer = "no-referrer", + NoReferrerWhenDowngrade = "no-referrer-when-downgrade", + Origin = "origin", + OriginWhenCrossOrigin = "origin-when-cross-origin", + UnsafeUrl = "unsafe-url", + SameOrigin = "same-origin", + StrictOrigin = "strict-origin", + StrictOriginWhenCrossOrigin = "strict-origin-when-cross-origin", +} diff --git a/crates/web-sys/src/features/gen_RegisterRequest.rs b/crates/web-sys/src/features/gen_RegisterRequest.rs new file mode 100644 index 00000000..15262e61 --- /dev/null +++ b/crates/web-sys/src/features/gen_RegisterRequest.rs @@ -0,0 +1,56 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RegisterRequest ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RegisterRequest` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegisterRequest`*"] + pub type RegisterRequest; +} +impl RegisterRequest { + #[doc = "Construct a new `RegisterRequest`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegisterRequest`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `challenge` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegisterRequest`*"] + pub fn challenge(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("challenge"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `version` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegisterRequest`*"] + pub fn version(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("version"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RegisterResponse.rs b/crates/web-sys/src/features/gen_RegisterResponse.rs new file mode 100644 index 00000000..c84e5686 --- /dev/null +++ b/crates/web-sys/src/features/gen_RegisterResponse.rs @@ -0,0 +1,107 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RegisterResponse ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RegisterResponse` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] + pub type RegisterResponse; +} +impl RegisterResponse { + #[doc = "Construct a new `RegisterResponse`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `clientData` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] + pub fn client_data(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("clientData"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `errorCode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] + pub fn error_code(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("errorCode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `errorMessage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] + pub fn error_message(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("errorMessage"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `registrationData` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] + pub fn registration_data(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("registrationData"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `version` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegisterResponse`*"] + pub fn version(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("version"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RegisteredKey.rs b/crates/web-sys/src/features/gen_RegisteredKey.rs new file mode 100644 index 00000000..2ca0d8ac --- /dev/null +++ b/crates/web-sys/src/features/gen_RegisteredKey.rs @@ -0,0 +1,86 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RegisteredKey ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RegisteredKey` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] + pub type RegisteredKey; +} +impl RegisteredKey { + #[doc = "Construct a new `RegisteredKey`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `appId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] + pub fn app_id(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("appId"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `keyHandle` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] + pub fn key_handle(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("keyHandle"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `transports` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] + pub fn transports(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("transports"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `version` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegisteredKey`*"] + pub fn version(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("version"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RegistrationOptions.rs b/crates/web-sys/src/features/gen_RegistrationOptions.rs new file mode 100644 index 00000000..02ec371c --- /dev/null +++ b/crates/web-sys/src/features/gen_RegistrationOptions.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RegistrationOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RegistrationOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`*"] + pub type RegistrationOptions; +} +impl RegistrationOptions { + #[doc = "Construct a new `RegistrationOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `scope` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`*"] + pub fn scope(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("scope"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ServiceWorkerUpdateViaCache")] + #[doc = "Change the `updateViaCache` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`, `ServiceWorkerUpdateViaCache`*"] + pub fn update_via_cache(&mut self, val: ServiceWorkerUpdateViaCache) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("updateViaCache"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Request.rs b/crates/web-sys/src/features/gen_Request.rs new file mode 100644 index 00000000..bc9d61c7 --- /dev/null +++ b/crates/web-sys/src/features/gen_Request.rs @@ -0,0 +1,196 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Request , typescript_type = "Request" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Request` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`*"] + pub type Request; + # [ wasm_bindgen ( structural , method , getter , js_class = "Request" , js_name = method ) ] + #[doc = "Getter for the `method` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/method)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`*"] + pub fn method(this: &Request) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Request" , js_name = url ) ] + #[doc = "Getter for the `url` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/url)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`*"] + pub fn url(this: &Request) -> String; + #[cfg(feature = "Headers")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Request" , js_name = headers ) ] + #[doc = "Getter for the `headers` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/headers)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Headers`, `Request`*"] + pub fn headers(this: &Request) -> Headers; + #[cfg(feature = "RequestDestination")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Request" , js_name = destination ) ] + #[doc = "Getter for the `destination` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/destination)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestDestination`*"] + pub fn destination(this: &Request) -> RequestDestination; + # [ wasm_bindgen ( structural , method , getter , js_class = "Request" , js_name = referrer ) ] + #[doc = "Getter for the `referrer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/referrer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`*"] + pub fn referrer(this: &Request) -> String; + #[cfg(feature = "ReferrerPolicy")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Request" , js_name = referrerPolicy ) ] + #[doc = "Getter for the `referrerPolicy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/referrerPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ReferrerPolicy`, `Request`*"] + pub fn referrer_policy(this: &Request) -> ReferrerPolicy; + #[cfg(feature = "RequestMode")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Request" , js_name = mode ) ] + #[doc = "Getter for the `mode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/mode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestMode`*"] + pub fn mode(this: &Request) -> RequestMode; + #[cfg(feature = "RequestCredentials")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Request" , js_name = credentials ) ] + #[doc = "Getter for the `credentials` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestCredentials`*"] + pub fn credentials(this: &Request) -> RequestCredentials; + #[cfg(feature = "RequestCache")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Request" , js_name = cache ) ] + #[doc = "Getter for the `cache` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/cache)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestCache`*"] + pub fn cache(this: &Request) -> RequestCache; + #[cfg(feature = "RequestRedirect")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Request" , js_name = redirect ) ] + #[doc = "Getter for the `redirect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/redirect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestRedirect`*"] + pub fn redirect(this: &Request) -> RequestRedirect; + # [ wasm_bindgen ( structural , method , getter , js_class = "Request" , js_name = integrity ) ] + #[doc = "Getter for the `integrity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/integrity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`*"] + pub fn integrity(this: &Request) -> String; + #[cfg(feature = "AbortSignal")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Request" , js_name = signal ) ] + #[doc = "Getter for the `signal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/signal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `Request`*"] + pub fn signal(this: &Request) -> AbortSignal; + # [ wasm_bindgen ( structural , method , getter , js_class = "Request" , js_name = bodyUsed ) ] + #[doc = "Getter for the `bodyUsed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/bodyUsed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`*"] + pub fn body_used(this: &Request) -> bool; + #[cfg(feature = "ReadableStream")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Request" , js_name = body ) ] + #[doc = "Getter for the `body` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/body)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `Request`*"] + pub fn body(this: &Request) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "Request")] + #[doc = "The `new Request(..)` constructor, creating a new instance of `Request`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`*"] + pub fn new_with_request(input: &Request) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Request")] + #[doc = "The `new Request(..)` constructor, creating a new instance of `Request`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`*"] + pub fn new_with_str(input: &str) -> Result; + #[cfg(feature = "RequestInit")] + #[wasm_bindgen(catch, constructor, js_class = "Request")] + #[doc = "The `new Request(..)` constructor, creating a new instance of `Request`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestInit`*"] + pub fn new_with_request_and_init( + input: &Request, + init: &RequestInit, + ) -> Result; + #[cfg(feature = "RequestInit")] + #[wasm_bindgen(catch, constructor, js_class = "Request")] + #[doc = "The `new Request(..)` constructor, creating a new instance of `Request`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestInit`*"] + pub fn new_with_str_and_init(input: &str, init: &RequestInit) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Request" , js_name = clone ) ] + #[doc = "The `clone()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/clone)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`*"] + pub fn clone(this: &Request) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Request" , js_name = arrayBuffer ) ] + #[doc = "The `arrayBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/arrayBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`*"] + pub fn array_buffer(this: &Request) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Request" , js_name = blob ) ] + #[doc = "The `blob()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/blob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`*"] + pub fn blob(this: &Request) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Request" , js_name = formData ) ] + #[doc = "The `formData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/formData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`*"] + pub fn form_data(this: &Request) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Request" , js_name = json ) ] + #[doc = "The `json()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/json)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`*"] + pub fn json(this: &Request) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Request" , js_name = text ) ] + #[doc = "The `text()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Request/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`*"] + pub fn text(this: &Request) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_RequestCache.rs b/crates/web-sys/src/features/gen_RequestCache.rs new file mode 100644 index 00000000..411fce68 --- /dev/null +++ b/crates/web-sys/src/features/gen_RequestCache.rs @@ -0,0 +1,15 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RequestCache` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RequestCache`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RequestCache { + Default = "default", + NoStore = "no-store", + Reload = "reload", + NoCache = "no-cache", + ForceCache = "force-cache", + OnlyIfCached = "only-if-cached", +} diff --git a/crates/web-sys/src/features/gen_RequestCredentials.rs b/crates/web-sys/src/features/gen_RequestCredentials.rs new file mode 100644 index 00000000..5c61d97a --- /dev/null +++ b/crates/web-sys/src/features/gen_RequestCredentials.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RequestCredentials` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RequestCredentials`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RequestCredentials { + Omit = "omit", + SameOrigin = "same-origin", + Include = "include", +} diff --git a/crates/web-sys/src/features/gen_RequestDestination.rs b/crates/web-sys/src/features/gen_RequestDestination.rs new file mode 100644 index 00000000..e21089dc --- /dev/null +++ b/crates/web-sys/src/features/gen_RequestDestination.rs @@ -0,0 +1,27 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RequestDestination` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RequestDestination`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RequestDestination { + None = "", + Audio = "audio", + Audioworklet = "audioworklet", + Document = "document", + Embed = "embed", + Font = "font", + Image = "image", + Manifest = "manifest", + Object = "object", + Paintworklet = "paintworklet", + Report = "report", + Script = "script", + Sharedworker = "sharedworker", + Style = "style", + Track = "track", + Video = "video", + Worker = "worker", + Xslt = "xslt", +} diff --git a/crates/web-sys/src/features/gen_RequestInit.rs b/crates/web-sys/src/features/gen_RequestInit.rs new file mode 100644 index 00000000..8fdd5a73 --- /dev/null +++ b/crates/web-sys/src/features/gen_RequestInit.rs @@ -0,0 +1,215 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RequestInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RequestInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] + pub type RequestInit; +} +impl RequestInit { + #[doc = "Construct a new `RequestInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `body` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] + pub fn body(&mut self, val: Option<&::wasm_bindgen::JsValue>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("body"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RequestCache")] + #[doc = "Change the `cache` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RequestCache`, `RequestInit`*"] + pub fn cache(&mut self, val: RequestCache) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("cache"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RequestCredentials")] + #[doc = "Change the `credentials` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RequestCredentials`, `RequestInit`*"] + pub fn credentials(&mut self, val: RequestCredentials) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("credentials"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `headers` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] + pub fn headers(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("headers"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `integrity` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] + pub fn integrity(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("integrity"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `method` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] + pub fn method(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("method"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RequestMode")] + #[doc = "Change the `mode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RequestInit`, `RequestMode`*"] + pub fn mode(&mut self, val: RequestMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mode"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ObserverCallback")] + #[doc = "Change the `observe` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ObserverCallback`, `RequestInit`*"] + pub fn observe(&mut self, val: &ObserverCallback) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("observe"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RequestRedirect")] + #[doc = "Change the `redirect` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RequestInit`, `RequestRedirect`*"] + pub fn redirect(&mut self, val: RequestRedirect) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("redirect"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `referrer` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RequestInit`*"] + pub fn referrer(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("referrer"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ReferrerPolicy")] + #[doc = "Change the `referrerPolicy` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ReferrerPolicy`, `RequestInit`*"] + pub fn referrer_policy(&mut self, val: ReferrerPolicy) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("referrerPolicy"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "AbortSignal")] + #[doc = "Change the `signal` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AbortSignal`, `RequestInit`*"] + pub fn signal(&mut self, val: Option<&AbortSignal>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("signal"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RequestMediaKeySystemAccessNotification.rs b/crates/web-sys/src/features/gen_RequestMediaKeySystemAccessNotification.rs new file mode 100644 index 00000000..d798e763 --- /dev/null +++ b/crates/web-sys/src/features/gen_RequestMediaKeySystemAccessNotification.rs @@ -0,0 +1,57 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RequestMediaKeySystemAccessNotification ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RequestMediaKeySystemAccessNotification` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RequestMediaKeySystemAccessNotification`*"] + pub type RequestMediaKeySystemAccessNotification; +} +impl RequestMediaKeySystemAccessNotification { + #[cfg(feature = "MediaKeySystemStatus")] + #[doc = "Construct a new `RequestMediaKeySystemAccessNotification`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemStatus`, `RequestMediaKeySystemAccessNotification`*"] + pub fn new(key_system: &str, status: MediaKeySystemStatus) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.key_system(key_system); + ret.status(status); + ret + } + #[doc = "Change the `keySystem` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RequestMediaKeySystemAccessNotification`*"] + pub fn key_system(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("keySystem"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "MediaKeySystemStatus")] + #[doc = "Change the `status` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaKeySystemStatus`, `RequestMediaKeySystemAccessNotification`*"] + pub fn status(&mut self, val: MediaKeySystemStatus) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("status"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RequestMode.rs b/crates/web-sys/src/features/gen_RequestMode.rs new file mode 100644 index 00000000..cd129397 --- /dev/null +++ b/crates/web-sys/src/features/gen_RequestMode.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RequestMode` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RequestMode`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RequestMode { + SameOrigin = "same-origin", + NoCors = "no-cors", + Cors = "cors", + Navigate = "navigate", +} diff --git a/crates/web-sys/src/features/gen_RequestRedirect.rs b/crates/web-sys/src/features/gen_RequestRedirect.rs new file mode 100644 index 00000000..ae6cc92a --- /dev/null +++ b/crates/web-sys/src/features/gen_RequestRedirect.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RequestRedirect` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RequestRedirect`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RequestRedirect { + Follow = "follow", + Error = "error", + Manual = "manual", +} diff --git a/crates/web-sys/src/features/gen_Response.rs b/crates/web-sys/src/features/gen_Response.rs new file mode 100644 index 00000000..fd6f4e13 --- /dev/null +++ b/crates/web-sys/src/features/gen_Response.rs @@ -0,0 +1,284 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Response , typescript_type = "Response" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Response` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub type Response; + #[cfg(feature = "ResponseType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Response" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`, `ResponseType`*"] + pub fn type_(this: &Response) -> ResponseType; + # [ wasm_bindgen ( structural , method , getter , js_class = "Response" , js_name = url ) ] + #[doc = "Getter for the `url` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/url)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn url(this: &Response) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Response" , js_name = redirected ) ] + #[doc = "Getter for the `redirected` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/redirected)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn redirected(this: &Response) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "Response" , js_name = status ) ] + #[doc = "Getter for the `status` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/status)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn status(this: &Response) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "Response" , js_name = ok ) ] + #[doc = "Getter for the `ok` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/ok)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn ok(this: &Response) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "Response" , js_name = statusText ) ] + #[doc = "Getter for the `statusText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/statusText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn status_text(this: &Response) -> String; + #[cfg(feature = "Headers")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Response" , js_name = headers ) ] + #[doc = "Getter for the `headers` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/headers)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Headers`, `Response`*"] + pub fn headers(this: &Response) -> Headers; + # [ wasm_bindgen ( structural , method , getter , js_class = "Response" , js_name = bodyUsed ) ] + #[doc = "Getter for the `bodyUsed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/bodyUsed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn body_used(this: &Response) -> bool; + #[cfg(feature = "ReadableStream")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Response" , js_name = body ) ] + #[doc = "Getter for the `body` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/body)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `Response`*"] + pub fn body(this: &Response) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "Response")] + #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn new() -> Result; + #[cfg(feature = "Blob")] + #[wasm_bindgen(catch, constructor, js_class = "Response")] + #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `Response`*"] + pub fn new_with_opt_blob(body: Option<&Blob>) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Response")] + #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn new_with_opt_buffer_source(body: Option<&::js_sys::Object>) + -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Response")] + #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn new_with_opt_u8_array(body: Option<&mut [u8]>) -> Result; + #[cfg(feature = "FormData")] + #[wasm_bindgen(catch, constructor, js_class = "Response")] + #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FormData`, `Response`*"] + pub fn new_with_opt_form_data(body: Option<&FormData>) -> Result; + #[cfg(feature = "UrlSearchParams")] + #[wasm_bindgen(catch, constructor, js_class = "Response")] + #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`, `UrlSearchParams`*"] + pub fn new_with_opt_url_search_params( + body: Option<&UrlSearchParams>, + ) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Response")] + #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn new_with_opt_str(body: Option<&str>) -> Result; + #[cfg(feature = "ReadableStream")] + #[wasm_bindgen(catch, constructor, js_class = "Response")] + #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `Response`*"] + pub fn new_with_opt_readable_stream(body: Option<&ReadableStream>) + -> Result; + #[cfg(all(feature = "Blob", feature = "ResponseInit",))] + #[wasm_bindgen(catch, constructor, js_class = "Response")] + #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `Response`, `ResponseInit`*"] + pub fn new_with_opt_blob_and_init( + body: Option<&Blob>, + init: &ResponseInit, + ) -> Result; + #[cfg(feature = "ResponseInit")] + #[wasm_bindgen(catch, constructor, js_class = "Response")] + #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`, `ResponseInit`*"] + pub fn new_with_opt_buffer_source_and_init( + body: Option<&::js_sys::Object>, + init: &ResponseInit, + ) -> Result; + #[cfg(feature = "ResponseInit")] + #[wasm_bindgen(catch, constructor, js_class = "Response")] + #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`, `ResponseInit`*"] + pub fn new_with_opt_u8_array_and_init( + body: Option<&mut [u8]>, + init: &ResponseInit, + ) -> Result; + #[cfg(all(feature = "FormData", feature = "ResponseInit",))] + #[wasm_bindgen(catch, constructor, js_class = "Response")] + #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FormData`, `Response`, `ResponseInit`*"] + pub fn new_with_opt_form_data_and_init( + body: Option<&FormData>, + init: &ResponseInit, + ) -> Result; + #[cfg(all(feature = "ResponseInit", feature = "UrlSearchParams",))] + #[wasm_bindgen(catch, constructor, js_class = "Response")] + #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`, `ResponseInit`, `UrlSearchParams`*"] + pub fn new_with_opt_url_search_params_and_init( + body: Option<&UrlSearchParams>, + init: &ResponseInit, + ) -> Result; + #[cfg(feature = "ResponseInit")] + #[wasm_bindgen(catch, constructor, js_class = "Response")] + #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`, `ResponseInit`*"] + pub fn new_with_opt_str_and_init( + body: Option<&str>, + init: &ResponseInit, + ) -> Result; + #[cfg(all(feature = "ReadableStream", feature = "ResponseInit",))] + #[wasm_bindgen(catch, constructor, js_class = "Response")] + #[doc = "The `new Response(..)` constructor, creating a new instance of `Response`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `Response`, `ResponseInit`*"] + pub fn new_with_opt_readable_stream_and_init( + body: Option<&ReadableStream>, + init: &ResponseInit, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Response" , js_name = clone ) ] + #[doc = "The `clone()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/clone)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn clone(this: &Response) -> Result; + # [ wasm_bindgen ( static_method_of = Response , js_class = "Response" , js_name = error ) ] + #[doc = "The `error()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn error() -> Response; + # [ wasm_bindgen ( catch , static_method_of = Response , js_class = "Response" , js_name = redirect ) ] + #[doc = "The `redirect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn redirect(url: &str) -> Result; + # [ wasm_bindgen ( catch , static_method_of = Response , js_class = "Response" , js_name = redirect ) ] + #[doc = "The `redirect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/redirect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn redirect_with_status(url: &str, status: u16) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Response" , js_name = arrayBuffer ) ] + #[doc = "The `arrayBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/arrayBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn array_buffer(this: &Response) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Response" , js_name = blob ) ] + #[doc = "The `blob()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/blob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn blob(this: &Response) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Response" , js_name = formData ) ] + #[doc = "The `formData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/formData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn form_data(this: &Response) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Response" , js_name = json ) ] + #[doc = "The `json()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/json)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn json(this: &Response) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Response" , js_name = text ) ] + #[doc = "The `text()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Response/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Response`*"] + pub fn text(this: &Response) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_ResponseInit.rs b/crates/web-sys/src/features/gen_ResponseInit.rs new file mode 100644 index 00000000..86380ad5 --- /dev/null +++ b/crates/web-sys/src/features/gen_ResponseInit.rs @@ -0,0 +1,70 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ResponseInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ResponseInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] + pub type ResponseInit; +} +impl ResponseInit { + #[doc = "Construct a new `ResponseInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `headers` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] + pub fn headers(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("headers"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `status` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] + pub fn status(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("status"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `statusText` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ResponseInit`*"] + pub fn status_text(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("statusText"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ResponseType.rs b/crates/web-sys/src/features/gen_ResponseType.rs new file mode 100644 index 00000000..2ff543a7 --- /dev/null +++ b/crates/web-sys/src/features/gen_ResponseType.rs @@ -0,0 +1,15 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ResponseType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ResponseType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ResponseType { + Basic = "basic", + Cors = "cors", + Default = "default", + Error = "error", + Opaque = "opaque", + Opaqueredirect = "opaqueredirect", +} diff --git a/crates/web-sys/src/features/gen_RsaHashedImportParams.rs b/crates/web-sys/src/features/gen_RsaHashedImportParams.rs new file mode 100644 index 00000000..6c1d9f17 --- /dev/null +++ b/crates/web-sys/src/features/gen_RsaHashedImportParams.rs @@ -0,0 +1,36 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RsaHashedImportParams ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RsaHashedImportParams` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RsaHashedImportParams`*"] + pub type RsaHashedImportParams; +} +impl RsaHashedImportParams { + #[doc = "Construct a new `RsaHashedImportParams`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RsaHashedImportParams`*"] + pub fn new(hash: &::wasm_bindgen::JsValue) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.hash(hash); + ret + } + #[doc = "Change the `hash` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RsaHashedImportParams`*"] + pub fn hash(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("hash"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RsaOaepParams.rs b/crates/web-sys/src/features/gen_RsaOaepParams.rs new file mode 100644 index 00000000..7de93d49 --- /dev/null +++ b/crates/web-sys/src/features/gen_RsaOaepParams.rs @@ -0,0 +1,49 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RsaOaepParams ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RsaOaepParams` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RsaOaepParams`*"] + pub type RsaOaepParams; +} +impl RsaOaepParams { + #[doc = "Construct a new `RsaOaepParams`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RsaOaepParams`*"] + pub fn new(name: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RsaOaepParams`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `label` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RsaOaepParams`*"] + pub fn label(&mut self, val: &::js_sys::Object) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("label"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RsaOtherPrimesInfo.rs b/crates/web-sys/src/features/gen_RsaOtherPrimesInfo.rs new file mode 100644 index 00000000..646eaa87 --- /dev/null +++ b/crates/web-sys/src/features/gen_RsaOtherPrimesInfo.rs @@ -0,0 +1,64 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RsaOtherPrimesInfo ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RsaOtherPrimesInfo` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] + pub type RsaOtherPrimesInfo; +} +impl RsaOtherPrimesInfo { + #[doc = "Construct a new `RsaOtherPrimesInfo`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] + pub fn new(d: &str, r: &str, t: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.d(d); + ret.r(r); + ret.t(t); + ret + } + #[doc = "Change the `d` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] + pub fn d(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("d"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `r` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] + pub fn r(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("r"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `t` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RsaOtherPrimesInfo`*"] + pub fn t(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("t"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RsaPssParams.rs b/crates/web-sys/src/features/gen_RsaPssParams.rs new file mode 100644 index 00000000..aef70622 --- /dev/null +++ b/crates/web-sys/src/features/gen_RsaPssParams.rs @@ -0,0 +1,54 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RsaPssParams ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RsaPssParams` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RsaPssParams`*"] + pub type RsaPssParams; +} +impl RsaPssParams { + #[doc = "Construct a new `RsaPssParams`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RsaPssParams`*"] + pub fn new(name: &str, salt_length: u32) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.name(name); + ret.salt_length(salt_length); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RsaPssParams`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `saltLength` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RsaPssParams`*"] + pub fn salt_length(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("saltLength"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcAnswerOptions.rs b/crates/web-sys/src/features/gen_RtcAnswerOptions.rs new file mode 100644 index 00000000..52464d2d --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcAnswerOptions.rs @@ -0,0 +1,22 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCAnswerOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcAnswerOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcAnswerOptions`*"] + pub type RtcAnswerOptions; +} +impl RtcAnswerOptions { + #[doc = "Construct a new `RtcAnswerOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcAnswerOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } +} diff --git a/crates/web-sys/src/features/gen_RtcBundlePolicy.rs b/crates/web-sys/src/features/gen_RtcBundlePolicy.rs new file mode 100644 index 00000000..261c153e --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcBundlePolicy.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RtcBundlePolicy` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RtcBundlePolicy`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RtcBundlePolicy { + Balanced = "balanced", + MaxCompat = "max-compat", + MaxBundle = "max-bundle", +} diff --git a/crates/web-sys/src/features/gen_RtcCertificate.rs b/crates/web-sys/src/features/gen_RtcCertificate.rs new file mode 100644 index 00000000..46a47874 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcCertificate.rs @@ -0,0 +1,21 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCCertificate , typescript_type = "RTCCertificate" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcCertificate` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCCertificate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcCertificate`*"] + pub type RtcCertificate; + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCCertificate" , js_name = expires ) ] + #[doc = "Getter for the `expires` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCCertificate/expires)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcCertificate`*"] + pub fn expires(this: &RtcCertificate) -> f64; +} diff --git a/crates/web-sys/src/features/gen_RtcCertificateExpiration.rs b/crates/web-sys/src/features/gen_RtcCertificateExpiration.rs new file mode 100644 index 00000000..920e04a3 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcCertificateExpiration.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCCertificateExpiration ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcCertificateExpiration` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcCertificateExpiration`*"] + pub type RtcCertificateExpiration; +} +impl RtcCertificateExpiration { + #[doc = "Construct a new `RtcCertificateExpiration`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcCertificateExpiration`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `expires` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcCertificateExpiration`*"] + pub fn expires(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("expires"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcCodecStats.rs b/crates/web-sys/src/features/gen_RtcCodecStats.rs new file mode 100644 index 00000000..d76095a5 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcCodecStats.rs @@ -0,0 +1,147 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCCodecStats ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcCodecStats` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] + pub type RtcCodecStats; +} +impl RtcCodecStats { + #[doc = "Construct a new `RtcCodecStats`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] + pub fn id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] + pub fn timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcStatsType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`, `RtcStatsType`*"] + pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `channels` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] + pub fn channels(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channels"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `clockRate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] + pub fn clock_rate(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("clockRate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `codec` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] + pub fn codec(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("codec"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `parameters` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] + pub fn parameters(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("parameters"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `payloadType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcCodecStats`*"] + pub fn payload_type(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("payloadType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcConfiguration.rs b/crates/web-sys/src/features/gen_RtcConfiguration.rs new file mode 100644 index 00000000..776b029d --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcConfiguration.rs @@ -0,0 +1,109 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCConfiguration ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcConfiguration` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] + pub type RtcConfiguration; +} +impl RtcConfiguration { + #[doc = "Construct a new `RtcConfiguration`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "RtcBundlePolicy")] + #[doc = "Change the `bundlePolicy` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcBundlePolicy`, `RtcConfiguration`*"] + pub fn bundle_policy(&mut self, val: RtcBundlePolicy) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bundlePolicy"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `certificates` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] + pub fn certificates(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("certificates"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `iceServers` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] + pub fn ice_servers(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iceServers"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcIceTransportPolicy")] + #[doc = "Change the `iceTransportPolicy` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`, `RtcIceTransportPolicy`*"] + pub fn ice_transport_policy(&mut self, val: RtcIceTransportPolicy) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iceTransportPolicy"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `peerIdentity` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`*"] + pub fn peer_identity(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("peerIdentity"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcDataChannel.rs b/crates/web-sys/src/features/gen_RtcDataChannel.rs new file mode 100644 index 00000000..d99c4ff7 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcDataChannel.rs @@ -0,0 +1,206 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = RTCDataChannel , typescript_type = "RTCDataChannel" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcDataChannel` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub type RtcDataChannel; + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCDataChannel" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn label(this: &RtcDataChannel) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCDataChannel" , js_name = reliable ) ] + #[doc = "Getter for the `reliable` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/reliable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn reliable(this: &RtcDataChannel) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCDataChannel" , js_name = maxPacketLifeTime ) ] + #[doc = "Getter for the `maxPacketLifeTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/maxPacketLifeTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn max_packet_life_time(this: &RtcDataChannel) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCDataChannel" , js_name = maxRetransmits ) ] + #[doc = "Getter for the `maxRetransmits` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/maxRetransmits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn max_retransmits(this: &RtcDataChannel) -> Option; + #[cfg(feature = "RtcDataChannelState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCDataChannel" , js_name = readyState ) ] + #[doc = "Getter for the `readyState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/readyState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelState`*"] + pub fn ready_state(this: &RtcDataChannel) -> RtcDataChannelState; + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCDataChannel" , js_name = bufferedAmount ) ] + #[doc = "Getter for the `bufferedAmount` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/bufferedAmount)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn buffered_amount(this: &RtcDataChannel) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCDataChannel" , js_name = bufferedAmountLowThreshold ) ] + #[doc = "Getter for the `bufferedAmountLowThreshold` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn buffered_amount_low_threshold(this: &RtcDataChannel) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCDataChannel" , js_name = bufferedAmountLowThreshold ) ] + #[doc = "Setter for the `bufferedAmountLowThreshold` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/bufferedAmountLowThreshold)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn set_buffered_amount_low_threshold(this: &RtcDataChannel, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCDataChannel" , js_name = onopen ) ] + #[doc = "Getter for the `onopen` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onopen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn onopen(this: &RtcDataChannel) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCDataChannel" , js_name = onopen ) ] + #[doc = "Setter for the `onopen` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onopen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn set_onopen(this: &RtcDataChannel, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCDataChannel" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn onerror(this: &RtcDataChannel) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCDataChannel" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn set_onerror(this: &RtcDataChannel, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCDataChannel" , js_name = onclose ) ] + #[doc = "Getter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn onclose(this: &RtcDataChannel) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCDataChannel" , js_name = onclose ) ] + #[doc = "Setter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn set_onclose(this: &RtcDataChannel, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCDataChannel" , js_name = onmessage ) ] + #[doc = "Getter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn onmessage(this: &RtcDataChannel) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCDataChannel" , js_name = onmessage ) ] + #[doc = "Setter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn set_onmessage(this: &RtcDataChannel, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCDataChannel" , js_name = onbufferedamountlow ) ] + #[doc = "Getter for the `onbufferedamountlow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onbufferedamountlow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn onbufferedamountlow(this: &RtcDataChannel) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCDataChannel" , js_name = onbufferedamountlow ) ] + #[doc = "Setter for the `onbufferedamountlow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/onbufferedamountlow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn set_onbufferedamountlow(this: &RtcDataChannel, value: Option<&::js_sys::Function>); + #[cfg(feature = "RtcDataChannelType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCDataChannel" , js_name = binaryType ) ] + #[doc = "Getter for the `binaryType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/binaryType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelType`*"] + pub fn binary_type(this: &RtcDataChannel) -> RtcDataChannelType; + #[cfg(feature = "RtcDataChannelType")] + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCDataChannel" , js_name = binaryType ) ] + #[doc = "Setter for the `binaryType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/binaryType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelType`*"] + pub fn set_binary_type(this: &RtcDataChannel, value: RtcDataChannelType); + # [ wasm_bindgen ( method , structural , js_class = "RTCDataChannel" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn close(this: &RtcDataChannel); + # [ wasm_bindgen ( catch , method , structural , js_class = "RTCDataChannel" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn send_with_str(this: &RtcDataChannel, data: &str) -> Result<(), JsValue>; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "RTCDataChannel" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `RtcDataChannel`*"] + pub fn send_with_blob(this: &RtcDataChannel, data: &Blob) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "RTCDataChannel" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn send_with_array_buffer( + this: &RtcDataChannel, + data: &::js_sys::ArrayBuffer, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "RTCDataChannel" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn send_with_array_buffer_view( + this: &RtcDataChannel, + data: &::js_sys::Object, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "RTCDataChannel" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannel/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`*"] + pub fn send_with_u8_array(this: &RtcDataChannel, data: &[u8]) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_RtcDataChannelEvent.rs b/crates/web-sys/src/features/gen_RtcDataChannelEvent.rs new file mode 100644 index 00000000..9fea1479 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcDataChannelEvent.rs @@ -0,0 +1,33 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = RTCDataChannelEvent , typescript_type = "RTCDataChannelEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcDataChannelEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannelEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEvent`*"] + pub type RtcDataChannelEvent; + #[cfg(feature = "RtcDataChannel")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCDataChannelEvent" , js_name = channel ) ] + #[doc = "Getter for the `channel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannelEvent/channel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelEvent`*"] + pub fn channel(this: &RtcDataChannelEvent) -> RtcDataChannel; + #[cfg(feature = "RtcDataChannelEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "RTCDataChannelEvent")] + #[doc = "The `new RtcDataChannelEvent(..)` constructor, creating a new instance of `RtcDataChannelEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDataChannelEvent/RTCDataChannelEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEvent`, `RtcDataChannelEventInit`*"] + pub fn new( + type_: &str, + event_init_dict: &RtcDataChannelEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_RtcDataChannelEventInit.rs b/crates/web-sys/src/features/gen_RtcDataChannelEventInit.rs new file mode 100644 index 00000000..a53a4092 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcDataChannelEventInit.rs @@ -0,0 +1,93 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCDataChannelEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcDataChannelEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEventInit`*"] + pub type RtcDataChannelEventInit; +} +impl RtcDataChannelEventInit { + #[cfg(feature = "RtcDataChannel")] + #[doc = "Construct a new `RtcDataChannelEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelEventInit`*"] + pub fn new(channel: &RtcDataChannel) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.channel(channel); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcDataChannel")] + #[doc = "Change the `channel` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelEventInit`*"] + pub fn channel(&mut self, val: &RtcDataChannel) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channel"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcDataChannelInit.rs b/crates/web-sys/src/features/gen_RtcDataChannelInit.rs new file mode 100644 index 00000000..42d72a94 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcDataChannelInit.rs @@ -0,0 +1,137 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCDataChannelInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcDataChannelInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] + pub type RtcDataChannelInit; +} +impl RtcDataChannelInit { + #[doc = "Construct a new `RtcDataChannelInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] + pub fn id(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `maxPacketLifeTime` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] + pub fn max_packet_life_time(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maxPacketLifeTime"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `maxRetransmitTime` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] + pub fn max_retransmit_time(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maxRetransmitTime"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `maxRetransmits` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] + pub fn max_retransmits(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maxRetransmits"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `negotiated` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] + pub fn negotiated(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("negotiated"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ordered` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] + pub fn ordered(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("ordered"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `protocol` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannelInit`*"] + pub fn protocol(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("protocol"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcDataChannelState.rs b/crates/web-sys/src/features/gen_RtcDataChannelState.rs new file mode 100644 index 00000000..4c999cad --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcDataChannelState.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RtcDataChannelState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RtcDataChannelState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RtcDataChannelState { + Connecting = "connecting", + Open = "open", + Closing = "closing", + Closed = "closed", +} diff --git a/crates/web-sys/src/features/gen_RtcDataChannelType.rs b/crates/web-sys/src/features/gen_RtcDataChannelType.rs new file mode 100644 index 00000000..e2089d4e --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcDataChannelType.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RtcDataChannelType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RtcDataChannelType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RtcDataChannelType { + Arraybuffer = "arraybuffer", + Blob = "blob", +} diff --git a/crates/web-sys/src/features/gen_RtcDegradationPreference.rs b/crates/web-sys/src/features/gen_RtcDegradationPreference.rs new file mode 100644 index 00000000..118c3ed7 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcDegradationPreference.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RtcDegradationPreference` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RtcDegradationPreference`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RtcDegradationPreference { + MaintainFramerate = "maintain-framerate", + MaintainResolution = "maintain-resolution", + Balanced = "balanced", +} diff --git a/crates/web-sys/src/features/gen_RtcFecParameters.rs b/crates/web-sys/src/features/gen_RtcFecParameters.rs new file mode 100644 index 00000000..2462a777 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcFecParameters.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCFecParameters ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcFecParameters` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcFecParameters`*"] + pub type RtcFecParameters; +} +impl RtcFecParameters { + #[doc = "Construct a new `RtcFecParameters`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcFecParameters`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `ssrc` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcFecParameters`*"] + pub fn ssrc(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ssrc"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcIceCandidate.rs b/crates/web-sys/src/features/gen_RtcIceCandidate.rs new file mode 100644 index 00000000..da79852a --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcIceCandidate.rs @@ -0,0 +1,71 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCIceCandidate , typescript_type = "RTCIceCandidate" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcIceCandidate` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] + pub type RtcIceCandidate; + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCIceCandidate" , js_name = candidate ) ] + #[doc = "Getter for the `candidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/candidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] + pub fn candidate(this: &RtcIceCandidate) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCIceCandidate" , js_name = candidate ) ] + #[doc = "Setter for the `candidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/candidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] + pub fn set_candidate(this: &RtcIceCandidate, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCIceCandidate" , js_name = sdpMid ) ] + #[doc = "Getter for the `sdpMid` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMid)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] + pub fn sdp_mid(this: &RtcIceCandidate) -> Option; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCIceCandidate" , js_name = sdpMid ) ] + #[doc = "Setter for the `sdpMid` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMid)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] + pub fn set_sdp_mid(this: &RtcIceCandidate, value: Option<&str>); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCIceCandidate" , js_name = sdpMLineIndex ) ] + #[doc = "Getter for the `sdpMLineIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMLineIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] + pub fn sdp_m_line_index(this: &RtcIceCandidate) -> Option; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCIceCandidate" , js_name = sdpMLineIndex ) ] + #[doc = "Setter for the `sdpMLineIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/sdpMLineIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] + pub fn set_sdp_m_line_index(this: &RtcIceCandidate, value: Option); + #[cfg(feature = "RtcIceCandidateInit")] + #[wasm_bindgen(catch, constructor, js_class = "RTCIceCandidate")] + #[doc = "The `new RtcIceCandidate(..)` constructor, creating a new instance of `RtcIceCandidate`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/RTCIceCandidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcIceCandidateInit`*"] + pub fn new(candidate_init_dict: &RtcIceCandidateInit) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "RTCIceCandidate" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`*"] + pub fn to_json(this: &RtcIceCandidate) -> ::js_sys::Object; +} diff --git a/crates/web-sys/src/features/gen_RtcIceCandidateInit.rs b/crates/web-sys/src/features/gen_RtcIceCandidateInit.rs new file mode 100644 index 00000000..bfc9f088 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcIceCandidateInit.rs @@ -0,0 +1,71 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCIceCandidateInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcIceCandidateInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] + pub type RtcIceCandidateInit; +} +impl RtcIceCandidateInit { + #[doc = "Construct a new `RtcIceCandidateInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] + pub fn new(candidate: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.candidate(candidate); + ret + } + #[doc = "Change the `candidate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] + pub fn candidate(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("candidate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `sdpMLineIndex` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] + pub fn sdp_m_line_index(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sdpMLineIndex"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `sdpMid` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`*"] + pub fn sdp_mid(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("sdpMid"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcIceCandidatePairStats.rs b/crates/web-sys/src/features/gen_RtcIceCandidatePairStats.rs new file mode 100644 index 00000000..b472fc57 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcIceCandidatePairStats.rs @@ -0,0 +1,301 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCIceCandidatePairStats ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcIceCandidatePairStats` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] + pub type RtcIceCandidatePairStats; +} +impl RtcIceCandidatePairStats { + #[doc = "Construct a new `RtcIceCandidatePairStats`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] + pub fn id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] + pub fn timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcStatsType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`, `RtcStatsType`*"] + pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `bytesReceived` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] + pub fn bytes_received(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bytesReceived"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `bytesSent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] + pub fn bytes_sent(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bytesSent"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `componentId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] + pub fn component_id(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("componentId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `lastPacketReceivedTimestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] + pub fn last_packet_received_timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("lastPacketReceivedTimestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `lastPacketSentTimestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] + pub fn last_packet_sent_timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("lastPacketSentTimestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `localCandidateId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] + pub fn local_candidate_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("localCandidateId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `nominated` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] + pub fn nominated(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("nominated"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `priority` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] + pub fn priority(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("priority"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `readable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] + pub fn readable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("readable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `remoteCandidateId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] + pub fn remote_candidate_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("remoteCandidateId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `selected` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] + pub fn selected(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("selected"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcStatsIceCandidatePairState")] + #[doc = "Change the `state` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`, `RtcStatsIceCandidatePairState`*"] + pub fn state(&mut self, val: RtcStatsIceCandidatePairState) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("state"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `transportId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] + pub fn transport_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("transportId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `writable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidatePairStats`*"] + pub fn writable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("writable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcIceCandidateStats.rs b/crates/web-sys/src/features/gen_RtcIceCandidateStats.rs new file mode 100644 index 00000000..a2313602 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcIceCandidateStats.rs @@ -0,0 +1,169 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCIceCandidateStats ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcIceCandidateStats` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] + pub type RtcIceCandidateStats; +} +impl RtcIceCandidateStats { + #[doc = "Construct a new `RtcIceCandidateStats`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] + pub fn id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] + pub fn timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcStatsType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`, `RtcStatsType`*"] + pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `candidateId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] + pub fn candidate_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("candidateId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcStatsIceCandidateType")] + #[doc = "Change the `candidateType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`, `RtcStatsIceCandidateType`*"] + pub fn candidate_type(&mut self, val: RtcStatsIceCandidateType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("candidateType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `componentId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] + pub fn component_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("componentId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ipAddress` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] + pub fn ip_address(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("ipAddress"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `portNumber` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] + pub fn port_number(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("portNumber"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `transport` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateStats`*"] + pub fn transport(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("transport"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcIceComponentStats.rs b/crates/web-sys/src/features/gen_RtcIceComponentStats.rs new file mode 100644 index 00000000..61a7b8d0 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcIceComponentStats.rs @@ -0,0 +1,151 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCIceComponentStats ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcIceComponentStats` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] + pub type RtcIceComponentStats; +} +impl RtcIceComponentStats { + #[doc = "Construct a new `RtcIceComponentStats`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] + pub fn id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] + pub fn timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcStatsType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`, `RtcStatsType`*"] + pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `activeConnection` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] + pub fn active_connection(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("activeConnection"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `bytesReceived` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] + pub fn bytes_received(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bytesReceived"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `bytesSent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] + pub fn bytes_sent(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bytesSent"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `component` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] + pub fn component(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("component"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `transportId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceComponentStats`*"] + pub fn transport_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("transportId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcIceConnectionState.rs b/crates/web-sys/src/features/gen_RtcIceConnectionState.rs new file mode 100644 index 00000000..fae44d72 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcIceConnectionState.rs @@ -0,0 +1,16 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RtcIceConnectionState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RtcIceConnectionState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RtcIceConnectionState { + New = "new", + Checking = "checking", + Connected = "connected", + Completed = "completed", + Failed = "failed", + Disconnected = "disconnected", + Closed = "closed", +} diff --git a/crates/web-sys/src/features/gen_RtcIceCredentialType.rs b/crates/web-sys/src/features/gen_RtcIceCredentialType.rs new file mode 100644 index 00000000..a04b720a --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcIceCredentialType.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RtcIceCredentialType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RtcIceCredentialType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RtcIceCredentialType { + Password = "password", + Token = "token", +} diff --git a/crates/web-sys/src/features/gen_RtcIceGatheringState.rs b/crates/web-sys/src/features/gen_RtcIceGatheringState.rs new file mode 100644 index 00000000..ce6db0ab --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcIceGatheringState.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RtcIceGatheringState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RtcIceGatheringState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RtcIceGatheringState { + New = "new", + Gathering = "gathering", + Complete = "complete", +} diff --git a/crates/web-sys/src/features/gen_RtcIceServer.rs b/crates/web-sys/src/features/gen_RtcIceServer.rs new file mode 100644 index 00000000..a4acdff0 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcIceServer.rs @@ -0,0 +1,100 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCIceServer ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcIceServer` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] + pub type RtcIceServer; +} +impl RtcIceServer { + #[doc = "Construct a new `RtcIceServer`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `credential` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] + pub fn credential(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("credential"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcIceCredentialType")] + #[doc = "Change the `credentialType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCredentialType`, `RtcIceServer`*"] + pub fn credential_type(&mut self, val: RtcIceCredentialType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("credentialType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `url` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] + pub fn url(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("url"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `urls` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] + pub fn urls(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("urls"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `username` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceServer`*"] + pub fn username(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("username"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcIceTransportPolicy.rs b/crates/web-sys/src/features/gen_RtcIceTransportPolicy.rs new file mode 100644 index 00000000..c3f2124c --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcIceTransportPolicy.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RtcIceTransportPolicy` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RtcIceTransportPolicy`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RtcIceTransportPolicy { + Relay = "relay", + All = "all", +} diff --git a/crates/web-sys/src/features/gen_RtcIdentityAssertion.rs b/crates/web-sys/src/features/gen_RtcIdentityAssertion.rs new file mode 100644 index 00000000..4771a16c --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcIdentityAssertion.rs @@ -0,0 +1,48 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCIdentityAssertion ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcIdentityAssertion` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertion`*"] + pub type RtcIdentityAssertion; +} +impl RtcIdentityAssertion { + #[doc = "Construct a new `RtcIdentityAssertion`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertion`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `idp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertion`*"] + pub fn idp(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("idp"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertion`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcIdentityAssertionResult.rs b/crates/web-sys/src/features/gen_RtcIdentityAssertionResult.rs new file mode 100644 index 00000000..af85e817 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcIdentityAssertionResult.rs @@ -0,0 +1,56 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCIdentityAssertionResult ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcIdentityAssertionResult` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertionResult`*"] + pub type RtcIdentityAssertionResult; +} +impl RtcIdentityAssertionResult { + #[cfg(feature = "RtcIdentityProviderDetails")] + #[doc = "Construct a new `RtcIdentityAssertionResult`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertionResult`, `RtcIdentityProviderDetails`*"] + pub fn new(assertion: &str, idp: &RtcIdentityProviderDetails) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.assertion(assertion); + ret.idp(idp); + ret + } + #[doc = "Change the `assertion` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertionResult`*"] + pub fn assertion(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("assertion"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcIdentityProviderDetails")] + #[doc = "Change the `idp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityAssertionResult`, `RtcIdentityProviderDetails`*"] + pub fn idp(&mut self, val: &RtcIdentityProviderDetails) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("idp"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcIdentityProvider.rs b/crates/web-sys/src/features/gen_RtcIdentityProvider.rs new file mode 100644 index 00000000..199fd34c --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcIdentityProvider.rs @@ -0,0 +1,61 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCIdentityProvider ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcIdentityProvider` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProvider`*"] + pub type RtcIdentityProvider; +} +impl RtcIdentityProvider { + #[doc = "Construct a new `RtcIdentityProvider`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProvider`*"] + pub fn new( + generate_assertion: &::js_sys::Function, + validate_assertion: &::js_sys::Function, + ) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.generate_assertion(generate_assertion); + ret.validate_assertion(validate_assertion); + ret + } + #[doc = "Change the `generateAssertion` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProvider`*"] + pub fn generate_assertion(&mut self, val: &::js_sys::Function) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("generateAssertion"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `validateAssertion` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProvider`*"] + pub fn validate_assertion(&mut self, val: &::js_sys::Function) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("validateAssertion"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcIdentityProviderDetails.rs b/crates/web-sys/src/features/gen_RtcIdentityProviderDetails.rs new file mode 100644 index 00000000..98d88f4c --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcIdentityProviderDetails.rs @@ -0,0 +1,54 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCIdentityProviderDetails ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcIdentityProviderDetails` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] + pub type RtcIdentityProviderDetails; +} +impl RtcIdentityProviderDetails { + #[doc = "Construct a new `RtcIdentityProviderDetails`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] + pub fn new(domain: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.domain(domain); + ret + } + #[doc = "Change the `domain` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] + pub fn domain(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("domain"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `protocol` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderDetails`*"] + pub fn protocol(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("protocol"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcIdentityProviderOptions.rs b/crates/web-sys/src/features/gen_RtcIdentityProviderOptions.rs new file mode 100644 index 00000000..15533979 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcIdentityProviderOptions.rs @@ -0,0 +1,73 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCIdentityProviderOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcIdentityProviderOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] + pub type RtcIdentityProviderOptions; +} +impl RtcIdentityProviderOptions { + #[doc = "Construct a new `RtcIdentityProviderOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `peerIdentity` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] + pub fn peer_identity(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("peerIdentity"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `protocol` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] + pub fn protocol(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("protocol"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `usernameHint` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`*"] + pub fn username_hint(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("usernameHint"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcIdentityProviderRegistrar.rs b/crates/web-sys/src/features/gen_RtcIdentityProviderRegistrar.rs new file mode 100644 index 00000000..619e8292 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcIdentityProviderRegistrar.rs @@ -0,0 +1,22 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = RTCIdentityProviderRegistrar , typescript_type = "RTCIdentityProviderRegistrar" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcIdentityProviderRegistrar` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIdentityProviderRegistrar)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderRegistrar`*"] + pub type RtcIdentityProviderRegistrar; + #[cfg(feature = "RtcIdentityProvider")] + # [ wasm_bindgen ( method , structural , js_class = "RTCIdentityProviderRegistrar" , js_name = register ) ] + #[doc = "The `register()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCIdentityProviderRegistrar/register)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProvider`, `RtcIdentityProviderRegistrar`*"] + pub fn register(this: &RtcIdentityProviderRegistrar, idp: &RtcIdentityProvider); +} diff --git a/crates/web-sys/src/features/gen_RtcIdentityValidationResult.rs b/crates/web-sys/src/features/gen_RtcIdentityValidationResult.rs new file mode 100644 index 00000000..dd7b5914 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcIdentityValidationResult.rs @@ -0,0 +1,58 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCIdentityValidationResult ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcIdentityValidationResult` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityValidationResult`*"] + pub type RtcIdentityValidationResult; +} +impl RtcIdentityValidationResult { + #[doc = "Construct a new `RtcIdentityValidationResult`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityValidationResult`*"] + pub fn new(contents: &str, identity: &str) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.contents(contents); + ret.identity(identity); + ret + } + #[doc = "Change the `contents` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityValidationResult`*"] + pub fn contents(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("contents"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `identity` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityValidationResult`*"] + pub fn identity(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("identity"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcInboundRtpStreamStats.rs b/crates/web-sys/src/features/gen_RtcInboundRtpStreamStats.rs new file mode 100644 index 00000000..813a128b --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcInboundRtpStreamStats.rs @@ -0,0 +1,416 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCInboundRTPStreamStats ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcInboundRtpStreamStats` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub type RtcInboundRtpStreamStats; +} +impl RtcInboundRtpStreamStats { + #[doc = "Construct a new `RtcInboundRtpStreamStats`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcStatsType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`, `RtcStatsType`*"] + pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `bitrateMean` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn bitrate_mean(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bitrateMean"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `bitrateStdDev` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn bitrate_std_dev(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bitrateStdDev"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `codecId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn codec_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("codecId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `firCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn fir_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("firCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `framerateMean` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn framerate_mean(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("framerateMean"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `framerateStdDev` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn framerate_std_dev(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("framerateStdDev"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `isRemote` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn is_remote(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("isRemote"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mediaTrackId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn media_track_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mediaTrackId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mediaType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn media_type(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mediaType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `nackCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn nack_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("nackCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pliCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn pli_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("pliCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `remoteId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn remote_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("remoteId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ssrc` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn ssrc(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ssrc"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `transportId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn transport_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("transportId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `bytesReceived` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn bytes_received(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bytesReceived"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `discardedPackets` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn discarded_packets(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("discardedPackets"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `framesDecoded` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn frames_decoded(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("framesDecoded"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `jitter` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn jitter(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("jitter"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `packetsLost` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn packets_lost(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("packetsLost"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `packetsReceived` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn packets_received(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("packetsReceived"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `roundTripTime` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcInboundRtpStreamStats`*"] + pub fn round_trip_time(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("roundTripTime"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcLifecycleEvent.rs b/crates/web-sys/src/features/gen_RtcLifecycleEvent.rs new file mode 100644 index 00000000..c8094e51 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcLifecycleEvent.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RtcLifecycleEvent` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RtcLifecycleEvent`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RtcLifecycleEvent { + Initialized = "initialized", + Icegatheringstatechange = "icegatheringstatechange", + Iceconnectionstatechange = "iceconnectionstatechange", +} diff --git a/crates/web-sys/src/features/gen_RtcMediaStreamStats.rs b/crates/web-sys/src/features/gen_RtcMediaStreamStats.rs new file mode 100644 index 00000000..61582d66 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcMediaStreamStats.rs @@ -0,0 +1,100 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCMediaStreamStats ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcMediaStreamStats` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] + pub type RtcMediaStreamStats; +} +impl RtcMediaStreamStats { + #[doc = "Construct a new `RtcMediaStreamStats`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] + pub fn id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] + pub fn timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcStatsType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`, `RtcStatsType`*"] + pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `streamIdentifier` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] + pub fn stream_identifier(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("streamIdentifier"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `trackIds` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamStats`*"] + pub fn track_ids(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("trackIds"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcMediaStreamTrackStats.rs b/crates/web-sys/src/features/gen_RtcMediaStreamTrackStats.rs new file mode 100644 index 00000000..14834ed6 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcMediaStreamTrackStats.rs @@ -0,0 +1,304 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCMediaStreamTrackStats ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcMediaStreamTrackStats` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub type RtcMediaStreamTrackStats; +} +impl RtcMediaStreamTrackStats { + #[doc = "Construct a new `RtcMediaStreamTrackStats`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub fn id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub fn timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcStatsType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`, `RtcStatsType`*"] + pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `audioLevel` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub fn audio_level(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("audioLevel"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `echoReturnLoss` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub fn echo_return_loss(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("echoReturnLoss"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `echoReturnLossEnhancement` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub fn echo_return_loss_enhancement(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("echoReturnLossEnhancement"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `frameHeight` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub fn frame_height(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("frameHeight"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `frameWidth` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub fn frame_width(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("frameWidth"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `framesCorrupted` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub fn frames_corrupted(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("framesCorrupted"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `framesDecoded` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub fn frames_decoded(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("framesDecoded"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `framesDropped` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub fn frames_dropped(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("framesDropped"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `framesPerSecond` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub fn frames_per_second(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("framesPerSecond"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `framesReceived` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub fn frames_received(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("framesReceived"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `framesSent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub fn frames_sent(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("framesSent"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `remoteSource` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub fn remote_source(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("remoteSource"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ssrcIds` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub fn ssrc_ids(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("ssrcIds"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `trackIdentifier` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcMediaStreamTrackStats`*"] + pub fn track_identifier(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("trackIdentifier"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcOfferAnswerOptions.rs b/crates/web-sys/src/features/gen_RtcOfferAnswerOptions.rs new file mode 100644 index 00000000..8b692880 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcOfferAnswerOptions.rs @@ -0,0 +1,22 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCOfferAnswerOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcOfferAnswerOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOfferAnswerOptions`*"] + pub type RtcOfferAnswerOptions; +} +impl RtcOfferAnswerOptions { + #[doc = "Construct a new `RtcOfferAnswerOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOfferAnswerOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } +} diff --git a/crates/web-sys/src/features/gen_RtcOfferOptions.rs b/crates/web-sys/src/features/gen_RtcOfferOptions.rs new file mode 100644 index 00000000..63dc02e2 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcOfferOptions.rs @@ -0,0 +1,73 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCOfferOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcOfferOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`*"] + pub type RtcOfferOptions; +} +impl RtcOfferOptions { + #[doc = "Construct a new `RtcOfferOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `iceRestart` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`*"] + pub fn ice_restart(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iceRestart"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `offerToReceiveAudio` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`*"] + pub fn offer_to_receive_audio(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("offerToReceiveAudio"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `offerToReceiveVideo` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`*"] + pub fn offer_to_receive_video(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("offerToReceiveVideo"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcOutboundRtpStreamStats.rs b/crates/web-sys/src/features/gen_RtcOutboundRtpStreamStats.rs new file mode 100644 index 00000000..b3b06942 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcOutboundRtpStreamStats.rs @@ -0,0 +1,385 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCOutboundRTPStreamStats ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcOutboundRtpStreamStats` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub type RtcOutboundRtpStreamStats; +} +impl RtcOutboundRtpStreamStats { + #[doc = "Construct a new `RtcOutboundRtpStreamStats`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcStatsType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`, `RtcStatsType`*"] + pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `bitrateMean` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn bitrate_mean(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bitrateMean"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `bitrateStdDev` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn bitrate_std_dev(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bitrateStdDev"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `codecId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn codec_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("codecId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `firCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn fir_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("firCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `framerateMean` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn framerate_mean(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("framerateMean"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `framerateStdDev` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn framerate_std_dev(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("framerateStdDev"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `isRemote` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn is_remote(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("isRemote"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mediaTrackId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn media_track_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mediaTrackId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mediaType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn media_type(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mediaType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `nackCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn nack_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("nackCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pliCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn pli_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("pliCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `remoteId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn remote_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("remoteId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ssrc` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn ssrc(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ssrc"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `transportId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn transport_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("transportId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `bytesSent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn bytes_sent(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bytesSent"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `droppedFrames` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn dropped_frames(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("droppedFrames"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `framesEncoded` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn frames_encoded(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("framesEncoded"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `packetsSent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn packets_sent(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("packetsSent"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `targetBitrate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOutboundRtpStreamStats`*"] + pub fn target_bitrate(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("targetBitrate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcPeerConnection.rs b/crates/web-sys/src/features/gen_RtcPeerConnection.rs new file mode 100644 index 00000000..d6fb259c --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcPeerConnection.rs @@ -0,0 +1,819 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = RTCPeerConnection , typescript_type = "RTCPeerConnection" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcPeerConnection` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub type RtcPeerConnection; + #[cfg(feature = "RtcSessionDescription")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = localDescription ) ] + #[doc = "Getter for the `localDescription` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/localDescription)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] + pub fn local_description(this: &RtcPeerConnection) -> Option; + #[cfg(feature = "RtcSessionDescription")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = currentLocalDescription ) ] + #[doc = "Getter for the `currentLocalDescription` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/currentLocalDescription)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] + pub fn current_local_description(this: &RtcPeerConnection) -> Option; + #[cfg(feature = "RtcSessionDescription")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = pendingLocalDescription ) ] + #[doc = "Getter for the `pendingLocalDescription` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/pendingLocalDescription)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] + pub fn pending_local_description(this: &RtcPeerConnection) -> Option; + #[cfg(feature = "RtcSessionDescription")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = remoteDescription ) ] + #[doc = "Getter for the `remoteDescription` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/remoteDescription)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] + pub fn remote_description(this: &RtcPeerConnection) -> Option; + #[cfg(feature = "RtcSessionDescription")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = currentRemoteDescription ) ] + #[doc = "Getter for the `currentRemoteDescription` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/currentRemoteDescription)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] + pub fn current_remote_description(this: &RtcPeerConnection) -> Option; + #[cfg(feature = "RtcSessionDescription")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = pendingRemoteDescription ) ] + #[doc = "Getter for the `pendingRemoteDescription` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/pendingRemoteDescription)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescription`*"] + pub fn pending_remote_description(this: &RtcPeerConnection) -> Option; + #[cfg(feature = "RtcSignalingState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = signalingState ) ] + #[doc = "Getter for the `signalingState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/signalingState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSignalingState`*"] + pub fn signaling_state(this: &RtcPeerConnection) -> RtcSignalingState; + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = canTrickleIceCandidates ) ] + #[doc = "Getter for the `canTrickleIceCandidates` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/canTrickleIceCandidates)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn can_trickle_ice_candidates(this: &RtcPeerConnection) -> Option; + #[cfg(feature = "RtcIceGatheringState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = iceGatheringState ) ] + #[doc = "Getter for the `iceGatheringState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/iceGatheringState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceGatheringState`, `RtcPeerConnection`*"] + pub fn ice_gathering_state(this: &RtcPeerConnection) -> RtcIceGatheringState; + #[cfg(feature = "RtcIceConnectionState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = iceConnectionState ) ] + #[doc = "Getter for the `iceConnectionState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/iceConnectionState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceConnectionState`, `RtcPeerConnection`*"] + pub fn ice_connection_state(this: &RtcPeerConnection) -> RtcIceConnectionState; + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = peerIdentity ) ] + #[doc = "Getter for the `peerIdentity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/peerIdentity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn peer_identity(this: &RtcPeerConnection) -> ::js_sys::Promise; + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = idpLoginUrl ) ] + #[doc = "Getter for the `idpLoginUrl` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/idpLoginUrl)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn idp_login_url(this: &RtcPeerConnection) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = onnegotiationneeded ) ] + #[doc = "Getter for the `onnegotiationneeded` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onnegotiationneeded)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn onnegotiationneeded(this: &RtcPeerConnection) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCPeerConnection" , js_name = onnegotiationneeded ) ] + #[doc = "Setter for the `onnegotiationneeded` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onnegotiationneeded)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn set_onnegotiationneeded(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = onicecandidate ) ] + #[doc = "Getter for the `onicecandidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onicecandidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn onicecandidate(this: &RtcPeerConnection) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCPeerConnection" , js_name = onicecandidate ) ] + #[doc = "Setter for the `onicecandidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onicecandidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn set_onicecandidate(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = onsignalingstatechange ) ] + #[doc = "Getter for the `onsignalingstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onsignalingstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn onsignalingstatechange(this: &RtcPeerConnection) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCPeerConnection" , js_name = onsignalingstatechange ) ] + #[doc = "Setter for the `onsignalingstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onsignalingstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn set_onsignalingstatechange(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = onaddstream ) ] + #[doc = "Getter for the `onaddstream` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onaddstream)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn onaddstream(this: &RtcPeerConnection) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCPeerConnection" , js_name = onaddstream ) ] + #[doc = "Setter for the `onaddstream` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onaddstream)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn set_onaddstream(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = onaddtrack ) ] + #[doc = "Getter for the `onaddtrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onaddtrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn onaddtrack(this: &RtcPeerConnection) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCPeerConnection" , js_name = onaddtrack ) ] + #[doc = "Setter for the `onaddtrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onaddtrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn set_onaddtrack(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = ontrack ) ] + #[doc = "Getter for the `ontrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/ontrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn ontrack(this: &RtcPeerConnection) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCPeerConnection" , js_name = ontrack ) ] + #[doc = "Setter for the `ontrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/ontrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn set_ontrack(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = onremovestream ) ] + #[doc = "Getter for the `onremovestream` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onremovestream)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn onremovestream(this: &RtcPeerConnection) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCPeerConnection" , js_name = onremovestream ) ] + #[doc = "Setter for the `onremovestream` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onremovestream)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn set_onremovestream(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = oniceconnectionstatechange ) ] + #[doc = "Getter for the `oniceconnectionstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/oniceconnectionstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn oniceconnectionstatechange(this: &RtcPeerConnection) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCPeerConnection" , js_name = oniceconnectionstatechange ) ] + #[doc = "Setter for the `oniceconnectionstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/oniceconnectionstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn set_oniceconnectionstatechange( + this: &RtcPeerConnection, + value: Option<&::js_sys::Function>, + ); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = onicegatheringstatechange ) ] + #[doc = "Getter for the `onicegatheringstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onicegatheringstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn onicegatheringstatechange(this: &RtcPeerConnection) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCPeerConnection" , js_name = onicegatheringstatechange ) ] + #[doc = "Setter for the `onicegatheringstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/onicegatheringstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn set_onicegatheringstatechange( + this: &RtcPeerConnection, + value: Option<&::js_sys::Function>, + ); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnection" , js_name = ondatachannel ) ] + #[doc = "Getter for the `ondatachannel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/ondatachannel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn ondatachannel(this: &RtcPeerConnection) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCPeerConnection" , js_name = ondatachannel ) ] + #[doc = "Setter for the `ondatachannel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/ondatachannel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn set_ondatachannel(this: &RtcPeerConnection, value: Option<&::js_sys::Function>); + #[wasm_bindgen(catch, constructor, js_class = "RTCPeerConnection")] + #[doc = "The `new RtcPeerConnection(..)` constructor, creating a new instance of `RtcPeerConnection`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/RTCPeerConnection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn new() -> Result; + #[cfg(feature = "RtcConfiguration")] + #[wasm_bindgen(catch, constructor, js_class = "RTCPeerConnection")] + #[doc = "The `new RtcPeerConnection(..)` constructor, creating a new instance of `RtcPeerConnection`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/RTCPeerConnection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`, `RtcPeerConnection`*"] + pub fn new_with_configuration( + configuration: &RtcConfiguration, + ) -> Result; + #[cfg(feature = "RtcConfiguration")] + #[wasm_bindgen(catch, constructor, js_class = "RTCPeerConnection")] + #[doc = "The `new RtcPeerConnection(..)` constructor, creating a new instance of `RtcPeerConnection`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/RTCPeerConnection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`, `RtcPeerConnection`*"] + pub fn new_with_configuration_and_constraints( + configuration: &RtcConfiguration, + constraints: Option<&::js_sys::Object>, + ) -> Result; + #[cfg(feature = "RtcIceCandidateInit")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = addIceCandidate ) ] + #[doc = "The `addIceCandidate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addIceCandidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidateInit`, `RtcPeerConnection`*"] + pub fn add_ice_candidate_with_opt_rtc_ice_candidate_init( + this: &RtcPeerConnection, + candidate: Option<&RtcIceCandidateInit>, + ) -> ::js_sys::Promise; + #[cfg(feature = "RtcIceCandidate")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = addIceCandidate ) ] + #[doc = "The `addIceCandidate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addIceCandidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcPeerConnection`*"] + pub fn add_ice_candidate_with_opt_rtc_ice_candidate( + this: &RtcPeerConnection, + candidate: Option<&RtcIceCandidate>, + ) -> ::js_sys::Promise; + #[cfg(feature = "RtcIceCandidate")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = addIceCandidate ) ] + #[doc = "The `addIceCandidate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addIceCandidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcPeerConnection`*"] + pub fn add_ice_candidate_with_rtc_ice_candidate_and_success_callback_and_failure_callback( + this: &RtcPeerConnection, + candidate: &RtcIceCandidate, + success_callback: &::js_sys::Function, + failure_callback: &::js_sys::Function, + ) -> ::js_sys::Promise; + #[cfg(feature = "MediaStream")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = addStream ) ] + #[doc = "The `addStream()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addStream)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `RtcPeerConnection`*"] + pub fn add_stream(this: &RtcPeerConnection, stream: &MediaStream); + #[cfg(all( + feature = "MediaStream", + feature = "MediaStreamTrack", + feature = "RtcRtpSender", + ))] + # [ wasm_bindgen ( method , structural , variadic , js_class = "RTCPeerConnection" , js_name = addTrack ) ] + #[doc = "The `addTrack()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] + pub fn add_track( + this: &RtcPeerConnection, + track: &MediaStreamTrack, + stream: &MediaStream, + more_streams: &::js_sys::Array, + ) -> RtcRtpSender; + #[cfg(all( + feature = "MediaStream", + feature = "MediaStreamTrack", + feature = "RtcRtpSender", + ))] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = addTrack ) ] + #[doc = "The `addTrack()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] + pub fn add_track_0( + this: &RtcPeerConnection, + track: &MediaStreamTrack, + stream: &MediaStream, + ) -> RtcRtpSender; + #[cfg(all( + feature = "MediaStream", + feature = "MediaStreamTrack", + feature = "RtcRtpSender", + ))] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = addTrack ) ] + #[doc = "The `addTrack()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] + pub fn add_track_1( + this: &RtcPeerConnection, + track: &MediaStreamTrack, + stream: &MediaStream, + more_streams_1: &MediaStream, + ) -> RtcRtpSender; + #[cfg(all( + feature = "MediaStream", + feature = "MediaStreamTrack", + feature = "RtcRtpSender", + ))] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = addTrack ) ] + #[doc = "The `addTrack()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] + pub fn add_track_2( + this: &RtcPeerConnection, + track: &MediaStreamTrack, + stream: &MediaStream, + more_streams_1: &MediaStream, + more_streams_2: &MediaStream, + ) -> RtcRtpSender; + #[cfg(all( + feature = "MediaStream", + feature = "MediaStreamTrack", + feature = "RtcRtpSender", + ))] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = addTrack ) ] + #[doc = "The `addTrack()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] + pub fn add_track_3( + this: &RtcPeerConnection, + track: &MediaStreamTrack, + stream: &MediaStream, + more_streams_1: &MediaStream, + more_streams_2: &MediaStream, + more_streams_3: &MediaStream, + ) -> RtcRtpSender; + #[cfg(all( + feature = "MediaStream", + feature = "MediaStreamTrack", + feature = "RtcRtpSender", + ))] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = addTrack ) ] + #[doc = "The `addTrack()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] + pub fn add_track_4( + this: &RtcPeerConnection, + track: &MediaStreamTrack, + stream: &MediaStream, + more_streams_1: &MediaStream, + more_streams_2: &MediaStream, + more_streams_3: &MediaStream, + more_streams_4: &MediaStream, + ) -> RtcRtpSender; + #[cfg(all( + feature = "MediaStream", + feature = "MediaStreamTrack", + feature = "RtcRtpSender", + ))] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = addTrack ) ] + #[doc = "The `addTrack()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] + pub fn add_track_5( + this: &RtcPeerConnection, + track: &MediaStreamTrack, + stream: &MediaStream, + more_streams_1: &MediaStream, + more_streams_2: &MediaStream, + more_streams_3: &MediaStream, + more_streams_4: &MediaStream, + more_streams_5: &MediaStream, + ) -> RtcRtpSender; + #[cfg(all( + feature = "MediaStream", + feature = "MediaStreamTrack", + feature = "RtcRtpSender", + ))] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = addTrack ) ] + #[doc = "The `addTrack()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] + pub fn add_track_6( + this: &RtcPeerConnection, + track: &MediaStreamTrack, + stream: &MediaStream, + more_streams_1: &MediaStream, + more_streams_2: &MediaStream, + more_streams_3: &MediaStream, + more_streams_4: &MediaStream, + more_streams_5: &MediaStream, + more_streams_6: &MediaStream, + ) -> RtcRtpSender; + #[cfg(all( + feature = "MediaStream", + feature = "MediaStreamTrack", + feature = "RtcRtpSender", + ))] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = addTrack ) ] + #[doc = "The `addTrack()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpSender`*"] + pub fn add_track_7( + this: &RtcPeerConnection, + track: &MediaStreamTrack, + stream: &MediaStream, + more_streams_1: &MediaStream, + more_streams_2: &MediaStream, + more_streams_3: &MediaStream, + more_streams_4: &MediaStream, + more_streams_5: &MediaStream, + more_streams_6: &MediaStream, + more_streams_7: &MediaStream, + ) -> RtcRtpSender; + #[cfg(all(feature = "MediaStreamTrack", feature = "RtcRtpTransceiver",))] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = addTransceiver ) ] + #[doc = "The `addTransceiver()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTransceiver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpTransceiver`*"] + pub fn add_transceiver_with_media_stream_track( + this: &RtcPeerConnection, + track_or_kind: &MediaStreamTrack, + ) -> RtcRtpTransceiver; + #[cfg(feature = "RtcRtpTransceiver")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = addTransceiver ) ] + #[doc = "The `addTransceiver()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTransceiver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcRtpTransceiver`*"] + pub fn add_transceiver_with_str( + this: &RtcPeerConnection, + track_or_kind: &str, + ) -> RtcRtpTransceiver; + #[cfg(all( + feature = "MediaStreamTrack", + feature = "RtcRtpTransceiver", + feature = "RtcRtpTransceiverInit", + ))] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = addTransceiver ) ] + #[doc = "The `addTransceiver()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTransceiver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcPeerConnection`, `RtcRtpTransceiver`, `RtcRtpTransceiverInit`*"] + pub fn add_transceiver_with_media_stream_track_and_init( + this: &RtcPeerConnection, + track_or_kind: &MediaStreamTrack, + init: &RtcRtpTransceiverInit, + ) -> RtcRtpTransceiver; + #[cfg(all(feature = "RtcRtpTransceiver", feature = "RtcRtpTransceiverInit",))] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = addTransceiver ) ] + #[doc = "The `addTransceiver()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addTransceiver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcRtpTransceiver`, `RtcRtpTransceiverInit`*"] + pub fn add_transceiver_with_str_and_init( + this: &RtcPeerConnection, + track_or_kind: &str, + init: &RtcRtpTransceiverInit, + ) -> RtcRtpTransceiver; + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn close(this: &RtcPeerConnection); + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = createAnswer ) ] + #[doc = "The `createAnswer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createAnswer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn create_answer(this: &RtcPeerConnection) -> ::js_sys::Promise; + #[cfg(feature = "RtcAnswerOptions")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = createAnswer ) ] + #[doc = "The `createAnswer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createAnswer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcAnswerOptions`, `RtcPeerConnection`*"] + pub fn create_answer_with_rtc_answer_options( + this: &RtcPeerConnection, + options: &RtcAnswerOptions, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = createAnswer ) ] + #[doc = "The `createAnswer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createAnswer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn create_answer_with_success_callback_and_failure_callback( + this: &RtcPeerConnection, + success_callback: &::js_sys::Function, + failure_callback: &::js_sys::Function, + ) -> ::js_sys::Promise; + #[cfg(feature = "RtcDataChannel")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = createDataChannel ) ] + #[doc = "The `createDataChannel()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createDataChannel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcPeerConnection`*"] + pub fn create_data_channel(this: &RtcPeerConnection, label: &str) -> RtcDataChannel; + #[cfg(all(feature = "RtcDataChannel", feature = "RtcDataChannelInit",))] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = createDataChannel ) ] + #[doc = "The `createDataChannel()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createDataChannel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDataChannel`, `RtcDataChannelInit`, `RtcPeerConnection`*"] + pub fn create_data_channel_with_data_channel_dict( + this: &RtcPeerConnection, + label: &str, + data_channel_dict: &RtcDataChannelInit, + ) -> RtcDataChannel; + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = createOffer ) ] + #[doc = "The `createOffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn create_offer(this: &RtcPeerConnection) -> ::js_sys::Promise; + #[cfg(feature = "RtcOfferOptions")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = createOffer ) ] + #[doc = "The `createOffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`, `RtcPeerConnection`*"] + pub fn create_offer_with_rtc_offer_options( + this: &RtcPeerConnection, + options: &RtcOfferOptions, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = createOffer ) ] + #[doc = "The `createOffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn create_offer_with_callback_and_failure_callback( + this: &RtcPeerConnection, + success_callback: &::js_sys::Function, + failure_callback: &::js_sys::Function, + ) -> ::js_sys::Promise; + #[cfg(feature = "RtcOfferOptions")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = createOffer ) ] + #[doc = "The `createOffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcOfferOptions`, `RtcPeerConnection`*"] + pub fn create_offer_with_callback_and_failure_callback_and_options( + this: &RtcPeerConnection, + success_callback: &::js_sys::Function, + failure_callback: &::js_sys::Function, + options: &RtcOfferOptions, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( catch , static_method_of = RtcPeerConnection , js_class = "RTCPeerConnection" , js_name = generateCertificate ) ] + #[doc = "The `generateCertificate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/generateCertificate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn generate_certificate_with_object( + keygen_algorithm: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , static_method_of = RtcPeerConnection , js_class = "RTCPeerConnection" , js_name = generateCertificate ) ] + #[doc = "The `generateCertificate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/generateCertificate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn generate_certificate_with_str( + keygen_algorithm: &str, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "RtcConfiguration")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = getConfiguration ) ] + #[doc = "The `getConfiguration()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getConfiguration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcConfiguration`, `RtcPeerConnection`*"] + pub fn get_configuration(this: &RtcPeerConnection) -> RtcConfiguration; + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = getIdentityAssertion ) ] + #[doc = "The `getIdentityAssertion()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getIdentityAssertion)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn get_identity_assertion(this: &RtcPeerConnection) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = getLocalStreams ) ] + #[doc = "The `getLocalStreams()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getLocalStreams)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn get_local_streams(this: &RtcPeerConnection) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = getReceivers ) ] + #[doc = "The `getReceivers()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getReceivers)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn get_receivers(this: &RtcPeerConnection) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = getRemoteStreams ) ] + #[doc = "The `getRemoteStreams()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getRemoteStreams)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn get_remote_streams(this: &RtcPeerConnection) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = getSenders ) ] + #[doc = "The `getSenders()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getSenders)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn get_senders(this: &RtcPeerConnection) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = getStats ) ] + #[doc = "The `getStats()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getStats)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn get_stats(this: &RtcPeerConnection) -> ::js_sys::Promise; + #[cfg(feature = "MediaStreamTrack")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = getStats ) ] + #[doc = "The `getStats()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getStats)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcPeerConnection`*"] + pub fn get_stats_with_selector( + this: &RtcPeerConnection, + selector: Option<&MediaStreamTrack>, + ) -> ::js_sys::Promise; + #[cfg(feature = "MediaStreamTrack")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = getStats ) ] + #[doc = "The `getStats()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getStats)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcPeerConnection`*"] + pub fn get_stats_with_selector_and_success_callback_and_failure_callback( + this: &RtcPeerConnection, + selector: Option<&MediaStreamTrack>, + success_callback: &::js_sys::Function, + failure_callback: &::js_sys::Function, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = getTransceivers ) ] + #[doc = "The `getTransceivers()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getTransceivers)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn get_transceivers(this: &RtcPeerConnection) -> ::js_sys::Array; + #[cfg(feature = "RtcRtpSender")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = removeTrack ) ] + #[doc = "The `removeTrack()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/removeTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcRtpSender`*"] + pub fn remove_track(this: &RtcPeerConnection, sender: &RtcRtpSender); + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = setIdentityProvider ) ] + #[doc = "The `setIdentityProvider()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setIdentityProvider)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`*"] + pub fn set_identity_provider(this: &RtcPeerConnection, provider: &str); + #[cfg(feature = "RtcIdentityProviderOptions")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = setIdentityProvider ) ] + #[doc = "The `setIdentityProvider()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setIdentityProvider)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIdentityProviderOptions`, `RtcPeerConnection`*"] + pub fn set_identity_provider_with_options( + this: &RtcPeerConnection, + provider: &str, + options: &RtcIdentityProviderOptions, + ); + #[cfg(feature = "RtcSessionDescriptionInit")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = setLocalDescription ) ] + #[doc = "The `setLocalDescription()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setLocalDescription)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescriptionInit`*"] + pub fn set_local_description( + this: &RtcPeerConnection, + description: &RtcSessionDescriptionInit, + ) -> ::js_sys::Promise; + #[cfg(feature = "RtcSessionDescriptionInit")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = setLocalDescription ) ] + #[doc = "The `setLocalDescription()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setLocalDescription)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescriptionInit`*"] + pub fn set_local_description_with_success_callback_and_failure_callback( + this: &RtcPeerConnection, + description: &RtcSessionDescriptionInit, + success_callback: &::js_sys::Function, + failure_callback: &::js_sys::Function, + ) -> ::js_sys::Promise; + #[cfg(feature = "RtcSessionDescriptionInit")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = setRemoteDescription ) ] + #[doc = "The `setRemoteDescription()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setRemoteDescription)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescriptionInit`*"] + pub fn set_remote_description( + this: &RtcPeerConnection, + description: &RtcSessionDescriptionInit, + ) -> ::js_sys::Promise; + #[cfg(feature = "RtcSessionDescriptionInit")] + # [ wasm_bindgen ( method , structural , js_class = "RTCPeerConnection" , js_name = setRemoteDescription ) ] + #[doc = "The `setRemoteDescription()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setRemoteDescription)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnection`, `RtcSessionDescriptionInit`*"] + pub fn set_remote_description_with_success_callback_and_failure_callback( + this: &RtcPeerConnection, + description: &RtcSessionDescriptionInit, + success_callback: &::js_sys::Function, + failure_callback: &::js_sys::Function, + ) -> ::js_sys::Promise; +} diff --git a/crates/web-sys/src/features/gen_RtcPeerConnectionIceEvent.rs b/crates/web-sys/src/features/gen_RtcPeerConnectionIceEvent.rs new file mode 100644 index 00000000..d688dffa --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcPeerConnectionIceEvent.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = RTCPeerConnectionIceEvent , typescript_type = "RTCPeerConnectionIceEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcPeerConnectionIceEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEvent`*"] + pub type RtcPeerConnectionIceEvent; + #[cfg(feature = "RtcIceCandidate")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCPeerConnectionIceEvent" , js_name = candidate ) ] + #[doc = "Getter for the `candidate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent/candidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcPeerConnectionIceEvent`*"] + pub fn candidate(this: &RtcPeerConnectionIceEvent) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "RTCPeerConnectionIceEvent")] + #[doc = "The `new RtcPeerConnectionIceEvent(..)` constructor, creating a new instance of `RtcPeerConnectionIceEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent/RTCPeerConnectionIceEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "RtcPeerConnectionIceEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "RTCPeerConnectionIceEvent")] + #[doc = "The `new RtcPeerConnectionIceEvent(..)` constructor, creating a new instance of `RtcPeerConnectionIceEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnectionIceEvent/RTCPeerConnectionIceEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEvent`, `RtcPeerConnectionIceEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &RtcPeerConnectionIceEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_RtcPeerConnectionIceEventInit.rs b/crates/web-sys/src/features/gen_RtcPeerConnectionIceEventInit.rs new file mode 100644 index 00000000..9eb1ec29 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcPeerConnectionIceEventInit.rs @@ -0,0 +1,91 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCPeerConnectionIceEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcPeerConnectionIceEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEventInit`*"] + pub type RtcPeerConnectionIceEventInit; +} +impl RtcPeerConnectionIceEventInit { + #[doc = "Construct a new `RtcPeerConnectionIceEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPeerConnectionIceEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcIceCandidate")] + #[doc = "Change the `candidate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcIceCandidate`, `RtcPeerConnectionIceEventInit`*"] + pub fn candidate(&mut self, val: Option<&RtcIceCandidate>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("candidate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcPriorityType.rs b/crates/web-sys/src/features/gen_RtcPriorityType.rs new file mode 100644 index 00000000..ddd712e4 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcPriorityType.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RtcPriorityType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RtcPriorityType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RtcPriorityType { + VeryLow = "very-low", + Low = "low", + Medium = "medium", + High = "high", +} diff --git a/crates/web-sys/src/features/gen_RtcRtcpParameters.rs b/crates/web-sys/src/features/gen_RtcRtcpParameters.rs new file mode 100644 index 00000000..1881205e --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcRtcpParameters.rs @@ -0,0 +1,52 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCRtcpParameters ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcRtcpParameters` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtcpParameters`*"] + pub type RtcRtcpParameters; +} +impl RtcRtcpParameters { + #[doc = "Construct a new `RtcRtcpParameters`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtcpParameters`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `cname` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtcpParameters`*"] + pub fn cname(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("cname"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `reducedSize` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtcpParameters`*"] + pub fn reduced_size(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("reducedSize"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcRtpCodecParameters.rs b/crates/web-sys/src/features/gen_RtcRtpCodecParameters.rs new file mode 100644 index 00000000..36608540 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcRtpCodecParameters.rs @@ -0,0 +1,107 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCRtpCodecParameters ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcRtpCodecParameters` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] + pub type RtcRtpCodecParameters; +} +impl RtcRtpCodecParameters { + #[doc = "Construct a new `RtcRtpCodecParameters`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `channels` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] + pub fn channels(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channels"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `clockRate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] + pub fn clock_rate(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("clockRate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mimeType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] + pub fn mime_type(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mimeType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `payloadType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] + pub fn payload_type(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("payloadType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `sdpFmtpLine` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpCodecParameters`*"] + pub fn sdp_fmtp_line(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sdpFmtpLine"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcRtpContributingSource.rs b/crates/web-sys/src/features/gen_RtcRtpContributingSource.rs new file mode 100644 index 00000000..1b23b548 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcRtpContributingSource.rs @@ -0,0 +1,72 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCRtpContributingSource ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcRtpContributingSource` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpContributingSource`*"] + pub type RtcRtpContributingSource; +} +impl RtcRtpContributingSource { + #[doc = "Construct a new `RtcRtpContributingSource`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpContributingSource`*"] + pub fn new(source: u32, timestamp: f64) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.source(source); + ret.timestamp(timestamp); + ret + } + #[doc = "Change the `audioLevel` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpContributingSource`*"] + pub fn audio_level(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("audioLevel"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `source` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpContributingSource`*"] + pub fn source(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpContributingSource`*"] + pub fn timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcRtpEncodingParameters.rs b/crates/web-sys/src/features/gen_RtcRtpEncodingParameters.rs new file mode 100644 index 00000000..fc5ab539 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcRtpEncodingParameters.rs @@ -0,0 +1,160 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCRtpEncodingParameters ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcRtpEncodingParameters` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] + pub type RtcRtpEncodingParameters; +} +impl RtcRtpEncodingParameters { + #[doc = "Construct a new `RtcRtpEncodingParameters`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `active` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] + pub fn active(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("active"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcDegradationPreference")] + #[doc = "Change the `degradationPreference` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcDegradationPreference`, `RtcRtpEncodingParameters`*"] + pub fn degradation_preference(&mut self, val: RtcDegradationPreference) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("degradationPreference"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcFecParameters")] + #[doc = "Change the `fec` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcFecParameters`, `RtcRtpEncodingParameters`*"] + pub fn fec(&mut self, val: &RtcFecParameters) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("fec"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `maxBitrate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] + pub fn max_bitrate(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("maxBitrate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcPriorityType")] + #[doc = "Change the `priority` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcPriorityType`, `RtcRtpEncodingParameters`*"] + pub fn priority(&mut self, val: RtcPriorityType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("priority"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `rid` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] + pub fn rid(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("rid"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcRtxParameters")] + #[doc = "Change the `rtx` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`, `RtcRtxParameters`*"] + pub fn rtx(&mut self, val: &RtcRtxParameters) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("rtx"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `scaleResolutionDownBy` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] + pub fn scale_resolution_down_by(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("scaleResolutionDownBy"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ssrc` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpEncodingParameters`*"] + pub fn ssrc(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ssrc"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcRtpHeaderExtensionParameters.rs b/crates/web-sys/src/features/gen_RtcRtpHeaderExtensionParameters.rs new file mode 100644 index 00000000..7ac72842 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcRtpHeaderExtensionParameters.rs @@ -0,0 +1,65 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCRtpHeaderExtensionParameters ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcRtpHeaderExtensionParameters` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] + pub type RtcRtpHeaderExtensionParameters; +} +impl RtcRtpHeaderExtensionParameters { + #[doc = "Construct a new `RtcRtpHeaderExtensionParameters`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `encrypted` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] + pub fn encrypted(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("encrypted"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] + pub fn id(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `uri` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpHeaderExtensionParameters`*"] + pub fn uri(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("uri"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcRtpParameters.rs b/crates/web-sys/src/features/gen_RtcRtpParameters.rs new file mode 100644 index 00000000..59b4bcc0 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcRtpParameters.rs @@ -0,0 +1,84 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCRtpParameters ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcRtpParameters` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`*"] + pub type RtcRtpParameters; +} +impl RtcRtpParameters { + #[doc = "Construct a new `RtcRtpParameters`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `codecs` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`*"] + pub fn codecs(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("codecs"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `encodings` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`*"] + pub fn encodings(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("encodings"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `headerExtensions` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`*"] + pub fn header_extensions(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("headerExtensions"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcRtcpParameters")] + #[doc = "Change the `rtcp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtcpParameters`, `RtcRtpParameters`*"] + pub fn rtcp(&mut self, val: &RtcRtcpParameters) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("rtcp"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcRtpReceiver.rs b/crates/web-sys/src/features/gen_RtcRtpReceiver.rs new file mode 100644 index 00000000..af9ae8b4 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcRtpReceiver.rs @@ -0,0 +1,43 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCRtpReceiver , typescript_type = "RTCRtpReceiver" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcRtpReceiver` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] + pub type RtcRtpReceiver; + #[cfg(feature = "MediaStreamTrack")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCRtpReceiver" , js_name = track ) ] + #[doc = "Getter for the `track` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/track)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpReceiver`*"] + pub fn track(this: &RtcRtpReceiver) -> MediaStreamTrack; + # [ wasm_bindgen ( method , structural , js_class = "RTCRtpReceiver" , js_name = getContributingSources ) ] + #[doc = "The `getContributingSources()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getContributingSources)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] + pub fn get_contributing_sources(this: &RtcRtpReceiver) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "RTCRtpReceiver" , js_name = getStats ) ] + #[doc = "The `getStats()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getStats)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] + pub fn get_stats(this: &RtcRtpReceiver) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "RTCRtpReceiver" , js_name = getSynchronizationSources ) ] + #[doc = "The `getSynchronizationSources()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpReceiver/getSynchronizationSources)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`*"] + pub fn get_synchronization_sources(this: &RtcRtpReceiver) -> ::js_sys::Array; +} diff --git a/crates/web-sys/src/features/gen_RtcRtpSender.rs b/crates/web-sys/src/features/gen_RtcRtpSender.rs new file mode 100644 index 00000000..d781b8a9 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcRtpSender.rs @@ -0,0 +1,74 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCRtpSender , typescript_type = "RTCRtpSender" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcRtpSender` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"] + pub type RtcRtpSender; + #[cfg(feature = "MediaStreamTrack")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCRtpSender" , js_name = track ) ] + #[doc = "Getter for the `track` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/track)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpSender`*"] + pub fn track(this: &RtcRtpSender) -> Option; + #[cfg(feature = "RtcdtmfSender")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCRtpSender" , js_name = dtmf ) ] + #[doc = "Getter for the `dtmf` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/dtmf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`, `RtcdtmfSender`*"] + pub fn dtmf(this: &RtcRtpSender) -> Option; + #[cfg(feature = "RtcRtpParameters")] + # [ wasm_bindgen ( method , structural , js_class = "RTCRtpSender" , js_name = getParameters ) ] + #[doc = "The `getParameters()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/getParameters)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`, `RtcRtpSender`*"] + pub fn get_parameters(this: &RtcRtpSender) -> RtcRtpParameters; + # [ wasm_bindgen ( method , structural , js_class = "RTCRtpSender" , js_name = getStats ) ] + #[doc = "The `getStats()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/getStats)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"] + pub fn get_stats(this: &RtcRtpSender) -> ::js_sys::Promise; + #[cfg(feature = "MediaStreamTrack")] + # [ wasm_bindgen ( method , structural , js_class = "RTCRtpSender" , js_name = replaceTrack ) ] + #[doc = "The `replaceTrack()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/replaceTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpSender`*"] + pub fn replace_track( + this: &RtcRtpSender, + with_track: Option<&MediaStreamTrack>, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "RTCRtpSender" , js_name = setParameters ) ] + #[doc = "The `setParameters()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/setParameters)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`*"] + pub fn set_parameters(this: &RtcRtpSender) -> ::js_sys::Promise; + #[cfg(feature = "RtcRtpParameters")] + # [ wasm_bindgen ( method , structural , js_class = "RTCRtpSender" , js_name = setParameters ) ] + #[doc = "The `setParameters()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpSender/setParameters)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpParameters`, `RtcRtpSender`*"] + pub fn set_parameters_with_parameters( + this: &RtcRtpSender, + parameters: &RtcRtpParameters, + ) -> ::js_sys::Promise; +} diff --git a/crates/web-sys/src/features/gen_RtcRtpSourceEntry.rs b/crates/web-sys/src/features/gen_RtcRtpSourceEntry.rs new file mode 100644 index 00000000..072f9a22 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcRtpSourceEntry.rs @@ -0,0 +1,109 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCRtpSourceEntry ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcRtpSourceEntry` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] + pub type RtcRtpSourceEntry; +} +impl RtcRtpSourceEntry { + #[cfg(feature = "RtcRtpSourceEntryType")] + #[doc = "Construct a new `RtcRtpSourceEntry`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`, `RtcRtpSourceEntryType`*"] + pub fn new(source: u32, timestamp: f64, source_type: RtcRtpSourceEntryType) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.source(source); + ret.timestamp(timestamp); + ret.source_type(source_type); + ret + } + #[doc = "Change the `audioLevel` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] + pub fn audio_level(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("audioLevel"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `source` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] + pub fn source(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] + pub fn timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `voiceActivityFlag` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`*"] + pub fn voice_activity_flag(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("voiceActivityFlag"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcRtpSourceEntryType")] + #[doc = "Change the `sourceType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntry`, `RtcRtpSourceEntryType`*"] + pub fn source_type(&mut self, val: RtcRtpSourceEntryType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sourceType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcRtpSourceEntryType.rs b/crates/web-sys/src/features/gen_RtcRtpSourceEntryType.rs new file mode 100644 index 00000000..e9c709ed --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcRtpSourceEntryType.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RtcRtpSourceEntryType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RtcRtpSourceEntryType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RtcRtpSourceEntryType { + Contributing = "contributing", + Synchronization = "synchronization", +} diff --git a/crates/web-sys/src/features/gen_RtcRtpSynchronizationSource.rs b/crates/web-sys/src/features/gen_RtcRtpSynchronizationSource.rs new file mode 100644 index 00000000..81607f18 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcRtpSynchronizationSource.rs @@ -0,0 +1,89 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCRtpSynchronizationSource ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcRtpSynchronizationSource` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] + pub type RtcRtpSynchronizationSource; +} +impl RtcRtpSynchronizationSource { + #[doc = "Construct a new `RtcRtpSynchronizationSource`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] + pub fn new(source: u32, timestamp: f64) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.source(source); + ret.timestamp(timestamp); + ret + } + #[doc = "Change the `audioLevel` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] + pub fn audio_level(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("audioLevel"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `source` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] + pub fn source(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] + pub fn timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `voiceActivityFlag` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSynchronizationSource`*"] + pub fn voice_activity_flag(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("voiceActivityFlag"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcRtpTransceiver.rs b/crates/web-sys/src/features/gen_RtcRtpTransceiver.rs new file mode 100644 index 00000000..1356d4fe --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcRtpTransceiver.rs @@ -0,0 +1,82 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCRtpTransceiver , typescript_type = "RTCRtpTransceiver" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcRtpTransceiver` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"] + pub type RtcRtpTransceiver; + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = mid ) ] + #[doc = "Getter for the `mid` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/mid)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"] + pub fn mid(this: &RtcRtpTransceiver) -> Option; + #[cfg(feature = "RtcRtpSender")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = sender ) ] + #[doc = "Getter for the `sender` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/sender)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpSender`, `RtcRtpTransceiver`*"] + pub fn sender(this: &RtcRtpTransceiver) -> RtcRtpSender; + #[cfg(feature = "RtcRtpReceiver")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = receiver ) ] + #[doc = "Getter for the `receiver` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/receiver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`, `RtcRtpTransceiver`*"] + pub fn receiver(this: &RtcRtpTransceiver) -> RtcRtpReceiver; + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = stopped ) ] + #[doc = "Getter for the `stopped` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/stopped)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"] + pub fn stopped(this: &RtcRtpTransceiver) -> bool; + #[cfg(feature = "RtcRtpTransceiverDirection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = direction ) ] + #[doc = "Getter for the `direction` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/direction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcRtpTransceiverDirection`*"] + pub fn direction(this: &RtcRtpTransceiver) -> RtcRtpTransceiverDirection; + #[cfg(feature = "RtcRtpTransceiverDirection")] + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCRtpTransceiver" , js_name = direction ) ] + #[doc = "Setter for the `direction` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/direction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcRtpTransceiverDirection`*"] + pub fn set_direction(this: &RtcRtpTransceiver, value: RtcRtpTransceiverDirection); + #[cfg(feature = "RtcRtpTransceiverDirection")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCRtpTransceiver" , js_name = currentDirection ) ] + #[doc = "Getter for the `currentDirection` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/currentDirection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcRtpTransceiverDirection`*"] + pub fn current_direction(this: &RtcRtpTransceiver) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "RTCRtpTransceiver" , js_name = getRemoteTrackId ) ] + #[doc = "The `getRemoteTrackId()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/getRemoteTrackId)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"] + pub fn get_remote_track_id(this: &RtcRtpTransceiver) -> String; + # [ wasm_bindgen ( method , structural , js_class = "RTCRtpTransceiver" , js_name = stop ) ] + #[doc = "The `stop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCRtpTransceiver/stop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`*"] + pub fn stop(this: &RtcRtpTransceiver); +} diff --git a/crates/web-sys/src/features/gen_RtcRtpTransceiverDirection.rs b/crates/web-sys/src/features/gen_RtcRtpTransceiverDirection.rs new file mode 100644 index 00000000..60a8f98f --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcRtpTransceiverDirection.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RtcRtpTransceiverDirection` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverDirection`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RtcRtpTransceiverDirection { + Sendrecv = "sendrecv", + Sendonly = "sendonly", + Recvonly = "recvonly", + Inactive = "inactive", +} diff --git a/crates/web-sys/src/features/gen_RtcRtpTransceiverInit.rs b/crates/web-sys/src/features/gen_RtcRtpTransceiverInit.rs new file mode 100644 index 00000000..1783a611 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcRtpTransceiverInit.rs @@ -0,0 +1,57 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCRtpTransceiverInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcRtpTransceiverInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverInit`*"] + pub type RtcRtpTransceiverInit; +} +impl RtcRtpTransceiverInit { + #[doc = "Construct a new `RtcRtpTransceiverInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "RtcRtpTransceiverDirection")] + #[doc = "Change the `direction` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverDirection`, `RtcRtpTransceiverInit`*"] + pub fn direction(&mut self, val: RtcRtpTransceiverDirection) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("direction"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `streams` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiverInit`*"] + pub fn streams(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("streams"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcRtxParameters.rs b/crates/web-sys/src/features/gen_RtcRtxParameters.rs new file mode 100644 index 00000000..b90d03c5 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcRtxParameters.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCRtxParameters ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcRtxParameters` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtxParameters`*"] + pub type RtcRtxParameters; +} +impl RtcRtxParameters { + #[doc = "Construct a new `RtcRtxParameters`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtxParameters`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `ssrc` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtxParameters`*"] + pub fn ssrc(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ssrc"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcSdpType.rs b/crates/web-sys/src/features/gen_RtcSdpType.rs new file mode 100644 index 00000000..deaa3430 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcSdpType.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RtcSdpType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RtcSdpType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RtcSdpType { + Offer = "offer", + Pranswer = "pranswer", + Answer = "answer", + Rollback = "rollback", +} diff --git a/crates/web-sys/src/features/gen_RtcSessionDescription.rs b/crates/web-sys/src/features/gen_RtcSessionDescription.rs new file mode 100644 index 00000000..520ce609 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcSessionDescription.rs @@ -0,0 +1,68 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCSessionDescription , typescript_type = "RTCSessionDescription" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcSessionDescription` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescription`*"] + pub type RtcSessionDescription; + #[cfg(feature = "RtcSdpType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCSessionDescription" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcSdpType`, `RtcSessionDescription`*"] + pub fn type_(this: &RtcSessionDescription) -> RtcSdpType; + #[cfg(feature = "RtcSdpType")] + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCSessionDescription" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcSdpType`, `RtcSessionDescription`*"] + pub fn set_type(this: &RtcSessionDescription, value: RtcSdpType); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCSessionDescription" , js_name = sdp ) ] + #[doc = "Getter for the `sdp` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/sdp)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescription`*"] + pub fn sdp(this: &RtcSessionDescription) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCSessionDescription" , js_name = sdp ) ] + #[doc = "Setter for the `sdp` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/sdp)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescription`*"] + pub fn set_sdp(this: &RtcSessionDescription, value: &str); + #[wasm_bindgen(catch, constructor, js_class = "RTCSessionDescription")] + #[doc = "The `new RtcSessionDescription(..)` constructor, creating a new instance of `RtcSessionDescription`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/RTCSessionDescription)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescription`*"] + pub fn new() -> Result; + #[cfg(feature = "RtcSessionDescriptionInit")] + #[wasm_bindgen(catch, constructor, js_class = "RTCSessionDescription")] + #[doc = "The `new RtcSessionDescription(..)` constructor, creating a new instance of `RtcSessionDescription`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/RTCSessionDescription)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescription`, `RtcSessionDescriptionInit`*"] + pub fn new_with_description_init_dict( + description_init_dict: &RtcSessionDescriptionInit, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "RTCSessionDescription" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCSessionDescription/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescription`*"] + pub fn to_json(this: &RtcSessionDescription) -> ::js_sys::Object; +} diff --git a/crates/web-sys/src/features/gen_RtcSessionDescriptionInit.rs b/crates/web-sys/src/features/gen_RtcSessionDescriptionInit.rs new file mode 100644 index 00000000..de7e19b2 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcSessionDescriptionInit.rs @@ -0,0 +1,51 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCSessionDescriptionInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcSessionDescriptionInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescriptionInit`*"] + pub type RtcSessionDescriptionInit; +} +impl RtcSessionDescriptionInit { + #[cfg(feature = "RtcSdpType")] + #[doc = "Construct a new `RtcSessionDescriptionInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcSdpType`, `RtcSessionDescriptionInit`*"] + pub fn new(type_: RtcSdpType) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.type_(type_); + ret + } + #[doc = "Change the `sdp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcSessionDescriptionInit`*"] + pub fn sdp(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("sdp"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcSdpType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcSdpType`, `RtcSessionDescriptionInit`*"] + pub fn type_(&mut self, val: RtcSdpType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcSignalingState.rs b/crates/web-sys/src/features/gen_RtcSignalingState.rs new file mode 100644 index 00000000..9fa4c48e --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcSignalingState.rs @@ -0,0 +1,15 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RtcSignalingState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RtcSignalingState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RtcSignalingState { + Stable = "stable", + HaveLocalOffer = "have-local-offer", + HaveRemoteOffer = "have-remote-offer", + HaveLocalPranswer = "have-local-pranswer", + HaveRemotePranswer = "have-remote-pranswer", + Closed = "closed", +} diff --git a/crates/web-sys/src/features/gen_RtcStats.rs b/crates/web-sys/src/features/gen_RtcStats.rs new file mode 100644 index 00000000..0ccc469f --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcStats.rs @@ -0,0 +1,66 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCStats ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcStats` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStats`*"] + pub type RtcStats; +} +impl RtcStats { + #[doc = "Construct a new `RtcStats`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStats`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStats`*"] + pub fn id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStats`*"] + pub fn timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcStatsType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStats`, `RtcStatsType`*"] + pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcStatsIceCandidatePairState.rs b/crates/web-sys/src/features/gen_RtcStatsIceCandidatePairState.rs new file mode 100644 index 00000000..0cad390d --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcStatsIceCandidatePairState.rs @@ -0,0 +1,15 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RtcStatsIceCandidatePairState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RtcStatsIceCandidatePairState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RtcStatsIceCandidatePairState { + Frozen = "frozen", + Waiting = "waiting", + Inprogress = "inprogress", + Failed = "failed", + Succeeded = "succeeded", + Cancelled = "cancelled", +} diff --git a/crates/web-sys/src/features/gen_RtcStatsIceCandidateType.rs b/crates/web-sys/src/features/gen_RtcStatsIceCandidateType.rs new file mode 100644 index 00000000..0756f85e --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcStatsIceCandidateType.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RtcStatsIceCandidateType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RtcStatsIceCandidateType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RtcStatsIceCandidateType { + Host = "host", + Serverreflexive = "serverreflexive", + Peerreflexive = "peerreflexive", + Relayed = "relayed", +} diff --git a/crates/web-sys/src/features/gen_RtcStatsReport.rs b/crates/web-sys/src/features/gen_RtcStatsReport.rs new file mode 100644 index 00000000..0f8552b7 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcStatsReport.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCStatsReport , typescript_type = "RTCStatsReport" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcStatsReport` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCStatsReport)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReport`*"] + pub type RtcStatsReport; +} diff --git a/crates/web-sys/src/features/gen_RtcStatsReportInternal.rs b/crates/web-sys/src/features/gen_RtcStatsReportInternal.rs new file mode 100644 index 00000000..39e3d016 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcStatsReportInternal.rs @@ -0,0 +1,372 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCStatsReportInternal ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcStatsReportInternal` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub type RtcStatsReportInternal; +} +impl RtcStatsReportInternal { + #[doc = "Construct a new `RtcStatsReportInternal`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `closed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn closed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("closed"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `codecStats` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn codec_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("codecStats"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `iceCandidatePairStats` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn ice_candidate_pair_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iceCandidatePairStats"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `iceCandidateStats` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn ice_candidate_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iceCandidateStats"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `iceComponentStats` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn ice_component_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iceComponentStats"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `iceRestarts` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn ice_restarts(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iceRestarts"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `iceRollbacks` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn ice_rollbacks(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("iceRollbacks"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `inboundRTPStreamStats` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn inbound_rtp_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("inboundRTPStreamStats"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `localSdp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn local_sdp(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("localSdp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mediaStreamStats` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn media_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mediaStreamStats"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mediaStreamTrackStats` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn media_stream_track_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mediaStreamTrackStats"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `offerer` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn offerer(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("offerer"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `outboundRTPStreamStats` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn outbound_rtp_stream_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("outboundRTPStreamStats"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pcid` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn pcid(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("pcid"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `rawLocalCandidates` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn raw_local_candidates(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("rawLocalCandidates"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `rawRemoteCandidates` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn raw_remote_candidates(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("rawRemoteCandidates"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `remoteSdp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn remote_sdp(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("remoteSdp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `rtpContributingSourceStats` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn rtp_contributing_source_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("rtpContributingSourceStats"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `transportStats` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn transport_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("transportStats"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `trickledIceCandidateStats` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsReportInternal`*"] + pub fn trickled_ice_candidate_stats(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("trickledIceCandidateStats"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcStatsType.rs b/crates/web-sys/src/features/gen_RtcStatsType.rs new file mode 100644 index 00000000..777c8d17 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcStatsType.rs @@ -0,0 +1,18 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `RtcStatsType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `RtcStatsType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum RtcStatsType { + InboundRtp = "inbound-rtp", + OutboundRtp = "outbound-rtp", + Csrc = "csrc", + Session = "session", + Track = "track", + Transport = "transport", + CandidatePair = "candidate-pair", + LocalCandidate = "local-candidate", + RemoteCandidate = "remote-candidate", +} diff --git a/crates/web-sys/src/features/gen_RtcTrackEvent.rs b/crates/web-sys/src/features/gen_RtcTrackEvent.rs new file mode 100644 index 00000000..93e76c4a --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcTrackEvent.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = RTCTrackEvent , typescript_type = "RTCTrackEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcTrackEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcTrackEvent`*"] + pub type RtcTrackEvent; + #[cfg(feature = "RtcRtpReceiver")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCTrackEvent" , js_name = receiver ) ] + #[doc = "Getter for the `receiver` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/receiver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`, `RtcTrackEvent`*"] + pub fn receiver(this: &RtcTrackEvent) -> RtcRtpReceiver; + #[cfg(feature = "MediaStreamTrack")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCTrackEvent" , js_name = track ) ] + #[doc = "Getter for the `track` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/track)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcTrackEvent`*"] + pub fn track(this: &RtcTrackEvent) -> MediaStreamTrack; + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCTrackEvent" , js_name = streams ) ] + #[doc = "Getter for the `streams` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/streams)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcTrackEvent`*"] + pub fn streams(this: &RtcTrackEvent) -> ::js_sys::Array; + #[cfg(feature = "RtcRtpTransceiver")] + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCTrackEvent" , js_name = transceiver ) ] + #[doc = "Getter for the `transceiver` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/transceiver)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcTrackEvent`*"] + pub fn transceiver(this: &RtcTrackEvent) -> RtcRtpTransceiver; + #[cfg(feature = "RtcTrackEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "RTCTrackEvent")] + #[doc = "The `new RtcTrackEvent(..)` constructor, creating a new instance of `RtcTrackEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCTrackEvent/RTCTrackEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcTrackEvent`, `RtcTrackEventInit`*"] + pub fn new(type_: &str, event_init_dict: &RtcTrackEventInit) -> Result; +} diff --git a/crates/web-sys/src/features/gen_RtcTrackEventInit.rs b/crates/web-sys/src/features/gen_RtcTrackEventInit.rs new file mode 100644 index 00000000..7f16dc9e --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcTrackEventInit.rs @@ -0,0 +1,152 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCTrackEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcTrackEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] + pub type RtcTrackEventInit; +} +impl RtcTrackEventInit { + #[cfg(all( + feature = "MediaStreamTrack", + feature = "RtcRtpReceiver", + feature = "RtcRtpTransceiver", + ))] + #[doc = "Construct a new `RtcTrackEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcRtpReceiver`, `RtcRtpTransceiver`, `RtcTrackEventInit`*"] + pub fn new( + receiver: &RtcRtpReceiver, + track: &MediaStreamTrack, + transceiver: &RtcRtpTransceiver, + ) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.receiver(receiver); + ret.track(track); + ret.transceiver(transceiver); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcRtpReceiver")] + #[doc = "Change the `receiver` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpReceiver`, `RtcTrackEventInit`*"] + pub fn receiver(&mut self, val: &RtcRtpReceiver) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("receiver"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `streams` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcTrackEventInit`*"] + pub fn streams(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("streams"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "MediaStreamTrack")] + #[doc = "Change the `track` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStreamTrack`, `RtcTrackEventInit`*"] + pub fn track(&mut self, val: &MediaStreamTrack) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("track"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcRtpTransceiver")] + #[doc = "Change the `transceiver` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcRtpTransceiver`, `RtcTrackEventInit`*"] + pub fn transceiver(&mut self, val: &RtcRtpTransceiver) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("transceiver"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcTransportStats.rs b/crates/web-sys/src/features/gen_RtcTransportStats.rs new file mode 100644 index 00000000..38fc4ee9 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcTransportStats.rs @@ -0,0 +1,100 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCTransportStats ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcTransportStats` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] + pub type RtcTransportStats; +} +impl RtcTransportStats { + #[doc = "Construct a new `RtcTransportStats`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] + pub fn id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] + pub fn timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcStatsType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsType`, `RtcTransportStats`*"] + pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `bytesReceived` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] + pub fn bytes_received(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bytesReceived"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `bytesSent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcTransportStats`*"] + pub fn bytes_sent(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bytesSent"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcdtmfSender.rs b/crates/web-sys/src/features/gen_RtcdtmfSender.rs new file mode 100644 index 00000000..4bbac5ab --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcdtmfSender.rs @@ -0,0 +1,61 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = RTCDTMFSender , typescript_type = "RTCDTMFSender" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcdtmfSender` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] + pub type RtcdtmfSender; + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCDTMFSender" , js_name = ontonechange ) ] + #[doc = "Getter for the `ontonechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/ontonechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] + pub fn ontonechange(this: &RtcdtmfSender) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "RTCDTMFSender" , js_name = ontonechange ) ] + #[doc = "Setter for the `ontonechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/ontonechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] + pub fn set_ontonechange(this: &RtcdtmfSender, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCDTMFSender" , js_name = toneBuffer ) ] + #[doc = "Getter for the `toneBuffer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/toneBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] + pub fn tone_buffer(this: &RtcdtmfSender) -> String; + # [ wasm_bindgen ( method , structural , js_class = "RTCDTMFSender" , js_name = insertDTMF ) ] + #[doc = "The `insertDTMF()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/insertDTMF)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] + pub fn insert_dtmf(this: &RtcdtmfSender, tones: &str); + # [ wasm_bindgen ( method , structural , js_class = "RTCDTMFSender" , js_name = insertDTMF ) ] + #[doc = "The `insertDTMF()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/insertDTMF)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] + pub fn insert_dtmf_with_duration(this: &RtcdtmfSender, tones: &str, duration: u32); + # [ wasm_bindgen ( method , structural , js_class = "RTCDTMFSender" , js_name = insertDTMF ) ] + #[doc = "The `insertDTMF()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFSender/insertDTMF)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcdtmfSender`*"] + pub fn insert_dtmf_with_duration_and_inter_tone_gap( + this: &RtcdtmfSender, + tones: &str, + duration: u32, + inter_tone_gap: u32, + ); +} diff --git a/crates/web-sys/src/features/gen_RtcdtmfToneChangeEvent.rs b/crates/web-sys/src/features/gen_RtcdtmfToneChangeEvent.rs new file mode 100644 index 00000000..2c699e3f --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcdtmfToneChangeEvent.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = RTCDTMFToneChangeEvent , typescript_type = "RTCDTMFToneChangeEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcdtmfToneChangeEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFToneChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEvent`*"] + pub type RtcdtmfToneChangeEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "RTCDTMFToneChangeEvent" , js_name = tone ) ] + #[doc = "Getter for the `tone` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFToneChangeEvent/tone)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEvent`*"] + pub fn tone(this: &RtcdtmfToneChangeEvent) -> String; + #[wasm_bindgen(catch, constructor, js_class = "RTCDTMFToneChangeEvent")] + #[doc = "The `new RtcdtmfToneChangeEvent(..)` constructor, creating a new instance of `RtcdtmfToneChangeEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFToneChangeEvent/RTCDTMFToneChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "RtcdtmfToneChangeEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "RTCDTMFToneChangeEvent")] + #[doc = "The `new RtcdtmfToneChangeEvent(..)` constructor, creating a new instance of `RtcdtmfToneChangeEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/RTCDTMFToneChangeEvent/RTCDTMFToneChangeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEvent`, `RtcdtmfToneChangeEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &RtcdtmfToneChangeEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_RtcdtmfToneChangeEventInit.rs b/crates/web-sys/src/features/gen_RtcdtmfToneChangeEventInit.rs new file mode 100644 index 00000000..d512a6b6 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcdtmfToneChangeEventInit.rs @@ -0,0 +1,86 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCDTMFToneChangeEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcdtmfToneChangeEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] + pub type RtcdtmfToneChangeEventInit; +} +impl RtcdtmfToneChangeEventInit { + #[doc = "Construct a new `RtcdtmfToneChangeEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `tone` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcdtmfToneChangeEventInit`*"] + pub fn tone(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("tone"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcrtpContributingSourceStats.rs b/crates/web-sys/src/features/gen_RtcrtpContributingSourceStats.rs new file mode 100644 index 00000000..4fff365f --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcrtpContributingSourceStats.rs @@ -0,0 +1,100 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCRTPContributingSourceStats ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcrtpContributingSourceStats` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] + pub type RtcrtpContributingSourceStats; +} +impl RtcrtpContributingSourceStats { + #[doc = "Construct a new `RtcrtpContributingSourceStats`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] + pub fn id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] + pub fn timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcStatsType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsType`, `RtcrtpContributingSourceStats`*"] + pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `contributorSsrc` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] + pub fn contributor_ssrc(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("contributorSsrc"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `inboundRtpStreamId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpContributingSourceStats`*"] + pub fn inbound_rtp_stream_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("inboundRtpStreamId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_RtcrtpStreamStats.rs b/crates/web-sys/src/features/gen_RtcrtpStreamStats.rs new file mode 100644 index 00000000..1f5d9819 --- /dev/null +++ b/crates/web-sys/src/features/gen_RtcrtpStreamStats.rs @@ -0,0 +1,300 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = RTCRTPStreamStats ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `RtcrtpStreamStats` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub type RtcrtpStreamStats; +} +impl RtcrtpStreamStats { + #[doc = "Construct a new `RtcrtpStreamStats`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `id` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub fn id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("id"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `timestamp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub fn timestamp(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("timestamp"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "RtcStatsType")] + #[doc = "Change the `type` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcStatsType`, `RtcrtpStreamStats`*"] + pub fn type_(&mut self, val: RtcStatsType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("type"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `bitrateMean` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub fn bitrate_mean(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bitrateMean"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `bitrateStdDev` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub fn bitrate_std_dev(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bitrateStdDev"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `codecId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub fn codec_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("codecId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `firCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub fn fir_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("firCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `framerateMean` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub fn framerate_mean(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("framerateMean"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `framerateStdDev` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub fn framerate_std_dev(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("framerateStdDev"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `isRemote` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub fn is_remote(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("isRemote"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mediaTrackId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub fn media_track_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mediaTrackId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `mediaType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub fn media_type(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("mediaType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `nackCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub fn nack_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("nackCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pliCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub fn pli_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("pliCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `remoteId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub fn remote_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("remoteId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ssrc` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub fn ssrc(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("ssrc"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `transportId` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RtcrtpStreamStats`*"] + pub fn transport_id(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("transportId"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Screen.rs b/crates/web-sys/src/features/gen_Screen.rs new file mode 100644 index 00000000..199e0a3c --- /dev/null +++ b/crates/web-sys/src/features/gen_Screen.rs @@ -0,0 +1,122 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = Screen , typescript_type = "Screen" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Screen` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Screen`*"] + pub type Screen; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Screen" , js_name = availWidth ) ] + #[doc = "Getter for the `availWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Screen`*"] + pub fn avail_width(this: &Screen) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Screen" , js_name = availHeight ) ] + #[doc = "Getter for the `availHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Screen`*"] + pub fn avail_height(this: &Screen) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Screen" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Screen`*"] + pub fn width(this: &Screen) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Screen" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Screen`*"] + pub fn height(this: &Screen) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Screen" , js_name = colorDepth ) ] + #[doc = "Getter for the `colorDepth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/colorDepth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Screen`*"] + pub fn color_depth(this: &Screen) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Screen" , js_name = pixelDepth ) ] + #[doc = "Getter for the `pixelDepth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/pixelDepth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Screen`*"] + pub fn pixel_depth(this: &Screen) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Screen" , js_name = top ) ] + #[doc = "Getter for the `top` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/top)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Screen`*"] + pub fn top(this: &Screen) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Screen" , js_name = left ) ] + #[doc = "Getter for the `left` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/left)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Screen`*"] + pub fn left(this: &Screen) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Screen" , js_name = availTop ) ] + #[doc = "Getter for the `availTop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availTop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Screen`*"] + pub fn avail_top(this: &Screen) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Screen" , js_name = availLeft ) ] + #[doc = "Getter for the `availLeft` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/availLeft)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Screen`*"] + pub fn avail_left(this: &Screen) -> Result; + #[cfg(feature = "ScreenOrientation")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Screen" , js_name = orientation ) ] + #[doc = "Getter for the `orientation` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/orientation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Screen`, `ScreenOrientation`*"] + pub fn orientation(this: &Screen) -> ScreenOrientation; + #[cfg(feature = "ScreenColorGamut")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Screen" , js_name = colorGamut ) ] + #[doc = "Getter for the `colorGamut` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/colorGamut)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Screen`, `ScreenColorGamut`*"] + pub fn color_gamut(this: &Screen) -> ScreenColorGamut; + #[cfg(feature = "ScreenLuminance")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Screen" , js_name = luminance ) ] + #[doc = "Getter for the `luminance` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/luminance)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Screen`, `ScreenLuminance`*"] + pub fn luminance(this: &Screen) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Screen" , js_name = onchange ) ] + #[doc = "Getter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Screen`*"] + pub fn onchange(this: &Screen) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Screen" , js_name = onchange ) ] + #[doc = "Setter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Screen/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Screen`*"] + pub fn set_onchange(this: &Screen, value: Option<&::js_sys::Function>); +} diff --git a/crates/web-sys/src/features/gen_ScreenColorGamut.rs b/crates/web-sys/src/features/gen_ScreenColorGamut.rs new file mode 100644 index 00000000..354af5c6 --- /dev/null +++ b/crates/web-sys/src/features/gen_ScreenColorGamut.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ScreenColorGamut` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ScreenColorGamut`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ScreenColorGamut { + Srgb = "srgb", + P3 = "p3", + Rec2020 = "rec2020", +} diff --git a/crates/web-sys/src/features/gen_ScreenLuminance.rs b/crates/web-sys/src/features/gen_ScreenLuminance.rs new file mode 100644 index 00000000..667afa86 --- /dev/null +++ b/crates/web-sys/src/features/gen_ScreenLuminance.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ScreenLuminance , typescript_type = "ScreenLuminance" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ScreenLuminance` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenLuminance)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScreenLuminance`*"] + pub type ScreenLuminance; + # [ wasm_bindgen ( structural , method , getter , js_class = "ScreenLuminance" , js_name = min ) ] + #[doc = "Getter for the `min` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenLuminance/min)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScreenLuminance`*"] + pub fn min(this: &ScreenLuminance) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "ScreenLuminance" , js_name = max ) ] + #[doc = "Getter for the `max` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenLuminance/max)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScreenLuminance`*"] + pub fn max(this: &ScreenLuminance) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "ScreenLuminance" , js_name = maxAverage ) ] + #[doc = "Getter for the `maxAverage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenLuminance/maxAverage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScreenLuminance`*"] + pub fn max_average(this: &ScreenLuminance) -> f64; +} diff --git a/crates/web-sys/src/features/gen_ScreenOrientation.rs b/crates/web-sys/src/features/gen_ScreenOrientation.rs new file mode 100644 index 00000000..5d1cb166 --- /dev/null +++ b/crates/web-sys/src/features/gen_ScreenOrientation.rs @@ -0,0 +1,61 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = ScreenOrientation , typescript_type = "ScreenOrientation" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ScreenOrientation` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScreenOrientation`*"] + pub type ScreenOrientation; + #[cfg(feature = "OrientationType")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "ScreenOrientation" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OrientationType`, `ScreenOrientation`*"] + pub fn type_(this: &ScreenOrientation) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "ScreenOrientation" , js_name = angle ) ] + #[doc = "Getter for the `angle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/angle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScreenOrientation`*"] + pub fn angle(this: &ScreenOrientation) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "ScreenOrientation" , js_name = onchange ) ] + #[doc = "Getter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScreenOrientation`*"] + pub fn onchange(this: &ScreenOrientation) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ScreenOrientation" , js_name = onchange ) ] + #[doc = "Setter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScreenOrientation`*"] + pub fn set_onchange(this: &ScreenOrientation, value: Option<&::js_sys::Function>); + #[cfg(feature = "OrientationLockType")] + # [ wasm_bindgen ( catch , method , structural , js_class = "ScreenOrientation" , js_name = lock ) ] + #[doc = "The `lock()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/lock)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OrientationLockType`, `ScreenOrientation`*"] + pub fn lock( + this: &ScreenOrientation, + orientation: OrientationLockType, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "ScreenOrientation" , js_name = unlock ) ] + #[doc = "The `unlock()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScreenOrientation/unlock)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScreenOrientation`*"] + pub fn unlock(this: &ScreenOrientation) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_ScriptProcessorNode.rs b/crates/web-sys/src/features/gen_ScriptProcessorNode.rs new file mode 100644 index 00000000..cf8ed938 --- /dev/null +++ b/crates/web-sys/src/features/gen_ScriptProcessorNode.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = ScriptProcessorNode , typescript_type = "ScriptProcessorNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ScriptProcessorNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScriptProcessorNode`*"] + pub type ScriptProcessorNode; + # [ wasm_bindgen ( structural , method , getter , js_class = "ScriptProcessorNode" , js_name = onaudioprocess ) ] + #[doc = "Getter for the `onaudioprocess` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode/onaudioprocess)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScriptProcessorNode`*"] + pub fn onaudioprocess(this: &ScriptProcessorNode) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ScriptProcessorNode" , js_name = onaudioprocess ) ] + #[doc = "Setter for the `onaudioprocess` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode/onaudioprocess)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScriptProcessorNode`*"] + pub fn set_onaudioprocess(this: &ScriptProcessorNode, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "ScriptProcessorNode" , js_name = bufferSize ) ] + #[doc = "Getter for the `bufferSize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScriptProcessorNode/bufferSize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScriptProcessorNode`*"] + pub fn buffer_size(this: &ScriptProcessorNode) -> i32; +} diff --git a/crates/web-sys/src/features/gen_ScrollAreaEvent.rs b/crates/web-sys/src/features/gen_ScrollAreaEvent.rs new file mode 100644 index 00000000..962db54c --- /dev/null +++ b/crates/web-sys/src/features/gen_ScrollAreaEvent.rs @@ -0,0 +1,171 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = ScrollAreaEvent , typescript_type = "ScrollAreaEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ScrollAreaEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] + pub type ScrollAreaEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "ScrollAreaEvent" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] + pub fn x(this: &ScrollAreaEvent) -> f32; + # [ wasm_bindgen ( structural , method , getter , js_class = "ScrollAreaEvent" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] + pub fn y(this: &ScrollAreaEvent) -> f32; + # [ wasm_bindgen ( structural , method , getter , js_class = "ScrollAreaEvent" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] + pub fn width(this: &ScrollAreaEvent) -> f32; + # [ wasm_bindgen ( structural , method , getter , js_class = "ScrollAreaEvent" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] + pub fn height(this: &ScrollAreaEvent) -> f32; + # [ wasm_bindgen ( method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent ) ] + #[doc = "The `initScrollAreaEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] + pub fn init_scroll_area_event(this: &ScrollAreaEvent, type_: &str); + # [ wasm_bindgen ( method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent ) ] + #[doc = "The `initScrollAreaEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] + pub fn init_scroll_area_event_with_can_bubble( + this: &ScrollAreaEvent, + type_: &str, + can_bubble: bool, + ); + # [ wasm_bindgen ( method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent ) ] + #[doc = "The `initScrollAreaEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`*"] + pub fn init_scroll_area_event_with_can_bubble_and_cancelable( + this: &ScrollAreaEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent ) ] + #[doc = "The `initScrollAreaEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"] + pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view( + this: &ScrollAreaEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent ) ] + #[doc = "The `initScrollAreaEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"] + pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail( + this: &ScrollAreaEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent ) ] + #[doc = "The `initScrollAreaEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"] + pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail_and_x( + this: &ScrollAreaEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + x: f32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent ) ] + #[doc = "The `initScrollAreaEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"] + pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail_and_x_and_y( + this: &ScrollAreaEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + x: f32, + y: f32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent ) ] + #[doc = "The `initScrollAreaEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"] + pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail_and_x_and_y_and_width( + this: &ScrollAreaEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + x: f32, + y: f32, + width: f32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "ScrollAreaEvent" , js_name = initScrollAreaEvent ) ] + #[doc = "The `initScrollAreaEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollAreaEvent/initScrollAreaEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollAreaEvent`, `Window`*"] + pub fn init_scroll_area_event_with_can_bubble_and_cancelable_and_view_and_detail_and_x_and_y_and_width_and_height( + this: &ScrollAreaEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + x: f32, + y: f32, + width: f32, + height: f32, + ); +} diff --git a/crates/web-sys/src/features/gen_ScrollBehavior.rs b/crates/web-sys/src/features/gen_ScrollBehavior.rs new file mode 100644 index 00000000..9df43cc7 --- /dev/null +++ b/crates/web-sys/src/features/gen_ScrollBehavior.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ScrollBehavior` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ScrollBehavior`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ScrollBehavior { + Auto = "auto", + Instant = "instant", + Smooth = "smooth", +} diff --git a/crates/web-sys/src/features/gen_ScrollBoxObject.rs b/crates/web-sys/src/features/gen_ScrollBoxObject.rs new file mode 100644 index 00000000..0c0e66a7 --- /dev/null +++ b/crates/web-sys/src/features/gen_ScrollBoxObject.rs @@ -0,0 +1,82 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = ScrollBoxObject , typescript_type = "ScrollBoxObject" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ScrollBoxObject` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] + pub type ScrollBoxObject; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "ScrollBoxObject" , js_name = positionX ) ] + #[doc = "Getter for the `positionX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/positionX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] + pub fn position_x(this: &ScrollBoxObject) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "ScrollBoxObject" , js_name = positionY ) ] + #[doc = "Getter for the `positionY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/positionY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] + pub fn position_y(this: &ScrollBoxObject) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "ScrollBoxObject" , js_name = scrolledWidth ) ] + #[doc = "Getter for the `scrolledWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrolledWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] + pub fn scrolled_width(this: &ScrollBoxObject) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "ScrollBoxObject" , js_name = scrolledHeight ) ] + #[doc = "Getter for the `scrolledHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrolledHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] + pub fn scrolled_height(this: &ScrollBoxObject) -> Result; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( catch , method , structural , js_class = "ScrollBoxObject" , js_name = ensureElementIsVisible ) ] + #[doc = "The `ensureElementIsVisible()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/ensureElementIsVisible)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `ScrollBoxObject`*"] + pub fn ensure_element_is_visible( + this: &ScrollBoxObject, + child: &Element, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "ScrollBoxObject" , js_name = scrollBy ) ] + #[doc = "The `scrollBy()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrollBy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] + pub fn scroll_by(this: &ScrollBoxObject, dx: i32, dy: i32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "ScrollBoxObject" , js_name = scrollByIndex ) ] + #[doc = "The `scrollByIndex()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrollByIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] + pub fn scroll_by_index(this: &ScrollBoxObject, dindexes: i32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "ScrollBoxObject" , js_name = scrollTo ) ] + #[doc = "The `scrollTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrollTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollBoxObject`*"] + pub fn scroll_to(this: &ScrollBoxObject, x: i32, y: i32) -> Result<(), JsValue>; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( catch , method , structural , js_class = "ScrollBoxObject" , js_name = scrollToElement ) ] + #[doc = "The `scrollToElement()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ScrollBoxObject/scrollToElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `ScrollBoxObject`*"] + pub fn scroll_to_element(this: &ScrollBoxObject, child: &Element) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_ScrollIntoViewOptions.rs b/crates/web-sys/src/features/gen_ScrollIntoViewOptions.rs new file mode 100644 index 00000000..178638b5 --- /dev/null +++ b/crates/web-sys/src/features/gen_ScrollIntoViewOptions.rs @@ -0,0 +1,69 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ScrollIntoViewOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ScrollIntoViewOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollIntoViewOptions`*"] + pub type ScrollIntoViewOptions; +} +impl ScrollIntoViewOptions { + #[doc = "Construct a new `ScrollIntoViewOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollIntoViewOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "ScrollBehavior")] + #[doc = "Change the `behavior` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollBehavior`, `ScrollIntoViewOptions`*"] + pub fn behavior(&mut self, val: ScrollBehavior) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("behavior"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ScrollLogicalPosition")] + #[doc = "Change the `block` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollIntoViewOptions`, `ScrollLogicalPosition`*"] + pub fn block(&mut self, val: ScrollLogicalPosition) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("block"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ScrollLogicalPosition")] + #[doc = "Change the `inline` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollIntoViewOptions`, `ScrollLogicalPosition`*"] + pub fn inline(&mut self, val: ScrollLogicalPosition) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("inline"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ScrollLogicalPosition.rs b/crates/web-sys/src/features/gen_ScrollLogicalPosition.rs new file mode 100644 index 00000000..a3643a4f --- /dev/null +++ b/crates/web-sys/src/features/gen_ScrollLogicalPosition.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ScrollLogicalPosition` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ScrollLogicalPosition`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ScrollLogicalPosition { + Start = "start", + Center = "center", + End = "end", + Nearest = "nearest", +} diff --git a/crates/web-sys/src/features/gen_ScrollOptions.rs b/crates/web-sys/src/features/gen_ScrollOptions.rs new file mode 100644 index 00000000..e56c191b --- /dev/null +++ b/crates/web-sys/src/features/gen_ScrollOptions.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ScrollOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ScrollOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollOptions`*"] + pub type ScrollOptions; +} +impl ScrollOptions { + #[doc = "Construct a new `ScrollOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "ScrollBehavior")] + #[doc = "Change the `behavior` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollBehavior`, `ScrollOptions`*"] + pub fn behavior(&mut self, val: ScrollBehavior) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("behavior"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ScrollRestoration.rs b/crates/web-sys/src/features/gen_ScrollRestoration.rs new file mode 100644 index 00000000..61587808 --- /dev/null +++ b/crates/web-sys/src/features/gen_ScrollRestoration.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ScrollRestoration` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ScrollRestoration`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ScrollRestoration { + Auto = "auto", + Manual = "manual", +} diff --git a/crates/web-sys/src/features/gen_ScrollSetting.rs b/crates/web-sys/src/features/gen_ScrollSetting.rs new file mode 100644 index 00000000..d4ba6cbf --- /dev/null +++ b/crates/web-sys/src/features/gen_ScrollSetting.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ScrollSetting` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ScrollSetting`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ScrollSetting { + None = "", + Up = "up", +} diff --git a/crates/web-sys/src/features/gen_ScrollState.rs b/crates/web-sys/src/features/gen_ScrollState.rs new file mode 100644 index 00000000..2af8c7aa --- /dev/null +++ b/crates/web-sys/src/features/gen_ScrollState.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ScrollState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ScrollState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ScrollState { + Started = "started", + Stopped = "stopped", +} diff --git a/crates/web-sys/src/features/gen_ScrollToOptions.rs b/crates/web-sys/src/features/gen_ScrollToOptions.rs new file mode 100644 index 00000000..22e3a723 --- /dev/null +++ b/crates/web-sys/src/features/gen_ScrollToOptions.rs @@ -0,0 +1,66 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ScrollToOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ScrollToOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`*"] + pub type ScrollToOptions; +} +impl ScrollToOptions { + #[doc = "Construct a new `ScrollToOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "ScrollBehavior")] + #[doc = "Change the `behavior` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollBehavior`, `ScrollToOptions`*"] + pub fn behavior(&mut self, val: ScrollBehavior) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("behavior"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `left` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`*"] + pub fn left(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("left"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `top` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`*"] + pub fn top(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("top"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ScrollViewChangeEventInit.rs b/crates/web-sys/src/features/gen_ScrollViewChangeEventInit.rs new file mode 100644 index 00000000..ac736662 --- /dev/null +++ b/crates/web-sys/src/features/gen_ScrollViewChangeEventInit.rs @@ -0,0 +1,87 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ScrollViewChangeEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ScrollViewChangeEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollViewChangeEventInit`*"] + pub type ScrollViewChangeEventInit; +} +impl ScrollViewChangeEventInit { + #[doc = "Construct a new `ScrollViewChangeEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollViewChangeEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollViewChangeEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollViewChangeEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollViewChangeEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ScrollState")] + #[doc = "Change the `state` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollState`, `ScrollViewChangeEventInit`*"] + pub fn state(&mut self, val: ScrollState) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("state"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_SecurityPolicyViolationEvent.rs b/crates/web-sys/src/features/gen_SecurityPolicyViolationEvent.rs new file mode 100644 index 00000000..e776c5db --- /dev/null +++ b/crates/web-sys/src/features/gen_SecurityPolicyViolationEvent.rs @@ -0,0 +1,119 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = SecurityPolicyViolationEvent , typescript_type = "SecurityPolicyViolationEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SecurityPolicyViolationEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] + pub type SecurityPolicyViolationEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = documentURI ) ] + #[doc = "Getter for the `documentURI` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/documentURI)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] + pub fn document_uri(this: &SecurityPolicyViolationEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = referrer ) ] + #[doc = "Getter for the `referrer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/referrer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] + pub fn referrer(this: &SecurityPolicyViolationEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = blockedURI ) ] + #[doc = "Getter for the `blockedURI` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/blockedURI)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] + pub fn blocked_uri(this: &SecurityPolicyViolationEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = violatedDirective ) ] + #[doc = "Getter for the `violatedDirective` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/violatedDirective)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] + pub fn violated_directive(this: &SecurityPolicyViolationEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = effectiveDirective ) ] + #[doc = "Getter for the `effectiveDirective` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/effectiveDirective)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] + pub fn effective_directive(this: &SecurityPolicyViolationEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = originalPolicy ) ] + #[doc = "Getter for the `originalPolicy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/originalPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] + pub fn original_policy(this: &SecurityPolicyViolationEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = sourceFile ) ] + #[doc = "Getter for the `sourceFile` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/sourceFile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] + pub fn source_file(this: &SecurityPolicyViolationEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = sample ) ] + #[doc = "Getter for the `sample` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/sample)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] + pub fn sample(this: &SecurityPolicyViolationEvent) -> String; + #[cfg(feature = "SecurityPolicyViolationEventDisposition")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = disposition ) ] + #[doc = "Getter for the `disposition` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/disposition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`, `SecurityPolicyViolationEventDisposition`*"] + pub fn disposition( + this: &SecurityPolicyViolationEvent, + ) -> SecurityPolicyViolationEventDisposition; + # [ wasm_bindgen ( structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = statusCode ) ] + #[doc = "Getter for the `statusCode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/statusCode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] + pub fn status_code(this: &SecurityPolicyViolationEvent) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = lineNumber ) ] + #[doc = "Getter for the `lineNumber` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/lineNumber)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] + pub fn line_number(this: &SecurityPolicyViolationEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "SecurityPolicyViolationEvent" , js_name = columnNumber ) ] + #[doc = "Getter for the `columnNumber` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/columnNumber)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] + pub fn column_number(this: &SecurityPolicyViolationEvent) -> i32; + #[wasm_bindgen(catch, constructor, js_class = "SecurityPolicyViolationEvent")] + #[doc = "The `new SecurityPolicyViolationEvent(..)` constructor, creating a new instance of `SecurityPolicyViolationEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/SecurityPolicyViolationEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "SecurityPolicyViolationEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "SecurityPolicyViolationEvent")] + #[doc = "The `new SecurityPolicyViolationEvent(..)` constructor, creating a new instance of `SecurityPolicyViolationEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SecurityPolicyViolationEvent/SecurityPolicyViolationEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEvent`, `SecurityPolicyViolationEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &SecurityPolicyViolationEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_SecurityPolicyViolationEventDisposition.rs b/crates/web-sys/src/features/gen_SecurityPolicyViolationEventDisposition.rs new file mode 100644 index 00000000..749e43da --- /dev/null +++ b/crates/web-sys/src/features/gen_SecurityPolicyViolationEventDisposition.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `SecurityPolicyViolationEventDisposition` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventDisposition`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum SecurityPolicyViolationEventDisposition { + Enforce = "enforce", + Report = "report", +} diff --git a/crates/web-sys/src/features/gen_SecurityPolicyViolationEventInit.rs b/crates/web-sys/src/features/gen_SecurityPolicyViolationEventInit.rs new file mode 100644 index 00000000..2c0b3893 --- /dev/null +++ b/crates/web-sys/src/features/gen_SecurityPolicyViolationEventInit.rs @@ -0,0 +1,275 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SecurityPolicyViolationEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SecurityPolicyViolationEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] + pub type SecurityPolicyViolationEventInit; +} +impl SecurityPolicyViolationEventInit { + #[doc = "Construct a new `SecurityPolicyViolationEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `blockedURI` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] + pub fn blocked_uri(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("blockedURI"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `columnNumber` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] + pub fn column_number(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("columnNumber"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "SecurityPolicyViolationEventDisposition")] + #[doc = "Change the `disposition` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventDisposition`, `SecurityPolicyViolationEventInit`*"] + pub fn disposition(&mut self, val: SecurityPolicyViolationEventDisposition) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("disposition"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `documentURI` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] + pub fn document_uri(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("documentURI"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `effectiveDirective` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] + pub fn effective_directive(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("effectiveDirective"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `lineNumber` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] + pub fn line_number(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("lineNumber"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `originalPolicy` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] + pub fn original_policy(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("originalPolicy"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `referrer` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] + pub fn referrer(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("referrer"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `sample` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] + pub fn sample(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("sample"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `sourceFile` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] + pub fn source_file(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sourceFile"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `statusCode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] + pub fn status_code(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("statusCode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `violatedDirective` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SecurityPolicyViolationEventInit`*"] + pub fn violated_directive(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("violatedDirective"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Selection.rs b/crates/web-sys/src/features/gen_Selection.rs new file mode 100644 index 00000000..10b4c7fe --- /dev/null +++ b/crates/web-sys/src/features/gen_Selection.rs @@ -0,0 +1,248 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Selection , typescript_type = "Selection" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Selection` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Selection`*"] + pub type Selection; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Selection" , js_name = anchorNode ) ] + #[doc = "Getter for the `anchorNode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/anchorNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] + pub fn anchor_node(this: &Selection) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Selection" , js_name = anchorOffset ) ] + #[doc = "Getter for the `anchorOffset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/anchorOffset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Selection`*"] + pub fn anchor_offset(this: &Selection) -> u32; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Selection" , js_name = focusNode ) ] + #[doc = "Getter for the `focusNode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/focusNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] + pub fn focus_node(this: &Selection) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Selection" , js_name = focusOffset ) ] + #[doc = "Getter for the `focusOffset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/focusOffset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Selection`*"] + pub fn focus_offset(this: &Selection) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Selection" , js_name = isCollapsed ) ] + #[doc = "Getter for the `isCollapsed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/isCollapsed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Selection`*"] + pub fn is_collapsed(this: &Selection) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "Selection" , js_name = rangeCount ) ] + #[doc = "Getter for the `rangeCount` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/rangeCount)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Selection`*"] + pub fn range_count(this: &Selection) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Selection" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Selection`*"] + pub fn type_(this: &Selection) -> String; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Selection" , js_name = caretBidiLevel ) ] + #[doc = "Getter for the `caretBidiLevel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/caretBidiLevel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Selection`*"] + pub fn caret_bidi_level(this: &Selection) -> Result, JsValue>; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Selection" , js_name = caretBidiLevel ) ] + #[doc = "Setter for the `caretBidiLevel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/caretBidiLevel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Selection`*"] + pub fn set_caret_bidi_level(this: &Selection, value: Option) -> Result<(), JsValue>; + #[cfg(feature = "Range")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = addRange ) ] + #[doc = "The `addRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/addRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`, `Selection`*"] + pub fn add_range(this: &Selection, range: &Range) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = collapse ) ] + #[doc = "The `collapse()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/collapse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] + pub fn collapse(this: &Selection, node: Option<&Node>) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = collapse ) ] + #[doc = "The `collapse()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/collapse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] + pub fn collapse_with_offset( + this: &Selection, + node: Option<&Node>, + offset: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = collapseToEnd ) ] + #[doc = "The `collapseToEnd()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/collapseToEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Selection`*"] + pub fn collapse_to_end(this: &Selection) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = collapseToStart ) ] + #[doc = "The `collapseToStart()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/collapseToStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Selection`*"] + pub fn collapse_to_start(this: &Selection) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = containsNode ) ] + #[doc = "The `containsNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/containsNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] + pub fn contains_node(this: &Selection, node: &Node) -> Result; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = containsNode ) ] + #[doc = "The `containsNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/containsNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] + pub fn contains_node_with_allow_partial_containment( + this: &Selection, + node: &Node, + allow_partial_containment: bool, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = deleteFromDocument ) ] + #[doc = "The `deleteFromDocument()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/deleteFromDocument)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Selection`*"] + pub fn delete_from_document(this: &Selection) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = empty ) ] + #[doc = "The `empty()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/empty)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Selection`*"] + pub fn empty(this: &Selection) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = extend ) ] + #[doc = "The `extend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/extend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] + pub fn extend(this: &Selection, node: &Node) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = extend ) ] + #[doc = "The `extend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/extend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] + pub fn extend_with_offset(this: &Selection, node: &Node, offset: u32) -> Result<(), JsValue>; + #[cfg(feature = "Range")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = getRangeAt ) ] + #[doc = "The `getRangeAt()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/getRangeAt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`, `Selection`*"] + pub fn get_range_at(this: &Selection, index: u32) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = modify ) ] + #[doc = "The `modify()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/modify)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Selection`*"] + pub fn modify( + this: &Selection, + alter: &str, + direction: &str, + granularity: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = removeAllRanges ) ] + #[doc = "The `removeAllRanges()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/removeAllRanges)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Selection`*"] + pub fn remove_all_ranges(this: &Selection) -> Result<(), JsValue>; + #[cfg(feature = "Range")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = removeRange ) ] + #[doc = "The `removeRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/removeRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Range`, `Selection`*"] + pub fn remove_range(this: &Selection, range: &Range) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = selectAllChildren ) ] + #[doc = "The `selectAllChildren()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/selectAllChildren)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] + pub fn select_all_children(this: &Selection, node: &Node) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = setBaseAndExtent ) ] + #[doc = "The `setBaseAndExtent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/setBaseAndExtent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] + pub fn set_base_and_extent( + this: &Selection, + anchor_node: &Node, + anchor_offset: u32, + focus_node: &Node, + focus_offset: u32, + ) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = setPosition ) ] + #[doc = "The `setPosition()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/setPosition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] + pub fn set_position(this: &Selection, node: Option<&Node>) -> Result<(), JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Selection" , js_name = setPosition ) ] + #[doc = "The `setPosition()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Selection/setPosition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `Selection`*"] + pub fn set_position_with_offset( + this: &Selection, + node: Option<&Node>, + offset: u32, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_ServerSocketOptions.rs b/crates/web-sys/src/features/gen_ServerSocketOptions.rs new file mode 100644 index 00000000..de3ee4bd --- /dev/null +++ b/crates/web-sys/src/features/gen_ServerSocketOptions.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ServerSocketOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ServerSocketOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServerSocketOptions`*"] + pub type ServerSocketOptions; +} +impl ServerSocketOptions { + #[doc = "Construct a new `ServerSocketOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServerSocketOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "TcpSocketBinaryType")] + #[doc = "Change the `binaryType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServerSocketOptions`, `TcpSocketBinaryType`*"] + pub fn binary_type(&mut self, val: TcpSocketBinaryType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("binaryType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ServiceWorker.rs b/crates/web-sys/src/features/gen_ServiceWorker.rs new file mode 100644 index 00000000..112bb413 --- /dev/null +++ b/crates/web-sys/src/features/gen_ServiceWorker.rs @@ -0,0 +1,78 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = ServiceWorker , typescript_type = "ServiceWorker" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ServiceWorker` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] + pub type ServiceWorker; + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorker" , js_name = scriptURL ) ] + #[doc = "Getter for the `scriptURL` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/scriptURL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] + pub fn script_url(this: &ServiceWorker) -> String; + #[cfg(feature = "ServiceWorkerState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorker" , js_name = state ) ] + #[doc = "Getter for the `state` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/state)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`, `ServiceWorkerState`*"] + pub fn state(this: &ServiceWorker) -> ServiceWorkerState; + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorker" , js_name = onstatechange ) ] + #[doc = "Getter for the `onstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] + pub fn onstatechange(this: &ServiceWorker) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ServiceWorker" , js_name = onstatechange ) ] + #[doc = "Setter for the `onstatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onstatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] + pub fn set_onstatechange(this: &ServiceWorker, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorker" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] + pub fn onerror(this: &ServiceWorker) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ServiceWorker" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] + pub fn set_onerror(this: &ServiceWorker, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( catch , method , structural , js_class = "ServiceWorker" , js_name = postMessage ) ] + #[doc = "The `postMessage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/postMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] + pub fn post_message( + this: &ServiceWorker, + message: &::wasm_bindgen::JsValue, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "ServiceWorker" , js_name = postMessage ) ] + #[doc = "The `postMessage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker/postMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`*"] + pub fn post_message_with_transferable( + this: &ServiceWorker, + message: &::wasm_bindgen::JsValue, + transferable: &::wasm_bindgen::JsValue, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_ServiceWorkerContainer.rs b/crates/web-sys/src/features/gen_ServiceWorkerContainer.rs new file mode 100644 index 00000000..cfc4ec88 --- /dev/null +++ b/crates/web-sys/src/features/gen_ServiceWorkerContainer.rs @@ -0,0 +1,124 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = ServiceWorkerContainer , typescript_type = "ServiceWorkerContainer" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ServiceWorkerContainer` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] + pub type ServiceWorkerContainer; + #[cfg(feature = "ServiceWorker")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerContainer" , js_name = controller ) ] + #[doc = "Getter for the `controller` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/controller)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`, `ServiceWorkerContainer`*"] + pub fn controller(this: &ServiceWorkerContainer) -> Option; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "ServiceWorkerContainer" , js_name = ready ) ] + #[doc = "Getter for the `ready` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/ready)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] + pub fn ready(this: &ServiceWorkerContainer) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerContainer" , js_name = oncontrollerchange ) ] + #[doc = "Getter for the `oncontrollerchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/oncontrollerchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] + pub fn oncontrollerchange(this: &ServiceWorkerContainer) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ServiceWorkerContainer" , js_name = oncontrollerchange ) ] + #[doc = "Setter for the `oncontrollerchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/oncontrollerchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] + pub fn set_oncontrollerchange( + this: &ServiceWorkerContainer, + value: Option<&::js_sys::Function>, + ); + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerContainer" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] + pub fn onerror(this: &ServiceWorkerContainer) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ServiceWorkerContainer" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] + pub fn set_onerror(this: &ServiceWorkerContainer, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerContainer" , js_name = onmessage ) ] + #[doc = "Getter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] + pub fn onmessage(this: &ServiceWorkerContainer) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ServiceWorkerContainer" , js_name = onmessage ) ] + #[doc = "Setter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] + pub fn set_onmessage(this: &ServiceWorkerContainer, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( method , structural , js_class = "ServiceWorkerContainer" , js_name = getRegistration ) ] + #[doc = "The `getRegistration()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/getRegistration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] + pub fn get_registration(this: &ServiceWorkerContainer) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "ServiceWorkerContainer" , js_name = getRegistration ) ] + #[doc = "The `getRegistration()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/getRegistration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] + pub fn get_registration_with_document_url( + this: &ServiceWorkerContainer, + document_url: &str, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "ServiceWorkerContainer" , js_name = getRegistrations ) ] + #[doc = "The `getRegistrations()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/getRegistrations)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] + pub fn get_registrations(this: &ServiceWorkerContainer) -> ::js_sys::Promise; + # [ wasm_bindgen ( catch , method , structural , js_class = "ServiceWorkerContainer" , js_name = getScopeForUrl ) ] + #[doc = "The `getScopeForUrl()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/getScopeForUrl)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] + pub fn get_scope_for_url(this: &ServiceWorkerContainer, url: &str) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "ServiceWorkerContainer" , js_name = register ) ] + #[doc = "The `register()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/register)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerContainer`*"] + pub fn register(this: &ServiceWorkerContainer, script_url: &str) -> ::js_sys::Promise; + #[cfg(feature = "RegistrationOptions")] + # [ wasm_bindgen ( method , structural , js_class = "ServiceWorkerContainer" , js_name = register ) ] + #[doc = "The `register()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerContainer/register)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RegistrationOptions`, `ServiceWorkerContainer`*"] + pub fn register_with_options( + this: &ServiceWorkerContainer, + script_url: &str, + options: &RegistrationOptions, + ) -> ::js_sys::Promise; +} diff --git a/crates/web-sys/src/features/gen_ServiceWorkerGlobalScope.rs b/crates/web-sys/src/features/gen_ServiceWorkerGlobalScope.rs new file mode 100644 index 00000000..ffb3b586 --- /dev/null +++ b/crates/web-sys/src/features/gen_ServiceWorkerGlobalScope.rs @@ -0,0 +1,158 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = WorkerGlobalScope , extends = EventTarget , extends = :: js_sys :: Object , js_name = ServiceWorkerGlobalScope , typescript_type = "ServiceWorkerGlobalScope" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ServiceWorkerGlobalScope` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub type ServiceWorkerGlobalScope; + #[cfg(feature = "Clients")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = clients ) ] + #[doc = "Getter for the `clients` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/clients)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Clients`, `ServiceWorkerGlobalScope`*"] + pub fn clients(this: &ServiceWorkerGlobalScope) -> Clients; + #[cfg(feature = "ServiceWorkerRegistration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = registration ) ] + #[doc = "Getter for the `registration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/registration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`, `ServiceWorkerRegistration`*"] + pub fn registration(this: &ServiceWorkerGlobalScope) -> ServiceWorkerRegistration; + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = oninstall ) ] + #[doc = "Getter for the `oninstall` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/oninstall)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub fn oninstall(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = oninstall ) ] + #[doc = "Setter for the `oninstall` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/oninstall)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub fn set_oninstall(this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onactivate ) ] + #[doc = "Getter for the `onactivate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onactivate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub fn onactivate(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onactivate ) ] + #[doc = "Setter for the `onactivate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onactivate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub fn set_onactivate(this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onfetch ) ] + #[doc = "Getter for the `onfetch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onfetch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub fn onfetch(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onfetch ) ] + #[doc = "Setter for the `onfetch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onfetch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub fn set_onfetch(this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onmessage ) ] + #[doc = "Getter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub fn onmessage(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onmessage ) ] + #[doc = "Setter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub fn set_onmessage(this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onpush ) ] + #[doc = "Getter for the `onpush` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onpush)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub fn onpush(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onpush ) ] + #[doc = "Setter for the `onpush` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onpush)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub fn set_onpush(this: &ServiceWorkerGlobalScope, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onpushsubscriptionchange ) ] + #[doc = "Getter for the `onpushsubscriptionchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onpushsubscriptionchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub fn onpushsubscriptionchange(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onpushsubscriptionchange ) ] + #[doc = "Setter for the `onpushsubscriptionchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onpushsubscriptionchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub fn set_onpushsubscriptionchange( + this: &ServiceWorkerGlobalScope, + value: Option<&::js_sys::Function>, + ); + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onnotificationclick ) ] + #[doc = "Getter for the `onnotificationclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onnotificationclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub fn onnotificationclick(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onnotificationclick ) ] + #[doc = "Setter for the `onnotificationclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onnotificationclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub fn set_onnotificationclick( + this: &ServiceWorkerGlobalScope, + value: Option<&::js_sys::Function>, + ); + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerGlobalScope" , js_name = onnotificationclose ) ] + #[doc = "Getter for the `onnotificationclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onnotificationclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub fn onnotificationclose(this: &ServiceWorkerGlobalScope) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ServiceWorkerGlobalScope" , js_name = onnotificationclose ) ] + #[doc = "Setter for the `onnotificationclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/onnotificationclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub fn set_onnotificationclose( + this: &ServiceWorkerGlobalScope, + value: Option<&::js_sys::Function>, + ); + # [ wasm_bindgen ( catch , method , structural , js_class = "ServiceWorkerGlobalScope" , js_name = skipWaiting ) ] + #[doc = "The `skipWaiting()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerGlobalScope/skipWaiting)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerGlobalScope`*"] + pub fn skip_waiting(this: &ServiceWorkerGlobalScope) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_ServiceWorkerRegistration.rs b/crates/web-sys/src/features/gen_ServiceWorkerRegistration.rs new file mode 100644 index 00000000..a10ce0b5 --- /dev/null +++ b/crates/web-sys/src/features/gen_ServiceWorkerRegistration.rs @@ -0,0 +1,133 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = ServiceWorkerRegistration , typescript_type = "ServiceWorkerRegistration" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ServiceWorkerRegistration` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] + pub type ServiceWorkerRegistration; + #[cfg(feature = "ServiceWorker")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerRegistration" , js_name = installing ) ] + #[doc = "Getter for the `installing` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/installing)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`, `ServiceWorkerRegistration`*"] + pub fn installing(this: &ServiceWorkerRegistration) -> Option; + #[cfg(feature = "ServiceWorker")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerRegistration" , js_name = waiting ) ] + #[doc = "Getter for the `waiting` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/waiting)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`, `ServiceWorkerRegistration`*"] + pub fn waiting(this: &ServiceWorkerRegistration) -> Option; + #[cfg(feature = "ServiceWorker")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerRegistration" , js_name = active ) ] + #[doc = "Getter for the `active` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/active)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorker`, `ServiceWorkerRegistration`*"] + pub fn active(this: &ServiceWorkerRegistration) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerRegistration" , js_name = scope ) ] + #[doc = "Getter for the `scope` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/scope)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] + pub fn scope(this: &ServiceWorkerRegistration) -> String; + #[cfg(feature = "ServiceWorkerUpdateViaCache")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "ServiceWorkerRegistration" , js_name = updateViaCache ) ] + #[doc = "Getter for the `updateViaCache` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/updateViaCache)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`, `ServiceWorkerUpdateViaCache`*"] + pub fn update_via_cache( + this: &ServiceWorkerRegistration, + ) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "ServiceWorkerRegistration" , js_name = onupdatefound ) ] + #[doc = "Getter for the `onupdatefound` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/onupdatefound)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] + pub fn onupdatefound(this: &ServiceWorkerRegistration) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "ServiceWorkerRegistration" , js_name = onupdatefound ) ] + #[doc = "Setter for the `onupdatefound` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/onupdatefound)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] + pub fn set_onupdatefound(this: &ServiceWorkerRegistration, value: Option<&::js_sys::Function>); + #[cfg(feature = "PushManager")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "ServiceWorkerRegistration" , js_name = pushManager ) ] + #[doc = "Getter for the `pushManager` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/pushManager)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PushManager`, `ServiceWorkerRegistration`*"] + pub fn push_manager(this: &ServiceWorkerRegistration) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = getNotifications ) ] + #[doc = "The `getNotifications()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/getNotifications)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] + pub fn get_notifications( + this: &ServiceWorkerRegistration, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "GetNotificationOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = getNotifications ) ] + #[doc = "The `getNotifications()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/getNotifications)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `GetNotificationOptions`, `ServiceWorkerRegistration`*"] + pub fn get_notifications_with_filter( + this: &ServiceWorkerRegistration, + filter: &GetNotificationOptions, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = showNotification ) ] + #[doc = "The `showNotification()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] + pub fn show_notification( + this: &ServiceWorkerRegistration, + title: &str, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "NotificationOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = showNotification ) ] + #[doc = "The `showNotification()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NotificationOptions`, `ServiceWorkerRegistration`*"] + pub fn show_notification_with_options( + this: &ServiceWorkerRegistration, + title: &str, + options: &NotificationOptions, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = unregister ) ] + #[doc = "The `unregister()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/unregister)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] + pub fn unregister(this: &ServiceWorkerRegistration) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "ServiceWorkerRegistration" , js_name = update ) ] + #[doc = "The `update()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/update)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServiceWorkerRegistration`*"] + pub fn update(this: &ServiceWorkerRegistration) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_ServiceWorkerState.rs b/crates/web-sys/src/features/gen_ServiceWorkerState.rs new file mode 100644 index 00000000..4dfcc615 --- /dev/null +++ b/crates/web-sys/src/features/gen_ServiceWorkerState.rs @@ -0,0 +1,15 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ServiceWorkerState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ServiceWorkerState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ServiceWorkerState { + Parsed = "parsed", + Installing = "installing", + Installed = "installed", + Activating = "activating", + Activated = "activated", + Redundant = "redundant", +} diff --git a/crates/web-sys/src/features/gen_ServiceWorkerUpdateViaCache.rs b/crates/web-sys/src/features/gen_ServiceWorkerUpdateViaCache.rs new file mode 100644 index 00000000..72de930a --- /dev/null +++ b/crates/web-sys/src/features/gen_ServiceWorkerUpdateViaCache.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ServiceWorkerUpdateViaCache` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ServiceWorkerUpdateViaCache`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ServiceWorkerUpdateViaCache { + Imports = "imports", + All = "all", + None = "none", +} diff --git a/crates/web-sys/src/features/gen_ShadowRoot.rs b/crates/web-sys/src/features/gen_ShadowRoot.rs new file mode 100644 index 00000000..2e977aaa --- /dev/null +++ b/crates/web-sys/src/features/gen_ShadowRoot.rs @@ -0,0 +1,127 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = DocumentFragment , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = ShadowRoot , typescript_type = "ShadowRoot" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ShadowRoot` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"] + pub type ShadowRoot; + #[cfg(feature = "ShadowRootMode")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ShadowRoot" , js_name = mode ) ] + #[doc = "Getter for the `mode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/mode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`, `ShadowRootMode`*"] + pub fn mode(this: &ShadowRoot) -> ShadowRootMode; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ShadowRoot" , js_name = host ) ] + #[doc = "Getter for the `host` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/host)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] + pub fn host(this: &ShadowRoot) -> Element; + # [ wasm_bindgen ( structural , method , getter , js_class = "ShadowRoot" , js_name = innerHTML ) ] + #[doc = "Getter for the `innerHTML` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"] + pub fn inner_html(this: &ShadowRoot) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "ShadowRoot" , js_name = innerHTML ) ] + #[doc = "Setter for the `innerHTML` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/innerHTML)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"] + pub fn set_inner_html(this: &ShadowRoot, value: &str); + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ShadowRoot" , js_name = activeElement ) ] + #[doc = "Getter for the `activeElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/activeElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] + pub fn active_element(this: &ShadowRoot) -> Option; + #[cfg(feature = "StyleSheetList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ShadowRoot" , js_name = styleSheets ) ] + #[doc = "Getter for the `styleSheets` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/styleSheets)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`, `StyleSheetList`*"] + pub fn style_sheets(this: &ShadowRoot) -> StyleSheetList; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ShadowRoot" , js_name = pointerLockElement ) ] + #[doc = "Getter for the `pointerLockElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/pointerLockElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] + pub fn pointer_lock_element(this: &ShadowRoot) -> Option; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "ShadowRoot" , js_name = fullscreenElement ) ] + #[doc = "Getter for the `fullscreenElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/fullscreenElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] + pub fn fullscreen_element(this: &ShadowRoot) -> Option; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( method , structural , js_class = "ShadowRoot" , js_name = getElementById ) ] + #[doc = "The `getElementById()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementById)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] + pub fn get_element_by_id(this: &ShadowRoot, element_id: &str) -> Option; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( method , structural , js_class = "ShadowRoot" , js_name = getElementsByClassName ) ] + #[doc = "The `getElementsByClassName()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByClassName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `ShadowRoot`*"] + pub fn get_elements_by_class_name(this: &ShadowRoot, class_names: &str) -> HtmlCollection; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( method , structural , js_class = "ShadowRoot" , js_name = getElementsByTagName ) ] + #[doc = "The `getElementsByTagName()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByTagName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `ShadowRoot`*"] + pub fn get_elements_by_tag_name(this: &ShadowRoot, local_name: &str) -> HtmlCollection; + #[cfg(feature = "HtmlCollection")] + # [ wasm_bindgen ( method , structural , js_class = "ShadowRoot" , js_name = getElementsByTagNameNS ) ] + #[doc = "The `getElementsByTagNameNS()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getElementsByTagNameNS)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCollection`, `ShadowRoot`*"] + pub fn get_elements_by_tag_name_ns( + this: &ShadowRoot, + namespace: Option<&str>, + local_name: &str, + ) -> HtmlCollection; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( method , structural , js_class = "ShadowRoot" , js_name = elementFromPoint ) ] + #[doc = "The `elementFromPoint()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/elementFromPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `ShadowRoot`*"] + pub fn element_from_point(this: &ShadowRoot, x: f32, y: f32) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "ShadowRoot" , js_name = elementsFromPoint ) ] + #[doc = "The `elementsFromPoint()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/elementsFromPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ShadowRoot`*"] + pub fn elements_from_point(this: &ShadowRoot, x: f32, y: f32) -> ::js_sys::Array; +} diff --git a/crates/web-sys/src/features/gen_ShadowRootInit.rs b/crates/web-sys/src/features/gen_ShadowRootInit.rs new file mode 100644 index 00000000..39a5f70c --- /dev/null +++ b/crates/web-sys/src/features/gen_ShadowRootInit.rs @@ -0,0 +1,38 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ShadowRootInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ShadowRootInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ShadowRootInit`*"] + pub type ShadowRootInit; +} +impl ShadowRootInit { + #[cfg(feature = "ShadowRootMode")] + #[doc = "Construct a new `ShadowRootInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ShadowRootInit`, `ShadowRootMode`*"] + pub fn new(mode: ShadowRootMode) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.mode(mode); + ret + } + #[cfg(feature = "ShadowRootMode")] + #[doc = "Change the `mode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ShadowRootInit`, `ShadowRootMode`*"] + pub fn mode(&mut self, val: ShadowRootMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("mode"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_ShadowRootMode.rs b/crates/web-sys/src/features/gen_ShadowRootMode.rs new file mode 100644 index 00000000..baddd9fe --- /dev/null +++ b/crates/web-sys/src/features/gen_ShadowRootMode.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `ShadowRootMode` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `ShadowRootMode`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum ShadowRootMode { + Open = "open", + Closed = "closed", +} diff --git a/crates/web-sys/src/features/gen_SharedWorker.rs b/crates/web-sys/src/features/gen_SharedWorker.rs new file mode 100644 index 00000000..af1d2e2a --- /dev/null +++ b/crates/web-sys/src/features/gen_SharedWorker.rs @@ -0,0 +1,61 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = SharedWorker , typescript_type = "SharedWorker" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SharedWorker` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SharedWorker`*"] + pub type SharedWorker; + #[cfg(feature = "MessagePort")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SharedWorker" , js_name = port ) ] + #[doc = "Getter for the `port` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/port)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MessagePort`, `SharedWorker`*"] + pub fn port(this: &SharedWorker) -> MessagePort; + # [ wasm_bindgen ( structural , method , getter , js_class = "SharedWorker" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SharedWorker`*"] + pub fn onerror(this: &SharedWorker) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SharedWorker" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SharedWorker`*"] + pub fn set_onerror(this: &SharedWorker, value: Option<&::js_sys::Function>); + #[wasm_bindgen(catch, constructor, js_class = "SharedWorker")] + #[doc = "The `new SharedWorker(..)` constructor, creating a new instance of `SharedWorker`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/SharedWorker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SharedWorker`*"] + pub fn new(script_url: &str) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "SharedWorker")] + #[doc = "The `new SharedWorker(..)` constructor, creating a new instance of `SharedWorker`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/SharedWorker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SharedWorker`*"] + pub fn new_with_str(script_url: &str, options: &str) -> Result; + #[cfg(feature = "WorkerOptions")] + #[wasm_bindgen(catch, constructor, js_class = "SharedWorker")] + #[doc = "The `new SharedWorker(..)` constructor, creating a new instance of `SharedWorker`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker/SharedWorker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SharedWorker`, `WorkerOptions`*"] + pub fn new_with_worker_options( + script_url: &str, + options: &WorkerOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_SharedWorkerGlobalScope.rs b/crates/web-sys/src/features/gen_SharedWorkerGlobalScope.rs new file mode 100644 index 00000000..3a63cb83 --- /dev/null +++ b/crates/web-sys/src/features/gen_SharedWorkerGlobalScope.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = WorkerGlobalScope , extends = EventTarget , extends = :: js_sys :: Object , js_name = SharedWorkerGlobalScope , typescript_type = "SharedWorkerGlobalScope" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SharedWorkerGlobalScope` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"] + pub type SharedWorkerGlobalScope; + # [ wasm_bindgen ( structural , method , getter , js_class = "SharedWorkerGlobalScope" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"] + pub fn name(this: &SharedWorkerGlobalScope) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "SharedWorkerGlobalScope" , js_name = onconnect ) ] + #[doc = "Getter for the `onconnect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/onconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"] + pub fn onconnect(this: &SharedWorkerGlobalScope) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SharedWorkerGlobalScope" , js_name = onconnect ) ] + #[doc = "Setter for the `onconnect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/onconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"] + pub fn set_onconnect(this: &SharedWorkerGlobalScope, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( method , structural , js_class = "SharedWorkerGlobalScope" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SharedWorkerGlobalScope/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SharedWorkerGlobalScope`*"] + pub fn close(this: &SharedWorkerGlobalScope); +} diff --git a/crates/web-sys/src/features/gen_SignResponse.rs b/crates/web-sys/src/features/gen_SignResponse.rs new file mode 100644 index 00000000..9bdb7a84 --- /dev/null +++ b/crates/web-sys/src/features/gen_SignResponse.rs @@ -0,0 +1,107 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SignResponse ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SignResponse` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] + pub type SignResponse; +} +impl SignResponse { + #[doc = "Construct a new `SignResponse`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `clientData` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] + pub fn client_data(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("clientData"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `errorCode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] + pub fn error_code(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("errorCode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `errorMessage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] + pub fn error_message(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("errorMessage"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `keyHandle` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] + pub fn key_handle(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("keyHandle"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `signatureData` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SignResponse`*"] + pub fn signature_data(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("signatureData"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_SocketElement.rs b/crates/web-sys/src/features/gen_SocketElement.rs new file mode 100644 index 00000000..44717e16 --- /dev/null +++ b/crates/web-sys/src/features/gen_SocketElement.rs @@ -0,0 +1,105 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SocketElement ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SocketElement` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] + pub type SocketElement; +} +impl SocketElement { + #[doc = "Construct a new `SocketElement`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `active` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] + pub fn active(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("active"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `host` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] + pub fn host(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("host"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `port` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] + pub fn port(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("port"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `received` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] + pub fn received(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("received"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `sent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] + pub fn sent(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("sent"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `tcp` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketElement`*"] + pub fn tcp(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("tcp"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_SocketOptions.rs b/crates/web-sys/src/features/gen_SocketOptions.rs new file mode 100644 index 00000000..b5a3fa04 --- /dev/null +++ b/crates/web-sys/src/features/gen_SocketOptions.rs @@ -0,0 +1,57 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SocketOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SocketOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketOptions`*"] + pub type SocketOptions; +} +impl SocketOptions { + #[doc = "Construct a new `SocketOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "TcpSocketBinaryType")] + #[doc = "Change the `binaryType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketOptions`, `TcpSocketBinaryType`*"] + pub fn binary_type(&mut self, val: TcpSocketBinaryType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("binaryType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `useSecureTransport` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketOptions`*"] + pub fn use_secure_transport(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("useSecureTransport"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_SocketReadyState.rs b/crates/web-sys/src/features/gen_SocketReadyState.rs new file mode 100644 index 00000000..5c359de2 --- /dev/null +++ b/crates/web-sys/src/features/gen_SocketReadyState.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `SocketReadyState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `SocketReadyState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum SocketReadyState { + Opening = "opening", + Open = "open", + Closing = "closing", + Closed = "closed", + Halfclosed = "halfclosed", +} diff --git a/crates/web-sys/src/features/gen_SocketsDict.rs b/crates/web-sys/src/features/gen_SocketsDict.rs new file mode 100644 index 00000000..bfb9e398 --- /dev/null +++ b/crates/web-sys/src/features/gen_SocketsDict.rs @@ -0,0 +1,69 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SocketsDict ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SocketsDict` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketsDict`*"] + pub type SocketsDict; +} +impl SocketsDict { + #[doc = "Construct a new `SocketsDict`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketsDict`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `received` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketsDict`*"] + pub fn received(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("received"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `sent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketsDict`*"] + pub fn sent(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("sent"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `sockets` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketsDict`*"] + pub fn sockets(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sockets"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_SourceBuffer.rs b/crates/web-sys/src/features/gen_SourceBuffer.rs new file mode 100644 index 00000000..ed1c4564 --- /dev/null +++ b/crates/web-sys/src/features/gen_SourceBuffer.rs @@ -0,0 +1,247 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = SourceBuffer , typescript_type = "SourceBuffer" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SourceBuffer` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub type SourceBuffer; + #[cfg(feature = "SourceBufferAppendMode")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SourceBuffer" , js_name = mode ) ] + #[doc = "Getter for the `mode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/mode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `SourceBufferAppendMode`*"] + pub fn mode(this: &SourceBuffer) -> SourceBufferAppendMode; + #[cfg(feature = "SourceBufferAppendMode")] + # [ wasm_bindgen ( structural , method , setter , js_class = "SourceBuffer" , js_name = mode ) ] + #[doc = "Setter for the `mode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/mode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `SourceBufferAppendMode`*"] + pub fn set_mode(this: &SourceBuffer, value: SourceBufferAppendMode); + # [ wasm_bindgen ( structural , method , getter , js_class = "SourceBuffer" , js_name = updating ) ] + #[doc = "Getter for the `updating` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/updating)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn updating(this: &SourceBuffer) -> bool; + #[cfg(feature = "TimeRanges")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "SourceBuffer" , js_name = buffered ) ] + #[doc = "Getter for the `buffered` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/buffered)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `TimeRanges`*"] + pub fn buffered(this: &SourceBuffer) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "SourceBuffer" , js_name = timestampOffset ) ] + #[doc = "Getter for the `timestampOffset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/timestampOffset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn timestamp_offset(this: &SourceBuffer) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "SourceBuffer" , js_name = timestampOffset ) ] + #[doc = "Setter for the `timestampOffset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/timestampOffset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn set_timestamp_offset(this: &SourceBuffer, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "SourceBuffer" , js_name = appendWindowStart ) ] + #[doc = "Getter for the `appendWindowStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn append_window_start(this: &SourceBuffer) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "SourceBuffer" , js_name = appendWindowStart ) ] + #[doc = "Setter for the `appendWindowStart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowStart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn set_append_window_start(this: &SourceBuffer, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "SourceBuffer" , js_name = appendWindowEnd ) ] + #[doc = "Getter for the `appendWindowEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn append_window_end(this: &SourceBuffer) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "SourceBuffer" , js_name = appendWindowEnd ) ] + #[doc = "Setter for the `appendWindowEnd` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendWindowEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn set_append_window_end(this: &SourceBuffer, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "SourceBuffer" , js_name = onupdatestart ) ] + #[doc = "Getter for the `onupdatestart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdatestart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn onupdatestart(this: &SourceBuffer) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SourceBuffer" , js_name = onupdatestart ) ] + #[doc = "Setter for the `onupdatestart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdatestart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn set_onupdatestart(this: &SourceBuffer, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SourceBuffer" , js_name = onupdate ) ] + #[doc = "Getter for the `onupdate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn onupdate(this: &SourceBuffer) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SourceBuffer" , js_name = onupdate ) ] + #[doc = "Setter for the `onupdate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn set_onupdate(this: &SourceBuffer, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SourceBuffer" , js_name = onupdateend ) ] + #[doc = "Getter for the `onupdateend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdateend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn onupdateend(this: &SourceBuffer) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SourceBuffer" , js_name = onupdateend ) ] + #[doc = "Setter for the `onupdateend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onupdateend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn set_onupdateend(this: &SourceBuffer, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SourceBuffer" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn onerror(this: &SourceBuffer) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SourceBuffer" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn set_onerror(this: &SourceBuffer, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SourceBuffer" , js_name = onabort ) ] + #[doc = "Getter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn onabort(this: &SourceBuffer) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SourceBuffer" , js_name = onabort ) ] + #[doc = "Setter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn set_onabort(this: &SourceBuffer, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( catch , method , structural , js_class = "SourceBuffer" , js_name = abort ) ] + #[doc = "The `abort()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/abort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn abort(this: &SourceBuffer) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SourceBuffer" , js_name = appendBuffer ) ] + #[doc = "The `appendBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn append_buffer_with_array_buffer( + this: &SourceBuffer, + data: &::js_sys::ArrayBuffer, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SourceBuffer" , js_name = appendBuffer ) ] + #[doc = "The `appendBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn append_buffer_with_array_buffer_view( + this: &SourceBuffer, + data: &::js_sys::Object, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SourceBuffer" , js_name = appendBuffer ) ] + #[doc = "The `appendBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn append_buffer_with_u8_array(this: &SourceBuffer, data: &mut [u8]) + -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SourceBuffer" , js_name = appendBufferAsync ) ] + #[doc = "The `appendBufferAsync()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBufferAsync)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn append_buffer_async_with_array_buffer( + this: &SourceBuffer, + data: &::js_sys::ArrayBuffer, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SourceBuffer" , js_name = appendBufferAsync ) ] + #[doc = "The `appendBufferAsync()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBufferAsync)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn append_buffer_async_with_array_buffer_view( + this: &SourceBuffer, + data: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SourceBuffer" , js_name = appendBufferAsync ) ] + #[doc = "The `appendBufferAsync()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/appendBufferAsync)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn append_buffer_async_with_u8_array( + this: &SourceBuffer, + data: &mut [u8], + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SourceBuffer" , js_name = changeType ) ] + #[doc = "The `changeType()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/changeType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn change_type(this: &SourceBuffer, type_: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SourceBuffer" , js_name = remove ) ] + #[doc = "The `remove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/remove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn remove(this: &SourceBuffer, start: f64, end: f64) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SourceBuffer" , js_name = removeAsync ) ] + #[doc = "The `removeAsync()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBuffer/removeAsync)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`*"] + pub fn remove_async( + this: &SourceBuffer, + start: f64, + end: f64, + ) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_SourceBufferAppendMode.rs b/crates/web-sys/src/features/gen_SourceBufferAppendMode.rs new file mode 100644 index 00000000..21eb0db9 --- /dev/null +++ b/crates/web-sys/src/features/gen_SourceBufferAppendMode.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `SourceBufferAppendMode` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `SourceBufferAppendMode`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum SourceBufferAppendMode { + Segments = "segments", + Sequence = "sequence", +} diff --git a/crates/web-sys/src/features/gen_SourceBufferList.rs b/crates/web-sys/src/features/gen_SourceBufferList.rs new file mode 100644 index 00000000..98f34635 --- /dev/null +++ b/crates/web-sys/src/features/gen_SourceBufferList.rs @@ -0,0 +1,57 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = SourceBufferList , typescript_type = "SourceBufferList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SourceBufferList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"] + pub type SourceBufferList; + # [ wasm_bindgen ( structural , method , getter , js_class = "SourceBufferList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"] + pub fn length(this: &SourceBufferList) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "SourceBufferList" , js_name = onaddsourcebuffer ) ] + #[doc = "Getter for the `onaddsourcebuffer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onaddsourcebuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"] + pub fn onaddsourcebuffer(this: &SourceBufferList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SourceBufferList" , js_name = onaddsourcebuffer ) ] + #[doc = "Setter for the `onaddsourcebuffer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onaddsourcebuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"] + pub fn set_onaddsourcebuffer(this: &SourceBufferList, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SourceBufferList" , js_name = onremovesourcebuffer ) ] + #[doc = "Getter for the `onremovesourcebuffer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onremovesourcebuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"] + pub fn onremovesourcebuffer(this: &SourceBufferList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SourceBufferList" , js_name = onremovesourcebuffer ) ] + #[doc = "Setter for the `onremovesourcebuffer` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SourceBufferList/onremovesourcebuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBufferList`*"] + pub fn set_onremovesourcebuffer(this: &SourceBufferList, value: Option<&::js_sys::Function>); + #[cfg(feature = "SourceBuffer")] + #[wasm_bindgen(method, structural, js_class = "SourceBufferList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SourceBuffer`, `SourceBufferList`*"] + pub fn get(this: &SourceBufferList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_SpeechGrammar.rs b/crates/web-sys/src/features/gen_SpeechGrammar.rs new file mode 100644 index 00000000..c9ad3590 --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechGrammar.rs @@ -0,0 +1,49 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SpeechGrammar , typescript_type = "SpeechGrammar" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechGrammar` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"] + pub type SpeechGrammar; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "SpeechGrammar" , js_name = src ) ] + #[doc = "Getter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"] + pub fn src(this: &SpeechGrammar) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "SpeechGrammar" , js_name = src ) ] + #[doc = "Setter for the `src` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/src)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"] + pub fn set_src(this: &SpeechGrammar, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "SpeechGrammar" , js_name = weight ) ] + #[doc = "Getter for the `weight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/weight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"] + pub fn weight(this: &SpeechGrammar) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "SpeechGrammar" , js_name = weight ) ] + #[doc = "Setter for the `weight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/weight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"] + pub fn set_weight(this: &SpeechGrammar, value: f32) -> Result<(), JsValue>; + #[wasm_bindgen(catch, constructor, js_class = "SpeechGrammar")] + #[doc = "The `new SpeechGrammar(..)` constructor, creating a new instance of `SpeechGrammar`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/SpeechGrammar)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`*"] + pub fn new() -> Result; +} diff --git a/crates/web-sys/src/features/gen_SpeechGrammarList.rs b/crates/web-sys/src/features/gen_SpeechGrammarList.rs new file mode 100644 index 00000000..fdfafbab --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechGrammarList.rs @@ -0,0 +1,86 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SpeechGrammarList , typescript_type = "SpeechGrammarList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechGrammarList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] + pub type SpeechGrammarList; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechGrammarList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] + pub fn length(this: &SpeechGrammarList) -> u32; + #[wasm_bindgen(catch, constructor, js_class = "SpeechGrammarList")] + #[doc = "The `new SpeechGrammarList(..)` constructor, creating a new instance of `SpeechGrammarList`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/SpeechGrammarList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] + pub fn new() -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "SpeechGrammarList" , js_name = addFromString ) ] + #[doc = "The `addFromString()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/addFromString)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] + pub fn add_from_string(this: &SpeechGrammarList, string: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SpeechGrammarList" , js_name = addFromString ) ] + #[doc = "The `addFromString()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/addFromString)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] + pub fn add_from_string_with_weight( + this: &SpeechGrammarList, + string: &str, + weight: f32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SpeechGrammarList" , js_name = addFromURI ) ] + #[doc = "The `addFromURI()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/addFromURI)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] + pub fn add_from_uri(this: &SpeechGrammarList, src: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SpeechGrammarList" , js_name = addFromURI ) ] + #[doc = "The `addFromURI()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/addFromURI)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`*"] + pub fn add_from_uri_with_weight( + this: &SpeechGrammarList, + src: &str, + weight: f32, + ) -> Result<(), JsValue>; + #[cfg(feature = "SpeechGrammar")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SpeechGrammarList" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammarList/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`, `SpeechGrammarList`*"] + pub fn item(this: &SpeechGrammarList, index: u32) -> Result; + #[cfg(feature = "SpeechGrammar")] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SpeechGrammarList", + indexing_getter + )] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechGrammar`, `SpeechGrammarList`*"] + pub fn get(this: &SpeechGrammarList, index: u32) -> Result; +} diff --git a/crates/web-sys/src/features/gen_SpeechRecognition.rs b/crates/web-sys/src/features/gen_SpeechRecognition.rs new file mode 100644 index 00000000..17924de7 --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechRecognition.rs @@ -0,0 +1,291 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = SpeechRecognition , typescript_type = "SpeechRecognition" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechRecognition` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub type SpeechRecognition; + #[cfg(feature = "SpeechGrammarList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognition" , js_name = grammars ) ] + #[doc = "Getter for the `grammars` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/grammars)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`, `SpeechRecognition`*"] + pub fn grammars(this: &SpeechRecognition) -> SpeechGrammarList; + #[cfg(feature = "SpeechGrammarList")] + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechRecognition" , js_name = grammars ) ] + #[doc = "Setter for the `grammars` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/grammars)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechGrammarList`, `SpeechRecognition`*"] + pub fn set_grammars(this: &SpeechRecognition, value: &SpeechGrammarList); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognition" , js_name = lang ) ] + #[doc = "Getter for the `lang` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/lang)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn lang(this: &SpeechRecognition) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechRecognition" , js_name = lang ) ] + #[doc = "Setter for the `lang` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/lang)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn set_lang(this: &SpeechRecognition, value: &str); + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "SpeechRecognition" , js_name = continuous ) ] + #[doc = "Getter for the `continuous` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/continuous)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn continuous(this: &SpeechRecognition) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "SpeechRecognition" , js_name = continuous ) ] + #[doc = "Setter for the `continuous` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/continuous)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn set_continuous(this: &SpeechRecognition, value: bool) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognition" , js_name = interimResults ) ] + #[doc = "Getter for the `interimResults` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/interimResults)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn interim_results(this: &SpeechRecognition) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechRecognition" , js_name = interimResults ) ] + #[doc = "Setter for the `interimResults` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/interimResults)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn set_interim_results(this: &SpeechRecognition, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognition" , js_name = maxAlternatives ) ] + #[doc = "Getter for the `maxAlternatives` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/maxAlternatives)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn max_alternatives(this: &SpeechRecognition) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechRecognition" , js_name = maxAlternatives ) ] + #[doc = "Setter for the `maxAlternatives` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/maxAlternatives)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn set_max_alternatives(this: &SpeechRecognition, value: u32); + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "SpeechRecognition" , js_name = serviceURI ) ] + #[doc = "Getter for the `serviceURI` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/serviceURI)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn service_uri(this: &SpeechRecognition) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "SpeechRecognition" , js_name = serviceURI ) ] + #[doc = "Setter for the `serviceURI` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/serviceURI)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn set_service_uri(this: &SpeechRecognition, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognition" , js_name = onaudiostart ) ] + #[doc = "Getter for the `onaudiostart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onaudiostart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn onaudiostart(this: &SpeechRecognition) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechRecognition" , js_name = onaudiostart ) ] + #[doc = "Setter for the `onaudiostart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onaudiostart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn set_onaudiostart(this: &SpeechRecognition, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognition" , js_name = onsoundstart ) ] + #[doc = "Getter for the `onsoundstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onsoundstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn onsoundstart(this: &SpeechRecognition) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechRecognition" , js_name = onsoundstart ) ] + #[doc = "Setter for the `onsoundstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onsoundstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn set_onsoundstart(this: &SpeechRecognition, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognition" , js_name = onspeechstart ) ] + #[doc = "Getter for the `onspeechstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onspeechstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn onspeechstart(this: &SpeechRecognition) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechRecognition" , js_name = onspeechstart ) ] + #[doc = "Setter for the `onspeechstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onspeechstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn set_onspeechstart(this: &SpeechRecognition, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognition" , js_name = onspeechend ) ] + #[doc = "Getter for the `onspeechend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onspeechend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn onspeechend(this: &SpeechRecognition) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechRecognition" , js_name = onspeechend ) ] + #[doc = "Setter for the `onspeechend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onspeechend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn set_onspeechend(this: &SpeechRecognition, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognition" , js_name = onsoundend ) ] + #[doc = "Getter for the `onsoundend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onsoundend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn onsoundend(this: &SpeechRecognition) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechRecognition" , js_name = onsoundend ) ] + #[doc = "Setter for the `onsoundend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onsoundend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn set_onsoundend(this: &SpeechRecognition, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognition" , js_name = onaudioend ) ] + #[doc = "Getter for the `onaudioend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onaudioend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn onaudioend(this: &SpeechRecognition) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechRecognition" , js_name = onaudioend ) ] + #[doc = "Setter for the `onaudioend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onaudioend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn set_onaudioend(this: &SpeechRecognition, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognition" , js_name = onresult ) ] + #[doc = "Getter for the `onresult` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onresult)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn onresult(this: &SpeechRecognition) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechRecognition" , js_name = onresult ) ] + #[doc = "Setter for the `onresult` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onresult)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn set_onresult(this: &SpeechRecognition, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognition" , js_name = onnomatch ) ] + #[doc = "Getter for the `onnomatch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onnomatch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn onnomatch(this: &SpeechRecognition) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechRecognition" , js_name = onnomatch ) ] + #[doc = "Setter for the `onnomatch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onnomatch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn set_onnomatch(this: &SpeechRecognition, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognition" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn onerror(this: &SpeechRecognition) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechRecognition" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn set_onerror(this: &SpeechRecognition, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognition" , js_name = onstart ) ] + #[doc = "Getter for the `onstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn onstart(this: &SpeechRecognition) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechRecognition" , js_name = onstart ) ] + #[doc = "Setter for the `onstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn set_onstart(this: &SpeechRecognition, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognition" , js_name = onend ) ] + #[doc = "Getter for the `onend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn onend(this: &SpeechRecognition) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechRecognition" , js_name = onend ) ] + #[doc = "Setter for the `onend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/onend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn set_onend(this: &SpeechRecognition, value: Option<&::js_sys::Function>); + #[wasm_bindgen(catch, constructor, js_class = "SpeechRecognition")] + #[doc = "The `new SpeechRecognition(..)` constructor, creating a new instance of `SpeechRecognition`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/SpeechRecognition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn new() -> Result; + # [ wasm_bindgen ( method , structural , js_class = "SpeechRecognition" , js_name = abort ) ] + #[doc = "The `abort()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/abort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn abort(this: &SpeechRecognition); + # [ wasm_bindgen ( catch , method , structural , js_class = "SpeechRecognition" , js_name = start ) ] + #[doc = "The `start()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn start(this: &SpeechRecognition) -> Result<(), JsValue>; + #[cfg(feature = "MediaStream")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SpeechRecognition" , js_name = start ) ] + #[doc = "The `start()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaStream`, `SpeechRecognition`*"] + pub fn start_with_stream(this: &SpeechRecognition, stream: &MediaStream) + -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "SpeechRecognition" , js_name = stop ) ] + #[doc = "The `stop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition/stop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognition`*"] + pub fn stop(this: &SpeechRecognition); +} diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionAlternative.rs b/crates/web-sys/src/features/gen_SpeechRecognitionAlternative.rs new file mode 100644 index 00000000..917404b1 --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechRecognitionAlternative.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SpeechRecognitionAlternative , typescript_type = "SpeechRecognitionAlternative" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechRecognitionAlternative` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionAlternative)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`*"] + pub type SpeechRecognitionAlternative; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognitionAlternative" , js_name = transcript ) ] + #[doc = "Getter for the `transcript` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionAlternative/transcript)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`*"] + pub fn transcript(this: &SpeechRecognitionAlternative) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognitionAlternative" , js_name = confidence ) ] + #[doc = "Getter for the `confidence` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionAlternative/confidence)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`*"] + pub fn confidence(this: &SpeechRecognitionAlternative) -> f32; +} diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionError.rs b/crates/web-sys/src/features/gen_SpeechRecognitionError.rs new file mode 100644 index 00000000..a32ef47a --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechRecognitionError.rs @@ -0,0 +1,47 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = SpeechRecognitionError , typescript_type = "SpeechRecognitionError" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechRecognitionError` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionError`*"] + pub type SpeechRecognitionError; + #[cfg(feature = "SpeechRecognitionErrorCode")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognitionError" , js_name = error ) ] + #[doc = "Getter for the `error` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionError/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionError`, `SpeechRecognitionErrorCode`*"] + pub fn error(this: &SpeechRecognitionError) -> SpeechRecognitionErrorCode; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognitionError" , js_name = message ) ] + #[doc = "Getter for the `message` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionError/message)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionError`*"] + pub fn message(this: &SpeechRecognitionError) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "SpeechRecognitionError")] + #[doc = "The `new SpeechRecognitionError(..)` constructor, creating a new instance of `SpeechRecognitionError`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionError/SpeechRecognitionError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionError`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "SpeechRecognitionErrorInit")] + #[wasm_bindgen(catch, constructor, js_class = "SpeechRecognitionError")] + #[doc = "The `new SpeechRecognitionError(..)` constructor, creating a new instance of `SpeechRecognitionError`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionError/SpeechRecognitionError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionError`, `SpeechRecognitionErrorInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &SpeechRecognitionErrorInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionErrorCode.rs b/crates/web-sys/src/features/gen_SpeechRecognitionErrorCode.rs new file mode 100644 index 00000000..4f728469 --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechRecognitionErrorCode.rs @@ -0,0 +1,17 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `SpeechRecognitionErrorCode` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorCode`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum SpeechRecognitionErrorCode { + NoSpeech = "no-speech", + Aborted = "aborted", + AudioCapture = "audio-capture", + Network = "network", + NotAllowed = "not-allowed", + ServiceNotAllowed = "service-not-allowed", + BadGrammar = "bad-grammar", + LanguageNotSupported = "language-not-supported", +} diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionErrorInit.rs b/crates/web-sys/src/features/gen_SpeechRecognitionErrorInit.rs new file mode 100644 index 00000000..12f3ad21 --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechRecognitionErrorInit.rs @@ -0,0 +1,104 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SpeechRecognitionErrorInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechRecognitionErrorInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] + pub type SpeechRecognitionErrorInit; +} +impl SpeechRecognitionErrorInit { + #[doc = "Construct a new `SpeechRecognitionErrorInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "SpeechRecognitionErrorCode")] + #[doc = "Change the `error` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorCode`, `SpeechRecognitionErrorInit`*"] + pub fn error(&mut self, val: SpeechRecognitionErrorCode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `message` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionErrorInit`*"] + pub fn message(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("message"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionEvent.rs b/crates/web-sys/src/features/gen_SpeechRecognitionEvent.rs new file mode 100644 index 00000000..352f4cb1 --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechRecognitionEvent.rs @@ -0,0 +1,62 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = SpeechRecognitionEvent , typescript_type = "SpeechRecognitionEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechRecognitionEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEvent`*"] + pub type SpeechRecognitionEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognitionEvent" , js_name = resultIndex ) ] + #[doc = "Getter for the `resultIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent/resultIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEvent`*"] + pub fn result_index(this: &SpeechRecognitionEvent) -> u32; + #[cfg(feature = "SpeechRecognitionResultList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognitionEvent" , js_name = results ) ] + #[doc = "Getter for the `results` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent/results)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEvent`, `SpeechRecognitionResultList`*"] + pub fn results(this: &SpeechRecognitionEvent) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognitionEvent" , js_name = interpretation ) ] + #[doc = "Getter for the `interpretation` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent/interpretation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEvent`*"] + pub fn interpretation(this: &SpeechRecognitionEvent) -> ::wasm_bindgen::JsValue; + #[cfg(feature = "Document")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognitionEvent" , js_name = emma ) ] + #[doc = "Getter for the `emma` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent/emma)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `SpeechRecognitionEvent`*"] + pub fn emma(this: &SpeechRecognitionEvent) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "SpeechRecognitionEvent")] + #[doc = "The `new SpeechRecognitionEvent(..)` constructor, creating a new instance of `SpeechRecognitionEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent/SpeechRecognitionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "SpeechRecognitionEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "SpeechRecognitionEvent")] + #[doc = "The `new SpeechRecognitionEvent(..)` constructor, creating a new instance of `SpeechRecognitionEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionEvent/SpeechRecognitionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEvent`, `SpeechRecognitionEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &SpeechRecognitionEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionEventInit.rs b/crates/web-sys/src/features/gen_SpeechRecognitionEventInit.rs new file mode 100644 index 00000000..f4dc4e7d --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechRecognitionEventInit.rs @@ -0,0 +1,139 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SpeechRecognitionEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechRecognitionEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] + pub type SpeechRecognitionEventInit; +} +impl SpeechRecognitionEventInit { + #[doc = "Construct a new `SpeechRecognitionEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Document")] + #[doc = "Change the `emma` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `SpeechRecognitionEventInit`*"] + pub fn emma(&mut self, val: Option<&Document>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("emma"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `interpretation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] + pub fn interpretation(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("interpretation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `resultIndex` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`*"] + pub fn result_index(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("resultIndex"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "SpeechRecognitionResultList")] + #[doc = "Change the `results` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionEventInit`, `SpeechRecognitionResultList`*"] + pub fn results(&mut self, val: Option<&SpeechRecognitionResultList>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("results"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionResult.rs b/crates/web-sys/src/features/gen_SpeechRecognitionResult.rs new file mode 100644 index 00000000..f0be76a1 --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechRecognitionResult.rs @@ -0,0 +1,49 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SpeechRecognitionResult , typescript_type = "SpeechRecognitionResult" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechRecognitionResult` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResult)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`*"] + pub type SpeechRecognitionResult; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognitionResult" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResult/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`*"] + pub fn length(this: &SpeechRecognitionResult) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognitionResult" , js_name = isFinal ) ] + #[doc = "Getter for the `isFinal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResult/isFinal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`*"] + pub fn is_final(this: &SpeechRecognitionResult) -> bool; + #[cfg(feature = "SpeechRecognitionAlternative")] + # [ wasm_bindgen ( method , structural , js_class = "SpeechRecognitionResult" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResult/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`, `SpeechRecognitionResult`*"] + pub fn item(this: &SpeechRecognitionResult, index: u32) -> SpeechRecognitionAlternative; + #[cfg(feature = "SpeechRecognitionAlternative")] + #[wasm_bindgen( + method, + structural, + js_class = "SpeechRecognitionResult", + indexing_getter + )] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionAlternative`, `SpeechRecognitionResult`*"] + pub fn get(this: &SpeechRecognitionResult, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_SpeechRecognitionResultList.rs b/crates/web-sys/src/features/gen_SpeechRecognitionResultList.rs new file mode 100644 index 00000000..deead6fc --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechRecognitionResultList.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SpeechRecognitionResultList , typescript_type = "SpeechRecognitionResultList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechRecognitionResultList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResultList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResultList`*"] + pub type SpeechRecognitionResultList; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechRecognitionResultList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResultList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResultList`*"] + pub fn length(this: &SpeechRecognitionResultList) -> u32; + #[cfg(feature = "SpeechRecognitionResult")] + # [ wasm_bindgen ( method , structural , js_class = "SpeechRecognitionResultList" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognitionResultList/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`, `SpeechRecognitionResultList`*"] + pub fn item(this: &SpeechRecognitionResultList, index: u32) -> SpeechRecognitionResult; + #[cfg(feature = "SpeechRecognitionResult")] + #[wasm_bindgen( + method, + structural, + js_class = "SpeechRecognitionResultList", + indexing_getter + )] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechRecognitionResult`, `SpeechRecognitionResultList`*"] + pub fn get(this: &SpeechRecognitionResultList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_SpeechSynthesis.rs b/crates/web-sys/src/features/gen_SpeechSynthesis.rs new file mode 100644 index 00000000..03daa2fc --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechSynthesis.rs @@ -0,0 +1,85 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = SpeechSynthesis , typescript_type = "SpeechSynthesis" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechSynthesis` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] + pub type SpeechSynthesis; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesis" , js_name = pending ) ] + #[doc = "Getter for the `pending` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/pending)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] + pub fn pending(this: &SpeechSynthesis) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesis" , js_name = speaking ) ] + #[doc = "Getter for the `speaking` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/speaking)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] + pub fn speaking(this: &SpeechSynthesis) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesis" , js_name = paused ) ] + #[doc = "Getter for the `paused` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/paused)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] + pub fn paused(this: &SpeechSynthesis) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesis" , js_name = onvoiceschanged ) ] + #[doc = "Getter for the `onvoiceschanged` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/onvoiceschanged)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] + pub fn onvoiceschanged(this: &SpeechSynthesis) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechSynthesis" , js_name = onvoiceschanged ) ] + #[doc = "Setter for the `onvoiceschanged` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/onvoiceschanged)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] + pub fn set_onvoiceschanged(this: &SpeechSynthesis, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( method , structural , js_class = "SpeechSynthesis" , js_name = cancel ) ] + #[doc = "The `cancel()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/cancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] + pub fn cancel(this: &SpeechSynthesis); + # [ wasm_bindgen ( method , structural , js_class = "SpeechSynthesis" , js_name = getVoices ) ] + #[doc = "The `getVoices()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/getVoices)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] + pub fn get_voices(this: &SpeechSynthesis) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "SpeechSynthesis" , js_name = pause ) ] + #[doc = "The `pause()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/pause)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] + pub fn pause(this: &SpeechSynthesis); + # [ wasm_bindgen ( method , structural , js_class = "SpeechSynthesis" , js_name = resume ) ] + #[doc = "The `resume()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/resume)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`*"] + pub fn resume(this: &SpeechSynthesis); + #[cfg(feature = "SpeechSynthesisUtterance")] + # [ wasm_bindgen ( method , structural , js_class = "SpeechSynthesis" , js_name = speak ) ] + #[doc = "The `speak()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesis/speak)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`, `SpeechSynthesisUtterance`*"] + pub fn speak(this: &SpeechSynthesis, utterance: &SpeechSynthesisUtterance); +} diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisErrorCode.rs b/crates/web-sys/src/features/gen_SpeechSynthesisErrorCode.rs new file mode 100644 index 00000000..f6cf1bcb --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechSynthesisErrorCode.rs @@ -0,0 +1,20 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `SpeechSynthesisErrorCode` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorCode`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum SpeechSynthesisErrorCode { + Canceled = "canceled", + Interrupted = "interrupted", + AudioBusy = "audio-busy", + AudioHardware = "audio-hardware", + Network = "network", + SynthesisUnavailable = "synthesis-unavailable", + SynthesisFailed = "synthesis-failed", + LanguageUnavailable = "language-unavailable", + VoiceUnavailable = "voice-unavailable", + TextTooLong = "text-too-long", + InvalidArgument = "invalid-argument", +} diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisErrorEvent.rs b/crates/web-sys/src/features/gen_SpeechSynthesisErrorEvent.rs new file mode 100644 index 00000000..45434897 --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechSynthesisErrorEvent.rs @@ -0,0 +1,33 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SpeechSynthesisEvent , extends = Event , extends = :: js_sys :: Object , js_name = SpeechSynthesisErrorEvent , typescript_type = "SpeechSynthesisErrorEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechSynthesisErrorEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisErrorEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEvent`*"] + pub type SpeechSynthesisErrorEvent; + #[cfg(feature = "SpeechSynthesisErrorCode")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisErrorEvent" , js_name = error ) ] + #[doc = "Getter for the `error` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisErrorEvent/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorCode`, `SpeechSynthesisErrorEvent`*"] + pub fn error(this: &SpeechSynthesisErrorEvent) -> SpeechSynthesisErrorCode; + #[cfg(feature = "SpeechSynthesisErrorEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "SpeechSynthesisErrorEvent")] + #[doc = "The `new SpeechSynthesisErrorEvent(..)` constructor, creating a new instance of `SpeechSynthesisErrorEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisErrorEvent/SpeechSynthesisErrorEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEvent`, `SpeechSynthesisErrorEventInit`*"] + pub fn new( + type_: &str, + event_init_dict: &SpeechSynthesisErrorEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisErrorEventInit.rs b/crates/web-sys/src/features/gen_SpeechSynthesisErrorEventInit.rs new file mode 100644 index 00000000..2e2cabe7 --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechSynthesisErrorEventInit.rs @@ -0,0 +1,175 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SpeechSynthesisErrorEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechSynthesisErrorEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] + pub type SpeechSynthesisErrorEventInit; +} +impl SpeechSynthesisErrorEventInit { + #[cfg(all( + feature = "SpeechSynthesisErrorCode", + feature = "SpeechSynthesisUtterance", + ))] + #[doc = "Construct a new `SpeechSynthesisErrorEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorCode`, `SpeechSynthesisErrorEventInit`, `SpeechSynthesisUtterance`*"] + pub fn new(utterance: &SpeechSynthesisUtterance, error: SpeechSynthesisErrorCode) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.utterance(utterance); + ret.error(error); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `charIndex` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] + pub fn char_index(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("charIndex"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `charLength` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] + pub fn char_length(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("charLength"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `elapsedTime` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] + pub fn elapsed_time(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("elapsedTime"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "SpeechSynthesisUtterance")] + #[doc = "Change the `utterance` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorEventInit`, `SpeechSynthesisUtterance`*"] + pub fn utterance(&mut self, val: &SpeechSynthesisUtterance) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("utterance"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "SpeechSynthesisErrorCode")] + #[doc = "Change the `error` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisErrorCode`, `SpeechSynthesisErrorEventInit`*"] + pub fn error(&mut self, val: SpeechSynthesisErrorCode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("error"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisEvent.rs b/crates/web-sys/src/features/gen_SpeechSynthesisEvent.rs new file mode 100644 index 00000000..57061e21 --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechSynthesisEvent.rs @@ -0,0 +1,61 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = SpeechSynthesisEvent , typescript_type = "SpeechSynthesisEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechSynthesisEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] + pub type SpeechSynthesisEvent; + #[cfg(feature = "SpeechSynthesisUtterance")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = utterance ) ] + #[doc = "Getter for the `utterance` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/utterance)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`, `SpeechSynthesisUtterance`*"] + pub fn utterance(this: &SpeechSynthesisEvent) -> SpeechSynthesisUtterance; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = charIndex ) ] + #[doc = "Getter for the `charIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/charIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] + pub fn char_index(this: &SpeechSynthesisEvent) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = charLength ) ] + #[doc = "Getter for the `charLength` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/charLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] + pub fn char_length(this: &SpeechSynthesisEvent) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = elapsedTime ) ] + #[doc = "Getter for the `elapsedTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/elapsedTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] + pub fn elapsed_time(this: &SpeechSynthesisEvent) -> f32; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisEvent" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`*"] + pub fn name(this: &SpeechSynthesisEvent) -> Option; + #[cfg(feature = "SpeechSynthesisEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "SpeechSynthesisEvent")] + #[doc = "The `new SpeechSynthesisEvent(..)` constructor, creating a new instance of `SpeechSynthesisEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisEvent/SpeechSynthesisEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEvent`, `SpeechSynthesisEventInit`*"] + pub fn new( + type_: &str, + event_init_dict: &SpeechSynthesisEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisEventInit.rs b/crates/web-sys/src/features/gen_SpeechSynthesisEventInit.rs new file mode 100644 index 00000000..d656bfa9 --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechSynthesisEventInit.rs @@ -0,0 +1,157 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SpeechSynthesisEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechSynthesisEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] + pub type SpeechSynthesisEventInit; +} +impl SpeechSynthesisEventInit { + #[cfg(feature = "SpeechSynthesisUtterance")] + #[doc = "Construct a new `SpeechSynthesisEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`, `SpeechSynthesisUtterance`*"] + pub fn new(utterance: &SpeechSynthesisUtterance) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.utterance(utterance); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `charIndex` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] + pub fn char_index(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("charIndex"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `charLength` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] + pub fn char_length(&mut self, val: Option) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("charLength"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `elapsedTime` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] + pub fn elapsed_time(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("elapsedTime"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "SpeechSynthesisUtterance")] + #[doc = "Change the `utterance` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisEventInit`, `SpeechSynthesisUtterance`*"] + pub fn utterance(&mut self, val: &SpeechSynthesisUtterance) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("utterance"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisUtterance.rs b/crates/web-sys/src/features/gen_SpeechSynthesisUtterance.rs new file mode 100644 index 00000000..7c58f6c9 --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechSynthesisUtterance.rs @@ -0,0 +1,212 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = SpeechSynthesisUtterance , typescript_type = "SpeechSynthesisUtterance" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechSynthesisUtterance` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub type SpeechSynthesisUtterance; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = text ) ] + #[doc = "Getter for the `text` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn text(this: &SpeechSynthesisUtterance) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = text ) ] + #[doc = "Setter for the `text` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn set_text(this: &SpeechSynthesisUtterance, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = lang ) ] + #[doc = "Getter for the `lang` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/lang)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn lang(this: &SpeechSynthesisUtterance) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = lang ) ] + #[doc = "Setter for the `lang` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/lang)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn set_lang(this: &SpeechSynthesisUtterance, value: &str); + #[cfg(feature = "SpeechSynthesisVoice")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = voice ) ] + #[doc = "Getter for the `voice` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/voice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`, `SpeechSynthesisVoice`*"] + pub fn voice(this: &SpeechSynthesisUtterance) -> Option; + #[cfg(feature = "SpeechSynthesisVoice")] + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = voice ) ] + #[doc = "Setter for the `voice` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/voice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`, `SpeechSynthesisVoice`*"] + pub fn set_voice(this: &SpeechSynthesisUtterance, value: Option<&SpeechSynthesisVoice>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = volume ) ] + #[doc = "Getter for the `volume` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/volume)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn volume(this: &SpeechSynthesisUtterance) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = volume ) ] + #[doc = "Setter for the `volume` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/volume)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn set_volume(this: &SpeechSynthesisUtterance, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = rate ) ] + #[doc = "Getter for the `rate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/rate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn rate(this: &SpeechSynthesisUtterance) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = rate ) ] + #[doc = "Setter for the `rate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/rate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn set_rate(this: &SpeechSynthesisUtterance, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = pitch ) ] + #[doc = "Getter for the `pitch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/pitch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn pitch(this: &SpeechSynthesisUtterance) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = pitch ) ] + #[doc = "Setter for the `pitch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/pitch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn set_pitch(this: &SpeechSynthesisUtterance, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onstart ) ] + #[doc = "Getter for the `onstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn onstart(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onstart ) ] + #[doc = "Setter for the `onstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn set_onstart(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onend ) ] + #[doc = "Getter for the `onend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn onend(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onend ) ] + #[doc = "Setter for the `onend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn set_onend(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn onerror(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn set_onerror(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onpause ) ] + #[doc = "Getter for the `onpause` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onpause)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn onpause(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onpause ) ] + #[doc = "Setter for the `onpause` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onpause)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn set_onpause(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onresume ) ] + #[doc = "Getter for the `onresume` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onresume)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn onresume(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onresume ) ] + #[doc = "Setter for the `onresume` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onresume)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn set_onresume(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onmark ) ] + #[doc = "Getter for the `onmark` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onmark)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn onmark(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onmark ) ] + #[doc = "Setter for the `onmark` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onmark)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn set_onmark(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisUtterance" , js_name = onboundary ) ] + #[doc = "Getter for the `onboundary` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onboundary)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn onboundary(this: &SpeechSynthesisUtterance) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SpeechSynthesisUtterance" , js_name = onboundary ) ] + #[doc = "Setter for the `onboundary` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/onboundary)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn set_onboundary(this: &SpeechSynthesisUtterance, value: Option<&::js_sys::Function>); + #[wasm_bindgen(catch, constructor, js_class = "SpeechSynthesisUtterance")] + #[doc = "The `new SpeechSynthesisUtterance(..)` constructor, creating a new instance of `SpeechSynthesisUtterance`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/SpeechSynthesisUtterance)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "SpeechSynthesisUtterance")] + #[doc = "The `new SpeechSynthesisUtterance(..)` constructor, creating a new instance of `SpeechSynthesisUtterance`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisUtterance/SpeechSynthesisUtterance)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisUtterance`*"] + pub fn new_with_text(text: &str) -> Result; +} diff --git a/crates/web-sys/src/features/gen_SpeechSynthesisVoice.rs b/crates/web-sys/src/features/gen_SpeechSynthesisVoice.rs new file mode 100644 index 00000000..3b106346 --- /dev/null +++ b/crates/web-sys/src/features/gen_SpeechSynthesisVoice.rs @@ -0,0 +1,49 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SpeechSynthesisVoice , typescript_type = "SpeechSynthesisVoice" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SpeechSynthesisVoice` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"] + pub type SpeechSynthesisVoice; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = voiceURI ) ] + #[doc = "Getter for the `voiceURI` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/voiceURI)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"] + pub fn voice_uri(this: &SpeechSynthesisVoice) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"] + pub fn name(this: &SpeechSynthesisVoice) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = lang ) ] + #[doc = "Getter for the `lang` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/lang)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"] + pub fn lang(this: &SpeechSynthesisVoice) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = localService ) ] + #[doc = "Getter for the `localService` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/localService)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"] + pub fn local_service(this: &SpeechSynthesisVoice) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "SpeechSynthesisVoice" , js_name = default ) ] + #[doc = "Getter for the `default` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SpeechSynthesisVoice/default)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesisVoice`*"] + pub fn default(this: &SpeechSynthesisVoice) -> bool; +} diff --git a/crates/web-sys/src/features/gen_StereoPannerNode.rs b/crates/web-sys/src/features/gen_StereoPannerNode.rs new file mode 100644 index 00000000..2623e837 --- /dev/null +++ b/crates/web-sys/src/features/gen_StereoPannerNode.rs @@ -0,0 +1,41 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = StereoPannerNode , typescript_type = "StereoPannerNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `StereoPannerNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StereoPannerNode`*"] + pub type StereoPannerNode; + #[cfg(feature = "AudioParam")] + # [ wasm_bindgen ( structural , method , getter , js_class = "StereoPannerNode" , js_name = pan ) ] + #[doc = "Getter for the `pan` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode/pan)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AudioParam`, `StereoPannerNode`*"] + pub fn pan(this: &StereoPannerNode) -> AudioParam; + #[cfg(feature = "BaseAudioContext")] + #[wasm_bindgen(catch, constructor, js_class = "StereoPannerNode")] + #[doc = "The `new StereoPannerNode(..)` constructor, creating a new instance of `StereoPannerNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode/StereoPannerNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `StereoPannerNode`*"] + pub fn new(context: &BaseAudioContext) -> Result; + #[cfg(all(feature = "BaseAudioContext", feature = "StereoPannerOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "StereoPannerNode")] + #[doc = "The `new StereoPannerNode(..)` constructor, creating a new instance of `StereoPannerNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StereoPannerNode/StereoPannerNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `StereoPannerNode`, `StereoPannerOptions`*"] + pub fn new_with_options( + context: &BaseAudioContext, + options: &StereoPannerOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_StereoPannerOptions.rs b/crates/web-sys/src/features/gen_StereoPannerOptions.rs new file mode 100644 index 00000000..e6742b36 --- /dev/null +++ b/crates/web-sys/src/features/gen_StereoPannerOptions.rs @@ -0,0 +1,88 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = StereoPannerOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `StereoPannerOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StereoPannerOptions`*"] + pub type StereoPannerOptions; +} +impl StereoPannerOptions { + #[doc = "Construct a new `StereoPannerOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StereoPannerOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StereoPannerOptions`*"] + pub fn channel_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelCountMode")] + #[doc = "Change the `channelCountMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `StereoPannerOptions`*"] + pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCountMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelInterpretation")] + #[doc = "Change the `channelInterpretation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `StereoPannerOptions`*"] + pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelInterpretation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pan` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StereoPannerOptions`*"] + pub fn pan(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("pan"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Storage.rs b/crates/web-sys/src/features/gen_Storage.rs new file mode 100644 index 00000000..f188951a --- /dev/null +++ b/crates/web-sys/src/features/gen_Storage.rs @@ -0,0 +1,77 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Storage , typescript_type = "Storage" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Storage` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Storage`*"] + pub type Storage; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Storage" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Storage`*"] + pub fn length(this: &Storage) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Storage" , js_name = clear ) ] + #[doc = "The `clear()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/clear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Storage`*"] + pub fn clear(this: &Storage) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Storage" , js_name = getItem ) ] + #[doc = "The `getItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/getItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Storage`*"] + pub fn get_item(this: &Storage, key: &str) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Storage" , js_name = key ) ] + #[doc = "The `key()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/key)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Storage`*"] + pub fn key(this: &Storage, index: u32) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Storage" , js_name = removeItem ) ] + #[doc = "The `removeItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/removeItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Storage`*"] + pub fn remove_item(this: &Storage, key: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Storage" , js_name = setItem ) ] + #[doc = "The `setItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Storage/setItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Storage`*"] + pub fn set_item(this: &Storage, key: &str, value: &str) -> Result<(), JsValue>; + #[wasm_bindgen(catch, method, structural, js_class = "Storage", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Storage`*"] + pub fn get(this: &Storage, key: &str) -> Result, JsValue>; + #[wasm_bindgen(catch, method, structural, js_class = "Storage", indexing_setter)] + #[doc = "Indexing setter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Storage`*"] + pub fn set(this: &Storage, key: &str, value: &str) -> Result<(), JsValue>; + #[wasm_bindgen(catch, method, structural, js_class = "Storage", indexing_deleter)] + #[doc = "Indexing deleter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Storage`*"] + pub fn delete(this: &Storage, key: &str) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_StorageEstimate.rs b/crates/web-sys/src/features/gen_StorageEstimate.rs new file mode 100644 index 00000000..df378be5 --- /dev/null +++ b/crates/web-sys/src/features/gen_StorageEstimate.rs @@ -0,0 +1,48 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = StorageEstimate ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `StorageEstimate` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"] + pub type StorageEstimate; +} +impl StorageEstimate { + #[doc = "Construct a new `StorageEstimate`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `quota` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"] + pub fn quota(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("quota"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `usage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEstimate`*"] + pub fn usage(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("usage"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_StorageEvent.rs b/crates/web-sys/src/features/gen_StorageEvent.rs new file mode 100644 index 00000000..fc7803b6 --- /dev/null +++ b/crates/web-sys/src/features/gen_StorageEvent.rs @@ -0,0 +1,170 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = StorageEvent , typescript_type = "StorageEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `StorageEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] + pub type StorageEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "StorageEvent" , js_name = key ) ] + #[doc = "Getter for the `key` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/key)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] + pub fn key(this: &StorageEvent) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "StorageEvent" , js_name = oldValue ) ] + #[doc = "Getter for the `oldValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/oldValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] + pub fn old_value(this: &StorageEvent) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "StorageEvent" , js_name = newValue ) ] + #[doc = "Getter for the `newValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/newValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] + pub fn new_value(this: &StorageEvent) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "StorageEvent" , js_name = url ) ] + #[doc = "Getter for the `url` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/url)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] + pub fn url(this: &StorageEvent) -> Option; + #[cfg(feature = "Storage")] + # [ wasm_bindgen ( structural , method , getter , js_class = "StorageEvent" , js_name = storageArea ) ] + #[doc = "Getter for the `storageArea` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/storageArea)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Storage`, `StorageEvent`*"] + pub fn storage_area(this: &StorageEvent) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "StorageEvent")] + #[doc = "The `new StorageEvent(..)` constructor, creating a new instance of `StorageEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/StorageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "StorageEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "StorageEvent")] + #[doc = "The `new StorageEvent(..)` constructor, creating a new instance of `StorageEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/StorageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEvent`, `StorageEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &StorageEventInit, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "StorageEvent" , js_name = initStorageEvent ) ] + #[doc = "The `initStorageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] + pub fn init_storage_event(this: &StorageEvent, type_: &str); + # [ wasm_bindgen ( method , structural , js_class = "StorageEvent" , js_name = initStorageEvent ) ] + #[doc = "The `initStorageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] + pub fn init_storage_event_with_can_bubble(this: &StorageEvent, type_: &str, can_bubble: bool); + # [ wasm_bindgen ( method , structural , js_class = "StorageEvent" , js_name = initStorageEvent ) ] + #[doc = "The `initStorageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] + pub fn init_storage_event_with_can_bubble_and_cancelable( + this: &StorageEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + ); + # [ wasm_bindgen ( method , structural , js_class = "StorageEvent" , js_name = initStorageEvent ) ] + #[doc = "The `initStorageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] + pub fn init_storage_event_with_can_bubble_and_cancelable_and_key( + this: &StorageEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + key: Option<&str>, + ); + # [ wasm_bindgen ( method , structural , js_class = "StorageEvent" , js_name = initStorageEvent ) ] + #[doc = "The `initStorageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] + pub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value( + this: &StorageEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + key: Option<&str>, + old_value: Option<&str>, + ); + # [ wasm_bindgen ( method , structural , js_class = "StorageEvent" , js_name = initStorageEvent ) ] + #[doc = "The `initStorageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] + pub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value_and_new_value( + this: &StorageEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + key: Option<&str>, + old_value: Option<&str>, + new_value: Option<&str>, + ); + # [ wasm_bindgen ( method , structural , js_class = "StorageEvent" , js_name = initStorageEvent ) ] + #[doc = "The `initStorageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEvent`*"] + pub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value_and_new_value_and_url( + this: &StorageEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + key: Option<&str>, + old_value: Option<&str>, + new_value: Option<&str>, + url: Option<&str>, + ); + #[cfg(feature = "Storage")] + # [ wasm_bindgen ( method , structural , js_class = "StorageEvent" , js_name = initStorageEvent ) ] + #[doc = "The `initStorageEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageEvent/initStorageEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Storage`, `StorageEvent`*"] + pub fn init_storage_event_with_can_bubble_and_cancelable_and_key_and_old_value_and_new_value_and_url_and_storage_area( + this: &StorageEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + key: Option<&str>, + old_value: Option<&str>, + new_value: Option<&str>, + url: Option<&str>, + storage_area: Option<&Storage>, + ); +} diff --git a/crates/web-sys/src/features/gen_StorageEventInit.rs b/crates/web-sys/src/features/gen_StorageEventInit.rs new file mode 100644 index 00000000..89ec3c70 --- /dev/null +++ b/crates/web-sys/src/features/gen_StorageEventInit.rs @@ -0,0 +1,151 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = StorageEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `StorageEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] + pub type StorageEventInit; +} +impl StorageEventInit { + #[doc = "Construct a new `StorageEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `key` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] + pub fn key(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("key"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `newValue` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] + pub fn new_value(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("newValue"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `oldValue` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] + pub fn old_value(&mut self, val: Option<&str>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("oldValue"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Storage")] + #[doc = "Change the `storageArea` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Storage`, `StorageEventInit`*"] + pub fn storage_area(&mut self, val: Option<&Storage>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("storageArea"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `url` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageEventInit`*"] + pub fn url(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("url"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_StorageManager.rs b/crates/web-sys/src/features/gen_StorageManager.rs new file mode 100644 index 00000000..8d42c2ec --- /dev/null +++ b/crates/web-sys/src/features/gen_StorageManager.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = StorageManager , typescript_type = "StorageManager" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `StorageManager` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageManager)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageManager`*"] + pub type StorageManager; + # [ wasm_bindgen ( catch , method , structural , js_class = "StorageManager" , js_name = estimate ) ] + #[doc = "The `estimate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/estimate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageManager`*"] + pub fn estimate(this: &StorageManager) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "StorageManager" , js_name = persist ) ] + #[doc = "The `persist()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/persist)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageManager`*"] + pub fn persist(this: &StorageManager) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "StorageManager" , js_name = persisted ) ] + #[doc = "The `persisted()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/persisted)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageManager`*"] + pub fn persisted(this: &StorageManager) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_StorageType.rs b/crates/web-sys/src/features/gen_StorageType.rs new file mode 100644 index 00000000..46eea4c2 --- /dev/null +++ b/crates/web-sys/src/features/gen_StorageType.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `StorageType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `StorageType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum StorageType { + Persistent = "persistent", + Temporary = "temporary", + Default = "default", +} diff --git a/crates/web-sys/src/features/gen_StyleRuleChangeEventInit.rs b/crates/web-sys/src/features/gen_StyleRuleChangeEventInit.rs new file mode 100644 index 00000000..53279b6a --- /dev/null +++ b/crates/web-sys/src/features/gen_StyleRuleChangeEventInit.rs @@ -0,0 +1,105 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = StyleRuleChangeEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `StyleRuleChangeEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleRuleChangeEventInit`*"] + pub type StyleRuleChangeEventInit; +} +impl StyleRuleChangeEventInit { + #[doc = "Construct a new `StyleRuleChangeEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleRuleChangeEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleRuleChangeEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleRuleChangeEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleRuleChangeEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "CssRule")] + #[doc = "Change the `rule` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssRule`, `StyleRuleChangeEventInit`*"] + pub fn rule(&mut self, val: Option<&CssRule>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("rule"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "CssStyleSheet")] + #[doc = "Change the `stylesheet` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`, `StyleRuleChangeEventInit`*"] + pub fn stylesheet(&mut self, val: Option<&CssStyleSheet>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("stylesheet"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_StyleSheet.rs b/crates/web-sys/src/features/gen_StyleSheet.rs new file mode 100644 index 00000000..3fc64be9 --- /dev/null +++ b/crates/web-sys/src/features/gen_StyleSheet.rs @@ -0,0 +1,72 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = StyleSheet , typescript_type = "StyleSheet" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `StyleSheet` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] + pub type StyleSheet; + # [ wasm_bindgen ( structural , method , getter , js_class = "StyleSheet" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] + pub fn type_(this: &StyleSheet) -> String; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "StyleSheet" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] + pub fn href(this: &StyleSheet) -> Result, JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , method , getter , js_class = "StyleSheet" , js_name = ownerNode ) ] + #[doc = "Getter for the `ownerNode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/ownerNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `StyleSheet`*"] + pub fn owner_node(this: &StyleSheet) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "StyleSheet" , js_name = parentStyleSheet ) ] + #[doc = "Getter for the `parentStyleSheet` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/parentStyleSheet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] + pub fn parent_style_sheet(this: &StyleSheet) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "StyleSheet" , js_name = title ) ] + #[doc = "Getter for the `title` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/title)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] + pub fn title(this: &StyleSheet) -> Option; + #[cfg(feature = "MediaList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "StyleSheet" , js_name = media ) ] + #[doc = "Getter for the `media` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/media)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaList`, `StyleSheet`*"] + pub fn media(this: &StyleSheet) -> MediaList; + # [ wasm_bindgen ( structural , method , getter , js_class = "StyleSheet" , js_name = disabled ) ] + #[doc = "Getter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] + pub fn disabled(this: &StyleSheet) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "StyleSheet" , js_name = disabled ) ] + #[doc = "Setter for the `disabled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet/disabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheet`*"] + pub fn set_disabled(this: &StyleSheet, value: bool); +} diff --git a/crates/web-sys/src/features/gen_StyleSheetApplicableStateChangeEventInit.rs b/crates/web-sys/src/features/gen_StyleSheetApplicableStateChangeEventInit.rs new file mode 100644 index 00000000..e1ea04b3 --- /dev/null +++ b/crates/web-sys/src/features/gen_StyleSheetApplicableStateChangeEventInit.rs @@ -0,0 +1,108 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = StyleSheetApplicableStateChangeEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `StyleSheetApplicableStateChangeEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] + pub type StyleSheetApplicableStateChangeEventInit; +} +impl StyleSheetApplicableStateChangeEventInit { + #[doc = "Construct a new `StyleSheetApplicableStateChangeEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `applicable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheetApplicableStateChangeEventInit`*"] + pub fn applicable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("applicable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "CssStyleSheet")] + #[doc = "Change the `stylesheet` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`, `StyleSheetApplicableStateChangeEventInit`*"] + pub fn stylesheet(&mut self, val: Option<&CssStyleSheet>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("stylesheet"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_StyleSheetChangeEventInit.rs b/crates/web-sys/src/features/gen_StyleSheetChangeEventInit.rs new file mode 100644 index 00000000..0c2f2232 --- /dev/null +++ b/crates/web-sys/src/features/gen_StyleSheetChangeEventInit.rs @@ -0,0 +1,108 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = StyleSheetChangeEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `StyleSheetChangeEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] + pub type StyleSheetChangeEventInit; +} +impl StyleSheetChangeEventInit { + #[doc = "Construct a new `StyleSheetChangeEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `documentSheet` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheetChangeEventInit`*"] + pub fn document_sheet(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("documentSheet"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "CssStyleSheet")] + #[doc = "Change the `stylesheet` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleSheet`, `StyleSheetChangeEventInit`*"] + pub fn stylesheet(&mut self, val: Option<&CssStyleSheet>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("stylesheet"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_StyleSheetList.rs b/crates/web-sys/src/features/gen_StyleSheetList.rs new file mode 100644 index 00000000..e8be75c5 --- /dev/null +++ b/crates/web-sys/src/features/gen_StyleSheetList.rs @@ -0,0 +1,37 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = StyleSheetList , typescript_type = "StyleSheetList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `StyleSheetList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheetList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheetList`*"] + pub type StyleSheetList; + # [ wasm_bindgen ( structural , method , getter , js_class = "StyleSheetList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheetList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheetList`*"] + pub fn length(this: &StyleSheetList) -> u32; + #[cfg(feature = "StyleSheet")] + # [ wasm_bindgen ( method , structural , js_class = "StyleSheetList" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/StyleSheetList/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheet`, `StyleSheetList`*"] + pub fn item(this: &StyleSheetList, index: u32) -> Option; + #[cfg(feature = "StyleSheet")] + #[wasm_bindgen(method, structural, js_class = "StyleSheetList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheet`, `StyleSheetList`*"] + pub fn get(this: &StyleSheetList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_SubtleCrypto.rs b/crates/web-sys/src/features/gen_SubtleCrypto.rs new file mode 100644 index 00000000..97a7d23a --- /dev/null +++ b/crates/web-sys/src/features/gen_SubtleCrypto.rs @@ -0,0 +1,640 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SubtleCrypto , typescript_type = "SubtleCrypto" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SubtleCrypto` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] + pub type SubtleCrypto; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt ) ] + #[doc = "The `decrypt()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn decrypt_with_object_and_buffer_source( + this: &SubtleCrypto, + algorithm: &::js_sys::Object, + key: &CryptoKey, + data: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt ) ] + #[doc = "The `decrypt()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn decrypt_with_str_and_buffer_source( + this: &SubtleCrypto, + algorithm: &str, + key: &CryptoKey, + data: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt ) ] + #[doc = "The `decrypt()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn decrypt_with_object_and_u8_array( + this: &SubtleCrypto, + algorithm: &::js_sys::Object, + key: &CryptoKey, + data: &mut [u8], + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = decrypt ) ] + #[doc = "The `decrypt()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/decrypt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn decrypt_with_str_and_u8_array( + this: &SubtleCrypto, + algorithm: &str, + key: &CryptoKey, + data: &mut [u8], + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveBits ) ] + #[doc = "The `deriveBits()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveBits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn derive_bits_with_object( + this: &SubtleCrypto, + algorithm: &::js_sys::Object, + base_key: &CryptoKey, + length: u32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveBits ) ] + #[doc = "The `deriveBits()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveBits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn derive_bits_with_str( + this: &SubtleCrypto, + algorithm: &str, + base_key: &CryptoKey, + length: u32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey ) ] + #[doc = "The `deriveKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn derive_key_with_object_and_object( + this: &SubtleCrypto, + algorithm: &::js_sys::Object, + base_key: &CryptoKey, + derived_key_type: &::js_sys::Object, + extractable: bool, + key_usages: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey ) ] + #[doc = "The `deriveKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn derive_key_with_str_and_object( + this: &SubtleCrypto, + algorithm: &str, + base_key: &CryptoKey, + derived_key_type: &::js_sys::Object, + extractable: bool, + key_usages: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey ) ] + #[doc = "The `deriveKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn derive_key_with_object_and_str( + this: &SubtleCrypto, + algorithm: &::js_sys::Object, + base_key: &CryptoKey, + derived_key_type: &str, + extractable: bool, + key_usages: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = deriveKey ) ] + #[doc = "The `deriveKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/deriveKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn derive_key_with_str_and_str( + this: &SubtleCrypto, + algorithm: &str, + base_key: &CryptoKey, + derived_key_type: &str, + extractable: bool, + key_usages: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = digest ) ] + #[doc = "The `digest()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] + pub fn digest_with_object_and_buffer_source( + this: &SubtleCrypto, + algorithm: &::js_sys::Object, + data: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = digest ) ] + #[doc = "The `digest()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] + pub fn digest_with_str_and_buffer_source( + this: &SubtleCrypto, + algorithm: &str, + data: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = digest ) ] + #[doc = "The `digest()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] + pub fn digest_with_object_and_u8_array( + this: &SubtleCrypto, + algorithm: &::js_sys::Object, + data: &mut [u8], + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = digest ) ] + #[doc = "The `digest()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/digest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] + pub fn digest_with_str_and_u8_array( + this: &SubtleCrypto, + algorithm: &str, + data: &mut [u8], + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt ) ] + #[doc = "The `encrypt()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn encrypt_with_object_and_buffer_source( + this: &SubtleCrypto, + algorithm: &::js_sys::Object, + key: &CryptoKey, + data: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt ) ] + #[doc = "The `encrypt()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn encrypt_with_str_and_buffer_source( + this: &SubtleCrypto, + algorithm: &str, + key: &CryptoKey, + data: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt ) ] + #[doc = "The `encrypt()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn encrypt_with_object_and_u8_array( + this: &SubtleCrypto, + algorithm: &::js_sys::Object, + key: &CryptoKey, + data: &mut [u8], + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = encrypt ) ] + #[doc = "The `encrypt()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/encrypt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn encrypt_with_str_and_u8_array( + this: &SubtleCrypto, + algorithm: &str, + key: &CryptoKey, + data: &mut [u8], + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = exportKey ) ] + #[doc = "The `exportKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/exportKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn export_key( + this: &SubtleCrypto, + format: &str, + key: &CryptoKey, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = generateKey ) ] + #[doc = "The `generateKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/generateKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] + pub fn generate_key_with_object( + this: &SubtleCrypto, + algorithm: &::js_sys::Object, + extractable: bool, + key_usages: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = generateKey ) ] + #[doc = "The `generateKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/generateKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] + pub fn generate_key_with_str( + this: &SubtleCrypto, + algorithm: &str, + extractable: bool, + key_usages: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = importKey ) ] + #[doc = "The `importKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] + pub fn import_key_with_object( + this: &SubtleCrypto, + format: &str, + key_data: &::js_sys::Object, + algorithm: &::js_sys::Object, + extractable: bool, + key_usages: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = importKey ) ] + #[doc = "The `importKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SubtleCrypto`*"] + pub fn import_key_with_str( + this: &SubtleCrypto, + format: &str, + key_data: &::js_sys::Object, + algorithm: &str, + extractable: bool, + key_usages: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = sign ) ] + #[doc = "The `sign()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn sign_with_object_and_buffer_source( + this: &SubtleCrypto, + algorithm: &::js_sys::Object, + key: &CryptoKey, + data: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = sign ) ] + #[doc = "The `sign()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn sign_with_str_and_buffer_source( + this: &SubtleCrypto, + algorithm: &str, + key: &CryptoKey, + data: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = sign ) ] + #[doc = "The `sign()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn sign_with_object_and_u8_array( + this: &SubtleCrypto, + algorithm: &::js_sys::Object, + key: &CryptoKey, + data: &mut [u8], + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = sign ) ] + #[doc = "The `sign()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/sign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn sign_with_str_and_u8_array( + this: &SubtleCrypto, + algorithm: &str, + key: &CryptoKey, + data: &mut [u8], + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey ) ] + #[doc = "The `unwrapKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn unwrap_key_with_buffer_source_and_object_and_object( + this: &SubtleCrypto, + format: &str, + wrapped_key: &::js_sys::Object, + unwrapping_key: &CryptoKey, + unwrap_algorithm: &::js_sys::Object, + unwrapped_key_algorithm: &::js_sys::Object, + extractable: bool, + key_usages: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey ) ] + #[doc = "The `unwrapKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn unwrap_key_with_u8_array_and_object_and_object( + this: &SubtleCrypto, + format: &str, + wrapped_key: &mut [u8], + unwrapping_key: &CryptoKey, + unwrap_algorithm: &::js_sys::Object, + unwrapped_key_algorithm: &::js_sys::Object, + extractable: bool, + key_usages: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey ) ] + #[doc = "The `unwrapKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn unwrap_key_with_buffer_source_and_str_and_object( + this: &SubtleCrypto, + format: &str, + wrapped_key: &::js_sys::Object, + unwrapping_key: &CryptoKey, + unwrap_algorithm: &str, + unwrapped_key_algorithm: &::js_sys::Object, + extractable: bool, + key_usages: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey ) ] + #[doc = "The `unwrapKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn unwrap_key_with_u8_array_and_str_and_object( + this: &SubtleCrypto, + format: &str, + wrapped_key: &mut [u8], + unwrapping_key: &CryptoKey, + unwrap_algorithm: &str, + unwrapped_key_algorithm: &::js_sys::Object, + extractable: bool, + key_usages: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey ) ] + #[doc = "The `unwrapKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn unwrap_key_with_buffer_source_and_object_and_str( + this: &SubtleCrypto, + format: &str, + wrapped_key: &::js_sys::Object, + unwrapping_key: &CryptoKey, + unwrap_algorithm: &::js_sys::Object, + unwrapped_key_algorithm: &str, + extractable: bool, + key_usages: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey ) ] + #[doc = "The `unwrapKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn unwrap_key_with_u8_array_and_object_and_str( + this: &SubtleCrypto, + format: &str, + wrapped_key: &mut [u8], + unwrapping_key: &CryptoKey, + unwrap_algorithm: &::js_sys::Object, + unwrapped_key_algorithm: &str, + extractable: bool, + key_usages: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey ) ] + #[doc = "The `unwrapKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn unwrap_key_with_buffer_source_and_str_and_str( + this: &SubtleCrypto, + format: &str, + wrapped_key: &::js_sys::Object, + unwrapping_key: &CryptoKey, + unwrap_algorithm: &str, + unwrapped_key_algorithm: &str, + extractable: bool, + key_usages: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = unwrapKey ) ] + #[doc = "The `unwrapKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/unwrapKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn unwrap_key_with_u8_array_and_str_and_str( + this: &SubtleCrypto, + format: &str, + wrapped_key: &mut [u8], + unwrapping_key: &CryptoKey, + unwrap_algorithm: &str, + unwrapped_key_algorithm: &str, + extractable: bool, + key_usages: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = verify ) ] + #[doc = "The `verify()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn verify_with_object_and_buffer_source_and_buffer_source( + this: &SubtleCrypto, + algorithm: &::js_sys::Object, + key: &CryptoKey, + signature: &::js_sys::Object, + data: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = verify ) ] + #[doc = "The `verify()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn verify_with_str_and_buffer_source_and_buffer_source( + this: &SubtleCrypto, + algorithm: &str, + key: &CryptoKey, + signature: &::js_sys::Object, + data: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = verify ) ] + #[doc = "The `verify()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn verify_with_object_and_u8_array_and_buffer_source( + this: &SubtleCrypto, + algorithm: &::js_sys::Object, + key: &CryptoKey, + signature: &mut [u8], + data: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = verify ) ] + #[doc = "The `verify()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn verify_with_str_and_u8_array_and_buffer_source( + this: &SubtleCrypto, + algorithm: &str, + key: &CryptoKey, + signature: &mut [u8], + data: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = verify ) ] + #[doc = "The `verify()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn verify_with_object_and_buffer_source_and_u8_array( + this: &SubtleCrypto, + algorithm: &::js_sys::Object, + key: &CryptoKey, + signature: &::js_sys::Object, + data: &mut [u8], + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = verify ) ] + #[doc = "The `verify()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn verify_with_str_and_buffer_source_and_u8_array( + this: &SubtleCrypto, + algorithm: &str, + key: &CryptoKey, + signature: &::js_sys::Object, + data: &mut [u8], + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = verify ) ] + #[doc = "The `verify()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn verify_with_object_and_u8_array_and_u8_array( + this: &SubtleCrypto, + algorithm: &::js_sys::Object, + key: &CryptoKey, + signature: &mut [u8], + data: &mut [u8], + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = verify ) ] + #[doc = "The `verify()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/verify)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn verify_with_str_and_u8_array_and_u8_array( + this: &SubtleCrypto, + algorithm: &str, + key: &CryptoKey, + signature: &mut [u8], + data: &mut [u8], + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = wrapKey ) ] + #[doc = "The `wrapKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/wrapKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn wrap_key_with_object( + this: &SubtleCrypto, + format: &str, + key: &CryptoKey, + wrapping_key: &CryptoKey, + wrap_algorithm: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CryptoKey")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SubtleCrypto" , js_name = wrapKey ) ] + #[doc = "The `wrapKey()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/wrapKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CryptoKey`, `SubtleCrypto`*"] + pub fn wrap_key_with_str( + this: &SubtleCrypto, + format: &str, + key: &CryptoKey, + wrapping_key: &CryptoKey, + wrap_algorithm: &str, + ) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_SupportedType.rs b/crates/web-sys/src/features/gen_SupportedType.rs new file mode 100644 index 00000000..dcc3d41b --- /dev/null +++ b/crates/web-sys/src/features/gen_SupportedType.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `SupportedType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `SupportedType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum SupportedType { + TextHtml = "text/html", + TextXml = "text/xml", + ApplicationXml = "application/xml", + ApplicationXhtmlXml = "application/xhtml+xml", + ImageSvgXml = "image/svg+xml", +} diff --git a/crates/web-sys/src/features/gen_SvgAngle.rs b/crates/web-sys/src/features/gen_SvgAngle.rs new file mode 100644 index 00000000..4ead1d21 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgAngle.rs @@ -0,0 +1,103 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGAngle , typescript_type = "SVGAngle" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgAngle` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] + pub type SvgAngle; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAngle" , js_name = unitType ) ] + #[doc = "Getter for the `unitType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/unitType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] + pub fn unit_type(this: &SvgAngle) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAngle" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] + pub fn value(this: &SvgAngle) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGAngle" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] + pub fn set_value(this: &SvgAngle, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAngle" , js_name = valueInSpecifiedUnits ) ] + #[doc = "Getter for the `valueInSpecifiedUnits` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueInSpecifiedUnits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] + pub fn value_in_specified_units(this: &SvgAngle) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGAngle" , js_name = valueInSpecifiedUnits ) ] + #[doc = "Setter for the `valueInSpecifiedUnits` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueInSpecifiedUnits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] + pub fn set_value_in_specified_units(this: &SvgAngle, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAngle" , js_name = valueAsString ) ] + #[doc = "Getter for the `valueAsString` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueAsString)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] + pub fn value_as_string(this: &SvgAngle) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGAngle" , js_name = valueAsString ) ] + #[doc = "Setter for the `valueAsString` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/valueAsString)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] + pub fn set_value_as_string(this: &SvgAngle, value: &str); + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGAngle" , js_name = convertToSpecifiedUnits ) ] + #[doc = "The `convertToSpecifiedUnits()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/convertToSpecifiedUnits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] + pub fn convert_to_specified_units(this: &SvgAngle, unit_type: u16) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGAngle" , js_name = newValueSpecifiedUnits ) ] + #[doc = "The `newValueSpecifiedUnits()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAngle/newValueSpecifiedUnits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] + pub fn new_value_specified_units( + this: &SvgAngle, + unit_type: u16, + value_in_specified_units: f32, + ) -> Result<(), JsValue>; +} +impl SvgAngle { + #[doc = "The `SVGAngle.SVG_ANGLETYPE_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] + pub const SVG_ANGLETYPE_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGAngle.SVG_ANGLETYPE_UNSPECIFIED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] + pub const SVG_ANGLETYPE_UNSPECIFIED: u16 = 1u64 as u16; + #[doc = "The `SVGAngle.SVG_ANGLETYPE_DEG` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] + pub const SVG_ANGLETYPE_DEG: u16 = 2u64 as u16; + #[doc = "The `SVGAngle.SVG_ANGLETYPE_RAD` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] + pub const SVG_ANGLETYPE_RAD: u16 = 3u64 as u16; + #[doc = "The `SVGAngle.SVG_ANGLETYPE_GRAD` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`*"] + pub const SVG_ANGLETYPE_GRAD: u16 = 4u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgAnimateElement.rs b/crates/web-sys/src/features/gen_SvgAnimateElement.rs new file mode 100644 index 00000000..5b4673de --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgAnimateElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgAnimationElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGAnimateElement , typescript_type = "SVGAnimateElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgAnimateElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimateElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimateElement`*"] + pub type SvgAnimateElement; +} diff --git a/crates/web-sys/src/features/gen_SvgAnimateMotionElement.rs b/crates/web-sys/src/features/gen_SvgAnimateMotionElement.rs new file mode 100644 index 00000000..270f32e6 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgAnimateMotionElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgAnimationElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGAnimateMotionElement , typescript_type = "SVGAnimateMotionElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgAnimateMotionElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimateMotionElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimateMotionElement`*"] + pub type SvgAnimateMotionElement; +} diff --git a/crates/web-sys/src/features/gen_SvgAnimateTransformElement.rs b/crates/web-sys/src/features/gen_SvgAnimateTransformElement.rs new file mode 100644 index 00000000..be7218a6 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgAnimateTransformElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgAnimationElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGAnimateTransformElement , typescript_type = "SVGAnimateTransformElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgAnimateTransformElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimateTransformElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimateTransformElement`*"] + pub type SvgAnimateTransformElement; +} diff --git a/crates/web-sys/src/features/gen_SvgAnimatedAngle.rs b/crates/web-sys/src/features/gen_SvgAnimatedAngle.rs new file mode 100644 index 00000000..ffc1576a --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgAnimatedAngle.rs @@ -0,0 +1,30 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGAnimatedAngle , typescript_type = "SVGAnimatedAngle" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgAnimatedAngle` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedAngle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedAngle`*"] + pub type SvgAnimatedAngle; + #[cfg(feature = "SvgAngle")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedAngle" , js_name = baseVal ) ] + #[doc = "Getter for the `baseVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedAngle/baseVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`, `SvgAnimatedAngle`*"] + pub fn base_val(this: &SvgAnimatedAngle) -> SvgAngle; + #[cfg(feature = "SvgAngle")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedAngle" , js_name = animVal ) ] + #[doc = "Getter for the `animVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedAngle/animVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`, `SvgAnimatedAngle`*"] + pub fn anim_val(this: &SvgAnimatedAngle) -> SvgAngle; +} diff --git a/crates/web-sys/src/features/gen_SvgAnimatedBoolean.rs b/crates/web-sys/src/features/gen_SvgAnimatedBoolean.rs new file mode 100644 index 00000000..b7ffa075 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgAnimatedBoolean.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGAnimatedBoolean , typescript_type = "SVGAnimatedBoolean" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgAnimatedBoolean` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedBoolean)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedBoolean`*"] + pub type SvgAnimatedBoolean; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedBoolean" , js_name = baseVal ) ] + #[doc = "Getter for the `baseVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedBoolean/baseVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedBoolean`*"] + pub fn base_val(this: &SvgAnimatedBoolean) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGAnimatedBoolean" , js_name = baseVal ) ] + #[doc = "Setter for the `baseVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedBoolean/baseVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedBoolean`*"] + pub fn set_base_val(this: &SvgAnimatedBoolean, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedBoolean" , js_name = animVal ) ] + #[doc = "Getter for the `animVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedBoolean/animVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedBoolean`*"] + pub fn anim_val(this: &SvgAnimatedBoolean) -> bool; +} diff --git a/crates/web-sys/src/features/gen_SvgAnimatedEnumeration.rs b/crates/web-sys/src/features/gen_SvgAnimatedEnumeration.rs new file mode 100644 index 00000000..f72d2faf --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgAnimatedEnumeration.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGAnimatedEnumeration , typescript_type = "SVGAnimatedEnumeration" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgAnimatedEnumeration` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedEnumeration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`*"] + pub type SvgAnimatedEnumeration; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedEnumeration" , js_name = baseVal ) ] + #[doc = "Getter for the `baseVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedEnumeration/baseVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`*"] + pub fn base_val(this: &SvgAnimatedEnumeration) -> u16; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGAnimatedEnumeration" , js_name = baseVal ) ] + #[doc = "Setter for the `baseVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedEnumeration/baseVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`*"] + pub fn set_base_val(this: &SvgAnimatedEnumeration, value: u16); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedEnumeration" , js_name = animVal ) ] + #[doc = "Getter for the `animVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedEnumeration/animVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`*"] + pub fn anim_val(this: &SvgAnimatedEnumeration) -> u16; +} diff --git a/crates/web-sys/src/features/gen_SvgAnimatedInteger.rs b/crates/web-sys/src/features/gen_SvgAnimatedInteger.rs new file mode 100644 index 00000000..e4ad5c57 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgAnimatedInteger.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGAnimatedInteger , typescript_type = "SVGAnimatedInteger" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgAnimatedInteger` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedInteger)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`*"] + pub type SvgAnimatedInteger; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedInteger" , js_name = baseVal ) ] + #[doc = "Getter for the `baseVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedInteger/baseVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`*"] + pub fn base_val(this: &SvgAnimatedInteger) -> i32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGAnimatedInteger" , js_name = baseVal ) ] + #[doc = "Setter for the `baseVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedInteger/baseVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`*"] + pub fn set_base_val(this: &SvgAnimatedInteger, value: i32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedInteger" , js_name = animVal ) ] + #[doc = "Getter for the `animVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedInteger/animVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`*"] + pub fn anim_val(this: &SvgAnimatedInteger) -> i32; +} diff --git a/crates/web-sys/src/features/gen_SvgAnimatedLength.rs b/crates/web-sys/src/features/gen_SvgAnimatedLength.rs new file mode 100644 index 00000000..a87e6323 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgAnimatedLength.rs @@ -0,0 +1,30 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGAnimatedLength , typescript_type = "SVGAnimatedLength" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgAnimatedLength` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`*"] + pub type SvgAnimatedLength; + #[cfg(feature = "SvgLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedLength" , js_name = baseVal ) ] + #[doc = "Getter for the `baseVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLength/baseVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLength`*"] + pub fn base_val(this: &SvgAnimatedLength) -> SvgLength; + #[cfg(feature = "SvgLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedLength" , js_name = animVal ) ] + #[doc = "Getter for the `animVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLength/animVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLength`*"] + pub fn anim_val(this: &SvgAnimatedLength) -> SvgLength; +} diff --git a/crates/web-sys/src/features/gen_SvgAnimatedLengthList.rs b/crates/web-sys/src/features/gen_SvgAnimatedLengthList.rs new file mode 100644 index 00000000..72222b4d --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgAnimatedLengthList.rs @@ -0,0 +1,30 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGAnimatedLengthList , typescript_type = "SVGAnimatedLengthList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgAnimatedLengthList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLengthList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`*"] + pub type SvgAnimatedLengthList; + #[cfg(feature = "SvgLengthList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedLengthList" , js_name = baseVal ) ] + #[doc = "Getter for the `baseVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLengthList/baseVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`, `SvgLengthList`*"] + pub fn base_val(this: &SvgAnimatedLengthList) -> SvgLengthList; + #[cfg(feature = "SvgLengthList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedLengthList" , js_name = animVal ) ] + #[doc = "Getter for the `animVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedLengthList/animVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`, `SvgLengthList`*"] + pub fn anim_val(this: &SvgAnimatedLengthList) -> SvgLengthList; +} diff --git a/crates/web-sys/src/features/gen_SvgAnimatedNumber.rs b/crates/web-sys/src/features/gen_SvgAnimatedNumber.rs new file mode 100644 index 00000000..9cb0e951 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgAnimatedNumber.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGAnimatedNumber , typescript_type = "SVGAnimatedNumber" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgAnimatedNumber` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumber)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`*"] + pub type SvgAnimatedNumber; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedNumber" , js_name = baseVal ) ] + #[doc = "Getter for the `baseVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumber/baseVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`*"] + pub fn base_val(this: &SvgAnimatedNumber) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGAnimatedNumber" , js_name = baseVal ) ] + #[doc = "Setter for the `baseVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumber/baseVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`*"] + pub fn set_base_val(this: &SvgAnimatedNumber, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedNumber" , js_name = animVal ) ] + #[doc = "Getter for the `animVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumber/animVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`*"] + pub fn anim_val(this: &SvgAnimatedNumber) -> f32; +} diff --git a/crates/web-sys/src/features/gen_SvgAnimatedNumberList.rs b/crates/web-sys/src/features/gen_SvgAnimatedNumberList.rs new file mode 100644 index 00000000..17bfd72b --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgAnimatedNumberList.rs @@ -0,0 +1,30 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGAnimatedNumberList , typescript_type = "SVGAnimatedNumberList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgAnimatedNumberList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumberList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`*"] + pub type SvgAnimatedNumberList; + #[cfg(feature = "SvgNumberList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedNumberList" , js_name = baseVal ) ] + #[doc = "Getter for the `baseVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumberList/baseVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`, `SvgNumberList`*"] + pub fn base_val(this: &SvgAnimatedNumberList) -> SvgNumberList; + #[cfg(feature = "SvgNumberList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedNumberList" , js_name = animVal ) ] + #[doc = "Getter for the `animVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedNumberList/animVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`, `SvgNumberList`*"] + pub fn anim_val(this: &SvgAnimatedNumberList) -> SvgNumberList; +} diff --git a/crates/web-sys/src/features/gen_SvgAnimatedPreserveAspectRatio.rs b/crates/web-sys/src/features/gen_SvgAnimatedPreserveAspectRatio.rs new file mode 100644 index 00000000..9e7aad0b --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgAnimatedPreserveAspectRatio.rs @@ -0,0 +1,30 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGAnimatedPreserveAspectRatio , typescript_type = "SVGAnimatedPreserveAspectRatio" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgAnimatedPreserveAspectRatio` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedPreserveAspectRatio)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`*"] + pub type SvgAnimatedPreserveAspectRatio; + #[cfg(feature = "SvgPreserveAspectRatio")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedPreserveAspectRatio" , js_name = baseVal ) ] + #[doc = "Getter for the `baseVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedPreserveAspectRatio/baseVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgPreserveAspectRatio`*"] + pub fn base_val(this: &SvgAnimatedPreserveAspectRatio) -> SvgPreserveAspectRatio; + #[cfg(feature = "SvgPreserveAspectRatio")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedPreserveAspectRatio" , js_name = animVal ) ] + #[doc = "Getter for the `animVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedPreserveAspectRatio/animVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgPreserveAspectRatio`*"] + pub fn anim_val(this: &SvgAnimatedPreserveAspectRatio) -> SvgPreserveAspectRatio; +} diff --git a/crates/web-sys/src/features/gen_SvgAnimatedRect.rs b/crates/web-sys/src/features/gen_SvgAnimatedRect.rs new file mode 100644 index 00000000..af2fd3f3 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgAnimatedRect.rs @@ -0,0 +1,30 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGAnimatedRect , typescript_type = "SVGAnimatedRect" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgAnimatedRect` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`*"] + pub type SvgAnimatedRect; + #[cfg(feature = "SvgRect")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedRect" , js_name = baseVal ) ] + #[doc = "Getter for the `baseVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedRect/baseVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgRect`*"] + pub fn base_val(this: &SvgAnimatedRect) -> Option; + #[cfg(feature = "SvgRect")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedRect" , js_name = animVal ) ] + #[doc = "Getter for the `animVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedRect/animVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgRect`*"] + pub fn anim_val(this: &SvgAnimatedRect) -> Option; +} diff --git a/crates/web-sys/src/features/gen_SvgAnimatedString.rs b/crates/web-sys/src/features/gen_SvgAnimatedString.rs new file mode 100644 index 00000000..72a0fcf9 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgAnimatedString.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGAnimatedString , typescript_type = "SVGAnimatedString" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgAnimatedString` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedString)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`*"] + pub type SvgAnimatedString; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedString" , js_name = baseVal ) ] + #[doc = "Getter for the `baseVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedString/baseVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`*"] + pub fn base_val(this: &SvgAnimatedString) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGAnimatedString" , js_name = baseVal ) ] + #[doc = "Setter for the `baseVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedString/baseVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`*"] + pub fn set_base_val(this: &SvgAnimatedString, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedString" , js_name = animVal ) ] + #[doc = "Getter for the `animVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedString/animVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`*"] + pub fn anim_val(this: &SvgAnimatedString) -> String; +} diff --git a/crates/web-sys/src/features/gen_SvgAnimatedTransformList.rs b/crates/web-sys/src/features/gen_SvgAnimatedTransformList.rs new file mode 100644 index 00000000..320def78 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgAnimatedTransformList.rs @@ -0,0 +1,30 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGAnimatedTransformList , typescript_type = "SVGAnimatedTransformList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgAnimatedTransformList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedTransformList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`*"] + pub type SvgAnimatedTransformList; + #[cfg(feature = "SvgTransformList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedTransformList" , js_name = baseVal ) ] + #[doc = "Getter for the `baseVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedTransformList/baseVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgTransformList`*"] + pub fn base_val(this: &SvgAnimatedTransformList) -> SvgTransformList; + #[cfg(feature = "SvgTransformList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimatedTransformList" , js_name = animVal ) ] + #[doc = "Getter for the `animVal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimatedTransformList/animVal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgTransformList`*"] + pub fn anim_val(this: &SvgAnimatedTransformList) -> SvgTransformList; +} diff --git a/crates/web-sys/src/features/gen_SvgAnimationElement.rs b/crates/web-sys/src/features/gen_SvgAnimationElement.rs new file mode 100644 index 00000000..d492810b --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgAnimationElement.rs @@ -0,0 +1,101 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGAnimationElement , typescript_type = "SVGAnimationElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgAnimationElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] + pub type SvgAnimationElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimationElement" , js_name = targetElement ) ] + #[doc = "Getter for the `targetElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/targetElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] + pub fn target_element(this: &SvgAnimationElement) -> Option; + #[cfg(feature = "SvgStringList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimationElement" , js_name = requiredFeatures ) ] + #[doc = "Getter for the `requiredFeatures` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/requiredFeatures)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`, `SvgStringList`*"] + pub fn required_features(this: &SvgAnimationElement) -> SvgStringList; + #[cfg(feature = "SvgStringList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimationElement" , js_name = requiredExtensions ) ] + #[doc = "Getter for the `requiredExtensions` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/requiredExtensions)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`, `SvgStringList`*"] + pub fn required_extensions(this: &SvgAnimationElement) -> SvgStringList; + #[cfg(feature = "SvgStringList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAnimationElement" , js_name = systemLanguage ) ] + #[doc = "Getter for the `systemLanguage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/systemLanguage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`, `SvgStringList`*"] + pub fn system_language(this: &SvgAnimationElement) -> SvgStringList; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGAnimationElement" , js_name = beginElement ) ] + #[doc = "The `beginElement()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/beginElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] + pub fn begin_element(this: &SvgAnimationElement) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGAnimationElement" , js_name = beginElementAt ) ] + #[doc = "The `beginElementAt()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/beginElementAt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] + pub fn begin_element_at(this: &SvgAnimationElement, offset: f32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGAnimationElement" , js_name = endElement ) ] + #[doc = "The `endElement()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/endElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] + pub fn end_element(this: &SvgAnimationElement) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGAnimationElement" , js_name = endElementAt ) ] + #[doc = "The `endElementAt()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/endElementAt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] + pub fn end_element_at(this: &SvgAnimationElement, offset: f32) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "SVGAnimationElement" , js_name = getCurrentTime ) ] + #[doc = "The `getCurrentTime()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/getCurrentTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] + pub fn get_current_time(this: &SvgAnimationElement) -> f32; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGAnimationElement" , js_name = getSimpleDuration ) ] + #[doc = "The `getSimpleDuration()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/getSimpleDuration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] + pub fn get_simple_duration(this: &SvgAnimationElement) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGAnimationElement" , js_name = getStartTime ) ] + #[doc = "The `getStartTime()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/getStartTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] + pub fn get_start_time(this: &SvgAnimationElement) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "SVGAnimationElement" , js_name = hasExtension ) ] + #[doc = "The `hasExtension()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAnimationElement/hasExtension)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimationElement`*"] + pub fn has_extension(this: &SvgAnimationElement, extension: &str) -> bool; +} diff --git a/crates/web-sys/src/features/gen_SvgBoundingBoxOptions.rs b/crates/web-sys/src/features/gen_SvgBoundingBoxOptions.rs new file mode 100644 index 00000000..301835ec --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgBoundingBoxOptions.rs @@ -0,0 +1,83 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGBoundingBoxOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgBoundingBoxOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] + pub type SvgBoundingBoxOptions; +} +impl SvgBoundingBoxOptions { + #[doc = "Construct a new `SvgBoundingBoxOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `clipped` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] + pub fn clipped(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("clipped"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `fill` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] + pub fn fill(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("fill"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `markers` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] + pub fn markers(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("markers"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `stroke` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`*"] + pub fn stroke(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("stroke"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_SvgCircleElement.rs b/crates/web-sys/src/features/gen_SvgCircleElement.rs new file mode 100644 index 00000000..5d2f89ae --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgCircleElement.rs @@ -0,0 +1,38 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGCircleElement , typescript_type = "SVGCircleElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgCircleElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgCircleElement`*"] + pub type SvgCircleElement; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGCircleElement" , js_name = cx ) ] + #[doc = "Getter for the `cx` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement/cx)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgCircleElement`*"] + pub fn cx(this: &SvgCircleElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGCircleElement" , js_name = cy ) ] + #[doc = "Getter for the `cy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement/cy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgCircleElement`*"] + pub fn cy(this: &SvgCircleElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGCircleElement" , js_name = r ) ] + #[doc = "Getter for the `r` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGCircleElement/r)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgCircleElement`*"] + pub fn r(this: &SvgCircleElement) -> SvgAnimatedLength; +} diff --git a/crates/web-sys/src/features/gen_SvgClipPathElement.rs b/crates/web-sys/src/features/gen_SvgClipPathElement.rs new file mode 100644 index 00000000..92278a62 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgClipPathElement.rs @@ -0,0 +1,30 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGClipPathElement , typescript_type = "SVGClipPathElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgClipPathElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGClipPathElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgClipPathElement`*"] + pub type SvgClipPathElement; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGClipPathElement" , js_name = clipPathUnits ) ] + #[doc = "Getter for the `clipPathUnits` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGClipPathElement/clipPathUnits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgClipPathElement`*"] + pub fn clip_path_units(this: &SvgClipPathElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedTransformList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGClipPathElement" , js_name = transform ) ] + #[doc = "Getter for the `transform` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGClipPathElement/transform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgClipPathElement`*"] + pub fn transform(this: &SvgClipPathElement) -> SvgAnimatedTransformList; +} diff --git a/crates/web-sys/src/features/gen_SvgComponentTransferFunctionElement.rs b/crates/web-sys/src/features/gen_SvgComponentTransferFunctionElement.rs new file mode 100644 index 00000000..a341e26a --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgComponentTransferFunctionElement.rs @@ -0,0 +1,96 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGComponentTransferFunctionElement , typescript_type = "SVGComponentTransferFunctionElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgComponentTransferFunctionElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"] + pub type SvgComponentTransferFunctionElement; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgComponentTransferFunctionElement`*"] + pub fn type_(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedNumberList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = tableValues ) ] + #[doc = "Getter for the `tableValues` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/tableValues)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`, `SvgComponentTransferFunctionElement`*"] + pub fn table_values(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumberList; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = slope ) ] + #[doc = "Getter for the `slope` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/slope)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"] + pub fn slope(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = intercept ) ] + #[doc = "Getter for the `intercept` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/intercept)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"] + pub fn intercept(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = amplitude ) ] + #[doc = "Getter for the `amplitude` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/amplitude)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"] + pub fn amplitude(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = exponent ) ] + #[doc = "Getter for the `exponent` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/exponent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"] + pub fn exponent(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGComponentTransferFunctionElement" , js_name = offset ) ] + #[doc = "Getter for the `offset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGComponentTransferFunctionElement/offset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgComponentTransferFunctionElement`*"] + pub fn offset(this: &SvgComponentTransferFunctionElement) -> SvgAnimatedNumber; +} +impl SvgComponentTransferFunctionElement { + #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"] + pub const SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"] + pub const SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY: u16 = 1u64 as u16; + #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_TABLE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"] + pub const SVG_FECOMPONENTTRANSFER_TYPE_TABLE: u16 = 2u64 as u16; + #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"] + pub const SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE: u16 = 3u64 as u16; + #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_LINEAR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"] + pub const SVG_FECOMPONENTTRANSFER_TYPE_LINEAR: u16 = 4u64 as u16; + #[doc = "The `SVGComponentTransferFunctionElement.SVG_FECOMPONENTTRANSFER_TYPE_GAMMA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgComponentTransferFunctionElement`*"] + pub const SVG_FECOMPONENTTRANSFER_TYPE_GAMMA: u16 = 5u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgDefsElement.rs b/crates/web-sys/src/features/gen_SvgDefsElement.rs new file mode 100644 index 00000000..aa9de7c1 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgDefsElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGDefsElement , typescript_type = "SVGDefsElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgDefsElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGDefsElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgDefsElement`*"] + pub type SvgDefsElement; +} diff --git a/crates/web-sys/src/features/gen_SvgDescElement.rs b/crates/web-sys/src/features/gen_SvgDescElement.rs new file mode 100644 index 00000000..870a5800 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgDescElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGDescElement , typescript_type = "SVGDescElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgDescElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGDescElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgDescElement`*"] + pub type SvgDescElement; +} diff --git a/crates/web-sys/src/features/gen_SvgElement.rs b/crates/web-sys/src/features/gen_SvgElement.rs new file mode 100644 index 00000000..d4f20a24 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgElement.rs @@ -0,0 +1,1355 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGElement , typescript_type = "SVGElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub type SvgElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = id ) ] + #[doc = "Getter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn id(this: &SvgElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = id ) ] + #[doc = "Setter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_id(this: &SvgElement, value: &str); + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = className ) ] + #[doc = "Getter for the `className` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/className)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgElement`*"] + pub fn class_name(this: &SvgElement) -> SvgAnimatedString; + #[cfg(feature = "DomStringMap")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = dataset ) ] + #[doc = "Getter for the `dataset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/dataset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomStringMap`, `SvgElement`*"] + pub fn dataset(this: &SvgElement) -> DomStringMap; + #[cfg(feature = "CssStyleDeclaration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = style ) ] + #[doc = "Getter for the `style` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/style)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`, `SvgElement`*"] + pub fn style(this: &SvgElement) -> CssStyleDeclaration; + #[cfg(feature = "SvgsvgElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ownerSVGElement ) ] + #[doc = "Getter for the `ownerSVGElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ownerSVGElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`, `SvgsvgElement`*"] + pub fn owner_svg_element(this: &SvgElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = viewportElement ) ] + #[doc = "Getter for the `viewportElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/viewportElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn viewport_element(this: &SvgElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = tabIndex ) ] + #[doc = "Getter for the `tabIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/tabIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn tab_index(this: &SvgElement) -> i32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = tabIndex ) ] + #[doc = "Setter for the `tabIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/tabIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_tab_index(this: &SvgElement, value: i32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = oncopy ) ] + #[doc = "Getter for the `oncopy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncopy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn oncopy(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = oncopy ) ] + #[doc = "Setter for the `oncopy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncopy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_oncopy(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = oncut ) ] + #[doc = "Getter for the `oncut` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncut)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn oncut(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = oncut ) ] + #[doc = "Setter for the `oncut` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncut)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_oncut(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onpaste ) ] + #[doc = "Getter for the `onpaste` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpaste)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onpaste(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onpaste ) ] + #[doc = "Setter for the `onpaste` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpaste)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onpaste(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onabort ) ] + #[doc = "Getter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onabort(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onabort ) ] + #[doc = "Setter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onabort(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onblur ) ] + #[doc = "Getter for the `onblur` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onblur)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onblur(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onblur ) ] + #[doc = "Setter for the `onblur` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onblur)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onblur(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onfocus ) ] + #[doc = "Getter for the `onfocus` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onfocus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onfocus(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onfocus ) ] + #[doc = "Setter for the `onfocus` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onfocus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onfocus(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onauxclick ) ] + #[doc = "Getter for the `onauxclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onauxclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onauxclick(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onauxclick ) ] + #[doc = "Setter for the `onauxclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onauxclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onauxclick(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = oncanplay ) ] + #[doc = "Getter for the `oncanplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncanplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn oncanplay(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = oncanplay ) ] + #[doc = "Setter for the `oncanplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncanplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_oncanplay(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = oncanplaythrough ) ] + #[doc = "Getter for the `oncanplaythrough` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncanplaythrough)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn oncanplaythrough(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = oncanplaythrough ) ] + #[doc = "Setter for the `oncanplaythrough` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncanplaythrough)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_oncanplaythrough(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onchange ) ] + #[doc = "Getter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onchange(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onchange ) ] + #[doc = "Setter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onchange(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onclick ) ] + #[doc = "Getter for the `onclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onclick(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onclick ) ] + #[doc = "Setter for the `onclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onclick(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onclose ) ] + #[doc = "Getter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onclose(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onclose ) ] + #[doc = "Setter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onclose(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = oncontextmenu ) ] + #[doc = "Getter for the `oncontextmenu` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncontextmenu)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn oncontextmenu(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = oncontextmenu ) ] + #[doc = "Setter for the `oncontextmenu` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oncontextmenu)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_oncontextmenu(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ondblclick ) ] + #[doc = "Getter for the `ondblclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondblclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ondblclick(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ondblclick ) ] + #[doc = "Setter for the `ondblclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondblclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ondblclick(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ondrag ) ] + #[doc = "Getter for the `ondrag` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondrag)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ondrag(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ondrag ) ] + #[doc = "Setter for the `ondrag` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondrag)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ondrag(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ondragend ) ] + #[doc = "Getter for the `ondragend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ondragend(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ondragend ) ] + #[doc = "Setter for the `ondragend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ondragend(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ondragenter ) ] + #[doc = "Getter for the `ondragenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ondragenter(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ondragenter ) ] + #[doc = "Setter for the `ondragenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ondragenter(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ondragexit ) ] + #[doc = "Getter for the `ondragexit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragexit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ondragexit(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ondragexit ) ] + #[doc = "Setter for the `ondragexit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragexit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ondragexit(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ondragleave ) ] + #[doc = "Getter for the `ondragleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ondragleave(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ondragleave ) ] + #[doc = "Setter for the `ondragleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ondragleave(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ondragover ) ] + #[doc = "Getter for the `ondragover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ondragover(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ondragover ) ] + #[doc = "Setter for the `ondragover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ondragover(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ondragstart ) ] + #[doc = "Getter for the `ondragstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ondragstart(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ondragstart ) ] + #[doc = "Setter for the `ondragstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondragstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ondragstart(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ondrop ) ] + #[doc = "Getter for the `ondrop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondrop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ondrop(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ondrop ) ] + #[doc = "Setter for the `ondrop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondrop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ondrop(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ondurationchange ) ] + #[doc = "Getter for the `ondurationchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondurationchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ondurationchange(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ondurationchange ) ] + #[doc = "Setter for the `ondurationchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ondurationchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ondurationchange(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onemptied ) ] + #[doc = "Getter for the `onemptied` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onemptied)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onemptied(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onemptied ) ] + #[doc = "Setter for the `onemptied` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onemptied)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onemptied(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onended ) ] + #[doc = "Getter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onended(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onended ) ] + #[doc = "Setter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onended(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = oninput ) ] + #[doc = "Getter for the `oninput` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oninput)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn oninput(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = oninput ) ] + #[doc = "Setter for the `oninput` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oninput)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_oninput(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = oninvalid ) ] + #[doc = "Getter for the `oninvalid` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oninvalid)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn oninvalid(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = oninvalid ) ] + #[doc = "Setter for the `oninvalid` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/oninvalid)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_oninvalid(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onkeydown ) ] + #[doc = "Getter for the `onkeydown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeydown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onkeydown(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onkeydown ) ] + #[doc = "Setter for the `onkeydown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeydown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onkeydown(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onkeypress ) ] + #[doc = "Getter for the `onkeypress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeypress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onkeypress(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onkeypress ) ] + #[doc = "Setter for the `onkeypress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeypress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onkeypress(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onkeyup ) ] + #[doc = "Getter for the `onkeyup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeyup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onkeyup(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onkeyup ) ] + #[doc = "Setter for the `onkeyup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onkeyup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onkeyup(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onload ) ] + #[doc = "Getter for the `onload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onload(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onload ) ] + #[doc = "Setter for the `onload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onload(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onloadeddata ) ] + #[doc = "Getter for the `onloadeddata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadeddata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onloadeddata(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onloadeddata ) ] + #[doc = "Setter for the `onloadeddata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadeddata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onloadeddata(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onloadedmetadata ) ] + #[doc = "Getter for the `onloadedmetadata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadedmetadata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onloadedmetadata(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onloadedmetadata ) ] + #[doc = "Setter for the `onloadedmetadata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadedmetadata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onloadedmetadata(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onloadend ) ] + #[doc = "Getter for the `onloadend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onloadend(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onloadend ) ] + #[doc = "Setter for the `onloadend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onloadend(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onloadstart ) ] + #[doc = "Getter for the `onloadstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onloadstart(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onloadstart ) ] + #[doc = "Setter for the `onloadstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onloadstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onloadstart(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onmousedown ) ] + #[doc = "Getter for the `onmousedown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmousedown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onmousedown(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onmousedown ) ] + #[doc = "Setter for the `onmousedown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmousedown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onmousedown(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onmouseenter ) ] + #[doc = "Getter for the `onmouseenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onmouseenter(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onmouseenter ) ] + #[doc = "Setter for the `onmouseenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onmouseenter(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onmouseleave ) ] + #[doc = "Getter for the `onmouseleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onmouseleave(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onmouseleave ) ] + #[doc = "Setter for the `onmouseleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onmouseleave(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onmousemove ) ] + #[doc = "Getter for the `onmousemove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmousemove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onmousemove(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onmousemove ) ] + #[doc = "Setter for the `onmousemove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmousemove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onmousemove(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onmouseout ) ] + #[doc = "Getter for the `onmouseout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onmouseout(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onmouseout ) ] + #[doc = "Setter for the `onmouseout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onmouseout(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onmouseover ) ] + #[doc = "Getter for the `onmouseover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onmouseover(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onmouseover ) ] + #[doc = "Setter for the `onmouseover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onmouseover(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onmouseup ) ] + #[doc = "Getter for the `onmouseup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onmouseup(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onmouseup ) ] + #[doc = "Setter for the `onmouseup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onmouseup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onmouseup(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onwheel ) ] + #[doc = "Getter for the `onwheel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwheel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onwheel(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onwheel ) ] + #[doc = "Setter for the `onwheel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwheel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onwheel(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onpause ) ] + #[doc = "Getter for the `onpause` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpause)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onpause(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onpause ) ] + #[doc = "Setter for the `onpause` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpause)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onpause(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onplay ) ] + #[doc = "Getter for the `onplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onplay(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onplay ) ] + #[doc = "Setter for the `onplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onplay(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onplaying ) ] + #[doc = "Getter for the `onplaying` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onplaying)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onplaying(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onplaying ) ] + #[doc = "Setter for the `onplaying` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onplaying)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onplaying(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onprogress ) ] + #[doc = "Getter for the `onprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onprogress(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onprogress ) ] + #[doc = "Setter for the `onprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onprogress(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onratechange ) ] + #[doc = "Getter for the `onratechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onratechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onratechange(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onratechange ) ] + #[doc = "Setter for the `onratechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onratechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onratechange(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onreset ) ] + #[doc = "Getter for the `onreset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onreset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onreset(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onreset ) ] + #[doc = "Setter for the `onreset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onreset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onreset(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onresize ) ] + #[doc = "Getter for the `onresize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onresize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onresize(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onresize ) ] + #[doc = "Setter for the `onresize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onresize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onresize(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onscroll ) ] + #[doc = "Getter for the `onscroll` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onscroll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onscroll(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onscroll ) ] + #[doc = "Setter for the `onscroll` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onscroll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onscroll(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onseeked ) ] + #[doc = "Getter for the `onseeked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onseeked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onseeked(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onseeked ) ] + #[doc = "Setter for the `onseeked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onseeked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onseeked(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onseeking ) ] + #[doc = "Getter for the `onseeking` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onseeking)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onseeking(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onseeking ) ] + #[doc = "Setter for the `onseeking` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onseeking)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onseeking(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onselect ) ] + #[doc = "Getter for the `onselect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onselect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onselect(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onselect ) ] + #[doc = "Setter for the `onselect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onselect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onselect(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onshow ) ] + #[doc = "Getter for the `onshow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onshow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onshow(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onshow ) ] + #[doc = "Setter for the `onshow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onshow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onshow(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onstalled ) ] + #[doc = "Getter for the `onstalled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onstalled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onstalled(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onstalled ) ] + #[doc = "Setter for the `onstalled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onstalled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onstalled(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onsubmit ) ] + #[doc = "Getter for the `onsubmit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onsubmit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onsubmit(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onsubmit ) ] + #[doc = "Setter for the `onsubmit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onsubmit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onsubmit(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onsuspend ) ] + #[doc = "Getter for the `onsuspend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onsuspend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onsuspend(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onsuspend ) ] + #[doc = "Setter for the `onsuspend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onsuspend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onsuspend(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ontimeupdate ) ] + #[doc = "Getter for the `ontimeupdate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontimeupdate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ontimeupdate(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ontimeupdate ) ] + #[doc = "Setter for the `ontimeupdate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontimeupdate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ontimeupdate(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onvolumechange ) ] + #[doc = "Getter for the `onvolumechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onvolumechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onvolumechange(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onvolumechange ) ] + #[doc = "Setter for the `onvolumechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onvolumechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onvolumechange(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onwaiting ) ] + #[doc = "Getter for the `onwaiting` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwaiting)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onwaiting(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onwaiting ) ] + #[doc = "Setter for the `onwaiting` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwaiting)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onwaiting(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onselectstart ) ] + #[doc = "Getter for the `onselectstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onselectstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onselectstart(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onselectstart ) ] + #[doc = "Setter for the `onselectstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onselectstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onselectstart(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ontoggle ) ] + #[doc = "Getter for the `ontoggle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontoggle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ontoggle(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ontoggle ) ] + #[doc = "Setter for the `ontoggle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontoggle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ontoggle(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onpointercancel ) ] + #[doc = "Getter for the `onpointercancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointercancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onpointercancel(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onpointercancel ) ] + #[doc = "Setter for the `onpointercancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointercancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onpointercancel(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onpointerdown ) ] + #[doc = "Getter for the `onpointerdown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerdown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onpointerdown(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onpointerdown ) ] + #[doc = "Setter for the `onpointerdown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerdown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onpointerdown(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onpointerup ) ] + #[doc = "Getter for the `onpointerup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onpointerup(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onpointerup ) ] + #[doc = "Setter for the `onpointerup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onpointerup(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onpointermove ) ] + #[doc = "Getter for the `onpointermove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointermove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onpointermove(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onpointermove ) ] + #[doc = "Setter for the `onpointermove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointermove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onpointermove(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onpointerout ) ] + #[doc = "Getter for the `onpointerout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onpointerout(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onpointerout ) ] + #[doc = "Setter for the `onpointerout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onpointerout(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onpointerover ) ] + #[doc = "Getter for the `onpointerover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onpointerover(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onpointerover ) ] + #[doc = "Setter for the `onpointerover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onpointerover(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onpointerenter ) ] + #[doc = "Getter for the `onpointerenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onpointerenter(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onpointerenter ) ] + #[doc = "Setter for the `onpointerenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onpointerenter(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onpointerleave ) ] + #[doc = "Getter for the `onpointerleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onpointerleave(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onpointerleave ) ] + #[doc = "Setter for the `onpointerleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onpointerleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onpointerleave(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ongotpointercapture ) ] + #[doc = "Getter for the `ongotpointercapture` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ongotpointercapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ongotpointercapture(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ongotpointercapture ) ] + #[doc = "Setter for the `ongotpointercapture` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ongotpointercapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ongotpointercapture(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onlostpointercapture ) ] + #[doc = "Getter for the `onlostpointercapture` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onlostpointercapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onlostpointercapture(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onlostpointercapture ) ] + #[doc = "Setter for the `onlostpointercapture` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onlostpointercapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onlostpointercapture(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onanimationcancel ) ] + #[doc = "Getter for the `onanimationcancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationcancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onanimationcancel(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onanimationcancel ) ] + #[doc = "Setter for the `onanimationcancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationcancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onanimationcancel(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onanimationend ) ] + #[doc = "Getter for the `onanimationend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onanimationend(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onanimationend ) ] + #[doc = "Setter for the `onanimationend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onanimationend(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onanimationiteration ) ] + #[doc = "Getter for the `onanimationiteration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationiteration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onanimationiteration(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onanimationiteration ) ] + #[doc = "Setter for the `onanimationiteration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationiteration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onanimationiteration(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onanimationstart ) ] + #[doc = "Getter for the `onanimationstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onanimationstart(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onanimationstart ) ] + #[doc = "Setter for the `onanimationstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onanimationstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onanimationstart(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ontransitioncancel ) ] + #[doc = "Getter for the `ontransitioncancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitioncancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ontransitioncancel(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ontransitioncancel ) ] + #[doc = "Setter for the `ontransitioncancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitioncancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ontransitioncancel(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ontransitionend ) ] + #[doc = "Getter for the `ontransitionend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ontransitionend(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ontransitionend ) ] + #[doc = "Setter for the `ontransitionend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ontransitionend(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ontransitionrun ) ] + #[doc = "Getter for the `ontransitionrun` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionrun)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ontransitionrun(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ontransitionrun ) ] + #[doc = "Setter for the `ontransitionrun` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionrun)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ontransitionrun(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ontransitionstart ) ] + #[doc = "Getter for the `ontransitionstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ontransitionstart(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ontransitionstart ) ] + #[doc = "Setter for the `ontransitionstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontransitionstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ontransitionstart(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onwebkitanimationend ) ] + #[doc = "Getter for the `onwebkitanimationend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onwebkitanimationend(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onwebkitanimationend ) ] + #[doc = "Setter for the `onwebkitanimationend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onwebkitanimationend(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onwebkitanimationiteration ) ] + #[doc = "Getter for the `onwebkitanimationiteration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationiteration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onwebkitanimationiteration(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onwebkitanimationiteration ) ] + #[doc = "Setter for the `onwebkitanimationiteration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationiteration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onwebkitanimationiteration(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onwebkitanimationstart ) ] + #[doc = "Getter for the `onwebkitanimationstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onwebkitanimationstart(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onwebkitanimationstart ) ] + #[doc = "Setter for the `onwebkitanimationstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkitanimationstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onwebkitanimationstart(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onwebkittransitionend ) ] + #[doc = "Getter for the `onwebkittransitionend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkittransitionend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onwebkittransitionend(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onwebkittransitionend ) ] + #[doc = "Setter for the `onwebkittransitionend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onwebkittransitionend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onwebkittransitionend(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn onerror(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_onerror(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ontouchstart ) ] + #[doc = "Getter for the `ontouchstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ontouchstart(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ontouchstart ) ] + #[doc = "Setter for the `ontouchstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ontouchstart(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ontouchend ) ] + #[doc = "Getter for the `ontouchend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ontouchend(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ontouchend ) ] + #[doc = "Setter for the `ontouchend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ontouchend(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ontouchmove ) ] + #[doc = "Getter for the `ontouchmove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchmove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ontouchmove(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ontouchmove ) ] + #[doc = "Setter for the `ontouchmove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchmove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ontouchmove(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGElement" , js_name = ontouchcancel ) ] + #[doc = "Getter for the `ontouchcancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchcancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn ontouchcancel(this: &SvgElement) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGElement" , js_name = ontouchcancel ) ] + #[doc = "Setter for the `ontouchcancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/ontouchcancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn set_ontouchcancel(this: &SvgElement, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGElement" , js_name = blur ) ] + #[doc = "The `blur()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/blur)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn blur(this: &SvgElement) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGElement" , js_name = focus ) ] + #[doc = "The `focus()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGElement/focus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgElement`*"] + pub fn focus(this: &SvgElement) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_SvgEllipseElement.rs b/crates/web-sys/src/features/gen_SvgEllipseElement.rs new file mode 100644 index 00000000..87004e4a --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgEllipseElement.rs @@ -0,0 +1,46 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGEllipseElement , typescript_type = "SVGEllipseElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgEllipseElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgEllipseElement`*"] + pub type SvgEllipseElement; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGEllipseElement" , js_name = cx ) ] + #[doc = "Getter for the `cx` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement/cx)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgEllipseElement`*"] + pub fn cx(this: &SvgEllipseElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGEllipseElement" , js_name = cy ) ] + #[doc = "Getter for the `cy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement/cy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgEllipseElement`*"] + pub fn cy(this: &SvgEllipseElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGEllipseElement" , js_name = rx ) ] + #[doc = "Getter for the `rx` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement/rx)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgEllipseElement`*"] + pub fn rx(this: &SvgEllipseElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGEllipseElement" , js_name = ry ) ] + #[doc = "Getter for the `ry` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGEllipseElement/ry)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgEllipseElement`*"] + pub fn ry(this: &SvgEllipseElement) -> SvgAnimatedLength; +} diff --git a/crates/web-sys/src/features/gen_SvgFilterElement.rs b/crates/web-sys/src/features/gen_SvgFilterElement.rs new file mode 100644 index 00000000..6cdb5504 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgFilterElement.rs @@ -0,0 +1,70 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFilterElement , typescript_type = "SVGFilterElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgFilterElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgFilterElement`*"] + pub type SvgFilterElement; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFilterElement" , js_name = filterUnits ) ] + #[doc = "Getter for the `filterUnits` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/filterUnits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgFilterElement`*"] + pub fn filter_units(this: &SvgFilterElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFilterElement" , js_name = primitiveUnits ) ] + #[doc = "Getter for the `primitiveUnits` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/primitiveUnits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgFilterElement`*"] + pub fn primitive_units(this: &SvgFilterElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFilterElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgFilterElement`*"] + pub fn x(this: &SvgFilterElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFilterElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgFilterElement`*"] + pub fn y(this: &SvgFilterElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFilterElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgFilterElement`*"] + pub fn width(this: &SvgFilterElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFilterElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgFilterElement`*"] + pub fn height(this: &SvgFilterElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFilterElement" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgFilterElement`*"] + pub fn href(this: &SvgFilterElement) -> SvgAnimatedString; +} diff --git a/crates/web-sys/src/features/gen_SvgForeignObjectElement.rs b/crates/web-sys/src/features/gen_SvgForeignObjectElement.rs new file mode 100644 index 00000000..81d7a550 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgForeignObjectElement.rs @@ -0,0 +1,46 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGForeignObjectElement , typescript_type = "SVGForeignObjectElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgForeignObjectElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgForeignObjectElement`*"] + pub type SvgForeignObjectElement; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGForeignObjectElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"] + pub fn x(this: &SvgForeignObjectElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGForeignObjectElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"] + pub fn y(this: &SvgForeignObjectElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGForeignObjectElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"] + pub fn width(this: &SvgForeignObjectElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGForeignObjectElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGForeignObjectElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgForeignObjectElement`*"] + pub fn height(this: &SvgForeignObjectElement) -> SvgAnimatedLength; +} diff --git a/crates/web-sys/src/features/gen_SvgGeometryElement.rs b/crates/web-sys/src/features/gen_SvgGeometryElement.rs new file mode 100644 index 00000000..8b8ee536 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgGeometryElement.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGGeometryElement , typescript_type = "SVGGeometryElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgGeometryElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGeometryElement`*"] + pub type SvgGeometryElement; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGGeometryElement" , js_name = pathLength ) ] + #[doc = "Getter for the `pathLength` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/pathLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgGeometryElement`*"] + pub fn path_length(this: &SvgGeometryElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgPoint")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGGeometryElement" , js_name = getPointAtLength ) ] + #[doc = "The `getPointAtLength()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/getPointAtLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGeometryElement`, `SvgPoint`*"] + pub fn get_point_at_length( + this: &SvgGeometryElement, + distance: f32, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "SVGGeometryElement" , js_name = getTotalLength ) ] + #[doc = "The `getTotalLength()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/getTotalLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGeometryElement`*"] + pub fn get_total_length(this: &SvgGeometryElement) -> f32; +} diff --git a/crates/web-sys/src/features/gen_SvgGradientElement.rs b/crates/web-sys/src/features/gen_SvgGradientElement.rs new file mode 100644 index 00000000..36c83512 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgGradientElement.rs @@ -0,0 +1,64 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGGradientElement , typescript_type = "SVGGradientElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgGradientElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGradientElement`*"] + pub type SvgGradientElement; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGGradientElement" , js_name = gradientUnits ) ] + #[doc = "Getter for the `gradientUnits` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement/gradientUnits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgGradientElement`*"] + pub fn gradient_units(this: &SvgGradientElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedTransformList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGGradientElement" , js_name = gradientTransform ) ] + #[doc = "Getter for the `gradientTransform` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement/gradientTransform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgGradientElement`*"] + pub fn gradient_transform(this: &SvgGradientElement) -> SvgAnimatedTransformList; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGGradientElement" , js_name = spreadMethod ) ] + #[doc = "Getter for the `spreadMethod` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement/spreadMethod)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgGradientElement`*"] + pub fn spread_method(this: &SvgGradientElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGGradientElement" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGradientElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgGradientElement`*"] + pub fn href(this: &SvgGradientElement) -> SvgAnimatedString; +} +impl SvgGradientElement { + #[doc = "The `SVGGradientElement.SVG_SPREADMETHOD_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGradientElement`*"] + pub const SVG_SPREADMETHOD_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGGradientElement.SVG_SPREADMETHOD_PAD` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGradientElement`*"] + pub const SVG_SPREADMETHOD_PAD: u16 = 1u64 as u16; + #[doc = "The `SVGGradientElement.SVG_SPREADMETHOD_REFLECT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGradientElement`*"] + pub const SVG_SPREADMETHOD_REFLECT: u16 = 2u64 as u16; + #[doc = "The `SVGGradientElement.SVG_SPREADMETHOD_REPEAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGradientElement`*"] + pub const SVG_SPREADMETHOD_REPEAT: u16 = 3u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgGraphicsElement.rs b/crates/web-sys/src/features/gen_SvgGraphicsElement.rs new file mode 100644 index 00000000..a099cb5b --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgGraphicsElement.rs @@ -0,0 +1,113 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGGraphicsElement , typescript_type = "SVGGraphicsElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgGraphicsElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"] + pub type SvgGraphicsElement; + #[cfg(feature = "SvgAnimatedTransformList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGGraphicsElement" , js_name = transform ) ] + #[doc = "Getter for the `transform` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/transform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgGraphicsElement`*"] + pub fn transform(this: &SvgGraphicsElement) -> SvgAnimatedTransformList; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGGraphicsElement" , js_name = nearestViewportElement ) ] + #[doc = "Getter for the `nearestViewportElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/nearestViewportElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"] + pub fn nearest_viewport_element(this: &SvgGraphicsElement) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGGraphicsElement" , js_name = farthestViewportElement ) ] + #[doc = "Getter for the `farthestViewportElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/farthestViewportElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"] + pub fn farthest_viewport_element(this: &SvgGraphicsElement) -> Option; + #[cfg(feature = "SvgStringList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGGraphicsElement" , js_name = requiredFeatures ) ] + #[doc = "Getter for the `requiredFeatures` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/requiredFeatures)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgStringList`*"] + pub fn required_features(this: &SvgGraphicsElement) -> SvgStringList; + #[cfg(feature = "SvgStringList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGGraphicsElement" , js_name = requiredExtensions ) ] + #[doc = "Getter for the `requiredExtensions` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/requiredExtensions)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgStringList`*"] + pub fn required_extensions(this: &SvgGraphicsElement) -> SvgStringList; + #[cfg(feature = "SvgStringList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGGraphicsElement" , js_name = systemLanguage ) ] + #[doc = "Getter for the `systemLanguage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/systemLanguage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgStringList`*"] + pub fn system_language(this: &SvgGraphicsElement) -> SvgStringList; + #[cfg(feature = "SvgRect")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGGraphicsElement" , js_name = getBBox ) ] + #[doc = "The `getBBox()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getBBox)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgRect`*"] + pub fn get_b_box(this: &SvgGraphicsElement) -> Result; + #[cfg(all(feature = "SvgBoundingBoxOptions", feature = "SvgRect",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGGraphicsElement" , js_name = getBBox ) ] + #[doc = "The `getBBox()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getBBox)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgBoundingBoxOptions`, `SvgGraphicsElement`, `SvgRect`*"] + pub fn get_b_box_with_a_options( + this: &SvgGraphicsElement, + a_options: &SvgBoundingBoxOptions, + ) -> Result; + #[cfg(feature = "SvgMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "SVGGraphicsElement" , js_name = getCTM ) ] + #[doc = "The `getCTM()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getCTM)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgMatrix`*"] + pub fn get_ctm(this: &SvgGraphicsElement) -> Option; + #[cfg(feature = "SvgMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "SVGGraphicsElement" , js_name = getScreenCTM ) ] + #[doc = "The `getScreenCTM()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getScreenCTM)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgMatrix`*"] + pub fn get_screen_ctm(this: &SvgGraphicsElement) -> Option; + #[cfg(feature = "SvgMatrix")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGGraphicsElement" , js_name = getTransformToElement ) ] + #[doc = "The `getTransformToElement()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/getTransformToElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`, `SvgMatrix`*"] + pub fn get_transform_to_element( + this: &SvgGraphicsElement, + element: &SvgGraphicsElement, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "SVGGraphicsElement" , js_name = hasExtension ) ] + #[doc = "The `hasExtension()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGraphicsElement/hasExtension)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgGraphicsElement`*"] + pub fn has_extension(this: &SvgGraphicsElement, extension: &str) -> bool; +} diff --git a/crates/web-sys/src/features/gen_SvgImageElement.rs b/crates/web-sys/src/features/gen_SvgImageElement.rs new file mode 100644 index 00000000..de171d34 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgImageElement.rs @@ -0,0 +1,62 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGImageElement , typescript_type = "SVGImageElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgImageElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgImageElement`*"] + pub type SvgImageElement; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGImageElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgImageElement`*"] + pub fn x(this: &SvgImageElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGImageElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgImageElement`*"] + pub fn y(this: &SvgImageElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGImageElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgImageElement`*"] + pub fn width(this: &SvgImageElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGImageElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgImageElement`*"] + pub fn height(this: &SvgImageElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGImageElement" , js_name = preserveAspectRatio ) ] + #[doc = "Getter for the `preserveAspectRatio` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/preserveAspectRatio)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgImageElement`*"] + pub fn preserve_aspect_ratio(this: &SvgImageElement) -> SvgAnimatedPreserveAspectRatio; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGImageElement" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGImageElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgImageElement`*"] + pub fn href(this: &SvgImageElement) -> SvgAnimatedString; +} diff --git a/crates/web-sys/src/features/gen_SvgLength.rs b/crates/web-sys/src/features/gen_SvgLength.rs new file mode 100644 index 00000000..92c2fc24 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgLength.rs @@ -0,0 +1,127 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGLength , typescript_type = "SVGLength" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgLength` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub type SvgLength; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGLength" , js_name = unitType ) ] + #[doc = "Getter for the `unitType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/unitType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub fn unit_type(this: &SvgLength) -> u16; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "SVGLength" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub fn value(this: &SvgLength) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "SVGLength" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub fn set_value(this: &SvgLength, value: f32) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGLength" , js_name = valueInSpecifiedUnits ) ] + #[doc = "Getter for the `valueInSpecifiedUnits` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/valueInSpecifiedUnits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub fn value_in_specified_units(this: &SvgLength) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGLength" , js_name = valueInSpecifiedUnits ) ] + #[doc = "Setter for the `valueInSpecifiedUnits` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/valueInSpecifiedUnits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub fn set_value_in_specified_units(this: &SvgLength, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGLength" , js_name = valueAsString ) ] + #[doc = "Getter for the `valueAsString` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/valueAsString)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub fn value_as_string(this: &SvgLength) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGLength" , js_name = valueAsString ) ] + #[doc = "Setter for the `valueAsString` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/valueAsString)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub fn set_value_as_string(this: &SvgLength, value: &str); + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGLength" , js_name = convertToSpecifiedUnits ) ] + #[doc = "The `convertToSpecifiedUnits()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/convertToSpecifiedUnits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub fn convert_to_specified_units(this: &SvgLength, unit_type: u16) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGLength" , js_name = newValueSpecifiedUnits ) ] + #[doc = "The `newValueSpecifiedUnits()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLength/newValueSpecifiedUnits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub fn new_value_specified_units( + this: &SvgLength, + unit_type: u16, + value_in_specified_units: f32, + ) -> Result<(), JsValue>; +} +impl SvgLength { + #[doc = "The `SVGLength.SVG_LENGTHTYPE_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub const SVG_LENGTHTYPE_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGLength.SVG_LENGTHTYPE_NUMBER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub const SVG_LENGTHTYPE_NUMBER: u16 = 1u64 as u16; + #[doc = "The `SVGLength.SVG_LENGTHTYPE_PERCENTAGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub const SVG_LENGTHTYPE_PERCENTAGE: u16 = 2u64 as u16; + #[doc = "The `SVGLength.SVG_LENGTHTYPE_EMS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub const SVG_LENGTHTYPE_EMS: u16 = 3u64 as u16; + #[doc = "The `SVGLength.SVG_LENGTHTYPE_EXS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub const SVG_LENGTHTYPE_EXS: u16 = 4u64 as u16; + #[doc = "The `SVGLength.SVG_LENGTHTYPE_PX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub const SVG_LENGTHTYPE_PX: u16 = 5u64 as u16; + #[doc = "The `SVGLength.SVG_LENGTHTYPE_CM` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub const SVG_LENGTHTYPE_CM: u16 = 6u64 as u16; + #[doc = "The `SVGLength.SVG_LENGTHTYPE_MM` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub const SVG_LENGTHTYPE_MM: u16 = 7u64 as u16; + #[doc = "The `SVGLength.SVG_LENGTHTYPE_IN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub const SVG_LENGTHTYPE_IN: u16 = 8u64 as u16; + #[doc = "The `SVGLength.SVG_LENGTHTYPE_PT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub const SVG_LENGTHTYPE_PT: u16 = 9u64 as u16; + #[doc = "The `SVGLength.SVG_LENGTHTYPE_PC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`*"] + pub const SVG_LENGTHTYPE_PC: u16 = 10u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgLengthList.rs b/crates/web-sys/src/features/gen_SvgLengthList.rs new file mode 100644 index 00000000..09eef821 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgLengthList.rs @@ -0,0 +1,92 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGLengthList , typescript_type = "SVGLengthList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgLengthList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLengthList`*"] + pub type SvgLengthList; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGLengthList" , js_name = numberOfItems ) ] + #[doc = "Getter for the `numberOfItems` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/numberOfItems)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLengthList`*"] + pub fn number_of_items(this: &SvgLengthList) -> u32; + #[cfg(feature = "SvgLength")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGLengthList" , js_name = appendItem ) ] + #[doc = "The `appendItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/appendItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] + pub fn append_item(this: &SvgLengthList, new_item: &SvgLength) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGLengthList" , js_name = clear ) ] + #[doc = "The `clear()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/clear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLengthList`*"] + pub fn clear(this: &SvgLengthList) -> Result<(), JsValue>; + #[cfg(feature = "SvgLength")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGLengthList" , js_name = getItem ) ] + #[doc = "The `getItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/getItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] + pub fn get_item(this: &SvgLengthList, index: u32) -> Result; + #[cfg(feature = "SvgLength")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGLengthList" , js_name = initialize ) ] + #[doc = "The `initialize()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/initialize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] + pub fn initialize(this: &SvgLengthList, new_item: &SvgLength) -> Result; + #[cfg(feature = "SvgLength")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGLengthList" , js_name = insertItemBefore ) ] + #[doc = "The `insertItemBefore()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/insertItemBefore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] + pub fn insert_item_before( + this: &SvgLengthList, + new_item: &SvgLength, + index: u32, + ) -> Result; + #[cfg(feature = "SvgLength")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGLengthList" , js_name = removeItem ) ] + #[doc = "The `removeItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/removeItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] + pub fn remove_item(this: &SvgLengthList, index: u32) -> Result; + #[cfg(feature = "SvgLength")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGLengthList" , js_name = replaceItem ) ] + #[doc = "The `replaceItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLengthList/replaceItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] + pub fn replace_item( + this: &SvgLengthList, + new_item: &SvgLength, + index: u32, + ) -> Result; + #[cfg(feature = "SvgLength")] + #[wasm_bindgen(catch, method, structural, js_class = "SVGLengthList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgLengthList`*"] + pub fn get(this: &SvgLengthList, index: u32) -> Result; +} diff --git a/crates/web-sys/src/features/gen_SvgLineElement.rs b/crates/web-sys/src/features/gen_SvgLineElement.rs new file mode 100644 index 00000000..ea84191c --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgLineElement.rs @@ -0,0 +1,46 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGLineElement , typescript_type = "SVGLineElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgLineElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLineElement`*"] + pub type SvgLineElement; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGLineElement" , js_name = x1 ) ] + #[doc = "Getter for the `x1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement/x1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLineElement`*"] + pub fn x1(this: &SvgLineElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGLineElement" , js_name = y1 ) ] + #[doc = "Getter for the `y1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement/y1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLineElement`*"] + pub fn y1(this: &SvgLineElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGLineElement" , js_name = x2 ) ] + #[doc = "Getter for the `x2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement/x2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLineElement`*"] + pub fn x2(this: &SvgLineElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGLineElement" , js_name = y2 ) ] + #[doc = "Getter for the `y2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLineElement/y2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLineElement`*"] + pub fn y2(this: &SvgLineElement) -> SvgAnimatedLength; +} diff --git a/crates/web-sys/src/features/gen_SvgLinearGradientElement.rs b/crates/web-sys/src/features/gen_SvgLinearGradientElement.rs new file mode 100644 index 00000000..c6801897 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgLinearGradientElement.rs @@ -0,0 +1,46 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGradientElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGLinearGradientElement , typescript_type = "SVGLinearGradientElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgLinearGradientElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLinearGradientElement`*"] + pub type SvgLinearGradientElement; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGLinearGradientElement" , js_name = x1 ) ] + #[doc = "Getter for the `x1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement/x1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLinearGradientElement`*"] + pub fn x1(this: &SvgLinearGradientElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGLinearGradientElement" , js_name = y1 ) ] + #[doc = "Getter for the `y1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement/y1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLinearGradientElement`*"] + pub fn y1(this: &SvgLinearGradientElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGLinearGradientElement" , js_name = x2 ) ] + #[doc = "Getter for the `x2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement/x2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLinearGradientElement`*"] + pub fn x2(this: &SvgLinearGradientElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGLinearGradientElement" , js_name = y2 ) ] + #[doc = "Getter for the `y2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGLinearGradientElement/y2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgLinearGradientElement`*"] + pub fn y2(this: &SvgLinearGradientElement) -> SvgAnimatedLength; +} diff --git a/crates/web-sys/src/features/gen_SvgMarkerElement.rs b/crates/web-sys/src/features/gen_SvgMarkerElement.rs new file mode 100644 index 00000000..d57345ef --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgMarkerElement.rs @@ -0,0 +1,127 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGMarkerElement , typescript_type = "SVGMarkerElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgMarkerElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"] + pub type SvgMarkerElement; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMarkerElement" , js_name = refX ) ] + #[doc = "Getter for the `refX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/refX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"] + pub fn ref_x(this: &SvgMarkerElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMarkerElement" , js_name = refY ) ] + #[doc = "Getter for the `refY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/refY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"] + pub fn ref_y(this: &SvgMarkerElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMarkerElement" , js_name = markerUnits ) ] + #[doc = "Getter for the `markerUnits` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/markerUnits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMarkerElement`*"] + pub fn marker_units(this: &SvgMarkerElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMarkerElement" , js_name = markerWidth ) ] + #[doc = "Getter for the `markerWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/markerWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"] + pub fn marker_width(this: &SvgMarkerElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMarkerElement" , js_name = markerHeight ) ] + #[doc = "Getter for the `markerHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/markerHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMarkerElement`*"] + pub fn marker_height(this: &SvgMarkerElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMarkerElement" , js_name = orientType ) ] + #[doc = "Getter for the `orientType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/orientType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMarkerElement`*"] + pub fn orient_type(this: &SvgMarkerElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedAngle")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMarkerElement" , js_name = orientAngle ) ] + #[doc = "Getter for the `orientAngle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/orientAngle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedAngle`, `SvgMarkerElement`*"] + pub fn orient_angle(this: &SvgMarkerElement) -> SvgAnimatedAngle; + #[cfg(feature = "SvgAnimatedRect")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMarkerElement" , js_name = viewBox ) ] + #[doc = "Getter for the `viewBox` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/viewBox)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgMarkerElement`*"] + pub fn view_box(this: &SvgMarkerElement) -> SvgAnimatedRect; + #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMarkerElement" , js_name = preserveAspectRatio ) ] + #[doc = "Getter for the `preserveAspectRatio` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/preserveAspectRatio)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgMarkerElement`*"] + pub fn preserve_aspect_ratio(this: &SvgMarkerElement) -> SvgAnimatedPreserveAspectRatio; + #[cfg(feature = "SvgAngle")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGMarkerElement" , js_name = setOrientToAngle ) ] + #[doc = "The `setOrientToAngle()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/setOrientToAngle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`, `SvgMarkerElement`*"] + pub fn set_orient_to_angle(this: &SvgMarkerElement, angle: &SvgAngle) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "SVGMarkerElement" , js_name = setOrientToAuto ) ] + #[doc = "The `setOrientToAuto()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMarkerElement/setOrientToAuto)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"] + pub fn set_orient_to_auto(this: &SvgMarkerElement); +} +impl SvgMarkerElement { + #[doc = "The `SVGMarkerElement.SVG_MARKERUNITS_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"] + pub const SVG_MARKERUNITS_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGMarkerElement.SVG_MARKERUNITS_USERSPACEONUSE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"] + pub const SVG_MARKERUNITS_USERSPACEONUSE: u16 = 1u64 as u16; + #[doc = "The `SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"] + pub const SVG_MARKERUNITS_STROKEWIDTH: u16 = 2u64 as u16; + #[doc = "The `SVGMarkerElement.SVG_MARKER_ORIENT_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"] + pub const SVG_MARKER_ORIENT_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGMarkerElement.SVG_MARKER_ORIENT_AUTO` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"] + pub const SVG_MARKER_ORIENT_AUTO: u16 = 1u64 as u16; + #[doc = "The `SVGMarkerElement.SVG_MARKER_ORIENT_ANGLE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMarkerElement`*"] + pub const SVG_MARKER_ORIENT_ANGLE: u16 = 2u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgMaskElement.rs b/crates/web-sys/src/features/gen_SvgMaskElement.rs new file mode 100644 index 00000000..db6c24e8 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgMaskElement.rs @@ -0,0 +1,72 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGMaskElement , typescript_type = "SVGMaskElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgMaskElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMaskElement`*"] + pub type SvgMaskElement; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMaskElement" , js_name = maskUnits ) ] + #[doc = "Getter for the `maskUnits` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/maskUnits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMaskElement`*"] + pub fn mask_units(this: &SvgMaskElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMaskElement" , js_name = maskContentUnits ) ] + #[doc = "Getter for the `maskContentUnits` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/maskContentUnits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgMaskElement`*"] + pub fn mask_content_units(this: &SvgMaskElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMaskElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"] + pub fn x(this: &SvgMaskElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMaskElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"] + pub fn y(this: &SvgMaskElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMaskElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"] + pub fn width(this: &SvgMaskElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMaskElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMaskElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgMaskElement`*"] + pub fn height(this: &SvgMaskElement) -> SvgAnimatedLength; +} +impl SvgMaskElement { + #[doc = "The `SVGMaskElement.SVG_MASKTYPE_LUMINANCE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMaskElement`*"] + pub const SVG_MASKTYPE_LUMINANCE: u16 = 0i64 as u16; + #[doc = "The `SVGMaskElement.SVG_MASKTYPE_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMaskElement`*"] + pub const SVG_MASKTYPE_ALPHA: u16 = 1u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgMatrix.rs b/crates/web-sys/src/features/gen_SvgMatrix.rs new file mode 100644 index 00000000..fe7c9b07 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgMatrix.rs @@ -0,0 +1,179 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGMatrix , typescript_type = "SVGMatrix" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgMatrix` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub type SvgMatrix; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMatrix" , js_name = a ) ] + #[doc = "Getter for the `a` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/a)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn a(this: &SvgMatrix) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGMatrix" , js_name = a ) ] + #[doc = "Setter for the `a` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/a)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn set_a(this: &SvgMatrix, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMatrix" , js_name = b ) ] + #[doc = "Getter for the `b` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/b)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn b(this: &SvgMatrix) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGMatrix" , js_name = b ) ] + #[doc = "Setter for the `b` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/b)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn set_b(this: &SvgMatrix, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMatrix" , js_name = c ) ] + #[doc = "Getter for the `c` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/c)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn c(this: &SvgMatrix) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGMatrix" , js_name = c ) ] + #[doc = "Setter for the `c` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/c)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn set_c(this: &SvgMatrix, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMatrix" , js_name = d ) ] + #[doc = "Getter for the `d` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/d)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn d(this: &SvgMatrix) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGMatrix" , js_name = d ) ] + #[doc = "Setter for the `d` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/d)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn set_d(this: &SvgMatrix, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMatrix" , js_name = e ) ] + #[doc = "Getter for the `e` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/e)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn e(this: &SvgMatrix) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGMatrix" , js_name = e ) ] + #[doc = "Setter for the `e` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/e)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn set_e(this: &SvgMatrix, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMatrix" , js_name = f ) ] + #[doc = "Getter for the `f` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn f(this: &SvgMatrix) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGMatrix" , js_name = f ) ] + #[doc = "Setter for the `f` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn set_f(this: &SvgMatrix, value: f32); + # [ wasm_bindgen ( method , structural , js_class = "SVGMatrix" , js_name = flipX ) ] + #[doc = "The `flipX()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/flipX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn flip_x(this: &SvgMatrix) -> SvgMatrix; + # [ wasm_bindgen ( method , structural , js_class = "SVGMatrix" , js_name = flipY ) ] + #[doc = "The `flipY()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/flipY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn flip_y(this: &SvgMatrix) -> SvgMatrix; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGMatrix" , js_name = inverse ) ] + #[doc = "The `inverse()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/inverse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn inverse(this: &SvgMatrix) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "SVGMatrix" , js_name = multiply ) ] + #[doc = "The `multiply()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/multiply)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn multiply(this: &SvgMatrix, second_matrix: &SvgMatrix) -> SvgMatrix; + # [ wasm_bindgen ( method , structural , js_class = "SVGMatrix" , js_name = rotate ) ] + #[doc = "The `rotate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/rotate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn rotate(this: &SvgMatrix, angle: f32) -> SvgMatrix; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGMatrix" , js_name = rotateFromVector ) ] + #[doc = "The `rotateFromVector()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/rotateFromVector)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn rotate_from_vector(this: &SvgMatrix, x: f32, y: f32) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "SVGMatrix" , js_name = scale ) ] + #[doc = "The `scale()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/scale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn scale(this: &SvgMatrix, scale_factor: f32) -> SvgMatrix; + # [ wasm_bindgen ( method , structural , js_class = "SVGMatrix" , js_name = scaleNonUniform ) ] + #[doc = "The `scaleNonUniform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/scaleNonUniform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn scale_non_uniform( + this: &SvgMatrix, + scale_factor_x: f32, + scale_factor_y: f32, + ) -> SvgMatrix; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGMatrix" , js_name = skewX ) ] + #[doc = "The `skewX()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/skewX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn skew_x(this: &SvgMatrix, angle: f32) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGMatrix" , js_name = skewY ) ] + #[doc = "The `skewY()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/skewY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn skew_y(this: &SvgMatrix, angle: f32) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "SVGMatrix" , js_name = translate ) ] + #[doc = "The `translate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMatrix/translate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`*"] + pub fn translate(this: &SvgMatrix, x: f32, y: f32) -> SvgMatrix; +} diff --git a/crates/web-sys/src/features/gen_SvgMetadataElement.rs b/crates/web-sys/src/features/gen_SvgMetadataElement.rs new file mode 100644 index 00000000..92dfb99d --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgMetadataElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGMetadataElement , typescript_type = "SVGMetadataElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgMetadataElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMetadataElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMetadataElement`*"] + pub type SvgMetadataElement; +} diff --git a/crates/web-sys/src/features/gen_SvgNumber.rs b/crates/web-sys/src/features/gen_SvgNumber.rs new file mode 100644 index 00000000..a607e522 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgNumber.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGNumber , typescript_type = "SVGNumber" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgNumber` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumber)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgNumber`*"] + pub type SvgNumber; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGNumber" , js_name = value ) ] + #[doc = "Getter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumber/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgNumber`*"] + pub fn value(this: &SvgNumber) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGNumber" , js_name = value ) ] + #[doc = "Setter for the `value` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumber/value)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgNumber`*"] + pub fn set_value(this: &SvgNumber, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgNumberList.rs b/crates/web-sys/src/features/gen_SvgNumberList.rs new file mode 100644 index 00000000..caaa8b19 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgNumberList.rs @@ -0,0 +1,92 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGNumberList , typescript_type = "SVGNumberList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgNumberList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgNumberList`*"] + pub type SvgNumberList; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGNumberList" , js_name = numberOfItems ) ] + #[doc = "Getter for the `numberOfItems` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/numberOfItems)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgNumberList`*"] + pub fn number_of_items(this: &SvgNumberList) -> u32; + #[cfg(feature = "SvgNumber")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGNumberList" , js_name = appendItem ) ] + #[doc = "The `appendItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/appendItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] + pub fn append_item(this: &SvgNumberList, new_item: &SvgNumber) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGNumberList" , js_name = clear ) ] + #[doc = "The `clear()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/clear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgNumberList`*"] + pub fn clear(this: &SvgNumberList) -> Result<(), JsValue>; + #[cfg(feature = "SvgNumber")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGNumberList" , js_name = getItem ) ] + #[doc = "The `getItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/getItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] + pub fn get_item(this: &SvgNumberList, index: u32) -> Result; + #[cfg(feature = "SvgNumber")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGNumberList" , js_name = initialize ) ] + #[doc = "The `initialize()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/initialize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] + pub fn initialize(this: &SvgNumberList, new_item: &SvgNumber) -> Result; + #[cfg(feature = "SvgNumber")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGNumberList" , js_name = insertItemBefore ) ] + #[doc = "The `insertItemBefore()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/insertItemBefore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] + pub fn insert_item_before( + this: &SvgNumberList, + new_item: &SvgNumber, + index: u32, + ) -> Result; + #[cfg(feature = "SvgNumber")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGNumberList" , js_name = removeItem ) ] + #[doc = "The `removeItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/removeItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] + pub fn remove_item(this: &SvgNumberList, index: u32) -> Result; + #[cfg(feature = "SvgNumber")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGNumberList" , js_name = replaceItem ) ] + #[doc = "The `replaceItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGNumberList/replaceItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] + pub fn replace_item( + this: &SvgNumberList, + new_item: &SvgNumber, + index: u32, + ) -> Result; + #[cfg(feature = "SvgNumber")] + #[wasm_bindgen(catch, method, structural, js_class = "SVGNumberList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgNumberList`*"] + pub fn get(this: &SvgNumberList, index: u32) -> Result; +} diff --git a/crates/web-sys/src/features/gen_SvgPathElement.rs b/crates/web-sys/src/features/gen_SvgPathElement.rs new file mode 100644 index 00000000..fd1e03aa --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathElement.rs @@ -0,0 +1,37 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGPathElement , typescript_type = "SVGPathElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathElement`*"] + pub type SvgPathElement; + #[cfg(feature = "SvgPathSegList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathElement" , js_name = pathSegList ) ] + #[doc = "Getter for the `pathSegList` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement/pathSegList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathElement`, `SvgPathSegList`*"] + pub fn path_seg_list(this: &SvgPathElement) -> SvgPathSegList; + #[cfg(feature = "SvgPathSegList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathElement" , js_name = animatedPathSegList ) ] + #[doc = "Getter for the `animatedPathSegList` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement/animatedPathSegList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathElement`, `SvgPathSegList`*"] + pub fn animated_path_seg_list(this: &SvgPathElement) -> SvgPathSegList; + # [ wasm_bindgen ( method , structural , js_class = "SVGPathElement" , js_name = getPathSegAtLength ) ] + #[doc = "The `getPathSegAtLength()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement/getPathSegAtLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathElement`*"] + pub fn get_path_seg_at_length(this: &SvgPathElement, distance: f32) -> u32; +} diff --git a/crates/web-sys/src/features/gen_SvgPathSeg.rs b/crates/web-sys/src/features/gen_SvgPathSeg.rs new file mode 100644 index 00000000..af3416f5 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSeg.rs @@ -0,0 +1,110 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = SVGPathSeg , typescript_type = "SVGPathSeg" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSeg` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSeg)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub type SvgPathSeg; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSeg" , js_name = pathSegType ) ] + #[doc = "Getter for the `pathSegType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSeg/pathSegType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub fn path_seg_type(this: &SvgPathSeg) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSeg" , js_name = pathSegTypeAsLetter ) ] + #[doc = "Getter for the `pathSegTypeAsLetter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSeg/pathSegTypeAsLetter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub fn path_seg_type_as_letter(this: &SvgPathSeg) -> String; +} +impl SvgPathSeg { + #[doc = "The `SVGPathSeg.PATHSEG_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_CLOSEPATH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_CLOSEPATH: u16 = 1u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_MOVETO_ABS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_MOVETO_ABS: u16 = 2u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_MOVETO_REL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_MOVETO_REL: u16 = 3u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_LINETO_ABS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_LINETO_ABS: u16 = 4u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_LINETO_REL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_LINETO_REL: u16 = 5u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_CURVETO_CUBIC_ABS: u16 = 6u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_CURVETO_CUBIC_REL: u16 = 7u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_CURVETO_QUADRATIC_ABS: u16 = 8u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_CURVETO_QUADRATIC_REL: u16 = 9u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_ARC_ABS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_ARC_ABS: u16 = 10u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_ARC_REL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_ARC_REL: u16 = 11u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_LINETO_HORIZONTAL_ABS: u16 = 12u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_LINETO_HORIZONTAL_REL: u16 = 13u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_LINETO_VERTICAL_ABS: u16 = 14u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_LINETO_VERTICAL_REL: u16 = 15u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_CURVETO_CUBIC_SMOOTH_ABS: u16 = 16u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_CURVETO_CUBIC_SMOOTH_REL: u16 = 17u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS: u16 = 18u64 as u16; + #[doc = "The `SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`*"] + pub const PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL: u16 = 19u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegArcAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegArcAbs.rs new file mode 100644 index 00000000..339b83a7 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegArcAbs.rs @@ -0,0 +1,112 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegArcAbs , typescript_type = "SVGPathSegArcAbs" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegArcAbs` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] + pub type SvgPathSegArcAbs; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] + pub fn x(this: &SvgPathSegArcAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] + pub fn set_x(this: &SvgPathSegArcAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] + pub fn y(this: &SvgPathSegArcAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] + pub fn set_y(this: &SvgPathSegArcAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = r1 ) ] + #[doc = "Getter for the `r1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/r1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] + pub fn r1(this: &SvgPathSegArcAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = r1 ) ] + #[doc = "Setter for the `r1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/r1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] + pub fn set_r1(this: &SvgPathSegArcAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = r2 ) ] + #[doc = "Getter for the `r2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/r2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] + pub fn r2(this: &SvgPathSegArcAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = r2 ) ] + #[doc = "Setter for the `r2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/r2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] + pub fn set_r2(this: &SvgPathSegArcAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = angle ) ] + #[doc = "Getter for the `angle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/angle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] + pub fn angle(this: &SvgPathSegArcAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = angle ) ] + #[doc = "Setter for the `angle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/angle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] + pub fn set_angle(this: &SvgPathSegArcAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = largeArcFlag ) ] + #[doc = "Getter for the `largeArcFlag` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/largeArcFlag)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] + pub fn large_arc_flag(this: &SvgPathSegArcAbs) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = largeArcFlag ) ] + #[doc = "Setter for the `largeArcFlag` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/largeArcFlag)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] + pub fn set_large_arc_flag(this: &SvgPathSegArcAbs, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegArcAbs" , js_name = sweepFlag ) ] + #[doc = "Getter for the `sweepFlag` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/sweepFlag)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] + pub fn sweep_flag(this: &SvgPathSegArcAbs) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegArcAbs" , js_name = sweepFlag ) ] + #[doc = "Setter for the `sweepFlag` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcAbs/sweepFlag)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcAbs`*"] + pub fn set_sweep_flag(this: &SvgPathSegArcAbs, value: bool); +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegArcRel.rs b/crates/web-sys/src/features/gen_SvgPathSegArcRel.rs new file mode 100644 index 00000000..05d0e0c1 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegArcRel.rs @@ -0,0 +1,112 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegArcRel , typescript_type = "SVGPathSegArcRel" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegArcRel` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] + pub type SvgPathSegArcRel; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] + pub fn x(this: &SvgPathSegArcRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] + pub fn set_x(this: &SvgPathSegArcRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] + pub fn y(this: &SvgPathSegArcRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] + pub fn set_y(this: &SvgPathSegArcRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = r1 ) ] + #[doc = "Getter for the `r1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/r1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] + pub fn r1(this: &SvgPathSegArcRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = r1 ) ] + #[doc = "Setter for the `r1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/r1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] + pub fn set_r1(this: &SvgPathSegArcRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = r2 ) ] + #[doc = "Getter for the `r2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/r2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] + pub fn r2(this: &SvgPathSegArcRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = r2 ) ] + #[doc = "Setter for the `r2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/r2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] + pub fn set_r2(this: &SvgPathSegArcRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = angle ) ] + #[doc = "Getter for the `angle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/angle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] + pub fn angle(this: &SvgPathSegArcRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = angle ) ] + #[doc = "Setter for the `angle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/angle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] + pub fn set_angle(this: &SvgPathSegArcRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = largeArcFlag ) ] + #[doc = "Getter for the `largeArcFlag` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/largeArcFlag)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] + pub fn large_arc_flag(this: &SvgPathSegArcRel) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = largeArcFlag ) ] + #[doc = "Setter for the `largeArcFlag` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/largeArcFlag)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] + pub fn set_large_arc_flag(this: &SvgPathSegArcRel, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegArcRel" , js_name = sweepFlag ) ] + #[doc = "Getter for the `sweepFlag` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/sweepFlag)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] + pub fn sweep_flag(this: &SvgPathSegArcRel) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegArcRel" , js_name = sweepFlag ) ] + #[doc = "Setter for the `sweepFlag` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegArcRel/sweepFlag)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegArcRel`*"] + pub fn set_sweep_flag(this: &SvgPathSegArcRel, value: bool); +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegClosePath.rs b/crates/web-sys/src/features/gen_SvgPathSegClosePath.rs new file mode 100644 index 00000000..abaa1590 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegClosePath.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegClosePath , typescript_type = "SVGPathSegClosePath" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegClosePath` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegClosePath)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegClosePath`*"] + pub type SvgPathSegClosePath; +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicAbs.rs new file mode 100644 index 00000000..ee601a49 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicAbs.rs @@ -0,0 +1,98 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoCubicAbs , typescript_type = "SVGPathSegCurvetoCubicAbs" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegCurvetoCubicAbs` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] + pub type SvgPathSegCurvetoCubicAbs; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] + pub fn x(this: &SvgPathSegCurvetoCubicAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] + pub fn set_x(this: &SvgPathSegCurvetoCubicAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] + pub fn y(this: &SvgPathSegCurvetoCubicAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] + pub fn set_y(this: &SvgPathSegCurvetoCubicAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x1 ) ] + #[doc = "Getter for the `x1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] + pub fn x1(this: &SvgPathSegCurvetoCubicAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x1 ) ] + #[doc = "Setter for the `x1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] + pub fn set_x1(this: &SvgPathSegCurvetoCubicAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y1 ) ] + #[doc = "Getter for the `y1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] + pub fn y1(this: &SvgPathSegCurvetoCubicAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y1 ) ] + #[doc = "Setter for the `y1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] + pub fn set_y1(this: &SvgPathSegCurvetoCubicAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x2 ) ] + #[doc = "Getter for the `x2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] + pub fn x2(this: &SvgPathSegCurvetoCubicAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = x2 ) ] + #[doc = "Setter for the `x2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/x2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] + pub fn set_x2(this: &SvgPathSegCurvetoCubicAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y2 ) ] + #[doc = "Getter for the `y2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] + pub fn y2(this: &SvgPathSegCurvetoCubicAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicAbs" , js_name = y2 ) ] + #[doc = "Setter for the `y2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicAbs/y2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicAbs`*"] + pub fn set_y2(this: &SvgPathSegCurvetoCubicAbs, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicRel.rs b/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicRel.rs new file mode 100644 index 00000000..62b63c29 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicRel.rs @@ -0,0 +1,98 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoCubicRel , typescript_type = "SVGPathSegCurvetoCubicRel" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegCurvetoCubicRel` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] + pub type SvgPathSegCurvetoCubicRel; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] + pub fn x(this: &SvgPathSegCurvetoCubicRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] + pub fn set_x(this: &SvgPathSegCurvetoCubicRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] + pub fn y(this: &SvgPathSegCurvetoCubicRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] + pub fn set_y(this: &SvgPathSegCurvetoCubicRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x1 ) ] + #[doc = "Getter for the `x1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] + pub fn x1(this: &SvgPathSegCurvetoCubicRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x1 ) ] + #[doc = "Setter for the `x1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] + pub fn set_x1(this: &SvgPathSegCurvetoCubicRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y1 ) ] + #[doc = "Getter for the `y1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] + pub fn y1(this: &SvgPathSegCurvetoCubicRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y1 ) ] + #[doc = "Setter for the `y1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] + pub fn set_y1(this: &SvgPathSegCurvetoCubicRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x2 ) ] + #[doc = "Getter for the `x2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] + pub fn x2(this: &SvgPathSegCurvetoCubicRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = x2 ) ] + #[doc = "Setter for the `x2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/x2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] + pub fn set_x2(this: &SvgPathSegCurvetoCubicRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y2 ) ] + #[doc = "Getter for the `y2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] + pub fn y2(this: &SvgPathSegCurvetoCubicRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicRel" , js_name = y2 ) ] + #[doc = "Setter for the `y2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicRel/y2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicRel`*"] + pub fn set_y2(this: &SvgPathSegCurvetoCubicRel, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicSmoothAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicSmoothAbs.rs new file mode 100644 index 00000000..a433ccfb --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicSmoothAbs.rs @@ -0,0 +1,70 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoCubicSmoothAbs , typescript_type = "SVGPathSegCurvetoCubicSmoothAbs" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegCurvetoCubicSmoothAbs` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] + pub type SvgPathSegCurvetoCubicSmoothAbs; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] + pub fn x(this: &SvgPathSegCurvetoCubicSmoothAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] + pub fn set_x(this: &SvgPathSegCurvetoCubicSmoothAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] + pub fn y(this: &SvgPathSegCurvetoCubicSmoothAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] + pub fn set_y(this: &SvgPathSegCurvetoCubicSmoothAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = x2 ) ] + #[doc = "Getter for the `x2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/x2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] + pub fn x2(this: &SvgPathSegCurvetoCubicSmoothAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = x2 ) ] + #[doc = "Setter for the `x2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/x2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] + pub fn set_x2(this: &SvgPathSegCurvetoCubicSmoothAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = y2 ) ] + #[doc = "Getter for the `y2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/y2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] + pub fn y2(this: &SvgPathSegCurvetoCubicSmoothAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothAbs" , js_name = y2 ) ] + #[doc = "Setter for the `y2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothAbs/y2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothAbs`*"] + pub fn set_y2(this: &SvgPathSegCurvetoCubicSmoothAbs, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicSmoothRel.rs b/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicSmoothRel.rs new file mode 100644 index 00000000..e5ce0875 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegCurvetoCubicSmoothRel.rs @@ -0,0 +1,70 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoCubicSmoothRel , typescript_type = "SVGPathSegCurvetoCubicSmoothRel" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegCurvetoCubicSmoothRel` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] + pub type SvgPathSegCurvetoCubicSmoothRel; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] + pub fn x(this: &SvgPathSegCurvetoCubicSmoothRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] + pub fn set_x(this: &SvgPathSegCurvetoCubicSmoothRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] + pub fn y(this: &SvgPathSegCurvetoCubicSmoothRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] + pub fn set_y(this: &SvgPathSegCurvetoCubicSmoothRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = x2 ) ] + #[doc = "Getter for the `x2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/x2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] + pub fn x2(this: &SvgPathSegCurvetoCubicSmoothRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = x2 ) ] + #[doc = "Setter for the `x2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/x2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] + pub fn set_x2(this: &SvgPathSegCurvetoCubicSmoothRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = y2 ) ] + #[doc = "Getter for the `y2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/y2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] + pub fn y2(this: &SvgPathSegCurvetoCubicSmoothRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoCubicSmoothRel" , js_name = y2 ) ] + #[doc = "Setter for the `y2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoCubicSmoothRel/y2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoCubicSmoothRel`*"] + pub fn set_y2(this: &SvgPathSegCurvetoCubicSmoothRel, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticAbs.rs new file mode 100644 index 00000000..375d9f27 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticAbs.rs @@ -0,0 +1,70 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoQuadraticAbs , typescript_type = "SVGPathSegCurvetoQuadraticAbs" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegCurvetoQuadraticAbs` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] + pub type SvgPathSegCurvetoQuadraticAbs; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] + pub fn x(this: &SvgPathSegCurvetoQuadraticAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] + pub fn set_x(this: &SvgPathSegCurvetoQuadraticAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] + pub fn y(this: &SvgPathSegCurvetoQuadraticAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] + pub fn set_y(this: &SvgPathSegCurvetoQuadraticAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = x1 ) ] + #[doc = "Getter for the `x1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/x1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] + pub fn x1(this: &SvgPathSegCurvetoQuadraticAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = x1 ) ] + #[doc = "Setter for the `x1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/x1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] + pub fn set_x1(this: &SvgPathSegCurvetoQuadraticAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = y1 ) ] + #[doc = "Getter for the `y1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/y1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] + pub fn y1(this: &SvgPathSegCurvetoQuadraticAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticAbs" , js_name = y1 ) ] + #[doc = "Setter for the `y1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticAbs/y1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticAbs`*"] + pub fn set_y1(this: &SvgPathSegCurvetoQuadraticAbs, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticRel.rs b/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticRel.rs new file mode 100644 index 00000000..df389970 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticRel.rs @@ -0,0 +1,70 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoQuadraticRel , typescript_type = "SVGPathSegCurvetoQuadraticRel" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegCurvetoQuadraticRel` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] + pub type SvgPathSegCurvetoQuadraticRel; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] + pub fn x(this: &SvgPathSegCurvetoQuadraticRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] + pub fn set_x(this: &SvgPathSegCurvetoQuadraticRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] + pub fn y(this: &SvgPathSegCurvetoQuadraticRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] + pub fn set_y(this: &SvgPathSegCurvetoQuadraticRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = x1 ) ] + #[doc = "Getter for the `x1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/x1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] + pub fn x1(this: &SvgPathSegCurvetoQuadraticRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = x1 ) ] + #[doc = "Setter for the `x1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/x1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] + pub fn set_x1(this: &SvgPathSegCurvetoQuadraticRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = y1 ) ] + #[doc = "Getter for the `y1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/y1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] + pub fn y1(this: &SvgPathSegCurvetoQuadraticRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticRel" , js_name = y1 ) ] + #[doc = "Setter for the `y1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticRel/y1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticRel`*"] + pub fn set_y1(this: &SvgPathSegCurvetoQuadraticRel, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticSmoothAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticSmoothAbs.rs new file mode 100644 index 00000000..3d8bc4d8 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticSmoothAbs.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoQuadraticSmoothAbs , typescript_type = "SVGPathSegCurvetoQuadraticSmoothAbs" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegCurvetoQuadraticSmoothAbs` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothAbs)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothAbs`*"] + pub type SvgPathSegCurvetoQuadraticSmoothAbs; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticSmoothAbs" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothAbs/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothAbs`*"] + pub fn x(this: &SvgPathSegCurvetoQuadraticSmoothAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticSmoothAbs" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothAbs/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothAbs`*"] + pub fn set_x(this: &SvgPathSegCurvetoQuadraticSmoothAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticSmoothAbs" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothAbs/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothAbs`*"] + pub fn y(this: &SvgPathSegCurvetoQuadraticSmoothAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticSmoothAbs" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothAbs/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothAbs`*"] + pub fn set_y(this: &SvgPathSegCurvetoQuadraticSmoothAbs, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticSmoothRel.rs b/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticSmoothRel.rs new file mode 100644 index 00000000..c7bfe7b8 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegCurvetoQuadraticSmoothRel.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegCurvetoQuadraticSmoothRel , typescript_type = "SVGPathSegCurvetoQuadraticSmoothRel" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegCurvetoQuadraticSmoothRel` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothRel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothRel`*"] + pub type SvgPathSegCurvetoQuadraticSmoothRel; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticSmoothRel" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothRel/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothRel`*"] + pub fn x(this: &SvgPathSegCurvetoQuadraticSmoothRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticSmoothRel" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothRel/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothRel`*"] + pub fn set_x(this: &SvgPathSegCurvetoQuadraticSmoothRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegCurvetoQuadraticSmoothRel" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothRel/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothRel`*"] + pub fn y(this: &SvgPathSegCurvetoQuadraticSmoothRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegCurvetoQuadraticSmoothRel" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegCurvetoQuadraticSmoothRel/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegCurvetoQuadraticSmoothRel`*"] + pub fn set_y(this: &SvgPathSegCurvetoQuadraticSmoothRel, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegLinetoAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegLinetoAbs.rs new file mode 100644 index 00000000..64ef8f91 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegLinetoAbs.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoAbs , typescript_type = "SVGPathSegLinetoAbs" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegLinetoAbs` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoAbs)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoAbs`*"] + pub type SvgPathSegLinetoAbs; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegLinetoAbs" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoAbs/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoAbs`*"] + pub fn x(this: &SvgPathSegLinetoAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegLinetoAbs" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoAbs/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoAbs`*"] + pub fn set_x(this: &SvgPathSegLinetoAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegLinetoAbs" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoAbs/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoAbs`*"] + pub fn y(this: &SvgPathSegLinetoAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegLinetoAbs" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoAbs/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoAbs`*"] + pub fn set_y(this: &SvgPathSegLinetoAbs, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegLinetoHorizontalAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegLinetoHorizontalAbs.rs new file mode 100644 index 00000000..474246f2 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegLinetoHorizontalAbs.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoHorizontalAbs , typescript_type = "SVGPathSegLinetoHorizontalAbs" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegLinetoHorizontalAbs` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalAbs)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoHorizontalAbs`*"] + pub type SvgPathSegLinetoHorizontalAbs; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegLinetoHorizontalAbs" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalAbs/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoHorizontalAbs`*"] + pub fn x(this: &SvgPathSegLinetoHorizontalAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegLinetoHorizontalAbs" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalAbs/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoHorizontalAbs`*"] + pub fn set_x(this: &SvgPathSegLinetoHorizontalAbs, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegLinetoHorizontalRel.rs b/crates/web-sys/src/features/gen_SvgPathSegLinetoHorizontalRel.rs new file mode 100644 index 00000000..a553e49e --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegLinetoHorizontalRel.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoHorizontalRel , typescript_type = "SVGPathSegLinetoHorizontalRel" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegLinetoHorizontalRel` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalRel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoHorizontalRel`*"] + pub type SvgPathSegLinetoHorizontalRel; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegLinetoHorizontalRel" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalRel/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoHorizontalRel`*"] + pub fn x(this: &SvgPathSegLinetoHorizontalRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegLinetoHorizontalRel" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoHorizontalRel/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoHorizontalRel`*"] + pub fn set_x(this: &SvgPathSegLinetoHorizontalRel, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegLinetoRel.rs b/crates/web-sys/src/features/gen_SvgPathSegLinetoRel.rs new file mode 100644 index 00000000..736e130c --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegLinetoRel.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoRel , typescript_type = "SVGPathSegLinetoRel" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegLinetoRel` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoRel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoRel`*"] + pub type SvgPathSegLinetoRel; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegLinetoRel" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoRel/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoRel`*"] + pub fn x(this: &SvgPathSegLinetoRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegLinetoRel" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoRel/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoRel`*"] + pub fn set_x(this: &SvgPathSegLinetoRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegLinetoRel" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoRel/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoRel`*"] + pub fn y(this: &SvgPathSegLinetoRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegLinetoRel" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoRel/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoRel`*"] + pub fn set_y(this: &SvgPathSegLinetoRel, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegLinetoVerticalAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegLinetoVerticalAbs.rs new file mode 100644 index 00000000..e8a8403a --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegLinetoVerticalAbs.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoVerticalAbs , typescript_type = "SVGPathSegLinetoVerticalAbs" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegLinetoVerticalAbs` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalAbs)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoVerticalAbs`*"] + pub type SvgPathSegLinetoVerticalAbs; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegLinetoVerticalAbs" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalAbs/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoVerticalAbs`*"] + pub fn y(this: &SvgPathSegLinetoVerticalAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegLinetoVerticalAbs" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalAbs/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoVerticalAbs`*"] + pub fn set_y(this: &SvgPathSegLinetoVerticalAbs, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegLinetoVerticalRel.rs b/crates/web-sys/src/features/gen_SvgPathSegLinetoVerticalRel.rs new file mode 100644 index 00000000..80d06fe8 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegLinetoVerticalRel.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegLinetoVerticalRel , typescript_type = "SVGPathSegLinetoVerticalRel" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegLinetoVerticalRel` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalRel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoVerticalRel`*"] + pub type SvgPathSegLinetoVerticalRel; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegLinetoVerticalRel" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalRel/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoVerticalRel`*"] + pub fn y(this: &SvgPathSegLinetoVerticalRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegLinetoVerticalRel" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegLinetoVerticalRel/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegLinetoVerticalRel`*"] + pub fn set_y(this: &SvgPathSegLinetoVerticalRel, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegList.rs b/crates/web-sys/src/features/gen_SvgPathSegList.rs new file mode 100644 index 00000000..5ee4495d --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegList.rs @@ -0,0 +1,43 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGPathSegList , typescript_type = "SVGPathSegList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegList`*"] + pub type SvgPathSegList; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegList" , js_name = numberOfItems ) ] + #[doc = "Getter for the `numberOfItems` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList/numberOfItems)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegList`*"] + pub fn number_of_items(this: &SvgPathSegList) -> u32; + #[cfg(feature = "SvgPathSeg")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGPathSegList" , js_name = getItem ) ] + #[doc = "The `getItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegList/getItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`, `SvgPathSegList`*"] + pub fn get_item(this: &SvgPathSegList, index: u32) -> Result; + #[cfg(feature = "SvgPathSeg")] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGPathSegList", + indexing_getter + )] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSeg`, `SvgPathSegList`*"] + pub fn get(this: &SvgPathSegList, index: u32) -> Result; +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegMovetoAbs.rs b/crates/web-sys/src/features/gen_SvgPathSegMovetoAbs.rs new file mode 100644 index 00000000..757504c8 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegMovetoAbs.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegMovetoAbs , typescript_type = "SVGPathSegMovetoAbs" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegMovetoAbs` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoAbs)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoAbs`*"] + pub type SvgPathSegMovetoAbs; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegMovetoAbs" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoAbs/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoAbs`*"] + pub fn x(this: &SvgPathSegMovetoAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegMovetoAbs" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoAbs/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoAbs`*"] + pub fn set_x(this: &SvgPathSegMovetoAbs, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegMovetoAbs" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoAbs/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoAbs`*"] + pub fn y(this: &SvgPathSegMovetoAbs) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegMovetoAbs" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoAbs/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoAbs`*"] + pub fn set_y(this: &SvgPathSegMovetoAbs, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgPathSegMovetoRel.rs b/crates/web-sys/src/features/gen_SvgPathSegMovetoRel.rs new file mode 100644 index 00000000..62fd6ad4 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPathSegMovetoRel.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = SvgPathSeg , extends = :: js_sys :: Object , js_name = SVGPathSegMovetoRel , typescript_type = "SVGPathSegMovetoRel" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPathSegMovetoRel` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoRel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoRel`*"] + pub type SvgPathSegMovetoRel; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegMovetoRel" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoRel/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoRel`*"] + pub fn x(this: &SvgPathSegMovetoRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegMovetoRel" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoRel/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoRel`*"] + pub fn set_x(this: &SvgPathSegMovetoRel, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPathSegMovetoRel" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoRel/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoRel`*"] + pub fn y(this: &SvgPathSegMovetoRel) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPathSegMovetoRel" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPathSegMovetoRel/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPathSegMovetoRel`*"] + pub fn set_y(this: &SvgPathSegMovetoRel, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgPatternElement.rs b/crates/web-sys/src/features/gen_SvgPatternElement.rs new file mode 100644 index 00000000..386eee89 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPatternElement.rs @@ -0,0 +1,94 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGPatternElement , typescript_type = "SVGPatternElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPatternElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPatternElement`*"] + pub type SvgPatternElement; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPatternElement" , js_name = patternUnits ) ] + #[doc = "Getter for the `patternUnits` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/patternUnits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgPatternElement`*"] + pub fn pattern_units(this: &SvgPatternElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPatternElement" , js_name = patternContentUnits ) ] + #[doc = "Getter for the `patternContentUnits` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/patternContentUnits)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgPatternElement`*"] + pub fn pattern_content_units(this: &SvgPatternElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedTransformList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPatternElement" , js_name = patternTransform ) ] + #[doc = "Getter for the `patternTransform` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/patternTransform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedTransformList`, `SvgPatternElement`*"] + pub fn pattern_transform(this: &SvgPatternElement) -> SvgAnimatedTransformList; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPatternElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"] + pub fn x(this: &SvgPatternElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPatternElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"] + pub fn y(this: &SvgPatternElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPatternElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"] + pub fn width(this: &SvgPatternElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPatternElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgPatternElement`*"] + pub fn height(this: &SvgPatternElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedRect")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPatternElement" , js_name = viewBox ) ] + #[doc = "Getter for the `viewBox` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/viewBox)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgPatternElement`*"] + pub fn view_box(this: &SvgPatternElement) -> SvgAnimatedRect; + #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPatternElement" , js_name = preserveAspectRatio ) ] + #[doc = "Getter for the `preserveAspectRatio` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/preserveAspectRatio)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgPatternElement`*"] + pub fn preserve_aspect_ratio(this: &SvgPatternElement) -> SvgAnimatedPreserveAspectRatio; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPatternElement" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPatternElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgPatternElement`*"] + pub fn href(this: &SvgPatternElement) -> SvgAnimatedString; +} diff --git a/crates/web-sys/src/features/gen_SvgPoint.rs b/crates/web-sys/src/features/gen_SvgPoint.rs new file mode 100644 index 00000000..3b4d5ea3 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPoint.rs @@ -0,0 +1,50 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGPoint , typescript_type = "SVGPoint" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPoint` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"] + pub type SvgPoint; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPoint" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"] + pub fn x(this: &SvgPoint) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPoint" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"] + pub fn set_x(this: &SvgPoint, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPoint" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"] + pub fn y(this: &SvgPoint) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPoint" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPoint`*"] + pub fn set_y(this: &SvgPoint, value: f32); + #[cfg(feature = "SvgMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "SVGPoint" , js_name = matrixTransform ) ] + #[doc = "The `matrixTransform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPoint/matrixTransform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgPoint`*"] + pub fn matrix_transform(this: &SvgPoint, matrix: &SvgMatrix) -> SvgPoint; +} diff --git a/crates/web-sys/src/features/gen_SvgPointList.rs b/crates/web-sys/src/features/gen_SvgPointList.rs new file mode 100644 index 00000000..14f4a438 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPointList.rs @@ -0,0 +1,92 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGPointList , typescript_type = "SVGPointList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPointList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPointList`*"] + pub type SvgPointList; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPointList" , js_name = numberOfItems ) ] + #[doc = "Getter for the `numberOfItems` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/numberOfItems)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPointList`*"] + pub fn number_of_items(this: &SvgPointList) -> u32; + #[cfg(feature = "SvgPoint")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGPointList" , js_name = appendItem ) ] + #[doc = "The `appendItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/appendItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] + pub fn append_item(this: &SvgPointList, new_item: &SvgPoint) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGPointList" , js_name = clear ) ] + #[doc = "The `clear()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/clear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPointList`*"] + pub fn clear(this: &SvgPointList) -> Result<(), JsValue>; + #[cfg(feature = "SvgPoint")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGPointList" , js_name = getItem ) ] + #[doc = "The `getItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/getItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] + pub fn get_item(this: &SvgPointList, index: u32) -> Result; + #[cfg(feature = "SvgPoint")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGPointList" , js_name = initialize ) ] + #[doc = "The `initialize()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/initialize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] + pub fn initialize(this: &SvgPointList, new_item: &SvgPoint) -> Result; + #[cfg(feature = "SvgPoint")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGPointList" , js_name = insertItemBefore ) ] + #[doc = "The `insertItemBefore()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/insertItemBefore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] + pub fn insert_item_before( + this: &SvgPointList, + new_item: &SvgPoint, + index: u32, + ) -> Result; + #[cfg(feature = "SvgPoint")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGPointList" , js_name = removeItem ) ] + #[doc = "The `removeItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/removeItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] + pub fn remove_item(this: &SvgPointList, index: u32) -> Result; + #[cfg(feature = "SvgPoint")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGPointList" , js_name = replaceItem ) ] + #[doc = "The `replaceItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPointList/replaceItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] + pub fn replace_item( + this: &SvgPointList, + new_item: &SvgPoint, + index: u32, + ) -> Result; + #[cfg(feature = "SvgPoint")] + #[wasm_bindgen(catch, method, structural, js_class = "SVGPointList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgPointList`*"] + pub fn get(this: &SvgPointList, index: u32) -> Result; +} diff --git a/crates/web-sys/src/features/gen_SvgPolygonElement.rs b/crates/web-sys/src/features/gen_SvgPolygonElement.rs new file mode 100644 index 00000000..0ac30775 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPolygonElement.rs @@ -0,0 +1,30 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGPolygonElement , typescript_type = "SVGPolygonElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPolygonElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolygonElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPolygonElement`*"] + pub type SvgPolygonElement; + #[cfg(feature = "SvgPointList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPolygonElement" , js_name = points ) ] + #[doc = "Getter for the `points` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolygonElement/points)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPointList`, `SvgPolygonElement`*"] + pub fn points(this: &SvgPolygonElement) -> SvgPointList; + #[cfg(feature = "SvgPointList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPolygonElement" , js_name = animatedPoints ) ] + #[doc = "Getter for the `animatedPoints` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolygonElement/animatedPoints)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPointList`, `SvgPolygonElement`*"] + pub fn animated_points(this: &SvgPolygonElement) -> SvgPointList; +} diff --git a/crates/web-sys/src/features/gen_SvgPolylineElement.rs b/crates/web-sys/src/features/gen_SvgPolylineElement.rs new file mode 100644 index 00000000..a1917d1b --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPolylineElement.rs @@ -0,0 +1,30 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGPolylineElement , typescript_type = "SVGPolylineElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPolylineElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolylineElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPolylineElement`*"] + pub type SvgPolylineElement; + #[cfg(feature = "SvgPointList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPolylineElement" , js_name = points ) ] + #[doc = "Getter for the `points` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolylineElement/points)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPointList`, `SvgPolylineElement`*"] + pub fn points(this: &SvgPolylineElement) -> SvgPointList; + #[cfg(feature = "SvgPointList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPolylineElement" , js_name = animatedPoints ) ] + #[doc = "Getter for the `animatedPoints` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPolylineElement/animatedPoints)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPointList`, `SvgPolylineElement`*"] + pub fn animated_points(this: &SvgPolylineElement) -> SvgPointList; +} diff --git a/crates/web-sys/src/features/gen_SvgPreserveAspectRatio.rs b/crates/web-sys/src/features/gen_SvgPreserveAspectRatio.rs new file mode 100644 index 00000000..c060f2b5 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgPreserveAspectRatio.rs @@ -0,0 +1,100 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGPreserveAspectRatio , typescript_type = "SVGPreserveAspectRatio" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgPreserveAspectRatio` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub type SvgPreserveAspectRatio; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPreserveAspectRatio" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub fn align(this: &SvgPreserveAspectRatio) -> u16; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPreserveAspectRatio" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub fn set_align(this: &SvgPreserveAspectRatio, value: u16); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGPreserveAspectRatio" , js_name = meetOrSlice ) ] + #[doc = "Getter for the `meetOrSlice` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio/meetOrSlice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub fn meet_or_slice(this: &SvgPreserveAspectRatio) -> u16; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGPreserveAspectRatio" , js_name = meetOrSlice ) ] + #[doc = "Setter for the `meetOrSlice` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGPreserveAspectRatio/meetOrSlice)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub fn set_meet_or_slice(this: &SvgPreserveAspectRatio, value: u16); +} +impl SvgPreserveAspectRatio { + #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub const SVG_PRESERVEASPECTRATIO_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_NONE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub const SVG_PRESERVEASPECTRATIO_NONE: u16 = 1u64 as u16; + #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMIN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub const SVG_PRESERVEASPECTRATIO_XMINYMIN: u16 = 2u64 as u16; + #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMIN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub const SVG_PRESERVEASPECTRATIO_XMIDYMIN: u16 = 3u64 as u16; + #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMIN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub const SVG_PRESERVEASPECTRATIO_XMAXYMIN: u16 = 4u64 as u16; + #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMID` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub const SVG_PRESERVEASPECTRATIO_XMINYMID: u16 = 5u64 as u16; + #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMID` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub const SVG_PRESERVEASPECTRATIO_XMIDYMID: u16 = 6u64 as u16; + #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMID` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub const SVG_PRESERVEASPECTRATIO_XMAXYMID: u16 = 7u64 as u16; + #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMINYMAX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub const SVG_PRESERVEASPECTRATIO_XMINYMAX: u16 = 8u64 as u16; + #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMIDYMAX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub const SVG_PRESERVEASPECTRATIO_XMIDYMAX: u16 = 9u64 as u16; + #[doc = "The `SVGPreserveAspectRatio.SVG_PRESERVEASPECTRATIO_XMAXYMAX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub const SVG_PRESERVEASPECTRATIO_XMAXYMAX: u16 = 10u64 as u16; + #[doc = "The `SVGPreserveAspectRatio.SVG_MEETORSLICE_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub const SVG_MEETORSLICE_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGPreserveAspectRatio.SVG_MEETORSLICE_MEET` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub const SVG_MEETORSLICE_MEET: u16 = 1u64 as u16; + #[doc = "The `SVGPreserveAspectRatio.SVG_MEETORSLICE_SLICE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPreserveAspectRatio`*"] + pub const SVG_MEETORSLICE_SLICE: u16 = 2u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgRadialGradientElement.rs b/crates/web-sys/src/features/gen_SvgRadialGradientElement.rs new file mode 100644 index 00000000..d94f99a5 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgRadialGradientElement.rs @@ -0,0 +1,62 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGradientElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGRadialGradientElement , typescript_type = "SVGRadialGradientElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgRadialGradientElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgRadialGradientElement`*"] + pub type SvgRadialGradientElement; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = cx ) ] + #[doc = "Getter for the `cx` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/cx)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRadialGradientElement`*"] + pub fn cx(this: &SvgRadialGradientElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = cy ) ] + #[doc = "Getter for the `cy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/cy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRadialGradientElement`*"] + pub fn cy(this: &SvgRadialGradientElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = r ) ] + #[doc = "Getter for the `r` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/r)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRadialGradientElement`*"] + pub fn r(this: &SvgRadialGradientElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = fx ) ] + #[doc = "Getter for the `fx` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/fx)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRadialGradientElement`*"] + pub fn fx(this: &SvgRadialGradientElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = fy ) ] + #[doc = "Getter for the `fy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/fy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRadialGradientElement`*"] + pub fn fy(this: &SvgRadialGradientElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGRadialGradientElement" , js_name = fr ) ] + #[doc = "Getter for the `fr` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRadialGradientElement/fr)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRadialGradientElement`*"] + pub fn fr(this: &SvgRadialGradientElement) -> SvgAnimatedLength; +} diff --git a/crates/web-sys/src/features/gen_SvgRect.rs b/crates/web-sys/src/features/gen_SvgRect.rs new file mode 100644 index 00000000..7e8a7b15 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgRect.rs @@ -0,0 +1,70 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGRect , typescript_type = "SVGRect" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgRect` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] + pub type SvgRect; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGRect" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] + pub fn x(this: &SvgRect) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGRect" , js_name = x ) ] + #[doc = "Setter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] + pub fn set_x(this: &SvgRect, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGRect" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] + pub fn y(this: &SvgRect) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGRect" , js_name = y ) ] + #[doc = "Setter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] + pub fn set_y(this: &SvgRect, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGRect" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] + pub fn width(this: &SvgRect) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGRect" , js_name = width ) ] + #[doc = "Setter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] + pub fn set_width(this: &SvgRect, value: f32); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGRect" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] + pub fn height(this: &SvgRect) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGRect" , js_name = height ) ] + #[doc = "Setter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRect/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgRect`*"] + pub fn set_height(this: &SvgRect, value: f32); +} diff --git a/crates/web-sys/src/features/gen_SvgRectElement.rs b/crates/web-sys/src/features/gen_SvgRectElement.rs new file mode 100644 index 00000000..30553370 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgRectElement.rs @@ -0,0 +1,62 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGeometryElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGRectElement , typescript_type = "SVGRectElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgRectElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgRectElement`*"] + pub type SvgRectElement; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGRectElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"] + pub fn x(this: &SvgRectElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGRectElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"] + pub fn y(this: &SvgRectElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGRectElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"] + pub fn width(this: &SvgRectElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGRectElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"] + pub fn height(this: &SvgRectElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGRectElement" , js_name = rx ) ] + #[doc = "Getter for the `rx` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/rx)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"] + pub fn rx(this: &SvgRectElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGRectElement" , js_name = ry ) ] + #[doc = "Getter for the `ry` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGRectElement/ry)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgRectElement`*"] + pub fn ry(this: &SvgRectElement) -> SvgAnimatedLength; +} diff --git a/crates/web-sys/src/features/gen_SvgScriptElement.rs b/crates/web-sys/src/features/gen_SvgScriptElement.rs new file mode 100644 index 00000000..65e3eef0 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgScriptElement.rs @@ -0,0 +1,50 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGScriptElement , typescript_type = "SVGScriptElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgScriptElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgScriptElement`*"] + pub type SvgScriptElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGScriptElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgScriptElement`*"] + pub fn type_(this: &SvgScriptElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGScriptElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgScriptElement`*"] + pub fn set_type(this: &SvgScriptElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGScriptElement" , js_name = crossOrigin ) ] + #[doc = "Getter for the `crossOrigin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement/crossOrigin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgScriptElement`*"] + pub fn cross_origin(this: &SvgScriptElement) -> Option; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGScriptElement" , js_name = crossOrigin ) ] + #[doc = "Setter for the `crossOrigin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement/crossOrigin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgScriptElement`*"] + pub fn set_cross_origin(this: &SvgScriptElement, value: Option<&str>); + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGScriptElement" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGScriptElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgScriptElement`*"] + pub fn href(this: &SvgScriptElement) -> SvgAnimatedString; +} diff --git a/crates/web-sys/src/features/gen_SvgSetElement.rs b/crates/web-sys/src/features/gen_SvgSetElement.rs new file mode 100644 index 00000000..eaba4afd --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgSetElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgAnimationElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGSetElement , typescript_type = "SVGSetElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgSetElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSetElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgSetElement`*"] + pub type SvgSetElement; +} diff --git a/crates/web-sys/src/features/gen_SvgStopElement.rs b/crates/web-sys/src/features/gen_SvgStopElement.rs new file mode 100644 index 00000000..3851912c --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgStopElement.rs @@ -0,0 +1,22 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGStopElement , typescript_type = "SVGStopElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgStopElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStopElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStopElement`*"] + pub type SvgStopElement; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGStopElement" , js_name = offset ) ] + #[doc = "Getter for the `offset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStopElement/offset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgStopElement`*"] + pub fn offset(this: &SvgStopElement) -> SvgAnimatedNumber; +} diff --git a/crates/web-sys/src/features/gen_SvgStringList.rs b/crates/web-sys/src/features/gen_SvgStringList.rs new file mode 100644 index 00000000..8a479de4 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgStringList.rs @@ -0,0 +1,92 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGStringList , typescript_type = "SVGStringList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgStringList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] + pub type SvgStringList; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGStringList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] + pub fn length(this: &SvgStringList) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGStringList" , js_name = numberOfItems ) ] + #[doc = "Getter for the `numberOfItems` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/numberOfItems)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] + pub fn number_of_items(this: &SvgStringList) -> u32; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGStringList" , js_name = appendItem ) ] + #[doc = "The `appendItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/appendItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] + pub fn append_item(this: &SvgStringList, new_item: &str) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "SVGStringList" , js_name = clear ) ] + #[doc = "The `clear()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/clear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] + pub fn clear(this: &SvgStringList); + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGStringList" , js_name = getItem ) ] + #[doc = "The `getItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/getItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] + pub fn get_item(this: &SvgStringList, index: u32) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGStringList" , js_name = initialize ) ] + #[doc = "The `initialize()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/initialize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] + pub fn initialize(this: &SvgStringList, new_item: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGStringList" , js_name = insertItemBefore ) ] + #[doc = "The `insertItemBefore()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/insertItemBefore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] + pub fn insert_item_before( + this: &SvgStringList, + new_item: &str, + index: u32, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGStringList" , js_name = removeItem ) ] + #[doc = "The `removeItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/removeItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] + pub fn remove_item(this: &SvgStringList, index: u32) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGStringList" , js_name = replaceItem ) ] + #[doc = "The `replaceItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStringList/replaceItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] + pub fn replace_item( + this: &SvgStringList, + new_item: &str, + index: u32, + ) -> Result; + #[wasm_bindgen(method, structural, js_class = "SVGStringList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStringList`*"] + pub fn get(this: &SvgStringList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_SvgStyleElement.rs b/crates/web-sys/src/features/gen_SvgStyleElement.rs new file mode 100644 index 00000000..8ac38252 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgStyleElement.rs @@ -0,0 +1,78 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGStyleElement , typescript_type = "SVGStyleElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgStyleElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] + pub type SvgStyleElement; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGStyleElement" , js_name = xmlspace ) ] + #[doc = "Getter for the `xmlspace` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/xmlspace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] + pub fn xmlspace(this: &SvgStyleElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGStyleElement" , js_name = xmlspace ) ] + #[doc = "Setter for the `xmlspace` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/xmlspace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] + pub fn set_xmlspace(this: &SvgStyleElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGStyleElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] + pub fn type_(this: &SvgStyleElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGStyleElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] + pub fn set_type(this: &SvgStyleElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGStyleElement" , js_name = media ) ] + #[doc = "Getter for the `media` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/media)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] + pub fn media(this: &SvgStyleElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGStyleElement" , js_name = media ) ] + #[doc = "Setter for the `media` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/media)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] + pub fn set_media(this: &SvgStyleElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGStyleElement" , js_name = title ) ] + #[doc = "Getter for the `title` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/title)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] + pub fn title(this: &SvgStyleElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGStyleElement" , js_name = title ) ] + #[doc = "Setter for the `title` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/title)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStyleElement`*"] + pub fn set_title(this: &SvgStyleElement, value: &str); + #[cfg(feature = "StyleSheet")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGStyleElement" , js_name = sheet ) ] + #[doc = "Getter for the `sheet` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleElement/sheet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StyleSheet`, `SvgStyleElement`*"] + pub fn sheet(this: &SvgStyleElement) -> Option; +} diff --git a/crates/web-sys/src/features/gen_SvgSwitchElement.rs b/crates/web-sys/src/features/gen_SvgSwitchElement.rs new file mode 100644 index 00000000..f6f1fc7a --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgSwitchElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGSwitchElement , typescript_type = "SVGSwitchElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgSwitchElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSwitchElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgSwitchElement`*"] + pub type SvgSwitchElement; +} diff --git a/crates/web-sys/src/features/gen_SvgSymbolElement.rs b/crates/web-sys/src/features/gen_SvgSymbolElement.rs new file mode 100644 index 00000000..cda82247 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgSymbolElement.rs @@ -0,0 +1,61 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGSymbolElement , typescript_type = "SVGSymbolElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgSymbolElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgSymbolElement`*"] + pub type SvgSymbolElement; + #[cfg(feature = "SvgAnimatedRect")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGSymbolElement" , js_name = viewBox ) ] + #[doc = "Getter for the `viewBox` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/viewBox)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgSymbolElement`*"] + pub fn view_box(this: &SvgSymbolElement) -> SvgAnimatedRect; + #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGSymbolElement" , js_name = preserveAspectRatio ) ] + #[doc = "Getter for the `preserveAspectRatio` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/preserveAspectRatio)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgSymbolElement`*"] + pub fn preserve_aspect_ratio(this: &SvgSymbolElement) -> SvgAnimatedPreserveAspectRatio; + #[cfg(feature = "SvgStringList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGSymbolElement" , js_name = requiredFeatures ) ] + #[doc = "Getter for the `requiredFeatures` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/requiredFeatures)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStringList`, `SvgSymbolElement`*"] + pub fn required_features(this: &SvgSymbolElement) -> SvgStringList; + #[cfg(feature = "SvgStringList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGSymbolElement" , js_name = requiredExtensions ) ] + #[doc = "Getter for the `requiredExtensions` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/requiredExtensions)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStringList`, `SvgSymbolElement`*"] + pub fn required_extensions(this: &SvgSymbolElement) -> SvgStringList; + #[cfg(feature = "SvgStringList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGSymbolElement" , js_name = systemLanguage ) ] + #[doc = "Getter for the `systemLanguage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/systemLanguage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgStringList`, `SvgSymbolElement`*"] + pub fn system_language(this: &SvgSymbolElement) -> SvgStringList; + # [ wasm_bindgen ( method , structural , js_class = "SVGSymbolElement" , js_name = hasExtension ) ] + #[doc = "The `hasExtension()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSymbolElement/hasExtension)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgSymbolElement`*"] + pub fn has_extension(this: &SvgSymbolElement, extension: &str) -> bool; +} diff --git a/crates/web-sys/src/features/gen_SvgTextContentElement.rs b/crates/web-sys/src/features/gen_SvgTextContentElement.rs new file mode 100644 index 00000000..3e781ebc --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgTextContentElement.rs @@ -0,0 +1,129 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTextContentElement , typescript_type = "SVGTextContentElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgTextContentElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] + pub type SvgTextContentElement; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGTextContentElement" , js_name = textLength ) ] + #[doc = "Getter for the `textLength` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/textLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgTextContentElement`*"] + pub fn text_length(this: &SvgTextContentElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGTextContentElement" , js_name = lengthAdjust ) ] + #[doc = "Getter for the `lengthAdjust` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/lengthAdjust)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgTextContentElement`*"] + pub fn length_adjust(this: &SvgTextContentElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgPoint")] + # [ wasm_bindgen ( method , structural , js_class = "SVGTextContentElement" , js_name = getCharNumAtPosition ) ] + #[doc = "The `getCharNumAtPosition()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getCharNumAtPosition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgTextContentElement`*"] + pub fn get_char_num_at_position(this: &SvgTextContentElement, point: &SvgPoint) -> i32; + # [ wasm_bindgen ( method , structural , js_class = "SVGTextContentElement" , js_name = getComputedTextLength ) ] + #[doc = "The `getComputedTextLength()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getComputedTextLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] + pub fn get_computed_text_length(this: &SvgTextContentElement) -> f32; + #[cfg(feature = "SvgPoint")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTextContentElement" , js_name = getEndPositionOfChar ) ] + #[doc = "The `getEndPositionOfChar()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getEndPositionOfChar)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgTextContentElement`*"] + pub fn get_end_position_of_char( + this: &SvgTextContentElement, + charnum: u32, + ) -> Result; + #[cfg(feature = "SvgRect")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTextContentElement" , js_name = getExtentOfChar ) ] + #[doc = "The `getExtentOfChar()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getExtentOfChar)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgRect`, `SvgTextContentElement`*"] + pub fn get_extent_of_char( + this: &SvgTextContentElement, + charnum: u32, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "SVGTextContentElement" , js_name = getNumberOfChars ) ] + #[doc = "The `getNumberOfChars()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getNumberOfChars)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] + pub fn get_number_of_chars(this: &SvgTextContentElement) -> i32; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTextContentElement" , js_name = getRotationOfChar ) ] + #[doc = "The `getRotationOfChar()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getRotationOfChar)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] + pub fn get_rotation_of_char(this: &SvgTextContentElement, charnum: u32) + -> Result; + #[cfg(feature = "SvgPoint")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTextContentElement" , js_name = getStartPositionOfChar ) ] + #[doc = "The `getStartPositionOfChar()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getStartPositionOfChar)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgTextContentElement`*"] + pub fn get_start_position_of_char( + this: &SvgTextContentElement, + charnum: u32, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTextContentElement" , js_name = getSubStringLength ) ] + #[doc = "The `getSubStringLength()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/getSubStringLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] + pub fn get_sub_string_length( + this: &SvgTextContentElement, + charnum: u32, + nchars: u32, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTextContentElement" , js_name = selectSubString ) ] + #[doc = "The `selectSubString()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextContentElement/selectSubString)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] + pub fn select_sub_string( + this: &SvgTextContentElement, + charnum: u32, + nchars: u32, + ) -> Result<(), JsValue>; +} +impl SvgTextContentElement { + #[doc = "The `SVGTextContentElement.LENGTHADJUST_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] + pub const LENGTHADJUST_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGTextContentElement.LENGTHADJUST_SPACING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] + pub const LENGTHADJUST_SPACING: u16 = 1u64 as u16; + #[doc = "The `SVGTextContentElement.LENGTHADJUST_SPACINGANDGLYPHS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextContentElement`*"] + pub const LENGTHADJUST_SPACINGANDGLYPHS: u16 = 2u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgTextElement.rs b/crates/web-sys/src/features/gen_SvgTextElement.rs new file mode 100644 index 00000000..5a99c8d2 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgTextElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgTextPositioningElement , extends = SvgTextContentElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTextElement , typescript_type = "SVGTextElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgTextElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextElement`*"] + pub type SvgTextElement; +} diff --git a/crates/web-sys/src/features/gen_SvgTextPathElement.rs b/crates/web-sys/src/features/gen_SvgTextPathElement.rs new file mode 100644 index 00000000..43b35202 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgTextPathElement.rs @@ -0,0 +1,72 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgTextContentElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTextPathElement , typescript_type = "SVGTextPathElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgTextPathElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"] + pub type SvgTextPathElement; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGTextPathElement" , js_name = startOffset ) ] + #[doc = "Getter for the `startOffset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/startOffset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgTextPathElement`*"] + pub fn start_offset(this: &SvgTextPathElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGTextPathElement" , js_name = method ) ] + #[doc = "Getter for the `method` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/method)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgTextPathElement`*"] + pub fn method(this: &SvgTextPathElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGTextPathElement" , js_name = spacing ) ] + #[doc = "Getter for the `spacing` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/spacing)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgTextPathElement`*"] + pub fn spacing(this: &SvgTextPathElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGTextPathElement" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPathElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgTextPathElement`*"] + pub fn href(this: &SvgTextPathElement) -> SvgAnimatedString; +} +impl SvgTextPathElement { + #[doc = "The `SVGTextPathElement.TEXTPATH_METHODTYPE_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"] + pub const TEXTPATH_METHODTYPE_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGTextPathElement.TEXTPATH_METHODTYPE_ALIGN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"] + pub const TEXTPATH_METHODTYPE_ALIGN: u16 = 1u64 as u16; + #[doc = "The `SVGTextPathElement.TEXTPATH_METHODTYPE_STRETCH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"] + pub const TEXTPATH_METHODTYPE_STRETCH: u16 = 2u64 as u16; + #[doc = "The `SVGTextPathElement.TEXTPATH_SPACINGTYPE_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"] + pub const TEXTPATH_SPACINGTYPE_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGTextPathElement.TEXTPATH_SPACINGTYPE_AUTO` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"] + pub const TEXTPATH_SPACINGTYPE_AUTO: u16 = 1u64 as u16; + #[doc = "The `SVGTextPathElement.TEXTPATH_SPACINGTYPE_EXACT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextPathElement`*"] + pub const TEXTPATH_SPACINGTYPE_EXACT: u16 = 2u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgTextPositioningElement.rs b/crates/web-sys/src/features/gen_SvgTextPositioningElement.rs new file mode 100644 index 00000000..5e4d8e86 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgTextPositioningElement.rs @@ -0,0 +1,54 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgTextContentElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTextPositioningElement , typescript_type = "SVGTextPositioningElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgTextPositioningElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTextPositioningElement`*"] + pub type SvgTextPositioningElement; + #[cfg(feature = "SvgAnimatedLengthList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGTextPositioningElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`, `SvgTextPositioningElement`*"] + pub fn x(this: &SvgTextPositioningElement) -> SvgAnimatedLengthList; + #[cfg(feature = "SvgAnimatedLengthList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGTextPositioningElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`, `SvgTextPositioningElement`*"] + pub fn y(this: &SvgTextPositioningElement) -> SvgAnimatedLengthList; + #[cfg(feature = "SvgAnimatedLengthList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGTextPositioningElement" , js_name = dx ) ] + #[doc = "Getter for the `dx` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement/dx)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`, `SvgTextPositioningElement`*"] + pub fn dx(this: &SvgTextPositioningElement) -> SvgAnimatedLengthList; + #[cfg(feature = "SvgAnimatedLengthList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGTextPositioningElement" , js_name = dy ) ] + #[doc = "Getter for the `dy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement/dy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLengthList`, `SvgTextPositioningElement`*"] + pub fn dy(this: &SvgTextPositioningElement) -> SvgAnimatedLengthList; + #[cfg(feature = "SvgAnimatedNumberList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGTextPositioningElement" , js_name = rotate ) ] + #[doc = "Getter for the `rotate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTextPositioningElement/rotate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`, `SvgTextPositioningElement`*"] + pub fn rotate(this: &SvgTextPositioningElement) -> SvgAnimatedNumberList; +} diff --git a/crates/web-sys/src/features/gen_SvgTitleElement.rs b/crates/web-sys/src/features/gen_SvgTitleElement.rs new file mode 100644 index 00000000..d7b80318 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgTitleElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTitleElement , typescript_type = "SVGTitleElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgTitleElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTitleElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTitleElement`*"] + pub type SvgTitleElement; +} diff --git a/crates/web-sys/src/features/gen_SvgTransform.rs b/crates/web-sys/src/features/gen_SvgTransform.rs new file mode 100644 index 00000000..8ea1f9f9 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgTransform.rs @@ -0,0 +1,109 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGTransform , typescript_type = "SVGTransform" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgTransform` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] + pub type SvgTransform; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGTransform" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] + pub fn type_(this: &SvgTransform) -> u16; + #[cfg(feature = "SvgMatrix")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGTransform" , js_name = matrix ) ] + #[doc = "Getter for the `matrix` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/matrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgTransform`*"] + pub fn matrix(this: &SvgTransform) -> SvgMatrix; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGTransform" , js_name = angle ) ] + #[doc = "Getter for the `angle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/angle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] + pub fn angle(this: &SvgTransform) -> f32; + #[cfg(feature = "SvgMatrix")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTransform" , js_name = setMatrix ) ] + #[doc = "The `setMatrix()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgTransform`*"] + pub fn set_matrix(this: &SvgTransform, matrix: &SvgMatrix) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTransform" , js_name = setRotate ) ] + #[doc = "The `setRotate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setRotate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] + pub fn set_rotate(this: &SvgTransform, angle: f32, cx: f32, cy: f32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTransform" , js_name = setScale ) ] + #[doc = "The `setScale()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setScale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] + pub fn set_scale(this: &SvgTransform, sx: f32, sy: f32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTransform" , js_name = setSkewX ) ] + #[doc = "The `setSkewX()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setSkewX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] + pub fn set_skew_x(this: &SvgTransform, angle: f32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTransform" , js_name = setSkewY ) ] + #[doc = "The `setSkewY()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setSkewY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] + pub fn set_skew_y(this: &SvgTransform, angle: f32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTransform" , js_name = setTranslate ) ] + #[doc = "The `setTranslate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransform/setTranslate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] + pub fn set_translate(this: &SvgTransform, tx: f32, ty: f32) -> Result<(), JsValue>; +} +impl SvgTransform { + #[doc = "The `SVGTransform.SVG_TRANSFORM_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] + pub const SVG_TRANSFORM_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGTransform.SVG_TRANSFORM_MATRIX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] + pub const SVG_TRANSFORM_MATRIX: u16 = 1u64 as u16; + #[doc = "The `SVGTransform.SVG_TRANSFORM_TRANSLATE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] + pub const SVG_TRANSFORM_TRANSLATE: u16 = 2u64 as u16; + #[doc = "The `SVGTransform.SVG_TRANSFORM_SCALE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] + pub const SVG_TRANSFORM_SCALE: u16 = 3u64 as u16; + #[doc = "The `SVGTransform.SVG_TRANSFORM_ROTATE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] + pub const SVG_TRANSFORM_ROTATE: u16 = 4u64 as u16; + #[doc = "The `SVGTransform.SVG_TRANSFORM_SKEWX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] + pub const SVG_TRANSFORM_SKEWX: u16 = 5u64 as u16; + #[doc = "The `SVGTransform.SVG_TRANSFORM_SKEWY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`*"] + pub const SVG_TRANSFORM_SKEWY: u16 = 6u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgTransformList.rs b/crates/web-sys/src/features/gen_SvgTransformList.rs new file mode 100644 index 00000000..d8c17785 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgTransformList.rs @@ -0,0 +1,123 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGTransformList , typescript_type = "SVGTransformList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgTransformList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransformList`*"] + pub type SvgTransformList; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGTransformList" , js_name = numberOfItems ) ] + #[doc = "Getter for the `numberOfItems` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/numberOfItems)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransformList`*"] + pub fn number_of_items(this: &SvgTransformList) -> u32; + #[cfg(feature = "SvgTransform")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTransformList" , js_name = appendItem ) ] + #[doc = "The `appendItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/appendItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] + pub fn append_item( + this: &SvgTransformList, + new_item: &SvgTransform, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTransformList" , js_name = clear ) ] + #[doc = "The `clear()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/clear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransformList`*"] + pub fn clear(this: &SvgTransformList) -> Result<(), JsValue>; + #[cfg(feature = "SvgTransform")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTransformList" , js_name = consolidate ) ] + #[doc = "The `consolidate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/consolidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] + pub fn consolidate(this: &SvgTransformList) -> Result, JsValue>; + #[cfg(all(feature = "SvgMatrix", feature = "SvgTransform",))] + # [ wasm_bindgen ( method , structural , js_class = "SVGTransformList" , js_name = createSVGTransformFromMatrix ) ] + #[doc = "The `createSVGTransformFromMatrix()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/createSVGTransformFromMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgTransform`, `SvgTransformList`*"] + pub fn create_svg_transform_from_matrix( + this: &SvgTransformList, + matrix: &SvgMatrix, + ) -> SvgTransform; + #[cfg(feature = "SvgTransform")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTransformList" , js_name = getItem ) ] + #[doc = "The `getItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/getItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] + pub fn get_item(this: &SvgTransformList, index: u32) -> Result; + #[cfg(feature = "SvgTransform")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTransformList" , js_name = initialize ) ] + #[doc = "The `initialize()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/initialize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] + pub fn initialize( + this: &SvgTransformList, + new_item: &SvgTransform, + ) -> Result; + #[cfg(feature = "SvgTransform")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTransformList" , js_name = insertItemBefore ) ] + #[doc = "The `insertItemBefore()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/insertItemBefore)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] + pub fn insert_item_before( + this: &SvgTransformList, + new_item: &SvgTransform, + index: u32, + ) -> Result; + #[cfg(feature = "SvgTransform")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTransformList" , js_name = removeItem ) ] + #[doc = "The `removeItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/removeItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] + pub fn remove_item(this: &SvgTransformList, index: u32) -> Result; + #[cfg(feature = "SvgTransform")] + # [ wasm_bindgen ( catch , method , structural , js_class = "SVGTransformList" , js_name = replaceItem ) ] + #[doc = "The `replaceItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTransformList/replaceItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] + pub fn replace_item( + this: &SvgTransformList, + new_item: &SvgTransform, + index: u32, + ) -> Result; + #[cfg(feature = "SvgTransform")] + #[wasm_bindgen( + catch, + method, + structural, + js_class = "SVGTransformList", + indexing_getter + )] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgTransformList`*"] + pub fn get(this: &SvgTransformList, index: u32) -> Result; +} diff --git a/crates/web-sys/src/features/gen_SvgUnitTypes.rs b/crates/web-sys/src/features/gen_SvgUnitTypes.rs new file mode 100644 index 00000000..36a5d075 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgUnitTypes.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGUnitTypes , typescript_type = "SVGUnitTypes" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgUnitTypes` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUnitTypes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgUnitTypes`*"] + pub type SvgUnitTypes; +} +impl SvgUnitTypes { + #[doc = "The `SVGUnitTypes.SVG_UNIT_TYPE_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgUnitTypes`*"] + pub const SVG_UNIT_TYPE_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgUnitTypes`*"] + pub const SVG_UNIT_TYPE_USERSPACEONUSE: u16 = 1u64 as u16; + #[doc = "The `SVGUnitTypes.SVG_UNIT_TYPE_OBJECTBOUNDINGBOX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgUnitTypes`*"] + pub const SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: u16 = 2u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgUseElement.rs b/crates/web-sys/src/features/gen_SvgUseElement.rs new file mode 100644 index 00000000..efdc7bcf --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgUseElement.rs @@ -0,0 +1,54 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGUseElement , typescript_type = "SVGUseElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgUseElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUseElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgUseElement`*"] + pub type SvgUseElement; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGUseElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUseElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgUseElement`*"] + pub fn x(this: &SvgUseElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGUseElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUseElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgUseElement`*"] + pub fn y(this: &SvgUseElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGUseElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUseElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgUseElement`*"] + pub fn width(this: &SvgUseElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGUseElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUseElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgUseElement`*"] + pub fn height(this: &SvgUseElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGUseElement" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGUseElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgUseElement`*"] + pub fn href(this: &SvgUseElement) -> SvgAnimatedString; +} diff --git a/crates/web-sys/src/features/gen_SvgViewElement.rs b/crates/web-sys/src/features/gen_SvgViewElement.rs new file mode 100644 index 00000000..006d0195 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgViewElement.rs @@ -0,0 +1,58 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGViewElement , typescript_type = "SVGViewElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgViewElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"] + pub type SvgViewElement; + #[cfg(feature = "SvgAnimatedRect")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGViewElement" , js_name = viewBox ) ] + #[doc = "Getter for the `viewBox` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/viewBox)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgViewElement`*"] + pub fn view_box(this: &SvgViewElement) -> SvgAnimatedRect; + #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGViewElement" , js_name = preserveAspectRatio ) ] + #[doc = "Getter for the `preserveAspectRatio` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/preserveAspectRatio)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgViewElement`*"] + pub fn preserve_aspect_ratio(this: &SvgViewElement) -> SvgAnimatedPreserveAspectRatio; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGViewElement" , js_name = zoomAndPan ) ] + #[doc = "Getter for the `zoomAndPan` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/zoomAndPan)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"] + pub fn zoom_and_pan(this: &SvgViewElement) -> u16; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGViewElement" , js_name = zoomAndPan ) ] + #[doc = "Setter for the `zoomAndPan` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGViewElement/zoomAndPan)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"] + pub fn set_zoom_and_pan(this: &SvgViewElement, value: u16); +} +impl SvgViewElement { + #[doc = "The `SVGViewElement.SVG_ZOOMANDPAN_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"] + pub const SVG_ZOOMANDPAN_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGViewElement.SVG_ZOOMANDPAN_DISABLE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"] + pub const SVG_ZOOMANDPAN_DISABLE: u16 = 1u64 as u16; + #[doc = "The `SVGViewElement.SVG_ZOOMANDPAN_MAGNIFY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgViewElement`*"] + pub const SVG_ZOOMANDPAN_MAGNIFY: u16 = 2u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgZoomAndPan.rs b/crates/web-sys/src/features/gen_SvgZoomAndPan.rs new file mode 100644 index 00000000..ab86c089 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgZoomAndPan.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = SVGZoomAndPan , typescript_type = "SVGZoomAndPan" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgZoomAndPan` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGZoomAndPan)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"] + pub type SvgZoomAndPan; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGZoomAndPan" , js_name = zoomAndPan ) ] + #[doc = "Getter for the `zoomAndPan` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGZoomAndPan/zoomAndPan)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"] + pub fn zoom_and_pan(this: &SvgZoomAndPan) -> u16; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGZoomAndPan" , js_name = zoomAndPan ) ] + #[doc = "Setter for the `zoomAndPan` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGZoomAndPan/zoomAndPan)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"] + pub fn set_zoom_and_pan(this: &SvgZoomAndPan, value: u16); +} +impl SvgZoomAndPan { + #[doc = "The `SVGZoomAndPan.SVG_ZOOMANDPAN_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"] + pub const SVG_ZOOMANDPAN_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGZoomAndPan.SVG_ZOOMANDPAN_DISABLE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"] + pub const SVG_ZOOMANDPAN_DISABLE: u16 = 1u64 as u16; + #[doc = "The `SVGZoomAndPan.SVG_ZOOMANDPAN_MAGNIFY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgZoomAndPan`*"] + pub const SVG_ZOOMANDPAN_MAGNIFY: u16 = 2u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgaElement.rs b/crates/web-sys/src/features/gen_SvgaElement.rs new file mode 100644 index 00000000..f0dde533 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgaElement.rs @@ -0,0 +1,136 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGAElement , typescript_type = "SVGAElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgaElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] + pub type SvgaElement; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAElement" , js_name = target ) ] + #[doc = "Getter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgaElement`*"] + pub fn target(this: &SvgaElement) -> SvgAnimatedString; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAElement" , js_name = download ) ] + #[doc = "Getter for the `download` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/download)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] + pub fn download(this: &SvgaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGAElement" , js_name = download ) ] + #[doc = "Setter for the `download` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/download)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] + pub fn set_download(this: &SvgaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAElement" , js_name = ping ) ] + #[doc = "Getter for the `ping` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/ping)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] + pub fn ping(this: &SvgaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGAElement" , js_name = ping ) ] + #[doc = "Setter for the `ping` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/ping)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] + pub fn set_ping(this: &SvgaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAElement" , js_name = rel ) ] + #[doc = "Getter for the `rel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/rel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] + pub fn rel(this: &SvgaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGAElement" , js_name = rel ) ] + #[doc = "Setter for the `rel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/rel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] + pub fn set_rel(this: &SvgaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAElement" , js_name = referrerPolicy ) ] + #[doc = "Getter for the `referrerPolicy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/referrerPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] + pub fn referrer_policy(this: &SvgaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGAElement" , js_name = referrerPolicy ) ] + #[doc = "Setter for the `referrerPolicy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/referrerPolicy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] + pub fn set_referrer_policy(this: &SvgaElement, value: &str); + #[cfg(feature = "DomTokenList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAElement" , js_name = relList ) ] + #[doc = "Getter for the `relList` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/relList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomTokenList`, `SvgaElement`*"] + pub fn rel_list(this: &SvgaElement) -> DomTokenList; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAElement" , js_name = hreflang ) ] + #[doc = "Getter for the `hreflang` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/hreflang)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] + pub fn hreflang(this: &SvgaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGAElement" , js_name = hreflang ) ] + #[doc = "Setter for the `hreflang` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/hreflang)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] + pub fn set_hreflang(this: &SvgaElement, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] + pub fn type_(this: &SvgaElement) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGAElement" , js_name = type ) ] + #[doc = "Setter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] + pub fn set_type(this: &SvgaElement, value: &str); + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "SVGAElement" , js_name = text ) ] + #[doc = "Getter for the `text` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] + pub fn text(this: &SvgaElement) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "SVGAElement" , js_name = text ) ] + #[doc = "Setter for the `text` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgaElement`*"] + pub fn set_text(this: &SvgaElement, value: &str) -> Result<(), JsValue>; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGAElement" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGAElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgaElement`*"] + pub fn href(this: &SvgaElement) -> SvgAnimatedString; +} diff --git a/crates/web-sys/src/features/gen_SvgfeBlendElement.rs b/crates/web-sys/src/features/gen_SvgfeBlendElement.rs new file mode 100644 index 00000000..71e7ab85 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeBlendElement.rs @@ -0,0 +1,148 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEBlendElement , typescript_type = "SVGFEBlendElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeBlendElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub type SvgfeBlendElement; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEBlendElement" , js_name = in1 ) ] + #[doc = "Getter for the `in1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/in1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeBlendElement`*"] + pub fn in1(this: &SvgfeBlendElement) -> SvgAnimatedString; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEBlendElement" , js_name = in2 ) ] + #[doc = "Getter for the `in2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/in2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeBlendElement`*"] + pub fn in2(this: &SvgfeBlendElement) -> SvgAnimatedString; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEBlendElement" , js_name = mode ) ] + #[doc = "Getter for the `mode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/mode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeBlendElement`*"] + pub fn mode(this: &SvgfeBlendElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEBlendElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeBlendElement`*"] + pub fn x(this: &SvgfeBlendElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEBlendElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeBlendElement`*"] + pub fn y(this: &SvgfeBlendElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEBlendElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeBlendElement`*"] + pub fn width(this: &SvgfeBlendElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEBlendElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeBlendElement`*"] + pub fn height(this: &SvgfeBlendElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEBlendElement" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEBlendElement/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeBlendElement`*"] + pub fn result(this: &SvgfeBlendElement) -> SvgAnimatedString; +} +impl SvgfeBlendElement { + #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub const SVG_FEBLEND_MODE_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_NORMAL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub const SVG_FEBLEND_MODE_NORMAL: u16 = 1u64 as u16; + #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_MULTIPLY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub const SVG_FEBLEND_MODE_MULTIPLY: u16 = 2u64 as u16; + #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_SCREEN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub const SVG_FEBLEND_MODE_SCREEN: u16 = 3u64 as u16; + #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_DARKEN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub const SVG_FEBLEND_MODE_DARKEN: u16 = 4u64 as u16; + #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_LIGHTEN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub const SVG_FEBLEND_MODE_LIGHTEN: u16 = 5u64 as u16; + #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_OVERLAY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub const SVG_FEBLEND_MODE_OVERLAY: u16 = 6u64 as u16; + #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_COLOR_DODGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub const SVG_FEBLEND_MODE_COLOR_DODGE: u16 = 7u64 as u16; + #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_COLOR_BURN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub const SVG_FEBLEND_MODE_COLOR_BURN: u16 = 8u64 as u16; + #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_HARD_LIGHT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub const SVG_FEBLEND_MODE_HARD_LIGHT: u16 = 9u64 as u16; + #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_SOFT_LIGHT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub const SVG_FEBLEND_MODE_SOFT_LIGHT: u16 = 10u64 as u16; + #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_DIFFERENCE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub const SVG_FEBLEND_MODE_DIFFERENCE: u16 = 11u64 as u16; + #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_EXCLUSION` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub const SVG_FEBLEND_MODE_EXCLUSION: u16 = 12u64 as u16; + #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_HUE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub const SVG_FEBLEND_MODE_HUE: u16 = 13u64 as u16; + #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_SATURATION` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub const SVG_FEBLEND_MODE_SATURATION: u16 = 14u64 as u16; + #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_COLOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub const SVG_FEBLEND_MODE_COLOR: u16 = 15u64 as u16; + #[doc = "The `SVGFEBlendElement.SVG_FEBLEND_MODE_LUMINOSITY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeBlendElement`*"] + pub const SVG_FEBLEND_MODE_LUMINOSITY: u16 = 16u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgfeColorMatrixElement.rs b/crates/web-sys/src/features/gen_SvgfeColorMatrixElement.rs new file mode 100644 index 00000000..83b5aecc --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeColorMatrixElement.rs @@ -0,0 +1,100 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEColorMatrixElement , typescript_type = "SVGFEColorMatrixElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeColorMatrixElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeColorMatrixElement`*"] + pub type SvgfeColorMatrixElement; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = in1 ) ] + #[doc = "Getter for the `in1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/in1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeColorMatrixElement`*"] + pub fn in1(this: &SvgfeColorMatrixElement) -> SvgAnimatedString; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeColorMatrixElement`*"] + pub fn type_(this: &SvgfeColorMatrixElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedNumberList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = values ) ] + #[doc = "Getter for the `values` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/values)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`, `SvgfeColorMatrixElement`*"] + pub fn values(this: &SvgfeColorMatrixElement) -> SvgAnimatedNumberList; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeColorMatrixElement`*"] + pub fn x(this: &SvgfeColorMatrixElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeColorMatrixElement`*"] + pub fn y(this: &SvgfeColorMatrixElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeColorMatrixElement`*"] + pub fn width(this: &SvgfeColorMatrixElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeColorMatrixElement`*"] + pub fn height(this: &SvgfeColorMatrixElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEColorMatrixElement" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEColorMatrixElement/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeColorMatrixElement`*"] + pub fn result(this: &SvgfeColorMatrixElement) -> SvgAnimatedString; +} +impl SvgfeColorMatrixElement { + #[doc = "The `SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeColorMatrixElement`*"] + pub const SVG_FECOLORMATRIX_TYPE_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_MATRIX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeColorMatrixElement`*"] + pub const SVG_FECOLORMATRIX_TYPE_MATRIX: u16 = 1u64 as u16; + #[doc = "The `SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeColorMatrixElement`*"] + pub const SVG_FECOLORMATRIX_TYPE_SATURATE: u16 = 2u64 as u16; + #[doc = "The `SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_HUEROTATE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeColorMatrixElement`*"] + pub const SVG_FECOLORMATRIX_TYPE_HUEROTATE: u16 = 3u64 as u16; + #[doc = "The `SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeColorMatrixElement`*"] + pub const SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA: u16 = 4u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgfeComponentTransferElement.rs b/crates/web-sys/src/features/gen_SvgfeComponentTransferElement.rs new file mode 100644 index 00000000..bedd5f38 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeComponentTransferElement.rs @@ -0,0 +1,62 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEComponentTransferElement , typescript_type = "SVGFEComponentTransferElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeComponentTransferElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeComponentTransferElement`*"] + pub type SvgfeComponentTransferElement; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = in1 ) ] + #[doc = "Getter for the `in1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/in1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeComponentTransferElement`*"] + pub fn in1(this: &SvgfeComponentTransferElement) -> SvgAnimatedString; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeComponentTransferElement`*"] + pub fn x(this: &SvgfeComponentTransferElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeComponentTransferElement`*"] + pub fn y(this: &SvgfeComponentTransferElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeComponentTransferElement`*"] + pub fn width(this: &SvgfeComponentTransferElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeComponentTransferElement`*"] + pub fn height(this: &SvgfeComponentTransferElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEComponentTransferElement" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEComponentTransferElement/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeComponentTransferElement`*"] + pub fn result(this: &SvgfeComponentTransferElement) -> SvgAnimatedString; +} diff --git a/crates/web-sys/src/features/gen_SvgfeCompositeElement.rs b/crates/web-sys/src/features/gen_SvgfeCompositeElement.rs new file mode 100644 index 00000000..25e05812 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeCompositeElement.rs @@ -0,0 +1,140 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFECompositeElement , typescript_type = "SVGFECompositeElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeCompositeElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeCompositeElement`*"] + pub type SvgfeCompositeElement; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFECompositeElement" , js_name = in1 ) ] + #[doc = "Getter for the `in1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/in1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeCompositeElement`*"] + pub fn in1(this: &SvgfeCompositeElement) -> SvgAnimatedString; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFECompositeElement" , js_name = in2 ) ] + #[doc = "Getter for the `in2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/in2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeCompositeElement`*"] + pub fn in2(this: &SvgfeCompositeElement) -> SvgAnimatedString; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFECompositeElement" , js_name = operator ) ] + #[doc = "Getter for the `operator` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/operator)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeCompositeElement`*"] + pub fn operator(this: &SvgfeCompositeElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFECompositeElement" , js_name = k1 ) ] + #[doc = "Getter for the `k1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/k1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeCompositeElement`*"] + pub fn k1(this: &SvgfeCompositeElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFECompositeElement" , js_name = k2 ) ] + #[doc = "Getter for the `k2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/k2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeCompositeElement`*"] + pub fn k2(this: &SvgfeCompositeElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFECompositeElement" , js_name = k3 ) ] + #[doc = "Getter for the `k3` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/k3)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeCompositeElement`*"] + pub fn k3(this: &SvgfeCompositeElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFECompositeElement" , js_name = k4 ) ] + #[doc = "Getter for the `k4` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/k4)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeCompositeElement`*"] + pub fn k4(this: &SvgfeCompositeElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFECompositeElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeCompositeElement`*"] + pub fn x(this: &SvgfeCompositeElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFECompositeElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeCompositeElement`*"] + pub fn y(this: &SvgfeCompositeElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFECompositeElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeCompositeElement`*"] + pub fn width(this: &SvgfeCompositeElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFECompositeElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeCompositeElement`*"] + pub fn height(this: &SvgfeCompositeElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFECompositeElement" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFECompositeElement/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeCompositeElement`*"] + pub fn result(this: &SvgfeCompositeElement) -> SvgAnimatedString; +} +impl SvgfeCompositeElement { + #[doc = "The `SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeCompositeElement`*"] + pub const SVG_FECOMPOSITE_OPERATOR_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_OVER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeCompositeElement`*"] + pub const SVG_FECOMPOSITE_OPERATOR_OVER: u16 = 1u64 as u16; + #[doc = "The `SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_IN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeCompositeElement`*"] + pub const SVG_FECOMPOSITE_OPERATOR_IN: u16 = 2u64 as u16; + #[doc = "The `SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_OUT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeCompositeElement`*"] + pub const SVG_FECOMPOSITE_OPERATOR_OUT: u16 = 3u64 as u16; + #[doc = "The `SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_ATOP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeCompositeElement`*"] + pub const SVG_FECOMPOSITE_OPERATOR_ATOP: u16 = 4u64 as u16; + #[doc = "The `SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_XOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeCompositeElement`*"] + pub const SVG_FECOMPOSITE_OPERATOR_XOR: u16 = 5u64 as u16; + #[doc = "The `SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_ARITHMETIC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeCompositeElement`*"] + pub const SVG_FECOMPOSITE_OPERATOR_ARITHMETIC: u16 = 6u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgfeConvolveMatrixElement.rs b/crates/web-sys/src/features/gen_SvgfeConvolveMatrixElement.rs new file mode 100644 index 00000000..04305347 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeConvolveMatrixElement.rs @@ -0,0 +1,168 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEConvolveMatrixElement , typescript_type = "SVGFEConvolveMatrixElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeConvolveMatrixElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeConvolveMatrixElement`*"] + pub type SvgfeConvolveMatrixElement; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = in1 ) ] + #[doc = "Getter for the `in1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/in1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeConvolveMatrixElement`*"] + pub fn in1(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedString; + #[cfg(feature = "SvgAnimatedInteger")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = orderX ) ] + #[doc = "Getter for the `orderX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/orderX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`, `SvgfeConvolveMatrixElement`*"] + pub fn order_x(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedInteger; + #[cfg(feature = "SvgAnimatedInteger")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = orderY ) ] + #[doc = "Getter for the `orderY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/orderY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`, `SvgfeConvolveMatrixElement`*"] + pub fn order_y(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedInteger; + #[cfg(feature = "SvgAnimatedNumberList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = kernelMatrix ) ] + #[doc = "Getter for the `kernelMatrix` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/kernelMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumberList`, `SvgfeConvolveMatrixElement`*"] + pub fn kernel_matrix(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedNumberList; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = divisor ) ] + #[doc = "Getter for the `divisor` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/divisor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeConvolveMatrixElement`*"] + pub fn divisor(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = bias ) ] + #[doc = "Getter for the `bias` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/bias)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeConvolveMatrixElement`*"] + pub fn bias(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedInteger")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = targetX ) ] + #[doc = "Getter for the `targetX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/targetX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`, `SvgfeConvolveMatrixElement`*"] + pub fn target_x(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedInteger; + #[cfg(feature = "SvgAnimatedInteger")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = targetY ) ] + #[doc = "Getter for the `targetY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/targetY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`, `SvgfeConvolveMatrixElement`*"] + pub fn target_y(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedInteger; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = edgeMode ) ] + #[doc = "Getter for the `edgeMode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/edgeMode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeConvolveMatrixElement`*"] + pub fn edge_mode(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = kernelUnitLengthX ) ] + #[doc = "Getter for the `kernelUnitLengthX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/kernelUnitLengthX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeConvolveMatrixElement`*"] + pub fn kernel_unit_length_x(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = kernelUnitLengthY ) ] + #[doc = "Getter for the `kernelUnitLengthY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/kernelUnitLengthY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeConvolveMatrixElement`*"] + pub fn kernel_unit_length_y(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedBoolean")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = preserveAlpha ) ] + #[doc = "Getter for the `preserveAlpha` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/preserveAlpha)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedBoolean`, `SvgfeConvolveMatrixElement`*"] + pub fn preserve_alpha(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedBoolean; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeConvolveMatrixElement`*"] + pub fn x(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeConvolveMatrixElement`*"] + pub fn y(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeConvolveMatrixElement`*"] + pub fn width(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeConvolveMatrixElement`*"] + pub fn height(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEConvolveMatrixElement" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEConvolveMatrixElement/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeConvolveMatrixElement`*"] + pub fn result(this: &SvgfeConvolveMatrixElement) -> SvgAnimatedString; +} +impl SvgfeConvolveMatrixElement { + #[doc = "The `SVGFEConvolveMatrixElement.SVG_EDGEMODE_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeConvolveMatrixElement`*"] + pub const SVG_EDGEMODE_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGFEConvolveMatrixElement.SVG_EDGEMODE_DUPLICATE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeConvolveMatrixElement`*"] + pub const SVG_EDGEMODE_DUPLICATE: u16 = 1u64 as u16; + #[doc = "The `SVGFEConvolveMatrixElement.SVG_EDGEMODE_WRAP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeConvolveMatrixElement`*"] + pub const SVG_EDGEMODE_WRAP: u16 = 2u64 as u16; + #[doc = "The `SVGFEConvolveMatrixElement.SVG_EDGEMODE_NONE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeConvolveMatrixElement`*"] + pub const SVG_EDGEMODE_NONE: u16 = 3u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgfeDiffuseLightingElement.rs b/crates/web-sys/src/features/gen_SvgfeDiffuseLightingElement.rs new file mode 100644 index 00000000..c96196f9 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeDiffuseLightingElement.rs @@ -0,0 +1,94 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEDiffuseLightingElement , typescript_type = "SVGFEDiffuseLightingElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeDiffuseLightingElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeDiffuseLightingElement`*"] + pub type SvgfeDiffuseLightingElement; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = in1 ) ] + #[doc = "Getter for the `in1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/in1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDiffuseLightingElement`*"] + pub fn in1(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedString; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = surfaceScale ) ] + #[doc = "Getter for the `surfaceScale` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/surfaceScale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDiffuseLightingElement`*"] + pub fn surface_scale(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = diffuseConstant ) ] + #[doc = "Getter for the `diffuseConstant` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/diffuseConstant)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDiffuseLightingElement`*"] + pub fn diffuse_constant(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = kernelUnitLengthX ) ] + #[doc = "Getter for the `kernelUnitLengthX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/kernelUnitLengthX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDiffuseLightingElement`*"] + pub fn kernel_unit_length_x(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = kernelUnitLengthY ) ] + #[doc = "Getter for the `kernelUnitLengthY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/kernelUnitLengthY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDiffuseLightingElement`*"] + pub fn kernel_unit_length_y(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDiffuseLightingElement`*"] + pub fn x(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDiffuseLightingElement`*"] + pub fn y(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDiffuseLightingElement`*"] + pub fn width(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDiffuseLightingElement`*"] + pub fn height(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDiffuseLightingElement" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDiffuseLightingElement/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDiffuseLightingElement`*"] + pub fn result(this: &SvgfeDiffuseLightingElement) -> SvgAnimatedString; +} diff --git a/crates/web-sys/src/features/gen_SvgfeDisplacementMapElement.rs b/crates/web-sys/src/features/gen_SvgfeDisplacementMapElement.rs new file mode 100644 index 00000000..8b859b2c --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeDisplacementMapElement.rs @@ -0,0 +1,116 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEDisplacementMapElement , typescript_type = "SVGFEDisplacementMapElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeDisplacementMapElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"] + pub type SvgfeDisplacementMapElement; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = in1 ) ] + #[doc = "Getter for the `in1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/in1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDisplacementMapElement`*"] + pub fn in1(this: &SvgfeDisplacementMapElement) -> SvgAnimatedString; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = in2 ) ] + #[doc = "Getter for the `in2` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/in2)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDisplacementMapElement`*"] + pub fn in2(this: &SvgfeDisplacementMapElement) -> SvgAnimatedString; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = scale ) ] + #[doc = "Getter for the `scale` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/scale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDisplacementMapElement`*"] + pub fn scale(this: &SvgfeDisplacementMapElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = xChannelSelector ) ] + #[doc = "Getter for the `xChannelSelector` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/xChannelSelector)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeDisplacementMapElement`*"] + pub fn x_channel_selector(this: &SvgfeDisplacementMapElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = yChannelSelector ) ] + #[doc = "Getter for the `yChannelSelector` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/yChannelSelector)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeDisplacementMapElement`*"] + pub fn y_channel_selector(this: &SvgfeDisplacementMapElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDisplacementMapElement`*"] + pub fn x(this: &SvgfeDisplacementMapElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDisplacementMapElement`*"] + pub fn y(this: &SvgfeDisplacementMapElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDisplacementMapElement`*"] + pub fn width(this: &SvgfeDisplacementMapElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDisplacementMapElement`*"] + pub fn height(this: &SvgfeDisplacementMapElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDisplacementMapElement" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDisplacementMapElement/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDisplacementMapElement`*"] + pub fn result(this: &SvgfeDisplacementMapElement) -> SvgAnimatedString; +} +impl SvgfeDisplacementMapElement { + #[doc = "The `SVGFEDisplacementMapElement.SVG_CHANNEL_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"] + pub const SVG_CHANNEL_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGFEDisplacementMapElement.SVG_CHANNEL_R` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"] + pub const SVG_CHANNEL_R: u16 = 1u64 as u16; + #[doc = "The `SVGFEDisplacementMapElement.SVG_CHANNEL_G` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"] + pub const SVG_CHANNEL_G: u16 = 2u64 as u16; + #[doc = "The `SVGFEDisplacementMapElement.SVG_CHANNEL_B` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"] + pub const SVG_CHANNEL_B: u16 = 3u64 as u16; + #[doc = "The `SVGFEDisplacementMapElement.SVG_CHANNEL_A` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeDisplacementMapElement`*"] + pub const SVG_CHANNEL_A: u16 = 4u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgfeDistantLightElement.rs b/crates/web-sys/src/features/gen_SvgfeDistantLightElement.rs new file mode 100644 index 00000000..08990e86 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeDistantLightElement.rs @@ -0,0 +1,30 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEDistantLightElement , typescript_type = "SVGFEDistantLightElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeDistantLightElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDistantLightElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeDistantLightElement`*"] + pub type SvgfeDistantLightElement; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDistantLightElement" , js_name = azimuth ) ] + #[doc = "Getter for the `azimuth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDistantLightElement/azimuth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDistantLightElement`*"] + pub fn azimuth(this: &SvgfeDistantLightElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDistantLightElement" , js_name = elevation ) ] + #[doc = "Getter for the `elevation` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDistantLightElement/elevation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDistantLightElement`*"] + pub fn elevation(this: &SvgfeDistantLightElement) -> SvgAnimatedNumber; +} diff --git a/crates/web-sys/src/features/gen_SvgfeDropShadowElement.rs b/crates/web-sys/src/features/gen_SvgfeDropShadowElement.rs new file mode 100644 index 00000000..2692ae2f --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeDropShadowElement.rs @@ -0,0 +1,105 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEDropShadowElement , typescript_type = "SVGFEDropShadowElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeDropShadowElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeDropShadowElement`*"] + pub type SvgfeDropShadowElement; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = in1 ) ] + #[doc = "Getter for the `in1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/in1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDropShadowElement`*"] + pub fn in1(this: &SvgfeDropShadowElement) -> SvgAnimatedString; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = dx ) ] + #[doc = "Getter for the `dx` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/dx)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDropShadowElement`*"] + pub fn dx(this: &SvgfeDropShadowElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = dy ) ] + #[doc = "Getter for the `dy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/dy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDropShadowElement`*"] + pub fn dy(this: &SvgfeDropShadowElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = stdDeviationX ) ] + #[doc = "Getter for the `stdDeviationX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/stdDeviationX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDropShadowElement`*"] + pub fn std_deviation_x(this: &SvgfeDropShadowElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = stdDeviationY ) ] + #[doc = "Getter for the `stdDeviationY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/stdDeviationY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeDropShadowElement`*"] + pub fn std_deviation_y(this: &SvgfeDropShadowElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDropShadowElement`*"] + pub fn x(this: &SvgfeDropShadowElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDropShadowElement`*"] + pub fn y(this: &SvgfeDropShadowElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDropShadowElement`*"] + pub fn width(this: &SvgfeDropShadowElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeDropShadowElement`*"] + pub fn height(this: &SvgfeDropShadowElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEDropShadowElement" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeDropShadowElement`*"] + pub fn result(this: &SvgfeDropShadowElement) -> SvgAnimatedString; + # [ wasm_bindgen ( method , structural , js_class = "SVGFEDropShadowElement" , js_name = setStdDeviation ) ] + #[doc = "The `setStdDeviation()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEDropShadowElement/setStdDeviation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeDropShadowElement`*"] + pub fn set_std_deviation( + this: &SvgfeDropShadowElement, + std_deviation_x: f32, + std_deviation_y: f32, + ); +} diff --git a/crates/web-sys/src/features/gen_SvgfeFloodElement.rs b/crates/web-sys/src/features/gen_SvgfeFloodElement.rs new file mode 100644 index 00000000..9d38b80b --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeFloodElement.rs @@ -0,0 +1,54 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEFloodElement , typescript_type = "SVGFEFloodElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeFloodElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFloodElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeFloodElement`*"] + pub type SvgfeFloodElement; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEFloodElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFloodElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeFloodElement`*"] + pub fn x(this: &SvgfeFloodElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEFloodElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFloodElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeFloodElement`*"] + pub fn y(this: &SvgfeFloodElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEFloodElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFloodElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeFloodElement`*"] + pub fn width(this: &SvgfeFloodElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEFloodElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFloodElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeFloodElement`*"] + pub fn height(this: &SvgfeFloodElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEFloodElement" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFloodElement/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeFloodElement`*"] + pub fn result(this: &SvgfeFloodElement) -> SvgAnimatedString; +} diff --git a/crates/web-sys/src/features/gen_SvgfeFuncAElement.rs b/crates/web-sys/src/features/gen_SvgfeFuncAElement.rs new file mode 100644 index 00000000..ebe0507f --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeFuncAElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgComponentTransferFunctionElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEFuncAElement , typescript_type = "SVGFEFuncAElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeFuncAElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFuncAElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeFuncAElement`*"] + pub type SvgfeFuncAElement; +} diff --git a/crates/web-sys/src/features/gen_SvgfeFuncBElement.rs b/crates/web-sys/src/features/gen_SvgfeFuncBElement.rs new file mode 100644 index 00000000..64a13238 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeFuncBElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgComponentTransferFunctionElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEFuncBElement , typescript_type = "SVGFEFuncBElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeFuncBElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFuncBElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeFuncBElement`*"] + pub type SvgfeFuncBElement; +} diff --git a/crates/web-sys/src/features/gen_SvgfeFuncGElement.rs b/crates/web-sys/src/features/gen_SvgfeFuncGElement.rs new file mode 100644 index 00000000..f773439d --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeFuncGElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgComponentTransferFunctionElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEFuncGElement , typescript_type = "SVGFEFuncGElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeFuncGElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFuncGElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeFuncGElement`*"] + pub type SvgfeFuncGElement; +} diff --git a/crates/web-sys/src/features/gen_SvgfeFuncRElement.rs b/crates/web-sys/src/features/gen_SvgfeFuncRElement.rs new file mode 100644 index 00000000..3b698423 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeFuncRElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgComponentTransferFunctionElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEFuncRElement , typescript_type = "SVGFEFuncRElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeFuncRElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEFuncRElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeFuncRElement`*"] + pub type SvgfeFuncRElement; +} diff --git a/crates/web-sys/src/features/gen_SvgfeGaussianBlurElement.rs b/crates/web-sys/src/features/gen_SvgfeGaussianBlurElement.rs new file mode 100644 index 00000000..f22db5cd --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeGaussianBlurElement.rs @@ -0,0 +1,89 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEGaussianBlurElement , typescript_type = "SVGFEGaussianBlurElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeGaussianBlurElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeGaussianBlurElement`*"] + pub type SvgfeGaussianBlurElement; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = in1 ) ] + #[doc = "Getter for the `in1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/in1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeGaussianBlurElement`*"] + pub fn in1(this: &SvgfeGaussianBlurElement) -> SvgAnimatedString; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = stdDeviationX ) ] + #[doc = "Getter for the `stdDeviationX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/stdDeviationX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeGaussianBlurElement`*"] + pub fn std_deviation_x(this: &SvgfeGaussianBlurElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = stdDeviationY ) ] + #[doc = "Getter for the `stdDeviationY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/stdDeviationY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeGaussianBlurElement`*"] + pub fn std_deviation_y(this: &SvgfeGaussianBlurElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeGaussianBlurElement`*"] + pub fn x(this: &SvgfeGaussianBlurElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeGaussianBlurElement`*"] + pub fn y(this: &SvgfeGaussianBlurElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeGaussianBlurElement`*"] + pub fn width(this: &SvgfeGaussianBlurElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeGaussianBlurElement`*"] + pub fn height(this: &SvgfeGaussianBlurElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEGaussianBlurElement" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeGaussianBlurElement`*"] + pub fn result(this: &SvgfeGaussianBlurElement) -> SvgAnimatedString; + # [ wasm_bindgen ( method , structural , js_class = "SVGFEGaussianBlurElement" , js_name = setStdDeviation ) ] + #[doc = "The `setStdDeviation()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEGaussianBlurElement/setStdDeviation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeGaussianBlurElement`*"] + pub fn set_std_deviation( + this: &SvgfeGaussianBlurElement, + std_deviation_x: f32, + std_deviation_y: f32, + ); +} diff --git a/crates/web-sys/src/features/gen_SvgfeImageElement.rs b/crates/web-sys/src/features/gen_SvgfeImageElement.rs new file mode 100644 index 00000000..5c1ad3f2 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeImageElement.rs @@ -0,0 +1,70 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEImageElement , typescript_type = "SVGFEImageElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeImageElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeImageElement`*"] + pub type SvgfeImageElement; + #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEImageElement" , js_name = preserveAspectRatio ) ] + #[doc = "Getter for the `preserveAspectRatio` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/preserveAspectRatio)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgfeImageElement`*"] + pub fn preserve_aspect_ratio(this: &SvgfeImageElement) -> SvgAnimatedPreserveAspectRatio; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEImageElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeImageElement`*"] + pub fn x(this: &SvgfeImageElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEImageElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeImageElement`*"] + pub fn y(this: &SvgfeImageElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEImageElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeImageElement`*"] + pub fn width(this: &SvgfeImageElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEImageElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeImageElement`*"] + pub fn height(this: &SvgfeImageElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEImageElement" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeImageElement`*"] + pub fn result(this: &SvgfeImageElement) -> SvgAnimatedString; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEImageElement" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEImageElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeImageElement`*"] + pub fn href(this: &SvgfeImageElement) -> SvgAnimatedString; +} diff --git a/crates/web-sys/src/features/gen_SvgfeMergeElement.rs b/crates/web-sys/src/features/gen_SvgfeMergeElement.rs new file mode 100644 index 00000000..456c8b93 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeMergeElement.rs @@ -0,0 +1,54 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEMergeElement , typescript_type = "SVGFEMergeElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeMergeElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeMergeElement`*"] + pub type SvgfeMergeElement; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEMergeElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMergeElement`*"] + pub fn x(this: &SvgfeMergeElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEMergeElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMergeElement`*"] + pub fn y(this: &SvgfeMergeElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEMergeElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMergeElement`*"] + pub fn width(this: &SvgfeMergeElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEMergeElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMergeElement`*"] + pub fn height(this: &SvgfeMergeElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEMergeElement" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeElement/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeMergeElement`*"] + pub fn result(this: &SvgfeMergeElement) -> SvgAnimatedString; +} diff --git a/crates/web-sys/src/features/gen_SvgfeMergeNodeElement.rs b/crates/web-sys/src/features/gen_SvgfeMergeNodeElement.rs new file mode 100644 index 00000000..3dcc739c --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeMergeNodeElement.rs @@ -0,0 +1,22 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEMergeNodeElement , typescript_type = "SVGFEMergeNodeElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeMergeNodeElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeNodeElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeMergeNodeElement`*"] + pub type SvgfeMergeNodeElement; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEMergeNodeElement" , js_name = in1 ) ] + #[doc = "Getter for the `in1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMergeNodeElement/in1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeMergeNodeElement`*"] + pub fn in1(this: &SvgfeMergeNodeElement) -> SvgAnimatedString; +} diff --git a/crates/web-sys/src/features/gen_SvgfeMorphologyElement.rs b/crates/web-sys/src/features/gen_SvgfeMorphologyElement.rs new file mode 100644 index 00000000..d421685a --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeMorphologyElement.rs @@ -0,0 +1,100 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEMorphologyElement , typescript_type = "SVGFEMorphologyElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeMorphologyElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeMorphologyElement`*"] + pub type SvgfeMorphologyElement; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = in1 ) ] + #[doc = "Getter for the `in1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/in1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeMorphologyElement`*"] + pub fn in1(this: &SvgfeMorphologyElement) -> SvgAnimatedString; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = operator ) ] + #[doc = "Getter for the `operator` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/operator)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeMorphologyElement`*"] + pub fn operator(this: &SvgfeMorphologyElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = radiusX ) ] + #[doc = "Getter for the `radiusX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/radiusX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeMorphologyElement`*"] + pub fn radius_x(this: &SvgfeMorphologyElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = radiusY ) ] + #[doc = "Getter for the `radiusY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/radiusY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeMorphologyElement`*"] + pub fn radius_y(this: &SvgfeMorphologyElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMorphologyElement`*"] + pub fn x(this: &SvgfeMorphologyElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMorphologyElement`*"] + pub fn y(this: &SvgfeMorphologyElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMorphologyElement`*"] + pub fn width(this: &SvgfeMorphologyElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeMorphologyElement`*"] + pub fn height(this: &SvgfeMorphologyElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEMorphologyElement" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEMorphologyElement/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeMorphologyElement`*"] + pub fn result(this: &SvgfeMorphologyElement) -> SvgAnimatedString; +} +impl SvgfeMorphologyElement { + #[doc = "The `SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeMorphologyElement`*"] + pub const SVG_MORPHOLOGY_OPERATOR_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_ERODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeMorphologyElement`*"] + pub const SVG_MORPHOLOGY_OPERATOR_ERODE: u16 = 1u64 as u16; + #[doc = "The `SVGFEMorphologyElement.SVG_MORPHOLOGY_OPERATOR_DILATE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeMorphologyElement`*"] + pub const SVG_MORPHOLOGY_OPERATOR_DILATE: u16 = 2u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgfeOffsetElement.rs b/crates/web-sys/src/features/gen_SvgfeOffsetElement.rs new file mode 100644 index 00000000..f40c8995 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeOffsetElement.rs @@ -0,0 +1,78 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEOffsetElement , typescript_type = "SVGFEOffsetElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeOffsetElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeOffsetElement`*"] + pub type SvgfeOffsetElement; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = in1 ) ] + #[doc = "Getter for the `in1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/in1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeOffsetElement`*"] + pub fn in1(this: &SvgfeOffsetElement) -> SvgAnimatedString; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = dx ) ] + #[doc = "Getter for the `dx` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/dx)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeOffsetElement`*"] + pub fn dx(this: &SvgfeOffsetElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = dy ) ] + #[doc = "Getter for the `dy` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/dy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeOffsetElement`*"] + pub fn dy(this: &SvgfeOffsetElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeOffsetElement`*"] + pub fn x(this: &SvgfeOffsetElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeOffsetElement`*"] + pub fn y(this: &SvgfeOffsetElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeOffsetElement`*"] + pub fn width(this: &SvgfeOffsetElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeOffsetElement`*"] + pub fn height(this: &SvgfeOffsetElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEOffsetElement" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEOffsetElement/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeOffsetElement`*"] + pub fn result(this: &SvgfeOffsetElement) -> SvgAnimatedString; +} diff --git a/crates/web-sys/src/features/gen_SvgfePointLightElement.rs b/crates/web-sys/src/features/gen_SvgfePointLightElement.rs new file mode 100644 index 00000000..4f92b4d6 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfePointLightElement.rs @@ -0,0 +1,38 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFEPointLightElement , typescript_type = "SVGFEPointLightElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfePointLightElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfePointLightElement`*"] + pub type SvgfePointLightElement; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEPointLightElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfePointLightElement`*"] + pub fn x(this: &SvgfePointLightElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEPointLightElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfePointLightElement`*"] + pub fn y(this: &SvgfePointLightElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFEPointLightElement" , js_name = z ) ] + #[doc = "Getter for the `z` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFEPointLightElement/z)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfePointLightElement`*"] + pub fn z(this: &SvgfePointLightElement) -> SvgAnimatedNumber; +} diff --git a/crates/web-sys/src/features/gen_SvgfeSpecularLightingElement.rs b/crates/web-sys/src/features/gen_SvgfeSpecularLightingElement.rs new file mode 100644 index 00000000..bd183ccf --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeSpecularLightingElement.rs @@ -0,0 +1,102 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFESpecularLightingElement , typescript_type = "SVGFESpecularLightingElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeSpecularLightingElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeSpecularLightingElement`*"] + pub type SvgfeSpecularLightingElement; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = in1 ) ] + #[doc = "Getter for the `in1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/in1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeSpecularLightingElement`*"] + pub fn in1(this: &SvgfeSpecularLightingElement) -> SvgAnimatedString; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = surfaceScale ) ] + #[doc = "Getter for the `surfaceScale` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/surfaceScale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpecularLightingElement`*"] + pub fn surface_scale(this: &SvgfeSpecularLightingElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = specularConstant ) ] + #[doc = "Getter for the `specularConstant` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/specularConstant)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpecularLightingElement`*"] + pub fn specular_constant(this: &SvgfeSpecularLightingElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = specularExponent ) ] + #[doc = "Getter for the `specularExponent` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/specularExponent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpecularLightingElement`*"] + pub fn specular_exponent(this: &SvgfeSpecularLightingElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = kernelUnitLengthX ) ] + #[doc = "Getter for the `kernelUnitLengthX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/kernelUnitLengthX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpecularLightingElement`*"] + pub fn kernel_unit_length_x(this: &SvgfeSpecularLightingElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = kernelUnitLengthY ) ] + #[doc = "Getter for the `kernelUnitLengthY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/kernelUnitLengthY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpecularLightingElement`*"] + pub fn kernel_unit_length_y(this: &SvgfeSpecularLightingElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeSpecularLightingElement`*"] + pub fn x(this: &SvgfeSpecularLightingElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeSpecularLightingElement`*"] + pub fn y(this: &SvgfeSpecularLightingElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeSpecularLightingElement`*"] + pub fn width(this: &SvgfeSpecularLightingElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeSpecularLightingElement`*"] + pub fn height(this: &SvgfeSpecularLightingElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpecularLightingElement" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpecularLightingElement/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeSpecularLightingElement`*"] + pub fn result(this: &SvgfeSpecularLightingElement) -> SvgAnimatedString; +} diff --git a/crates/web-sys/src/features/gen_SvgfeSpotLightElement.rs b/crates/web-sys/src/features/gen_SvgfeSpotLightElement.rs new file mode 100644 index 00000000..03f972a1 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeSpotLightElement.rs @@ -0,0 +1,78 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFESpotLightElement , typescript_type = "SVGFESpotLightElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeSpotLightElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeSpotLightElement`*"] + pub type SvgfeSpotLightElement; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] + pub fn x(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] + pub fn y(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = z ) ] + #[doc = "Getter for the `z` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/z)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] + pub fn z(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = pointsAtX ) ] + #[doc = "Getter for the `pointsAtX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/pointsAtX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] + pub fn points_at_x(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = pointsAtY ) ] + #[doc = "Getter for the `pointsAtY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/pointsAtY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] + pub fn points_at_y(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = pointsAtZ ) ] + #[doc = "Getter for the `pointsAtZ` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/pointsAtZ)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] + pub fn points_at_z(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = specularExponent ) ] + #[doc = "Getter for the `specularExponent` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/specularExponent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] + pub fn specular_exponent(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFESpotLightElement" , js_name = limitingConeAngle ) ] + #[doc = "Getter for the `limitingConeAngle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFESpotLightElement/limitingConeAngle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeSpotLightElement`*"] + pub fn limiting_cone_angle(this: &SvgfeSpotLightElement) -> SvgAnimatedNumber; +} diff --git a/crates/web-sys/src/features/gen_SvgfeTileElement.rs b/crates/web-sys/src/features/gen_SvgfeTileElement.rs new file mode 100644 index 00000000..a5ed0fae --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeTileElement.rs @@ -0,0 +1,62 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFETileElement , typescript_type = "SVGFETileElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeTileElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeTileElement`*"] + pub type SvgfeTileElement; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFETileElement" , js_name = in1 ) ] + #[doc = "Getter for the `in1` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/in1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeTileElement`*"] + pub fn in1(this: &SvgfeTileElement) -> SvgAnimatedString; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFETileElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTileElement`*"] + pub fn x(this: &SvgfeTileElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFETileElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTileElement`*"] + pub fn y(this: &SvgfeTileElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFETileElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTileElement`*"] + pub fn width(this: &SvgfeTileElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFETileElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTileElement`*"] + pub fn height(this: &SvgfeTileElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFETileElement" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETileElement/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeTileElement`*"] + pub fn result(this: &SvgfeTileElement) -> SvgAnimatedString; +} diff --git a/crates/web-sys/src/features/gen_SvgfeTurbulenceElement.rs b/crates/web-sys/src/features/gen_SvgfeTurbulenceElement.rs new file mode 100644 index 00000000..d2739426 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgfeTurbulenceElement.rs @@ -0,0 +1,128 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGFETurbulenceElement , typescript_type = "SVGFETurbulenceElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgfeTurbulenceElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeTurbulenceElement`*"] + pub type SvgfeTurbulenceElement; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = baseFrequencyX ) ] + #[doc = "Getter for the `baseFrequencyX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/baseFrequencyX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeTurbulenceElement`*"] + pub fn base_frequency_x(this: &SvgfeTurbulenceElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = baseFrequencyY ) ] + #[doc = "Getter for the `baseFrequencyY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/baseFrequencyY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeTurbulenceElement`*"] + pub fn base_frequency_y(this: &SvgfeTurbulenceElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedInteger")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = numOctaves ) ] + #[doc = "Getter for the `numOctaves` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/numOctaves)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedInteger`, `SvgfeTurbulenceElement`*"] + pub fn num_octaves(this: &SvgfeTurbulenceElement) -> SvgAnimatedInteger; + #[cfg(feature = "SvgAnimatedNumber")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = seed ) ] + #[doc = "Getter for the `seed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/seed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedNumber`, `SvgfeTurbulenceElement`*"] + pub fn seed(this: &SvgfeTurbulenceElement) -> SvgAnimatedNumber; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = stitchTiles ) ] + #[doc = "Getter for the `stitchTiles` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/stitchTiles)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeTurbulenceElement`*"] + pub fn stitch_tiles(this: &SvgfeTurbulenceElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedEnumeration")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedEnumeration`, `SvgfeTurbulenceElement`*"] + pub fn type_(this: &SvgfeTurbulenceElement) -> SvgAnimatedEnumeration; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTurbulenceElement`*"] + pub fn x(this: &SvgfeTurbulenceElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTurbulenceElement`*"] + pub fn y(this: &SvgfeTurbulenceElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTurbulenceElement`*"] + pub fn width(this: &SvgfeTurbulenceElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgfeTurbulenceElement`*"] + pub fn height(this: &SvgfeTurbulenceElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGFETurbulenceElement" , js_name = result ) ] + #[doc = "Getter for the `result` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGFETurbulenceElement/result)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgfeTurbulenceElement`*"] + pub fn result(this: &SvgfeTurbulenceElement) -> SvgAnimatedString; +} +impl SvgfeTurbulenceElement { + #[doc = "The `SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeTurbulenceElement`*"] + pub const SVG_TURBULENCE_TYPE_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_FRACTALNOISE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeTurbulenceElement`*"] + pub const SVG_TURBULENCE_TYPE_FRACTALNOISE: u16 = 1u64 as u16; + #[doc = "The `SVGFETurbulenceElement.SVG_TURBULENCE_TYPE_TURBULENCE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeTurbulenceElement`*"] + pub const SVG_TURBULENCE_TYPE_TURBULENCE: u16 = 2u64 as u16; + #[doc = "The `SVGFETurbulenceElement.SVG_STITCHTYPE_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeTurbulenceElement`*"] + pub const SVG_STITCHTYPE_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGFETurbulenceElement.SVG_STITCHTYPE_STITCH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeTurbulenceElement`*"] + pub const SVG_STITCHTYPE_STITCH: u16 = 1u64 as u16; + #[doc = "The `SVGFETurbulenceElement.SVG_STITCHTYPE_NOSTITCH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgfeTurbulenceElement`*"] + pub const SVG_STITCHTYPE_NOSTITCH: u16 = 2u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvggElement.rs b/crates/web-sys/src/features/gen_SvggElement.rs new file mode 100644 index 00000000..ac1ca6a0 --- /dev/null +++ b/crates/web-sys/src/features/gen_SvggElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGGElement , typescript_type = "SVGGElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvggElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGGElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvggElement`*"] + pub type SvggElement; +} diff --git a/crates/web-sys/src/features/gen_SvgmPathElement.rs b/crates/web-sys/src/features/gen_SvgmPathElement.rs new file mode 100644 index 00000000..b5a8883f --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgmPathElement.rs @@ -0,0 +1,22 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGMPathElement , typescript_type = "SVGMPathElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgmPathElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMPathElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgmPathElement`*"] + pub type SvgmPathElement; + #[cfg(feature = "SvgAnimatedString")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGMPathElement" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGMPathElement/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedString`, `SvgmPathElement`*"] + pub fn href(this: &SvgmPathElement) -> SvgAnimatedString; +} diff --git a/crates/web-sys/src/features/gen_SvgsvgElement.rs b/crates/web-sys/src/features/gen_SvgsvgElement.rs new file mode 100644 index 00000000..be21c18b --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgsvgElement.rs @@ -0,0 +1,263 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGSVGElement , typescript_type = "SVGSVGElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgsvgElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub type SvgsvgElement; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGSVGElement" , js_name = x ) ] + #[doc = "Getter for the `x` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/x)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgsvgElement`*"] + pub fn x(this: &SvgsvgElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGSVGElement" , js_name = y ) ] + #[doc = "Getter for the `y` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/y)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgsvgElement`*"] + pub fn y(this: &SvgsvgElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGSVGElement" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgsvgElement`*"] + pub fn width(this: &SvgsvgElement) -> SvgAnimatedLength; + #[cfg(feature = "SvgAnimatedLength")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGSVGElement" , js_name = height ) ] + #[doc = "Getter for the `height` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/height)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedLength`, `SvgsvgElement`*"] + pub fn height(this: &SvgsvgElement) -> SvgAnimatedLength; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGSVGElement" , js_name = useCurrentView ) ] + #[doc = "Getter for the `useCurrentView` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/useCurrentView)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub fn use_current_view(this: &SvgsvgElement) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGSVGElement" , js_name = currentScale ) ] + #[doc = "Getter for the `currentScale` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/currentScale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub fn current_scale(this: &SvgsvgElement) -> f32; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGSVGElement" , js_name = currentScale ) ] + #[doc = "Setter for the `currentScale` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/currentScale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub fn set_current_scale(this: &SvgsvgElement, value: f32); + #[cfg(feature = "SvgPoint")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGSVGElement" , js_name = currentTranslate ) ] + #[doc = "Getter for the `currentTranslate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/currentTranslate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgsvgElement`*"] + pub fn current_translate(this: &SvgsvgElement) -> SvgPoint; + #[cfg(feature = "SvgAnimatedRect")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGSVGElement" , js_name = viewBox ) ] + #[doc = "Getter for the `viewBox` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/viewBox)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedRect`, `SvgsvgElement`*"] + pub fn view_box(this: &SvgsvgElement) -> SvgAnimatedRect; + #[cfg(feature = "SvgAnimatedPreserveAspectRatio")] + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGSVGElement" , js_name = preserveAspectRatio ) ] + #[doc = "Getter for the `preserveAspectRatio` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/preserveAspectRatio)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAnimatedPreserveAspectRatio`, `SvgsvgElement`*"] + pub fn preserve_aspect_ratio(this: &SvgsvgElement) -> SvgAnimatedPreserveAspectRatio; + # [ wasm_bindgen ( structural , method , getter , js_class = "SVGSVGElement" , js_name = zoomAndPan ) ] + #[doc = "Getter for the `zoomAndPan` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/zoomAndPan)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub fn zoom_and_pan(this: &SvgsvgElement) -> u16; + # [ wasm_bindgen ( structural , method , setter , js_class = "SVGSVGElement" , js_name = zoomAndPan ) ] + #[doc = "Setter for the `zoomAndPan` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/zoomAndPan)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub fn set_zoom_and_pan(this: &SvgsvgElement, value: u16); + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = animationsPaused ) ] + #[doc = "The `animationsPaused()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/animationsPaused)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub fn animations_paused(this: &SvgsvgElement) -> bool; + #[cfg(feature = "SvgAngle")] + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = createSVGAngle ) ] + #[doc = "The `createSVGAngle()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGAngle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgAngle`, `SvgsvgElement`*"] + pub fn create_svg_angle(this: &SvgsvgElement) -> SvgAngle; + #[cfg(feature = "SvgLength")] + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = createSVGLength ) ] + #[doc = "The `createSVGLength()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgLength`, `SvgsvgElement`*"] + pub fn create_svg_length(this: &SvgsvgElement) -> SvgLength; + #[cfg(feature = "SvgMatrix")] + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = createSVGMatrix ) ] + #[doc = "The `createSVGMatrix()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgsvgElement`*"] + pub fn create_svg_matrix(this: &SvgsvgElement) -> SvgMatrix; + #[cfg(feature = "SvgNumber")] + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = createSVGNumber ) ] + #[doc = "The `createSVGNumber()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGNumber)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgNumber`, `SvgsvgElement`*"] + pub fn create_svg_number(this: &SvgsvgElement) -> SvgNumber; + #[cfg(feature = "SvgPoint")] + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = createSVGPoint ) ] + #[doc = "The `createSVGPoint()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGPoint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgPoint`, `SvgsvgElement`*"] + pub fn create_svg_point(this: &SvgsvgElement) -> SvgPoint; + #[cfg(feature = "SvgRect")] + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = createSVGRect ) ] + #[doc = "The `createSVGRect()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGRect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgRect`, `SvgsvgElement`*"] + pub fn create_svg_rect(this: &SvgsvgElement) -> SvgRect; + #[cfg(feature = "SvgTransform")] + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = createSVGTransform ) ] + #[doc = "The `createSVGTransform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGTransform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgTransform`, `SvgsvgElement`*"] + pub fn create_svg_transform(this: &SvgsvgElement) -> SvgTransform; + #[cfg(all(feature = "SvgMatrix", feature = "SvgTransform",))] + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = createSVGTransformFromMatrix ) ] + #[doc = "The `createSVGTransformFromMatrix()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/createSVGTransformFromMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgMatrix`, `SvgTransform`, `SvgsvgElement`*"] + pub fn create_svg_transform_from_matrix( + this: &SvgsvgElement, + matrix: &SvgMatrix, + ) -> SvgTransform; + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = deselectAll ) ] + #[doc = "The `deselectAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/deselectAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub fn deselect_all(this: &SvgsvgElement); + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = forceRedraw ) ] + #[doc = "The `forceRedraw()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/forceRedraw)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub fn force_redraw(this: &SvgsvgElement); + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = getCurrentTime ) ] + #[doc = "The `getCurrentTime()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/getCurrentTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub fn get_current_time(this: &SvgsvgElement) -> f32; + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = getElementById ) ] + #[doc = "The `getElementById()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/getElementById)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub fn get_element_by_id(this: &SvgsvgElement, element_id: &str) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = pauseAnimations ) ] + #[doc = "The `pauseAnimations()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/pauseAnimations)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub fn pause_animations(this: &SvgsvgElement); + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = setCurrentTime ) ] + #[doc = "The `setCurrentTime()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/setCurrentTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub fn set_current_time(this: &SvgsvgElement, seconds: f32); + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = suspendRedraw ) ] + #[doc = "The `suspendRedraw()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/suspendRedraw)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub fn suspend_redraw(this: &SvgsvgElement, max_wait_milliseconds: u32) -> u32; + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = unpauseAnimations ) ] + #[doc = "The `unpauseAnimations()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/unpauseAnimations)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub fn unpause_animations(this: &SvgsvgElement); + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = unsuspendRedraw ) ] + #[doc = "The `unsuspendRedraw()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/unsuspendRedraw)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub fn unsuspend_redraw(this: &SvgsvgElement, suspend_handle_id: u32); + # [ wasm_bindgen ( method , structural , js_class = "SVGSVGElement" , js_name = unsuspendRedrawAll ) ] + #[doc = "The `unsuspendRedrawAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGSVGElement/unsuspendRedrawAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub fn unsuspend_redraw_all(this: &SvgsvgElement); +} +impl SvgsvgElement { + #[doc = "The `SVGSVGElement.SVG_ZOOMANDPAN_UNKNOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub const SVG_ZOOMANDPAN_UNKNOWN: u16 = 0i64 as u16; + #[doc = "The `SVGSVGElement.SVG_ZOOMANDPAN_DISABLE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub const SVG_ZOOMANDPAN_DISABLE: u16 = 1u64 as u16; + #[doc = "The `SVGSVGElement.SVG_ZOOMANDPAN_MAGNIFY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgsvgElement`*"] + pub const SVG_ZOOMANDPAN_MAGNIFY: u16 = 2u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_SvgtSpanElement.rs b/crates/web-sys/src/features/gen_SvgtSpanElement.rs new file mode 100644 index 00000000..1ddf4f3a --- /dev/null +++ b/crates/web-sys/src/features/gen_SvgtSpanElement.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = SvgTextPositioningElement , extends = SvgTextContentElement , extends = SvgGraphicsElement , extends = SvgElement , extends = Element , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = SVGTSpanElement , typescript_type = "SVGTSpanElement" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `SvgtSpanElement` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/SVGTSpanElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SvgtSpanElement`*"] + pub type SvgtSpanElement; +} diff --git a/crates/web-sys/src/features/gen_TcpReadyState.rs b/crates/web-sys/src/features/gen_TcpReadyState.rs new file mode 100644 index 00000000..7dff83ba --- /dev/null +++ b/crates/web-sys/src/features/gen_TcpReadyState.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `TcpReadyState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `TcpReadyState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum TcpReadyState { + Connecting = "connecting", + Open = "open", + Closing = "closing", + Closed = "closed", +} diff --git a/crates/web-sys/src/features/gen_TcpServerSocket.rs b/crates/web-sys/src/features/gen_TcpServerSocket.rs new file mode 100644 index 00000000..949db060 --- /dev/null +++ b/crates/web-sys/src/features/gen_TcpServerSocket.rs @@ -0,0 +1,86 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = TCPServerSocket , typescript_type = "TCPServerSocket" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TcpServerSocket` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] + pub type TcpServerSocket; + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPServerSocket" , js_name = localPort ) ] + #[doc = "Getter for the `localPort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/localPort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] + pub fn local_port(this: &TcpServerSocket) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPServerSocket" , js_name = onconnect ) ] + #[doc = "Getter for the `onconnect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/onconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] + pub fn onconnect(this: &TcpServerSocket) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "TCPServerSocket" , js_name = onconnect ) ] + #[doc = "Setter for the `onconnect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/onconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] + pub fn set_onconnect(this: &TcpServerSocket, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPServerSocket" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] + pub fn onerror(this: &TcpServerSocket) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "TCPServerSocket" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] + pub fn set_onerror(this: &TcpServerSocket, value: Option<&::js_sys::Function>); + #[wasm_bindgen(catch, constructor, js_class = "TCPServerSocket")] + #[doc = "The `new TcpServerSocket(..)` constructor, creating a new instance of `TcpServerSocket`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/TCPServerSocket)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] + pub fn new(port: u16) -> Result; + #[cfg(feature = "ServerSocketOptions")] + #[wasm_bindgen(catch, constructor, js_class = "TCPServerSocket")] + #[doc = "The `new TcpServerSocket(..)` constructor, creating a new instance of `TcpServerSocket`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/TCPServerSocket)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServerSocketOptions`, `TcpServerSocket`*"] + pub fn new_with_options( + port: u16, + options: &ServerSocketOptions, + ) -> Result; + #[cfg(feature = "ServerSocketOptions")] + #[wasm_bindgen(catch, constructor, js_class = "TCPServerSocket")] + #[doc = "The `new TcpServerSocket(..)` constructor, creating a new instance of `TcpServerSocket`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/TCPServerSocket)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ServerSocketOptions`, `TcpServerSocket`*"] + pub fn new_with_options_and_backlog( + port: u16, + options: &ServerSocketOptions, + backlog: u16, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "TCPServerSocket" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocket/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocket`*"] + pub fn close(this: &TcpServerSocket); +} diff --git a/crates/web-sys/src/features/gen_TcpServerSocketEvent.rs b/crates/web-sys/src/features/gen_TcpServerSocketEvent.rs new file mode 100644 index 00000000..b686a328 --- /dev/null +++ b/crates/web-sys/src/features/gen_TcpServerSocketEvent.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = TCPServerSocketEvent , typescript_type = "TCPServerSocketEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TcpServerSocketEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocketEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEvent`*"] + pub type TcpServerSocketEvent; + #[cfg(feature = "TcpSocket")] + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPServerSocketEvent" , js_name = socket ) ] + #[doc = "Getter for the `socket` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocketEvent/socket)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEvent`, `TcpSocket`*"] + pub fn socket(this: &TcpServerSocketEvent) -> TcpSocket; + #[wasm_bindgen(catch, constructor, js_class = "TCPServerSocketEvent")] + #[doc = "The `new TcpServerSocketEvent(..)` constructor, creating a new instance of `TcpServerSocketEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocketEvent/TCPServerSocketEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "TcpServerSocketEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "TCPServerSocketEvent")] + #[doc = "The `new TcpServerSocketEvent(..)` constructor, creating a new instance of `TcpServerSocketEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPServerSocketEvent/TCPServerSocketEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEvent`, `TcpServerSocketEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &TcpServerSocketEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_TcpServerSocketEventInit.rs b/crates/web-sys/src/features/gen_TcpServerSocketEventInit.rs new file mode 100644 index 00000000..330fb354 --- /dev/null +++ b/crates/web-sys/src/features/gen_TcpServerSocketEventInit.rs @@ -0,0 +1,88 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = TCPServerSocketEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TcpServerSocketEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`*"] + pub type TcpServerSocketEventInit; +} +impl TcpServerSocketEventInit { + #[doc = "Construct a new `TcpServerSocketEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "TcpSocket")] + #[doc = "Change the `socket` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpServerSocketEventInit`, `TcpSocket`*"] + pub fn socket(&mut self, val: Option<&TcpSocket>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("socket"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_TcpSocket.rs b/crates/web-sys/src/features/gen_TcpSocket.rs new file mode 100644 index 00000000..16716fcb --- /dev/null +++ b/crates/web-sys/src/features/gen_TcpSocket.rs @@ -0,0 +1,215 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = TCPSocket , typescript_type = "TCPSocket" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TcpSocket` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub type TcpSocket; + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPSocket" , js_name = host ) ] + #[doc = "Getter for the `host` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/host)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn host(this: &TcpSocket) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPSocket" , js_name = port ) ] + #[doc = "Getter for the `port` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/port)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn port(this: &TcpSocket) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPSocket" , js_name = ssl ) ] + #[doc = "Getter for the `ssl` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/ssl)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn ssl(this: &TcpSocket) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPSocket" , js_name = bufferedAmount ) ] + #[doc = "Getter for the `bufferedAmount` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/bufferedAmount)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn buffered_amount(this: &TcpSocket) -> f64; + #[cfg(feature = "TcpReadyState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPSocket" , js_name = readyState ) ] + #[doc = "Getter for the `readyState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/readyState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpReadyState`, `TcpSocket`*"] + pub fn ready_state(this: &TcpSocket) -> TcpReadyState; + #[cfg(feature = "TcpSocketBinaryType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPSocket" , js_name = binaryType ) ] + #[doc = "Getter for the `binaryType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/binaryType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`, `TcpSocketBinaryType`*"] + pub fn binary_type(this: &TcpSocket) -> TcpSocketBinaryType; + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPSocket" , js_name = onopen ) ] + #[doc = "Getter for the `onopen` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onopen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn onopen(this: &TcpSocket) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "TCPSocket" , js_name = onopen ) ] + #[doc = "Setter for the `onopen` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onopen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn set_onopen(this: &TcpSocket, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPSocket" , js_name = ondrain ) ] + #[doc = "Getter for the `ondrain` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/ondrain)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn ondrain(this: &TcpSocket) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "TCPSocket" , js_name = ondrain ) ] + #[doc = "Setter for the `ondrain` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/ondrain)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn set_ondrain(this: &TcpSocket, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPSocket" , js_name = ondata ) ] + #[doc = "Getter for the `ondata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/ondata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn ondata(this: &TcpSocket) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "TCPSocket" , js_name = ondata ) ] + #[doc = "Setter for the `ondata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/ondata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn set_ondata(this: &TcpSocket, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPSocket" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn onerror(this: &TcpSocket) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "TCPSocket" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn set_onerror(this: &TcpSocket, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPSocket" , js_name = onclose ) ] + #[doc = "Getter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn onclose(this: &TcpSocket) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "TCPSocket" , js_name = onclose ) ] + #[doc = "Setter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn set_onclose(this: &TcpSocket, value: Option<&::js_sys::Function>); + #[wasm_bindgen(catch, constructor, js_class = "TCPSocket")] + #[doc = "The `new TcpSocket(..)` constructor, creating a new instance of `TcpSocket`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/TCPSocket)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn new(host: &str, port: u16) -> Result; + #[cfg(feature = "SocketOptions")] + #[wasm_bindgen(catch, constructor, js_class = "TCPSocket")] + #[doc = "The `new TcpSocket(..)` constructor, creating a new instance of `TcpSocket`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/TCPSocket)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SocketOptions`, `TcpSocket`*"] + pub fn new_with_options( + host: &str, + port: u16, + options: &SocketOptions, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "TCPSocket" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn close(this: &TcpSocket); + # [ wasm_bindgen ( catch , method , structural , js_class = "TCPSocket" , js_name = resume ) ] + #[doc = "The `resume()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/resume)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn resume(this: &TcpSocket) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "TCPSocket" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn send_with_str(this: &TcpSocket, data: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "TCPSocket" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn send_with_array_buffer( + this: &TcpSocket, + data: &::js_sys::ArrayBuffer, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "TCPSocket" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn send_with_array_buffer_and_byte_offset( + this: &TcpSocket, + data: &::js_sys::ArrayBuffer, + byte_offset: u32, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "TCPSocket" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn send_with_array_buffer_and_byte_offset_and_byte_length( + this: &TcpSocket, + data: &::js_sys::ArrayBuffer, + byte_offset: u32, + byte_length: u32, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "TCPSocket" , js_name = suspend ) ] + #[doc = "The `suspend()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/suspend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn suspend(this: &TcpSocket); + # [ wasm_bindgen ( catch , method , structural , js_class = "TCPSocket" , js_name = upgradeToSecure ) ] + #[doc = "The `upgradeToSecure()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocket/upgradeToSecure)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocket`*"] + pub fn upgrade_to_secure(this: &TcpSocket) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_TcpSocketBinaryType.rs b/crates/web-sys/src/features/gen_TcpSocketBinaryType.rs new file mode 100644 index 00000000..762dd9a7 --- /dev/null +++ b/crates/web-sys/src/features/gen_TcpSocketBinaryType.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `TcpSocketBinaryType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `TcpSocketBinaryType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum TcpSocketBinaryType { + Arraybuffer = "arraybuffer", + String = "string", +} diff --git a/crates/web-sys/src/features/gen_TcpSocketErrorEvent.rs b/crates/web-sys/src/features/gen_TcpSocketErrorEvent.rs new file mode 100644 index 00000000..b8c00350 --- /dev/null +++ b/crates/web-sys/src/features/gen_TcpSocketErrorEvent.rs @@ -0,0 +1,46 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = TCPSocketErrorEvent , typescript_type = "TCPSocketErrorEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TcpSocketErrorEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketErrorEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`*"] + pub type TcpSocketErrorEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPSocketErrorEvent" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketErrorEvent/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`*"] + pub fn name(this: &TcpSocketErrorEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPSocketErrorEvent" , js_name = message ) ] + #[doc = "Getter for the `message` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketErrorEvent/message)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`*"] + pub fn message(this: &TcpSocketErrorEvent) -> String; + #[wasm_bindgen(catch, constructor, js_class = "TCPSocketErrorEvent")] + #[doc = "The `new TcpSocketErrorEvent(..)` constructor, creating a new instance of `TcpSocketErrorEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketErrorEvent/TCPSocketErrorEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "TcpSocketErrorEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "TCPSocketErrorEvent")] + #[doc = "The `new TcpSocketErrorEvent(..)` constructor, creating a new instance of `TcpSocketErrorEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketErrorEvent/TCPSocketErrorEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEvent`, `TcpSocketErrorEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &TcpSocketErrorEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_TcpSocketErrorEventInit.rs b/crates/web-sys/src/features/gen_TcpSocketErrorEventInit.rs new file mode 100644 index 00000000..87e1f025 --- /dev/null +++ b/crates/web-sys/src/features/gen_TcpSocketErrorEventInit.rs @@ -0,0 +1,103 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = TCPSocketErrorEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TcpSocketErrorEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] + pub type TcpSocketErrorEventInit; +} +impl TcpSocketErrorEventInit { + #[doc = "Construct a new `TcpSocketErrorEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `message` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] + pub fn message(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("message"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketErrorEventInit`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_TcpSocketEvent.rs b/crates/web-sys/src/features/gen_TcpSocketEvent.rs new file mode 100644 index 00000000..1678d363 --- /dev/null +++ b/crates/web-sys/src/features/gen_TcpSocketEvent.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = TCPSocketEvent , typescript_type = "TCPSocketEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TcpSocketEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketEvent`*"] + pub type TcpSocketEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "TCPSocketEvent" , js_name = data ) ] + #[doc = "Getter for the `data` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketEvent/data)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketEvent`*"] + pub fn data(this: &TcpSocketEvent) -> ::wasm_bindgen::JsValue; + #[wasm_bindgen(catch, constructor, js_class = "TCPSocketEvent")] + #[doc = "The `new TcpSocketEvent(..)` constructor, creating a new instance of `TcpSocketEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketEvent/TCPSocketEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "TcpSocketEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "TCPSocketEvent")] + #[doc = "The `new TcpSocketEvent(..)` constructor, creating a new instance of `TcpSocketEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TCPSocketEvent/TCPSocketEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketEvent`, `TcpSocketEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &TcpSocketEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_TcpSocketEventInit.rs b/crates/web-sys/src/features/gen_TcpSocketEventInit.rs new file mode 100644 index 00000000..84d52691 --- /dev/null +++ b/crates/web-sys/src/features/gen_TcpSocketEventInit.rs @@ -0,0 +1,86 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = TCPSocketEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TcpSocketEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] + pub type TcpSocketEventInit; +} +impl TcpSocketEventInit { + #[doc = "Construct a new `TcpSocketEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `data` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TcpSocketEventInit`*"] + pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Text.rs b/crates/web-sys/src/features/gen_Text.rs new file mode 100644 index 00000000..c530ff71 --- /dev/null +++ b/crates/web-sys/src/features/gen_Text.rs @@ -0,0 +1,329 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = CharacterData , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = Text , typescript_type = "Text" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Text` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Text`*"] + pub type Text; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Text" , js_name = wholeText ) ] + #[doc = "Getter for the `wholeText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/wholeText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Text`*"] + pub fn whole_text(this: &Text) -> Result; + #[cfg(feature = "HtmlSlotElement")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Text" , js_name = assignedSlot ) ] + #[doc = "Getter for the `assignedSlot` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/assignedSlot)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlSlotElement`, `Text`*"] + pub fn assigned_slot(this: &Text) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "Text")] + #[doc = "The `new Text(..)` constructor, creating a new instance of `Text`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/Text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Text`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "Text")] + #[doc = "The `new Text(..)` constructor, creating a new instance of `Text`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/Text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Text`*"] + pub fn new_with_data(data: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = splitText ) ] + #[doc = "The `splitText()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/splitText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Text`*"] + pub fn split_text(this: &Text, offset: u32) -> Result; + #[cfg(all(feature = "DomPoint", feature = "DomPointInit",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomPointInit`, `Text`*"] + pub fn convert_point_from_node_with_text( + this: &Text, + point: &DomPointInit, + from: &Text, + ) -> Result; + #[cfg(all(feature = "DomPoint", feature = "DomPointInit", feature = "Element",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomPoint`, `DomPointInit`, `Element`, `Text`*"] + pub fn convert_point_from_node_with_element( + this: &Text, + point: &DomPointInit, + from: &Element, + ) -> Result; + #[cfg(all(feature = "Document", feature = "DomPoint", feature = "DomPointInit",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomPoint`, `DomPointInit`, `Text`*"] + pub fn convert_point_from_node_with_document( + this: &Text, + point: &DomPointInit, + from: &Document, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomPoint", + feature = "DomPointInit", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomPoint`, `DomPointInit`, `Text`*"] + pub fn convert_point_from_node_with_text_and_options( + this: &Text, + point: &DomPointInit, + from: &Text, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomPoint", + feature = "DomPointInit", + feature = "Element", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomPoint`, `DomPointInit`, `Element`, `Text`*"] + pub fn convert_point_from_node_with_element_and_options( + this: &Text, + point: &DomPointInit, + from: &Element, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "Document", + feature = "DomPoint", + feature = "DomPointInit", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertPointFromNode ) ] + #[doc = "The `convertPointFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertPointFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomPoint`, `DomPointInit`, `Text`*"] + pub fn convert_point_from_node_with_document_and_options( + this: &Text, + point: &DomPointInit, + from: &Document, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(feature = "DomQuad")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `Text`*"] + pub fn convert_quad_from_node_with_text( + this: &Text, + quad: &DomQuad, + from: &Text, + ) -> Result; + #[cfg(all(feature = "DomQuad", feature = "Element",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `Element`, `Text`*"] + pub fn convert_quad_from_node_with_element( + this: &Text, + quad: &DomQuad, + from: &Element, + ) -> Result; + #[cfg(all(feature = "Document", feature = "DomQuad",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `Text`*"] + pub fn convert_quad_from_node_with_document( + this: &Text, + quad: &DomQuad, + from: &Document, + ) -> Result; + #[cfg(all(feature = "ConvertCoordinateOptions", feature = "DomQuad",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomQuad`, `Text`*"] + pub fn convert_quad_from_node_with_text_and_options( + this: &Text, + quad: &DomQuad, + from: &Text, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomQuad", + feature = "Element", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomQuad`, `Element`, `Text`*"] + pub fn convert_quad_from_node_with_element_and_options( + this: &Text, + quad: &DomQuad, + from: &Element, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "Document", + feature = "DomQuad", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertQuadFromNode ) ] + #[doc = "The `convertQuadFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertQuadFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `Text`*"] + pub fn convert_quad_from_node_with_document_and_options( + this: &Text, + quad: &DomQuad, + from: &Document, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`, `Text`*"] + pub fn convert_rect_from_node_with_text( + this: &Text, + rect: &DomRectReadOnly, + from: &Text, + ) -> Result; + #[cfg(all(feature = "DomQuad", feature = "DomRectReadOnly", feature = "Element",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DomQuad`, `DomRectReadOnly`, `Element`, `Text`*"] + pub fn convert_rect_from_node_with_element( + this: &Text, + rect: &DomRectReadOnly, + from: &Element, + ) -> Result; + #[cfg(all(feature = "Document", feature = "DomQuad", feature = "DomRectReadOnly",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DomQuad`, `DomRectReadOnly`, `Text`*"] + pub fn convert_rect_from_node_with_document( + this: &Text, + rect: &DomRectReadOnly, + from: &Document, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomQuad", + feature = "DomRectReadOnly", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomQuad`, `DomRectReadOnly`, `Text`*"] + pub fn convert_rect_from_node_with_text_and_options( + this: &Text, + rect: &DomRectReadOnly, + from: &Text, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "DomQuad", + feature = "DomRectReadOnly", + feature = "Element", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `DomQuad`, `DomRectReadOnly`, `Element`, `Text`*"] + pub fn convert_rect_from_node_with_element_and_options( + this: &Text, + rect: &DomRectReadOnly, + from: &Element, + options: &ConvertCoordinateOptions, + ) -> Result; + #[cfg(all( + feature = "ConvertCoordinateOptions", + feature = "Document", + feature = "DomQuad", + feature = "DomRectReadOnly", + ))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = convertRectFromNode ) ] + #[doc = "The `convertRectFromNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/convertRectFromNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ConvertCoordinateOptions`, `Document`, `DomQuad`, `DomRectReadOnly`, `Text`*"] + pub fn convert_rect_from_node_with_document_and_options( + this: &Text, + rect: &DomRectReadOnly, + from: &Document, + options: &ConvertCoordinateOptions, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = getBoxQuads ) ] + #[doc = "The `getBoxQuads()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/getBoxQuads)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Text`*"] + pub fn get_box_quads(this: &Text) -> Result<::js_sys::Array, JsValue>; + #[cfg(feature = "BoxQuadOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Text" , js_name = getBoxQuads ) ] + #[doc = "The `getBoxQuads()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Text/getBoxQuads)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BoxQuadOptions`, `Text`*"] + pub fn get_box_quads_with_options( + this: &Text, + options: &BoxQuadOptions, + ) -> Result<::js_sys::Array, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_TextDecodeOptions.rs b/crates/web-sys/src/features/gen_TextDecodeOptions.rs new file mode 100644 index 00000000..ad786621 --- /dev/null +++ b/crates/web-sys/src/features/gen_TextDecodeOptions.rs @@ -0,0 +1,36 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = TextDecodeOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TextDecodeOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextDecodeOptions`*"] + pub type TextDecodeOptions; +} +impl TextDecodeOptions { + #[doc = "Construct a new `TextDecodeOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextDecodeOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `stream` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextDecodeOptions`*"] + pub fn stream(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("stream"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_TextDecoder.rs b/crates/web-sys/src/features/gen_TextDecoder.rs new file mode 100644 index 00000000..4fcecb08 --- /dev/null +++ b/crates/web-sys/src/features/gen_TextDecoder.rs @@ -0,0 +1,101 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = TextDecoder , typescript_type = "TextDecoder" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TextDecoder` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] + pub type TextDecoder; + # [ wasm_bindgen ( structural , method , getter , js_class = "TextDecoder" , js_name = encoding ) ] + #[doc = "Getter for the `encoding` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/encoding)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] + pub fn encoding(this: &TextDecoder) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "TextDecoder" , js_name = fatal ) ] + #[doc = "Getter for the `fatal` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/fatal)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] + pub fn fatal(this: &TextDecoder) -> bool; + #[wasm_bindgen(catch, constructor, js_class = "TextDecoder")] + #[doc = "The `new TextDecoder(..)` constructor, creating a new instance of `TextDecoder`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/TextDecoder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "TextDecoder")] + #[doc = "The `new TextDecoder(..)` constructor, creating a new instance of `TextDecoder`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/TextDecoder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] + pub fn new_with_label(label: &str) -> Result; + #[cfg(feature = "TextDecoderOptions")] + #[wasm_bindgen(catch, constructor, js_class = "TextDecoder")] + #[doc = "The `new TextDecoder(..)` constructor, creating a new instance of `TextDecoder`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/TextDecoder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextDecoder`, `TextDecoderOptions`*"] + pub fn new_with_label_and_options( + label: &str, + options: &TextDecoderOptions, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "TextDecoder" , js_name = decode ) ] + #[doc = "The `decode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/decode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] + pub fn decode(this: &TextDecoder) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "TextDecoder" , js_name = decode ) ] + #[doc = "The `decode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/decode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] + pub fn decode_with_buffer_source( + this: &TextDecoder, + input: &::js_sys::Object, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "TextDecoder" , js_name = decode ) ] + #[doc = "The `decode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/decode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextDecoder`*"] + pub fn decode_with_u8_array(this: &TextDecoder, input: &mut [u8]) -> Result; + #[cfg(feature = "TextDecodeOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "TextDecoder" , js_name = decode ) ] + #[doc = "The `decode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/decode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextDecodeOptions`, `TextDecoder`*"] + pub fn decode_with_buffer_source_and_options( + this: &TextDecoder, + input: &::js_sys::Object, + options: &TextDecodeOptions, + ) -> Result; + #[cfg(feature = "TextDecodeOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "TextDecoder" , js_name = decode ) ] + #[doc = "The `decode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextDecoder/decode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextDecodeOptions`, `TextDecoder`*"] + pub fn decode_with_u8_array_and_options( + this: &TextDecoder, + input: &mut [u8], + options: &TextDecodeOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_TextDecoderOptions.rs b/crates/web-sys/src/features/gen_TextDecoderOptions.rs new file mode 100644 index 00000000..9513a0fa --- /dev/null +++ b/crates/web-sys/src/features/gen_TextDecoderOptions.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = TextDecoderOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TextDecoderOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextDecoderOptions`*"] + pub type TextDecoderOptions; +} +impl TextDecoderOptions { + #[doc = "Construct a new `TextDecoderOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextDecoderOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `fatal` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextDecoderOptions`*"] + pub fn fatal(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("fatal"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_TextEncoder.rs b/crates/web-sys/src/features/gen_TextEncoder.rs new file mode 100644 index 00000000..5b37ecff --- /dev/null +++ b/crates/web-sys/src/features/gen_TextEncoder.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = TextEncoder , typescript_type = "TextEncoder" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TextEncoder` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextEncoder`*"] + pub type TextEncoder; + # [ wasm_bindgen ( structural , method , getter , js_class = "TextEncoder" , js_name = encoding ) ] + #[doc = "Getter for the `encoding` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encoding)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextEncoder`*"] + pub fn encoding(this: &TextEncoder) -> String; + #[wasm_bindgen(catch, constructor, js_class = "TextEncoder")] + #[doc = "The `new TextEncoder(..)` constructor, creating a new instance of `TextEncoder`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/TextEncoder)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextEncoder`*"] + pub fn new() -> Result; + # [ wasm_bindgen ( method , structural , js_class = "TextEncoder" , js_name = encode ) ] + #[doc = "The `encode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextEncoder`*"] + pub fn encode(this: &TextEncoder) -> Vec; + # [ wasm_bindgen ( method , structural , js_class = "TextEncoder" , js_name = encode ) ] + #[doc = "The `encode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextEncoder`*"] + pub fn encode_with_input(this: &TextEncoder, input: &str) -> Vec; +} diff --git a/crates/web-sys/src/features/gen_TextMetrics.rs b/crates/web-sys/src/features/gen_TextMetrics.rs new file mode 100644 index 00000000..40772c67 --- /dev/null +++ b/crates/web-sys/src/features/gen_TextMetrics.rs @@ -0,0 +1,21 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = TextMetrics , typescript_type = "TextMetrics" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TextMetrics` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"] + pub type TextMetrics; + # [ wasm_bindgen ( structural , method , getter , js_class = "TextMetrics" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextMetrics/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextMetrics`*"] + pub fn width(this: &TextMetrics) -> f64; +} diff --git a/crates/web-sys/src/features/gen_TextTrack.rs b/crates/web-sys/src/features/gen_TextTrack.rs new file mode 100644 index 00000000..a1b26383 --- /dev/null +++ b/crates/web-sys/src/features/gen_TextTrack.rs @@ -0,0 +1,112 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = TextTrack , typescript_type = "TextTrack" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TextTrack` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] + pub type TextTrack; + #[cfg(feature = "TextTrackKind")] + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrack" , js_name = kind ) ] + #[doc = "Getter for the `kind` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/kind)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackKind`*"] + pub fn kind(this: &TextTrack) -> TextTrackKind; + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrack" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] + pub fn label(this: &TextTrack) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrack" , js_name = language ) ] + #[doc = "Getter for the `language` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/language)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] + pub fn language(this: &TextTrack) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrack" , js_name = id ) ] + #[doc = "Getter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] + pub fn id(this: &TextTrack) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrack" , js_name = inBandMetadataTrackDispatchType ) ] + #[doc = "Getter for the `inBandMetadataTrackDispatchType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/inBandMetadataTrackDispatchType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] + pub fn in_band_metadata_track_dispatch_type(this: &TextTrack) -> String; + #[cfg(feature = "TextTrackMode")] + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrack" , js_name = mode ) ] + #[doc = "Getter for the `mode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/mode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackMode`*"] + pub fn mode(this: &TextTrack) -> TextTrackMode; + #[cfg(feature = "TextTrackMode")] + # [ wasm_bindgen ( structural , method , setter , js_class = "TextTrack" , js_name = mode ) ] + #[doc = "Setter for the `mode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/mode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackMode`*"] + pub fn set_mode(this: &TextTrack, value: TextTrackMode); + #[cfg(feature = "TextTrackCueList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrack" , js_name = cues ) ] + #[doc = "Getter for the `cues` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/cues)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackCueList`*"] + pub fn cues(this: &TextTrack) -> Option; + #[cfg(feature = "TextTrackCueList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrack" , js_name = activeCues ) ] + #[doc = "Getter for the `activeCues` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/activeCues)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackCueList`*"] + pub fn active_cues(this: &TextTrack) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrack" , js_name = oncuechange ) ] + #[doc = "Getter for the `oncuechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/oncuechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] + pub fn oncuechange(this: &TextTrack) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "TextTrack" , js_name = oncuechange ) ] + #[doc = "Setter for the `oncuechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/oncuechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrack`*"] + pub fn set_oncuechange(this: &TextTrack, value: Option<&::js_sys::Function>); + #[cfg(feature = "VttCue")] + # [ wasm_bindgen ( method , structural , js_class = "TextTrack" , js_name = addCue ) ] + #[doc = "The `addCue()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/addCue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `VttCue`*"] + pub fn add_cue(this: &TextTrack, cue: &VttCue); + #[cfg(feature = "VttCue")] + # [ wasm_bindgen ( catch , method , structural , js_class = "TextTrack" , js_name = removeCue ) ] + #[doc = "The `removeCue()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrack/removeCue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `VttCue`*"] + pub fn remove_cue(this: &TextTrack, cue: &VttCue) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_TextTrackCue.rs b/crates/web-sys/src/features/gen_TextTrackCue.rs new file mode 100644 index 00000000..8313932e --- /dev/null +++ b/crates/web-sys/src/features/gen_TextTrackCue.rs @@ -0,0 +1,106 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = TextTrackCue , typescript_type = "TextTrackCue" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TextTrackCue` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] + pub type TextTrackCue; + #[cfg(feature = "TextTrack")] + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrackCue" , js_name = track ) ] + #[doc = "Getter for the `track` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/track)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackCue`*"] + pub fn track(this: &TextTrackCue) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrackCue" , js_name = id ) ] + #[doc = "Getter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] + pub fn id(this: &TextTrackCue) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "TextTrackCue" , js_name = id ) ] + #[doc = "Setter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] + pub fn set_id(this: &TextTrackCue, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrackCue" , js_name = startTime ) ] + #[doc = "Getter for the `startTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/startTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] + pub fn start_time(this: &TextTrackCue) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "TextTrackCue" , js_name = startTime ) ] + #[doc = "Setter for the `startTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/startTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] + pub fn set_start_time(this: &TextTrackCue, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrackCue" , js_name = endTime ) ] + #[doc = "Getter for the `endTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/endTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] + pub fn end_time(this: &TextTrackCue) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "TextTrackCue" , js_name = endTime ) ] + #[doc = "Setter for the `endTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/endTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] + pub fn set_end_time(this: &TextTrackCue, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrackCue" , js_name = pauseOnExit ) ] + #[doc = "Getter for the `pauseOnExit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/pauseOnExit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] + pub fn pause_on_exit(this: &TextTrackCue) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "TextTrackCue" , js_name = pauseOnExit ) ] + #[doc = "Setter for the `pauseOnExit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/pauseOnExit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] + pub fn set_pause_on_exit(this: &TextTrackCue, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrackCue" , js_name = onenter ) ] + #[doc = "Getter for the `onenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/onenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] + pub fn onenter(this: &TextTrackCue) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "TextTrackCue" , js_name = onenter ) ] + #[doc = "Setter for the `onenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/onenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] + pub fn set_onenter(this: &TextTrackCue, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrackCue" , js_name = onexit ) ] + #[doc = "Getter for the `onexit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/onexit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] + pub fn onexit(this: &TextTrackCue) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "TextTrackCue" , js_name = onexit ) ] + #[doc = "Setter for the `onexit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCue/onexit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackCue`*"] + pub fn set_onexit(this: &TextTrackCue, value: Option<&::js_sys::Function>); +} diff --git a/crates/web-sys/src/features/gen_TextTrackCueList.rs b/crates/web-sys/src/features/gen_TextTrackCueList.rs new file mode 100644 index 00000000..2652a55a --- /dev/null +++ b/crates/web-sys/src/features/gen_TextTrackCueList.rs @@ -0,0 +1,37 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = TextTrackCueList , typescript_type = "TextTrackCueList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TextTrackCueList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCueList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackCueList`*"] + pub type TextTrackCueList; + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrackCueList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCueList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackCueList`*"] + pub fn length(this: &TextTrackCueList) -> u32; + #[cfg(feature = "VttCue")] + # [ wasm_bindgen ( method , structural , js_class = "TextTrackCueList" , js_name = getCueById ) ] + #[doc = "The `getCueById()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackCueList/getCueById)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackCueList`, `VttCue`*"] + pub fn get_cue_by_id(this: &TextTrackCueList, id: &str) -> Option; + #[cfg(feature = "VttCue")] + #[wasm_bindgen(method, structural, js_class = "TextTrackCueList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackCueList`, `VttCue`*"] + pub fn get(this: &TextTrackCueList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_TextTrackKind.rs b/crates/web-sys/src/features/gen_TextTrackKind.rs new file mode 100644 index 00000000..ce933e65 --- /dev/null +++ b/crates/web-sys/src/features/gen_TextTrackKind.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `TextTrackKind` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `TextTrackKind`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum TextTrackKind { + Subtitles = "subtitles", + Captions = "captions", + Descriptions = "descriptions", + Chapters = "chapters", + Metadata = "metadata", +} diff --git a/crates/web-sys/src/features/gen_TextTrackList.rs b/crates/web-sys/src/features/gen_TextTrackList.rs new file mode 100644 index 00000000..bf339740 --- /dev/null +++ b/crates/web-sys/src/features/gen_TextTrackList.rs @@ -0,0 +1,79 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = TextTrackList , typescript_type = "TextTrackList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TextTrackList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] + pub type TextTrackList; + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrackList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] + pub fn length(this: &TextTrackList) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrackList" , js_name = onchange ) ] + #[doc = "Getter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] + pub fn onchange(this: &TextTrackList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "TextTrackList" , js_name = onchange ) ] + #[doc = "Setter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] + pub fn set_onchange(this: &TextTrackList, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrackList" , js_name = onaddtrack ) ] + #[doc = "Getter for the `onaddtrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onaddtrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] + pub fn onaddtrack(this: &TextTrackList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "TextTrackList" , js_name = onaddtrack ) ] + #[doc = "Setter for the `onaddtrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onaddtrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] + pub fn set_onaddtrack(this: &TextTrackList, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "TextTrackList" , js_name = onremovetrack ) ] + #[doc = "Getter for the `onremovetrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onremovetrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] + pub fn onremovetrack(this: &TextTrackList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "TextTrackList" , js_name = onremovetrack ) ] + #[doc = "Setter for the `onremovetrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/onremovetrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrackList`*"] + pub fn set_onremovetrack(this: &TextTrackList, value: Option<&::js_sys::Function>); + #[cfg(feature = "TextTrack")] + # [ wasm_bindgen ( method , structural , js_class = "TextTrackList" , js_name = getTrackById ) ] + #[doc = "The `getTrackById()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TextTrackList/getTrackById)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackList`*"] + pub fn get_track_by_id(this: &TextTrackList, id: &str) -> Option; + #[cfg(feature = "TextTrack")] + #[wasm_bindgen(method, structural, js_class = "TextTrackList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TextTrack`, `TextTrackList`*"] + pub fn get(this: &TextTrackList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_TextTrackMode.rs b/crates/web-sys/src/features/gen_TextTrackMode.rs new file mode 100644 index 00000000..f71fc081 --- /dev/null +++ b/crates/web-sys/src/features/gen_TextTrackMode.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `TextTrackMode` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `TextTrackMode`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum TextTrackMode { + Disabled = "disabled", + Hidden = "hidden", + Showing = "showing", +} diff --git a/crates/web-sys/src/features/gen_TimeEvent.rs b/crates/web-sys/src/features/gen_TimeEvent.rs new file mode 100644 index 00000000..8e1fcda6 --- /dev/null +++ b/crates/web-sys/src/features/gen_TimeEvent.rs @@ -0,0 +1,57 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = TimeEvent , typescript_type = "TimeEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TimeEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TimeEvent`*"] + pub type TimeEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "TimeEvent" , js_name = detail ) ] + #[doc = "Getter for the `detail` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/detail)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TimeEvent`*"] + pub fn detail(this: &TimeEvent) -> i32; + #[cfg(feature = "Window")] + # [ wasm_bindgen ( structural , method , getter , js_class = "TimeEvent" , js_name = view ) ] + #[doc = "Getter for the `view` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/view)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TimeEvent`, `Window`*"] + pub fn view(this: &TimeEvent) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "TimeEvent" , js_name = initTimeEvent ) ] + #[doc = "The `initTimeEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/initTimeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TimeEvent`*"] + pub fn init_time_event(this: &TimeEvent, a_type: &str); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "TimeEvent" , js_name = initTimeEvent ) ] + #[doc = "The `initTimeEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/initTimeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TimeEvent`, `Window`*"] + pub fn init_time_event_with_a_view(this: &TimeEvent, a_type: &str, a_view: Option<&Window>); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "TimeEvent" , js_name = initTimeEvent ) ] + #[doc = "The `initTimeEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeEvent/initTimeEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TimeEvent`, `Window`*"] + pub fn init_time_event_with_a_view_and_a_detail( + this: &TimeEvent, + a_type: &str, + a_view: Option<&Window>, + a_detail: i32, + ); +} diff --git a/crates/web-sys/src/features/gen_TimeRanges.rs b/crates/web-sys/src/features/gen_TimeRanges.rs new file mode 100644 index 00000000..607ba0a2 --- /dev/null +++ b/crates/web-sys/src/features/gen_TimeRanges.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = TimeRanges , typescript_type = "TimeRanges" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TimeRanges` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TimeRanges`*"] + pub type TimeRanges; + # [ wasm_bindgen ( structural , method , getter , js_class = "TimeRanges" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TimeRanges`*"] + pub fn length(this: &TimeRanges) -> u32; + # [ wasm_bindgen ( catch , method , structural , js_class = "TimeRanges" , js_name = end ) ] + #[doc = "The `end()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges/end)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TimeRanges`*"] + pub fn end(this: &TimeRanges, index: u32) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "TimeRanges" , js_name = start ) ] + #[doc = "The `start()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TimeRanges/start)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TimeRanges`*"] + pub fn start(this: &TimeRanges, index: u32) -> Result; +} diff --git a/crates/web-sys/src/features/gen_Touch.rs b/crates/web-sys/src/features/gen_Touch.rs new file mode 100644 index 00000000..851ab124 --- /dev/null +++ b/crates/web-sys/src/features/gen_Touch.rs @@ -0,0 +1,107 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Touch , typescript_type = "Touch" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Touch` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Touch`*"] + pub type Touch; + # [ wasm_bindgen ( structural , method , getter , js_class = "Touch" , js_name = identifier ) ] + #[doc = "Getter for the `identifier` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/identifier)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Touch`*"] + pub fn identifier(this: &Touch) -> i32; + #[cfg(feature = "EventTarget")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Touch" , js_name = target ) ] + #[doc = "Getter for the `target` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/target)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `Touch`*"] + pub fn target(this: &Touch) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Touch" , js_name = screenX ) ] + #[doc = "Getter for the `screenX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/screenX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Touch`*"] + pub fn screen_x(this: &Touch) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Touch" , js_name = screenY ) ] + #[doc = "Getter for the `screenY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/screenY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Touch`*"] + pub fn screen_y(this: &Touch) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Touch" , js_name = clientX ) ] + #[doc = "Getter for the `clientX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/clientX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Touch`*"] + pub fn client_x(this: &Touch) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Touch" , js_name = clientY ) ] + #[doc = "Getter for the `clientY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/clientY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Touch`*"] + pub fn client_y(this: &Touch) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Touch" , js_name = pageX ) ] + #[doc = "Getter for the `pageX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/pageX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Touch`*"] + pub fn page_x(this: &Touch) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Touch" , js_name = pageY ) ] + #[doc = "Getter for the `pageY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/pageY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Touch`*"] + pub fn page_y(this: &Touch) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Touch" , js_name = radiusX ) ] + #[doc = "Getter for the `radiusX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/radiusX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Touch`*"] + pub fn radius_x(this: &Touch) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Touch" , js_name = radiusY ) ] + #[doc = "Getter for the `radiusY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/radiusY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Touch`*"] + pub fn radius_y(this: &Touch) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Touch" , js_name = rotationAngle ) ] + #[doc = "Getter for the `rotationAngle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/rotationAngle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Touch`*"] + pub fn rotation_angle(this: &Touch) -> f32; + # [ wasm_bindgen ( structural , method , getter , js_class = "Touch" , js_name = force ) ] + #[doc = "Getter for the `force` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/force)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Touch`*"] + pub fn force(this: &Touch) -> f32; + #[cfg(feature = "TouchInit")] + #[wasm_bindgen(catch, constructor, js_class = "Touch")] + #[doc = "The `new Touch(..)` constructor, creating a new instance of `Touch`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Touch/Touch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Touch`, `TouchInit`*"] + pub fn new(touch_init_dict: &TouchInit) -> Result; +} diff --git a/crates/web-sys/src/features/gen_TouchEvent.rs b/crates/web-sys/src/features/gen_TouchEvent.rs new file mode 100644 index 00000000..acf91481 --- /dev/null +++ b/crates/web-sys/src/features/gen_TouchEvent.rs @@ -0,0 +1,272 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = TouchEvent , typescript_type = "TouchEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TouchEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] + pub type TouchEvent; + #[cfg(feature = "TouchList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "TouchEvent" , js_name = touches ) ] + #[doc = "Getter for the `touches` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/touches)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `TouchList`*"] + pub fn touches(this: &TouchEvent) -> TouchList; + #[cfg(feature = "TouchList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "TouchEvent" , js_name = targetTouches ) ] + #[doc = "Getter for the `targetTouches` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/targetTouches)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `TouchList`*"] + pub fn target_touches(this: &TouchEvent) -> TouchList; + #[cfg(feature = "TouchList")] + # [ wasm_bindgen ( structural , method , getter , js_class = "TouchEvent" , js_name = changedTouches ) ] + #[doc = "Getter for the `changedTouches` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/changedTouches)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `TouchList`*"] + pub fn changed_touches(this: &TouchEvent) -> TouchList; + # [ wasm_bindgen ( structural , method , getter , js_class = "TouchEvent" , js_name = altKey ) ] + #[doc = "Getter for the `altKey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/altKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] + pub fn alt_key(this: &TouchEvent) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "TouchEvent" , js_name = metaKey ) ] + #[doc = "Getter for the `metaKey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/metaKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] + pub fn meta_key(this: &TouchEvent) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "TouchEvent" , js_name = ctrlKey ) ] + #[doc = "Getter for the `ctrlKey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/ctrlKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] + pub fn ctrl_key(this: &TouchEvent) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "TouchEvent" , js_name = shiftKey ) ] + #[doc = "Getter for the `shiftKey` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/shiftKey)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] + pub fn shift_key(this: &TouchEvent) -> bool; + #[wasm_bindgen(catch, constructor, js_class = "TouchEvent")] + #[doc = "The `new TouchEvent(..)` constructor, creating a new instance of `TouchEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/TouchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "TouchEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "TouchEvent")] + #[doc = "The `new TouchEvent(..)` constructor, creating a new instance of `TouchEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/TouchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `TouchEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &TouchEventInit, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "TouchEvent" , js_name = initTouchEvent ) ] + #[doc = "The `initTouchEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] + pub fn init_touch_event(this: &TouchEvent, type_: &str); + # [ wasm_bindgen ( method , structural , js_class = "TouchEvent" , js_name = initTouchEvent ) ] + #[doc = "The `initTouchEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] + pub fn init_touch_event_with_can_bubble(this: &TouchEvent, type_: &str, can_bubble: bool); + # [ wasm_bindgen ( method , structural , js_class = "TouchEvent" , js_name = initTouchEvent ) ] + #[doc = "The `initTouchEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`*"] + pub fn init_touch_event_with_can_bubble_and_cancelable( + this: &TouchEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "TouchEvent" , js_name = initTouchEvent ) ] + #[doc = "The `initTouchEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `Window`*"] + pub fn init_touch_event_with_can_bubble_and_cancelable_and_view( + this: &TouchEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "TouchEvent" , js_name = initTouchEvent ) ] + #[doc = "The `initTouchEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `Window`*"] + pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail( + this: &TouchEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "TouchEvent" , js_name = initTouchEvent ) ] + #[doc = "The `initTouchEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `Window`*"] + pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key( + this: &TouchEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + ctrl_key: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "TouchEvent" , js_name = initTouchEvent ) ] + #[doc = "The `initTouchEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `Window`*"] + pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key( + this: &TouchEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + ctrl_key: bool, + alt_key: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "TouchEvent" , js_name = initTouchEvent ) ] + #[doc = "The `initTouchEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `Window`*"] + pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key( + this: &TouchEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + ctrl_key: bool, + alt_key: bool, + shift_key: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "TouchEvent" , js_name = initTouchEvent ) ] + #[doc = "The `initTouchEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `Window`*"] + pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key( + this: &TouchEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + ctrl_key: bool, + alt_key: bool, + shift_key: bool, + meta_key: bool, + ); + #[cfg(all(feature = "TouchList", feature = "Window",))] + # [ wasm_bindgen ( method , structural , js_class = "TouchEvent" , js_name = initTouchEvent ) ] + #[doc = "The `initTouchEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `TouchList`, `Window`*"] + pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_touches( + this: &TouchEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + ctrl_key: bool, + alt_key: bool, + shift_key: bool, + meta_key: bool, + touches: Option<&TouchList>, + ); + #[cfg(all(feature = "TouchList", feature = "Window",))] + # [ wasm_bindgen ( method , structural , js_class = "TouchEvent" , js_name = initTouchEvent ) ] + #[doc = "The `initTouchEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `TouchList`, `Window`*"] + pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_touches_and_target_touches( + this: &TouchEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + ctrl_key: bool, + alt_key: bool, + shift_key: bool, + meta_key: bool, + touches: Option<&TouchList>, + target_touches: Option<&TouchList>, + ); + #[cfg(all(feature = "TouchList", feature = "Window",))] + # [ wasm_bindgen ( method , structural , js_class = "TouchEvent" , js_name = initTouchEvent ) ] + #[doc = "The `initTouchEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/initTouchEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEvent`, `TouchList`, `Window`*"] + pub fn init_touch_event_with_can_bubble_and_cancelable_and_view_and_detail_and_ctrl_key_and_alt_key_and_shift_key_and_meta_key_and_touches_and_target_touches_and_changed_touches( + this: &TouchEvent, + type_: &str, + can_bubble: bool, + cancelable: bool, + view: Option<&Window>, + detail: i32, + ctrl_key: bool, + alt_key: bool, + shift_key: bool, + meta_key: bool, + touches: Option<&TouchList>, + target_touches: Option<&TouchList>, + changed_touches: Option<&TouchList>, + ); +} diff --git a/crates/web-sys/src/features/gen_TouchEventInit.rs b/crates/web-sys/src/features/gen_TouchEventInit.rs new file mode 100644 index 00000000..dfaa3f15 --- /dev/null +++ b/crates/web-sys/src/features/gen_TouchEventInit.rs @@ -0,0 +1,370 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = TouchEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TouchEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub type TouchEventInit; +} +impl TouchEventInit { + #[doc = "Construct a new `TouchEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `detail` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn detail(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Window")] + #[doc = "Change the `view` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`, `Window`*"] + pub fn view(&mut self, val: Option<&Window>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `altKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn alt_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("altKey"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ctrlKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn ctrl_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("ctrlKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `metaKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn meta_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("metaKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierAltGraph` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierAltGraph"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierCapsLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierCapsLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierFn` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn modifier_fn(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierFn"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierFnLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierFnLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierNumLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierNumLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierOS` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn modifier_os(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierOS"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierScrollLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierScrollLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierSymbol` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierSymbol"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierSymbolLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierSymbolLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `shiftKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn shift_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("shiftKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `changedTouches` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn changed_touches(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("changedTouches"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `targetTouches` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn target_touches(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("targetTouches"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `touches` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchEventInit`*"] + pub fn touches(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("touches"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_TouchInit.rs b/crates/web-sys/src/features/gen_TouchInit.rs new file mode 100644 index 00000000..2cf1d69f --- /dev/null +++ b/crates/web-sys/src/features/gen_TouchInit.rs @@ -0,0 +1,215 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = TouchInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TouchInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] + pub type TouchInit; +} +impl TouchInit { + #[cfg(feature = "EventTarget")] + #[doc = "Construct a new `TouchInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `TouchInit`*"] + pub fn new(identifier: i32, target: &EventTarget) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.identifier(identifier); + ret.target(target); + ret + } + #[doc = "Change the `clientX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] + pub fn client_x(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("clientX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `clientY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] + pub fn client_y(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("clientY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `force` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] + pub fn force(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("force"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `identifier` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] + pub fn identifier(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("identifier"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pageX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] + pub fn page_x(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("pageX"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pageY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] + pub fn page_y(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("pageY"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `radiusX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] + pub fn radius_x(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("radiusX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `radiusY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] + pub fn radius_y(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("radiusY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `rotationAngle` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] + pub fn rotation_angle(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("rotationAngle"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `screenX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] + pub fn screen_x(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("screenX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `screenY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchInit`*"] + pub fn screen_y(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("screenY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "EventTarget")] + #[doc = "Change the `target` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `TouchInit`*"] + pub fn target(&mut self, val: &EventTarget) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("target"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_TouchList.rs b/crates/web-sys/src/features/gen_TouchList.rs new file mode 100644 index 00000000..79165d57 --- /dev/null +++ b/crates/web-sys/src/features/gen_TouchList.rs @@ -0,0 +1,37 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = TouchList , typescript_type = "TouchList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TouchList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchList`*"] + pub type TouchList; + # [ wasm_bindgen ( structural , method , getter , js_class = "TouchList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TouchList`*"] + pub fn length(this: &TouchList) -> u32; + #[cfg(feature = "Touch")] + # [ wasm_bindgen ( method , structural , js_class = "TouchList" , js_name = item ) ] + #[doc = "The `item()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TouchList/item)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Touch`, `TouchList`*"] + pub fn item(this: &TouchList, index: u32) -> Option; + #[cfg(feature = "Touch")] + #[wasm_bindgen(method, structural, js_class = "TouchList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Touch`, `TouchList`*"] + pub fn get(this: &TouchList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_TrackEvent.rs b/crates/web-sys/src/features/gen_TrackEvent.rs new file mode 100644 index 00000000..aceb64e7 --- /dev/null +++ b/crates/web-sys/src/features/gen_TrackEvent.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = TrackEvent , typescript_type = "TrackEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TrackEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TrackEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TrackEvent`*"] + pub type TrackEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "TrackEvent" , js_name = track ) ] + #[doc = "Getter for the `track` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TrackEvent/track)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TrackEvent`*"] + pub fn track(this: &TrackEvent) -> Option<::js_sys::Object>; + #[wasm_bindgen(catch, constructor, js_class = "TrackEvent")] + #[doc = "The `new TrackEvent(..)` constructor, creating a new instance of `TrackEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TrackEvent/TrackEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TrackEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "TrackEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "TrackEvent")] + #[doc = "The `new TrackEvent(..)` constructor, creating a new instance of `TrackEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TrackEvent/TrackEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TrackEvent`, `TrackEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &TrackEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_TrackEventInit.rs b/crates/web-sys/src/features/gen_TrackEventInit.rs new file mode 100644 index 00000000..8839851a --- /dev/null +++ b/crates/web-sys/src/features/gen_TrackEventInit.rs @@ -0,0 +1,86 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = TrackEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TrackEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] + pub type TrackEventInit; +} +impl TrackEventInit { + #[doc = "Construct a new `TrackEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `track` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TrackEventInit`*"] + pub fn track(&mut self, val: Option<&::js_sys::Object>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("track"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_TransitionEvent.rs b/crates/web-sys/src/features/gen_TransitionEvent.rs new file mode 100644 index 00000000..2bff6c7b --- /dev/null +++ b/crates/web-sys/src/features/gen_TransitionEvent.rs @@ -0,0 +1,53 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = TransitionEvent , typescript_type = "TransitionEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TransitionEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"] + pub type TransitionEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "TransitionEvent" , js_name = propertyName ) ] + #[doc = "Getter for the `propertyName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/propertyName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"] + pub fn property_name(this: &TransitionEvent) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "TransitionEvent" , js_name = elapsedTime ) ] + #[doc = "Getter for the `elapsedTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/elapsedTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"] + pub fn elapsed_time(this: &TransitionEvent) -> f32; + # [ wasm_bindgen ( structural , method , getter , js_class = "TransitionEvent" , js_name = pseudoElement ) ] + #[doc = "Getter for the `pseudoElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/pseudoElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"] + pub fn pseudo_element(this: &TransitionEvent) -> String; + #[wasm_bindgen(catch, constructor, js_class = "TransitionEvent")] + #[doc = "The `new TransitionEvent(..)` constructor, creating a new instance of `TransitionEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/TransitionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "TransitionEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "TransitionEvent")] + #[doc = "The `new TransitionEvent(..)` constructor, creating a new instance of `TransitionEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/TransitionEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TransitionEvent`, `TransitionEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &TransitionEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_TransitionEventInit.rs b/crates/web-sys/src/features/gen_TransitionEventInit.rs new file mode 100644 index 00000000..cebd21bf --- /dev/null +++ b/crates/web-sys/src/features/gen_TransitionEventInit.rs @@ -0,0 +1,124 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = TransitionEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TransitionEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] + pub type TransitionEventInit; +} +impl TransitionEventInit { + #[doc = "Construct a new `TransitionEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `elapsedTime` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] + pub fn elapsed_time(&mut self, val: f32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("elapsedTime"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `propertyName` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] + pub fn property_name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("propertyName"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `pseudoElement` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TransitionEventInit`*"] + pub fn pseudo_element(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("pseudoElement"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Transport.rs b/crates/web-sys/src/features/gen_Transport.rs new file mode 100644 index 00000000..9b9389c2 --- /dev/null +++ b/crates/web-sys/src/features/gen_Transport.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `Transport` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `Transport`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum Transport { + Bt = "bt", + Ble = "ble", + Nfc = "nfc", + Usb = "usb", +} diff --git a/crates/web-sys/src/features/gen_TreeBoxObject.rs b/crates/web-sys/src/features/gen_TreeBoxObject.rs new file mode 100644 index 00000000..10790595 --- /dev/null +++ b/crates/web-sys/src/features/gen_TreeBoxObject.rs @@ -0,0 +1,184 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = TreeBoxObject , typescript_type = "TreeBoxObject" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TreeBoxObject` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub type TreeBoxObject; + # [ wasm_bindgen ( structural , method , getter , js_class = "TreeBoxObject" , js_name = focused ) ] + #[doc = "Getter for the `focused` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/focused)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn focused(this: &TreeBoxObject) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "TreeBoxObject" , js_name = focused ) ] + #[doc = "Setter for the `focused` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/focused)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn set_focused(this: &TreeBoxObject, value: bool); + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , method , getter , js_class = "TreeBoxObject" , js_name = treeBody ) ] + #[doc = "Getter for the `treeBody` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/treeBody)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `TreeBoxObject`*"] + pub fn tree_body(this: &TreeBoxObject) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "TreeBoxObject" , js_name = rowHeight ) ] + #[doc = "Getter for the `rowHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/rowHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn row_height(this: &TreeBoxObject) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "TreeBoxObject" , js_name = rowWidth ) ] + #[doc = "Getter for the `rowWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/rowWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn row_width(this: &TreeBoxObject) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "TreeBoxObject" , js_name = horizontalPosition ) ] + #[doc = "Getter for the `horizontalPosition` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/horizontalPosition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn horizontal_position(this: &TreeBoxObject) -> i32; + # [ wasm_bindgen ( method , structural , js_class = "TreeBoxObject" , js_name = beginUpdateBatch ) ] + #[doc = "The `beginUpdateBatch()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/beginUpdateBatch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn begin_update_batch(this: &TreeBoxObject); + # [ wasm_bindgen ( method , structural , js_class = "TreeBoxObject" , js_name = clearStyleAndImageCaches ) ] + #[doc = "The `clearStyleAndImageCaches()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/clearStyleAndImageCaches)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn clear_style_and_image_caches(this: &TreeBoxObject); + # [ wasm_bindgen ( method , structural , js_class = "TreeBoxObject" , js_name = endUpdateBatch ) ] + #[doc = "The `endUpdateBatch()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/endUpdateBatch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn end_update_batch(this: &TreeBoxObject); + # [ wasm_bindgen ( method , structural , js_class = "TreeBoxObject" , js_name = ensureRowIsVisible ) ] + #[doc = "The `ensureRowIsVisible()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/ensureRowIsVisible)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn ensure_row_is_visible(this: &TreeBoxObject, index: i32); + #[cfg(feature = "TreeCellInfo")] + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeBoxObject" , js_name = getCellAt ) ] + #[doc = "The `getCellAt()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getCellAt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`, `TreeCellInfo`*"] + pub fn get_cell_at(this: &TreeBoxObject, x: i32, y: i32) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeBoxObject" , js_name = getCellAt ) ] + #[doc = "The `getCellAt()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getCellAt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn get_cell_at_with_row_and_column_and_child_elt( + this: &TreeBoxObject, + x: i32, + y: i32, + row: &::js_sys::Object, + column: &::js_sys::Object, + child_elt: &::js_sys::Object, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "TreeBoxObject" , js_name = getFirstVisibleRow ) ] + #[doc = "The `getFirstVisibleRow()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getFirstVisibleRow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn get_first_visible_row(this: &TreeBoxObject) -> i32; + # [ wasm_bindgen ( method , structural , js_class = "TreeBoxObject" , js_name = getLastVisibleRow ) ] + #[doc = "The `getLastVisibleRow()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getLastVisibleRow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn get_last_visible_row(this: &TreeBoxObject) -> i32; + # [ wasm_bindgen ( method , structural , js_class = "TreeBoxObject" , js_name = getPageLength ) ] + #[doc = "The `getPageLength()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getPageLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn get_page_length(this: &TreeBoxObject) -> i32; + # [ wasm_bindgen ( method , structural , js_class = "TreeBoxObject" , js_name = getRowAt ) ] + #[doc = "The `getRowAt()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/getRowAt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn get_row_at(this: &TreeBoxObject, x: i32, y: i32) -> i32; + # [ wasm_bindgen ( method , structural , js_class = "TreeBoxObject" , js_name = invalidate ) ] + #[doc = "The `invalidate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/invalidate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn invalidate(this: &TreeBoxObject); + # [ wasm_bindgen ( method , structural , js_class = "TreeBoxObject" , js_name = invalidateRange ) ] + #[doc = "The `invalidateRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/invalidateRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn invalidate_range(this: &TreeBoxObject, start_index: i32, end_index: i32); + # [ wasm_bindgen ( method , structural , js_class = "TreeBoxObject" , js_name = invalidateRow ) ] + #[doc = "The `invalidateRow()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/invalidateRow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn invalidate_row(this: &TreeBoxObject, index: i32); + # [ wasm_bindgen ( method , structural , js_class = "TreeBoxObject" , js_name = rowCountChanged ) ] + #[doc = "The `rowCountChanged()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/rowCountChanged)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn row_count_changed(this: &TreeBoxObject, index: i32, count: i32); + # [ wasm_bindgen ( method , structural , js_class = "TreeBoxObject" , js_name = scrollByLines ) ] + #[doc = "The `scrollByLines()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/scrollByLines)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn scroll_by_lines(this: &TreeBoxObject, num_lines: i32); + # [ wasm_bindgen ( method , structural , js_class = "TreeBoxObject" , js_name = scrollByPages ) ] + #[doc = "The `scrollByPages()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/scrollByPages)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn scroll_by_pages(this: &TreeBoxObject, num_pages: i32); + # [ wasm_bindgen ( method , structural , js_class = "TreeBoxObject" , js_name = scrollToRow ) ] + #[doc = "The `scrollToRow()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeBoxObject/scrollToRow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`*"] + pub fn scroll_to_row(this: &TreeBoxObject, index: i32); +} diff --git a/crates/web-sys/src/features/gen_TreeCellInfo.rs b/crates/web-sys/src/features/gen_TreeCellInfo.rs new file mode 100644 index 00000000..391751bd --- /dev/null +++ b/crates/web-sys/src/features/gen_TreeCellInfo.rs @@ -0,0 +1,52 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = TreeCellInfo ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TreeCellInfo` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeCellInfo`*"] + pub type TreeCellInfo; +} +impl TreeCellInfo { + #[doc = "Construct a new `TreeCellInfo`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeCellInfo`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `childElt` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeCellInfo`*"] + pub fn child_elt(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("childElt"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `row` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeCellInfo`*"] + pub fn row(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("row"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_TreeView.rs b/crates/web-sys/src/features/gen_TreeView.rs new file mode 100644 index 00000000..1b1e297c --- /dev/null +++ b/crates/web-sys/src/features/gen_TreeView.rs @@ -0,0 +1,160 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = TreeView , typescript_type = "TreeView" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TreeView` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub type TreeView; + # [ wasm_bindgen ( structural , method , getter , js_class = "TreeView" , js_name = rowCount ) ] + #[doc = "Getter for the `rowCount` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/rowCount)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub fn row_count(this: &TreeView) -> i32; + #[cfg(feature = "DataTransfer")] + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeView" , js_name = canDrop ) ] + #[doc = "The `canDrop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/canDrop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `TreeView`*"] + pub fn can_drop( + this: &TreeView, + row: i32, + orientation: i32, + data_transfer: Option<&DataTransfer>, + ) -> Result; + #[cfg(feature = "DataTransfer")] + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeView" , js_name = drop ) ] + #[doc = "The `drop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/drop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DataTransfer`, `TreeView`*"] + pub fn drop( + this: &TreeView, + row: i32, + orientation: i32, + data_transfer: Option<&DataTransfer>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeView" , js_name = getLevel ) ] + #[doc = "The `getLevel()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/getLevel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub fn get_level(this: &TreeView, row: i32) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeView" , js_name = getParentIndex ) ] + #[doc = "The `getParentIndex()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/getParentIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub fn get_parent_index(this: &TreeView, row: i32) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeView" , js_name = getRowProperties ) ] + #[doc = "The `getRowProperties()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/getRowProperties)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub fn get_row_properties(this: &TreeView, row: i32) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeView" , js_name = hasNextSibling ) ] + #[doc = "The `hasNextSibling()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/hasNextSibling)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub fn has_next_sibling(this: &TreeView, row: i32, after_index: i32) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeView" , js_name = isContainer ) ] + #[doc = "The `isContainer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/isContainer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub fn is_container(this: &TreeView, row: i32) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeView" , js_name = isContainerEmpty ) ] + #[doc = "The `isContainerEmpty()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/isContainerEmpty)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub fn is_container_empty(this: &TreeView, row: i32) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeView" , js_name = isContainerOpen ) ] + #[doc = "The `isContainerOpen()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/isContainerOpen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub fn is_container_open(this: &TreeView, row: i32) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeView" , js_name = isSeparator ) ] + #[doc = "The `isSeparator()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/isSeparator)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub fn is_separator(this: &TreeView, row: i32) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "TreeView" , js_name = isSorted ) ] + #[doc = "The `isSorted()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/isSorted)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub fn is_sorted(this: &TreeView) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "TreeView" , js_name = performAction ) ] + #[doc = "The `performAction()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/performAction)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub fn perform_action(this: &TreeView, action: &str); + # [ wasm_bindgen ( method , structural , js_class = "TreeView" , js_name = performActionOnRow ) ] + #[doc = "The `performActionOnRow()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/performActionOnRow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub fn perform_action_on_row(this: &TreeView, action: &str, row: i32); + # [ wasm_bindgen ( method , structural , js_class = "TreeView" , js_name = selectionChanged ) ] + #[doc = "The `selectionChanged()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/selectionChanged)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub fn selection_changed(this: &TreeView); + #[cfg(feature = "TreeBoxObject")] + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeView" , js_name = setTree ) ] + #[doc = "The `setTree()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/setTree)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeBoxObject`, `TreeView`*"] + pub fn set_tree(this: &TreeView, tree: Option<&TreeBoxObject>) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeView" , js_name = toggleOpenState ) ] + #[doc = "The `toggleOpenState()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeView/toggleOpenState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub fn toggle_open_state(this: &TreeView, row: i32) -> Result<(), JsValue>; +} +impl TreeView { + #[doc = "The `TreeView.DROP_BEFORE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub const DROP_BEFORE: i16 = -1i64 as i16; + #[doc = "The `TreeView.DROP_ON` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub const DROP_ON: i16 = 0i64 as i16; + #[doc = "The `TreeView.DROP_AFTER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeView`*"] + pub const DROP_AFTER: i16 = 1u64 as i16; +} diff --git a/crates/web-sys/src/features/gen_TreeWalker.rs b/crates/web-sys/src/features/gen_TreeWalker.rs new file mode 100644 index 00000000..f2745e63 --- /dev/null +++ b/crates/web-sys/src/features/gen_TreeWalker.rs @@ -0,0 +1,109 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = TreeWalker , typescript_type = "TreeWalker" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `TreeWalker` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeWalker`*"] + pub type TreeWalker; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , method , getter , js_class = "TreeWalker" , js_name = root ) ] + #[doc = "Getter for the `root` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/root)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] + pub fn root(this: &TreeWalker) -> Node; + # [ wasm_bindgen ( structural , method , getter , js_class = "TreeWalker" , js_name = whatToShow ) ] + #[doc = "Getter for the `whatToShow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/whatToShow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `TreeWalker`*"] + pub fn what_to_show(this: &TreeWalker) -> u32; + #[cfg(feature = "NodeFilter")] + # [ wasm_bindgen ( structural , method , getter , js_class = "TreeWalker" , js_name = filter ) ] + #[doc = "Getter for the `filter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/filter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NodeFilter`, `TreeWalker`*"] + pub fn filter(this: &TreeWalker) -> Option; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , method , getter , js_class = "TreeWalker" , js_name = currentNode ) ] + #[doc = "Getter for the `currentNode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/currentNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] + pub fn current_node(this: &TreeWalker) -> Node; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , method , setter , js_class = "TreeWalker" , js_name = currentNode ) ] + #[doc = "Setter for the `currentNode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/currentNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] + pub fn set_current_node(this: &TreeWalker, value: &Node); + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeWalker" , js_name = firstChild ) ] + #[doc = "The `firstChild()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/firstChild)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] + pub fn first_child(this: &TreeWalker) -> Result, JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeWalker" , js_name = lastChild ) ] + #[doc = "The `lastChild()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/lastChild)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] + pub fn last_child(this: &TreeWalker) -> Result, JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeWalker" , js_name = nextNode ) ] + #[doc = "The `nextNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/nextNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] + pub fn next_node(this: &TreeWalker) -> Result, JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeWalker" , js_name = nextSibling ) ] + #[doc = "The `nextSibling()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/nextSibling)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] + pub fn next_sibling(this: &TreeWalker) -> Result, JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeWalker" , js_name = parentNode ) ] + #[doc = "The `parentNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/parentNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] + pub fn parent_node(this: &TreeWalker) -> Result, JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeWalker" , js_name = previousNode ) ] + #[doc = "The `previousNode()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/previousNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] + pub fn previous_node(this: &TreeWalker) -> Result, JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "TreeWalker" , js_name = previousSibling ) ] + #[doc = "The `previousSibling()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/TreeWalker/previousSibling)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `TreeWalker`*"] + pub fn previous_sibling(this: &TreeWalker) -> Result, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_U2f.rs b/crates/web-sys/src/features/gen_U2f.rs new file mode 100644 index 00000000..575d573a --- /dev/null +++ b/crates/web-sys/src/features/gen_U2f.rs @@ -0,0 +1,94 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = U2F , typescript_type = "U2F" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `U2f` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/U2F)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `U2f`*"] + pub type U2f; + # [ wasm_bindgen ( catch , method , structural , js_class = "U2F" , js_name = register ) ] + #[doc = "The `register()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/U2F/register)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `U2f`*"] + pub fn register( + this: &U2f, + app_id: &str, + register_requests: &::wasm_bindgen::JsValue, + registered_keys: &::wasm_bindgen::JsValue, + callback: &::js_sys::Function, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "U2F" , js_name = register ) ] + #[doc = "The `register()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/U2F/register)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `U2f`*"] + pub fn register_with_opt_timeout_seconds( + this: &U2f, + app_id: &str, + register_requests: &::wasm_bindgen::JsValue, + registered_keys: &::wasm_bindgen::JsValue, + callback: &::js_sys::Function, + opt_timeout_seconds: Option, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "U2F" , js_name = sign ) ] + #[doc = "The `sign()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/U2F/sign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `U2f`*"] + pub fn sign( + this: &U2f, + app_id: &str, + challenge: &str, + registered_keys: &::wasm_bindgen::JsValue, + callback: &::js_sys::Function, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "U2F" , js_name = sign ) ] + #[doc = "The `sign()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/U2F/sign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `U2f`*"] + pub fn sign_with_opt_timeout_seconds( + this: &U2f, + app_id: &str, + challenge: &str, + registered_keys: &::wasm_bindgen::JsValue, + callback: &::js_sys::Function, + opt_timeout_seconds: Option, + ) -> Result<(), JsValue>; +} +impl U2f { + #[doc = "The `U2F.OK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `U2f`*"] + pub const OK: u16 = 0i64 as u16; + #[doc = "The `U2F.OTHER_ERROR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `U2f`*"] + pub const OTHER_ERROR: u16 = 1u64 as u16; + #[doc = "The `U2F.BAD_REQUEST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `U2f`*"] + pub const BAD_REQUEST: u16 = 2u64 as u16; + #[doc = "The `U2F.CONFIGURATION_UNSUPPORTED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `U2f`*"] + pub const CONFIGURATION_UNSUPPORTED: u16 = 3u64 as u16; + #[doc = "The `U2F.DEVICE_INELIGIBLE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `U2f`*"] + pub const DEVICE_INELIGIBLE: u16 = 4u64 as u16; + #[doc = "The `U2F.TIMEOUT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `U2f`*"] + pub const TIMEOUT: u16 = 5u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_U2fClientData.rs b/crates/web-sys/src/features/gen_U2fClientData.rs new file mode 100644 index 00000000..2995a8cc --- /dev/null +++ b/crates/web-sys/src/features/gen_U2fClientData.rs @@ -0,0 +1,66 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = U2FClientData ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `U2fClientData` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] + pub type U2fClientData; +} +impl U2fClientData { + #[doc = "Construct a new `U2fClientData`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `challenge` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] + pub fn challenge(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("challenge"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `origin` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] + pub fn origin(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("origin"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `typ` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `U2fClientData`*"] + pub fn typ(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("typ"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_UdpMessageEventInit.rs b/crates/web-sys/src/features/gen_UdpMessageEventInit.rs new file mode 100644 index 00000000..1dffd621 --- /dev/null +++ b/crates/web-sys/src/features/gen_UdpMessageEventInit.rs @@ -0,0 +1,120 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = UDPMessageEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `UdpMessageEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] + pub type UdpMessageEventInit; +} +impl UdpMessageEventInit { + #[doc = "Construct a new `UdpMessageEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `data` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] + pub fn data(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("data"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `remoteAddress` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] + pub fn remote_address(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("remoteAddress"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `remotePort` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UdpMessageEventInit`*"] + pub fn remote_port(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("remotePort"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_UdpOptions.rs b/crates/web-sys/src/features/gen_UdpOptions.rs new file mode 100644 index 00000000..382801a8 --- /dev/null +++ b/crates/web-sys/src/features/gen_UdpOptions.rs @@ -0,0 +1,124 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = UDPOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `UdpOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] + pub type UdpOptions; +} +impl UdpOptions { + #[doc = "Construct a new `UdpOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `addressReuse` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] + pub fn address_reuse(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("addressReuse"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `localAddress` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] + pub fn local_address(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("localAddress"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `localPort` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] + pub fn local_port(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("localPort"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `loopback` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] + pub fn loopback(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("loopback"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `remoteAddress` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] + pub fn remote_address(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("remoteAddress"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `remotePort` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UdpOptions`*"] + pub fn remote_port(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("remotePort"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_UiEvent.rs b/crates/web-sys/src/features/gen_UiEvent.rs new file mode 100644 index 00000000..b829709e --- /dev/null +++ b/crates/web-sys/src/features/gen_UiEvent.rs @@ -0,0 +1,162 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = UIEvent , typescript_type = "UIEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `UiEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] + pub type UiEvent; + #[cfg(feature = "Window")] + # [ wasm_bindgen ( structural , method , getter , js_class = "UIEvent" , js_name = view ) ] + #[doc = "Getter for the `view` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/view)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`, `Window`*"] + pub fn view(this: &UiEvent) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "UIEvent" , js_name = detail ) ] + #[doc = "Getter for the `detail` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/detail)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] + pub fn detail(this: &UiEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "UIEvent" , js_name = layerX ) ] + #[doc = "Getter for the `layerX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/layerX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] + pub fn layer_x(this: &UiEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "UIEvent" , js_name = layerY ) ] + #[doc = "Getter for the `layerY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/layerY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] + pub fn layer_y(this: &UiEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "UIEvent" , js_name = pageX ) ] + #[doc = "Getter for the `pageX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/pageX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] + pub fn page_x(this: &UiEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "UIEvent" , js_name = pageY ) ] + #[doc = "Getter for the `pageY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/pageY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] + pub fn page_y(this: &UiEvent) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "UIEvent" , js_name = which ) ] + #[doc = "Getter for the `which` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/which)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] + pub fn which(this: &UiEvent) -> u32; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , method , getter , js_class = "UIEvent" , js_name = rangeParent ) ] + #[doc = "Getter for the `rangeParent` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/rangeParent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `UiEvent`*"] + pub fn range_parent(this: &UiEvent) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "UIEvent" , js_name = rangeOffset ) ] + #[doc = "Getter for the `rangeOffset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/rangeOffset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] + pub fn range_offset(this: &UiEvent) -> i32; + #[wasm_bindgen(catch, constructor, js_class = "UIEvent")] + #[doc = "The `new UiEvent(..)` constructor, creating a new instance of `UiEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/UIEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "UiEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "UIEvent")] + #[doc = "The `new UiEvent(..)` constructor, creating a new instance of `UiEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/UIEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`, `UiEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &UiEventInit, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "UIEvent" , js_name = initUIEvent ) ] + #[doc = "The `initUIEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] + pub fn init_ui_event(this: &UiEvent, a_type: &str); + # [ wasm_bindgen ( method , structural , js_class = "UIEvent" , js_name = initUIEvent ) ] + #[doc = "The `initUIEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] + pub fn init_ui_event_with_a_can_bubble(this: &UiEvent, a_type: &str, a_can_bubble: bool); + # [ wasm_bindgen ( method , structural , js_class = "UIEvent" , js_name = initUIEvent ) ] + #[doc = "The `initUIEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] + pub fn init_ui_event_with_a_can_bubble_and_a_cancelable( + this: &UiEvent, + a_type: &str, + a_can_bubble: bool, + a_cancelable: bool, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "UIEvent" , js_name = initUIEvent ) ] + #[doc = "The `initUIEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`, `Window`*"] + pub fn init_ui_event_with_a_can_bubble_and_a_cancelable_and_a_view( + this: &UiEvent, + a_type: &str, + a_can_bubble: bool, + a_cancelable: bool, + a_view: Option<&Window>, + ); + #[cfg(feature = "Window")] + # [ wasm_bindgen ( method , structural , js_class = "UIEvent" , js_name = initUIEvent ) ] + #[doc = "The `initUIEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/initUIEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`, `Window`*"] + pub fn init_ui_event_with_a_can_bubble_and_a_cancelable_and_a_view_and_a_detail( + this: &UiEvent, + a_type: &str, + a_can_bubble: bool, + a_cancelable: bool, + a_view: Option<&Window>, + a_detail: i32, + ); +} +impl UiEvent { + #[doc = "The `UIEvent.SCROLL_PAGE_UP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] + pub const SCROLL_PAGE_UP: i32 = -32768i64 as i32; + #[doc = "The `UIEvent.SCROLL_PAGE_DOWN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEvent`*"] + pub const SCROLL_PAGE_DOWN: i32 = 32768u64 as i32; +} diff --git a/crates/web-sys/src/features/gen_UiEventInit.rs b/crates/web-sys/src/features/gen_UiEventInit.rs new file mode 100644 index 00000000..6b0a75db --- /dev/null +++ b/crates/web-sys/src/features/gen_UiEventInit.rs @@ -0,0 +1,101 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = UIEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `UiEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] + pub type UiEventInit; +} +impl UiEventInit { + #[doc = "Construct a new `UiEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `detail` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEventInit`*"] + pub fn detail(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Window")] + #[doc = "Change the `view` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UiEventInit`, `Window`*"] + pub fn view(&mut self, val: Option<&Window>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Url.rs b/crates/web-sys/src/features/gen_Url.rs new file mode 100644 index 00000000..afa93f44 --- /dev/null +++ b/crates/web-sys/src/features/gen_Url.rs @@ -0,0 +1,213 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = URL , typescript_type = "URL" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Url` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub type Url; + # [ wasm_bindgen ( structural , method , getter , js_class = "URL" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn href(this: &Url) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "URL" , js_name = href ) ] + #[doc = "Setter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn set_href(this: &Url, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "URL" , js_name = origin ) ] + #[doc = "Getter for the `origin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/origin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn origin(this: &Url) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "URL" , js_name = protocol ) ] + #[doc = "Getter for the `protocol` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/protocol)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn protocol(this: &Url) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "URL" , js_name = protocol ) ] + #[doc = "Setter for the `protocol` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/protocol)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn set_protocol(this: &Url, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "URL" , js_name = username ) ] + #[doc = "Getter for the `username` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/username)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn username(this: &Url) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "URL" , js_name = username ) ] + #[doc = "Setter for the `username` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/username)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn set_username(this: &Url, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "URL" , js_name = password ) ] + #[doc = "Getter for the `password` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/password)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn password(this: &Url) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "URL" , js_name = password ) ] + #[doc = "Setter for the `password` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/password)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn set_password(this: &Url, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "URL" , js_name = host ) ] + #[doc = "Getter for the `host` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/host)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn host(this: &Url) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "URL" , js_name = host ) ] + #[doc = "Setter for the `host` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/host)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn set_host(this: &Url, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "URL" , js_name = hostname ) ] + #[doc = "Getter for the `hostname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/hostname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn hostname(this: &Url) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "URL" , js_name = hostname ) ] + #[doc = "Setter for the `hostname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/hostname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn set_hostname(this: &Url, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "URL" , js_name = port ) ] + #[doc = "Getter for the `port` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/port)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn port(this: &Url) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "URL" , js_name = port ) ] + #[doc = "Setter for the `port` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/port)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn set_port(this: &Url, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "URL" , js_name = pathname ) ] + #[doc = "Getter for the `pathname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/pathname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn pathname(this: &Url) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "URL" , js_name = pathname ) ] + #[doc = "Setter for the `pathname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/pathname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn set_pathname(this: &Url, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "URL" , js_name = search ) ] + #[doc = "Getter for the `search` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/search)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn search(this: &Url) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "URL" , js_name = search ) ] + #[doc = "Setter for the `search` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/search)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn set_search(this: &Url, value: &str); + #[cfg(feature = "UrlSearchParams")] + # [ wasm_bindgen ( structural , method , getter , js_class = "URL" , js_name = searchParams ) ] + #[doc = "Getter for the `searchParams` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/searchParams)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`, `UrlSearchParams`*"] + pub fn search_params(this: &Url) -> UrlSearchParams; + # [ wasm_bindgen ( structural , method , getter , js_class = "URL" , js_name = hash ) ] + #[doc = "Getter for the `hash` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/hash)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn hash(this: &Url) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "URL" , js_name = hash ) ] + #[doc = "Setter for the `hash` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/hash)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn set_hash(this: &Url, value: &str); + #[wasm_bindgen(catch, constructor, js_class = "URL")] + #[doc = "The `new Url(..)` constructor, creating a new instance of `Url`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn new(url: &str) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "URL")] + #[doc = "The `new Url(..)` constructor, creating a new instance of `Url`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn new_with_base(url: &str, base: &str) -> Result; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , static_method_of = Url , js_class = "URL" , js_name = createObjectURL ) ] + #[doc = "The `createObjectURL()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `Url`*"] + pub fn create_object_url_with_blob(blob: &Blob) -> Result; + #[cfg(feature = "MediaSource")] + # [ wasm_bindgen ( catch , static_method_of = Url , js_class = "URL" , js_name = createObjectURL ) ] + #[doc = "The `createObjectURL()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaSource`, `Url`*"] + pub fn create_object_url_with_source(source: &MediaSource) -> Result; + # [ wasm_bindgen ( catch , static_method_of = Url , js_class = "URL" , js_name = revokeObjectURL ) ] + #[doc = "The `revokeObjectURL()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn revoke_object_url(url: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "URL" , js_name = toJSON ) ] + #[doc = "The `toJSON()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URL/toJSON)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Url`*"] + pub fn to_json(this: &Url) -> String; +} diff --git a/crates/web-sys/src/features/gen_UrlSearchParams.rs b/crates/web-sys/src/features/gen_UrlSearchParams.rs new file mode 100644 index 00000000..1942fd5c --- /dev/null +++ b/crates/web-sys/src/features/gen_UrlSearchParams.rs @@ -0,0 +1,86 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = URLSearchParams , typescript_type = "URLSearchParams" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `UrlSearchParams` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] + pub type UrlSearchParams; + #[wasm_bindgen(catch, constructor, js_class = "URLSearchParams")] + #[doc = "The `new UrlSearchParams(..)` constructor, creating a new instance of `UrlSearchParams`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "URLSearchParams")] + #[doc = "The `new UrlSearchParams(..)` constructor, creating a new instance of `UrlSearchParams`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] + pub fn new_with_str_sequence_sequence( + init: &::wasm_bindgen::JsValue, + ) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "URLSearchParams")] + #[doc = "The `new UrlSearchParams(..)` constructor, creating a new instance of `UrlSearchParams`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] + pub fn new_with_str(init: &str) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "URLSearchParams" , js_name = append ) ] + #[doc = "The `append()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/append)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] + pub fn append(this: &UrlSearchParams, name: &str, value: &str); + # [ wasm_bindgen ( method , structural , js_class = "URLSearchParams" , js_name = delete ) ] + #[doc = "The `delete()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/delete)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] + pub fn delete(this: &UrlSearchParams, name: &str); + # [ wasm_bindgen ( method , structural , js_class = "URLSearchParams" , js_name = get ) ] + #[doc = "The `get()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/get)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] + pub fn get(this: &UrlSearchParams, name: &str) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "URLSearchParams" , js_name = getAll ) ] + #[doc = "The `getAll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/getAll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] + pub fn get_all(this: &UrlSearchParams, name: &str) -> ::js_sys::Array; + # [ wasm_bindgen ( method , structural , js_class = "URLSearchParams" , js_name = has ) ] + #[doc = "The `has()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/has)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] + pub fn has(this: &UrlSearchParams, name: &str) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "URLSearchParams" , js_name = set ) ] + #[doc = "The `set()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/set)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] + pub fn set(this: &UrlSearchParams, name: &str, value: &str); + # [ wasm_bindgen ( catch , method , structural , js_class = "URLSearchParams" , js_name = sort ) ] + #[doc = "The `sort()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/sort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`*"] + pub fn sort(this: &UrlSearchParams) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_UserProximityEvent.rs b/crates/web-sys/src/features/gen_UserProximityEvent.rs new file mode 100644 index 00000000..09049e8e --- /dev/null +++ b/crates/web-sys/src/features/gen_UserProximityEvent.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = UserProximityEvent , typescript_type = "UserProximityEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `UserProximityEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UserProximityEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UserProximityEvent`*"] + pub type UserProximityEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "UserProximityEvent" , js_name = near ) ] + #[doc = "Getter for the `near` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UserProximityEvent/near)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UserProximityEvent`*"] + pub fn near(this: &UserProximityEvent) -> bool; + #[wasm_bindgen(catch, constructor, js_class = "UserProximityEvent")] + #[doc = "The `new UserProximityEvent(..)` constructor, creating a new instance of `UserProximityEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UserProximityEvent/UserProximityEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UserProximityEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "UserProximityEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "UserProximityEvent")] + #[doc = "The `new UserProximityEvent(..)` constructor, creating a new instance of `UserProximityEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/UserProximityEvent/UserProximityEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UserProximityEvent`, `UserProximityEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &UserProximityEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_UserProximityEventInit.rs b/crates/web-sys/src/features/gen_UserProximityEventInit.rs new file mode 100644 index 00000000..36d8754e --- /dev/null +++ b/crates/web-sys/src/features/gen_UserProximityEventInit.rs @@ -0,0 +1,86 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = UserProximityEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `UserProximityEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] + pub type UserProximityEventInit; +} +impl UserProximityEventInit { + #[doc = "Construct a new `UserProximityEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `near` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UserProximityEventInit`*"] + pub fn near(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("near"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_UserVerificationRequirement.rs b/crates/web-sys/src/features/gen_UserVerificationRequirement.rs new file mode 100644 index 00000000..f683e955 --- /dev/null +++ b/crates/web-sys/src/features/gen_UserVerificationRequirement.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `UserVerificationRequirement` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `UserVerificationRequirement`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum UserVerificationRequirement { + Required = "required", + Preferred = "preferred", + Discouraged = "discouraged", +} diff --git a/crates/web-sys/src/features/gen_ValidityState.rs b/crates/web-sys/src/features/gen_ValidityState.rs new file mode 100644 index 00000000..b484217e --- /dev/null +++ b/crates/web-sys/src/features/gen_ValidityState.rs @@ -0,0 +1,91 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = ValidityState , typescript_type = "ValidityState" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `ValidityState` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] + pub type ValidityState; + # [ wasm_bindgen ( structural , method , getter , js_class = "ValidityState" , js_name = valueMissing ) ] + #[doc = "Getter for the `valueMissing` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/valueMissing)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] + pub fn value_missing(this: &ValidityState) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "ValidityState" , js_name = typeMismatch ) ] + #[doc = "Getter for the `typeMismatch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/typeMismatch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] + pub fn type_mismatch(this: &ValidityState) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "ValidityState" , js_name = patternMismatch ) ] + #[doc = "Getter for the `patternMismatch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/patternMismatch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] + pub fn pattern_mismatch(this: &ValidityState) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "ValidityState" , js_name = tooLong ) ] + #[doc = "Getter for the `tooLong` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/tooLong)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] + pub fn too_long(this: &ValidityState) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "ValidityState" , js_name = tooShort ) ] + #[doc = "Getter for the `tooShort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/tooShort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] + pub fn too_short(this: &ValidityState) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "ValidityState" , js_name = rangeUnderflow ) ] + #[doc = "Getter for the `rangeUnderflow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/rangeUnderflow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] + pub fn range_underflow(this: &ValidityState) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "ValidityState" , js_name = rangeOverflow ) ] + #[doc = "Getter for the `rangeOverflow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/rangeOverflow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] + pub fn range_overflow(this: &ValidityState) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "ValidityState" , js_name = stepMismatch ) ] + #[doc = "Getter for the `stepMismatch` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/stepMismatch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] + pub fn step_mismatch(this: &ValidityState) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "ValidityState" , js_name = badInput ) ] + #[doc = "Getter for the `badInput` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/badInput)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] + pub fn bad_input(this: &ValidityState) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "ValidityState" , js_name = customError ) ] + #[doc = "Getter for the `customError` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/customError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] + pub fn custom_error(this: &ValidityState) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "ValidityState" , js_name = valid ) ] + #[doc = "Getter for the `valid` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState/valid)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ValidityState`*"] + pub fn valid(this: &ValidityState) -> bool; +} diff --git a/crates/web-sys/src/features/gen_VideoConfiguration.rs b/crates/web-sys/src/features/gen_VideoConfiguration.rs new file mode 100644 index 00000000..b1babee6 --- /dev/null +++ b/crates/web-sys/src/features/gen_VideoConfiguration.rs @@ -0,0 +1,100 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = VideoConfiguration ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VideoConfiguration` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] + pub type VideoConfiguration; +} +impl VideoConfiguration { + #[doc = "Construct a new `VideoConfiguration`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bitrate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] + pub fn bitrate(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bitrate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `contentType` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] + pub fn content_type(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("contentType"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `framerate` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] + pub fn framerate(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("framerate"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `height` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] + pub fn height(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("height"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `width` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoConfiguration`*"] + pub fn width(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("width"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_VideoFacingModeEnum.rs b/crates/web-sys/src/features/gen_VideoFacingModeEnum.rs new file mode 100644 index 00000000..cabca288 --- /dev/null +++ b/crates/web-sys/src/features/gen_VideoFacingModeEnum.rs @@ -0,0 +1,13 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `VideoFacingModeEnum` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `VideoFacingModeEnum`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum VideoFacingModeEnum { + User = "user", + Environment = "environment", + Left = "left", + Right = "right", +} diff --git a/crates/web-sys/src/features/gen_VideoPlaybackQuality.rs b/crates/web-sys/src/features/gen_VideoPlaybackQuality.rs new file mode 100644 index 00000000..f60826c4 --- /dev/null +++ b/crates/web-sys/src/features/gen_VideoPlaybackQuality.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = VideoPlaybackQuality , typescript_type = "VideoPlaybackQuality" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VideoPlaybackQuality` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoPlaybackQuality)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoPlaybackQuality`*"] + pub type VideoPlaybackQuality; + # [ wasm_bindgen ( structural , method , getter , js_class = "VideoPlaybackQuality" , js_name = creationTime ) ] + #[doc = "Getter for the `creationTime` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoPlaybackQuality/creationTime)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoPlaybackQuality`*"] + pub fn creation_time(this: &VideoPlaybackQuality) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "VideoPlaybackQuality" , js_name = totalVideoFrames ) ] + #[doc = "Getter for the `totalVideoFrames` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoPlaybackQuality/totalVideoFrames)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoPlaybackQuality`*"] + pub fn total_video_frames(this: &VideoPlaybackQuality) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "VideoPlaybackQuality" , js_name = droppedVideoFrames ) ] + #[doc = "Getter for the `droppedVideoFrames` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoPlaybackQuality/droppedVideoFrames)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoPlaybackQuality`*"] + pub fn dropped_video_frames(this: &VideoPlaybackQuality) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "VideoPlaybackQuality" , js_name = corruptedVideoFrames ) ] + #[doc = "Getter for the `corruptedVideoFrames` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoPlaybackQuality/corruptedVideoFrames)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoPlaybackQuality`*"] + pub fn corrupted_video_frames(this: &VideoPlaybackQuality) -> u32; +} diff --git a/crates/web-sys/src/features/gen_VideoStreamTrack.rs b/crates/web-sys/src/features/gen_VideoStreamTrack.rs new file mode 100644 index 00000000..553143b9 --- /dev/null +++ b/crates/web-sys/src/features/gen_VideoStreamTrack.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = MediaStreamTrack , extends = EventTarget , extends = :: js_sys :: Object , js_name = VideoStreamTrack , typescript_type = "VideoStreamTrack" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VideoStreamTrack` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoStreamTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoStreamTrack`*"] + pub type VideoStreamTrack; +} diff --git a/crates/web-sys/src/features/gen_VideoTrack.rs b/crates/web-sys/src/features/gen_VideoTrack.rs new file mode 100644 index 00000000..cf6f0c96 --- /dev/null +++ b/crates/web-sys/src/features/gen_VideoTrack.rs @@ -0,0 +1,56 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = VideoTrack , typescript_type = "VideoTrack" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VideoTrack` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] + pub type VideoTrack; + # [ wasm_bindgen ( structural , method , getter , js_class = "VideoTrack" , js_name = id ) ] + #[doc = "Getter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] + pub fn id(this: &VideoTrack) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "VideoTrack" , js_name = kind ) ] + #[doc = "Getter for the `kind` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/kind)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] + pub fn kind(this: &VideoTrack) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "VideoTrack" , js_name = label ) ] + #[doc = "Getter for the `label` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/label)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] + pub fn label(this: &VideoTrack) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "VideoTrack" , js_name = language ) ] + #[doc = "Getter for the `language` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/language)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] + pub fn language(this: &VideoTrack) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "VideoTrack" , js_name = selected ) ] + #[doc = "Getter for the `selected` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/selected)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] + pub fn selected(this: &VideoTrack) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "VideoTrack" , js_name = selected ) ] + #[doc = "Setter for the `selected` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrack/selected)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrack`*"] + pub fn set_selected(this: &VideoTrack, value: bool); +} diff --git a/crates/web-sys/src/features/gen_VideoTrackList.rs b/crates/web-sys/src/features/gen_VideoTrackList.rs new file mode 100644 index 00000000..3e8af936 --- /dev/null +++ b/crates/web-sys/src/features/gen_VideoTrackList.rs @@ -0,0 +1,86 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = VideoTrackList , typescript_type = "VideoTrackList" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VideoTrackList` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] + pub type VideoTrackList; + # [ wasm_bindgen ( structural , method , getter , js_class = "VideoTrackList" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] + pub fn length(this: &VideoTrackList) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "VideoTrackList" , js_name = selectedIndex ) ] + #[doc = "Getter for the `selectedIndex` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/selectedIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] + pub fn selected_index(this: &VideoTrackList) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "VideoTrackList" , js_name = onchange ) ] + #[doc = "Getter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] + pub fn onchange(this: &VideoTrackList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "VideoTrackList" , js_name = onchange ) ] + #[doc = "Setter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] + pub fn set_onchange(this: &VideoTrackList, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "VideoTrackList" , js_name = onaddtrack ) ] + #[doc = "Getter for the `onaddtrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onaddtrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] + pub fn onaddtrack(this: &VideoTrackList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "VideoTrackList" , js_name = onaddtrack ) ] + #[doc = "Setter for the `onaddtrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onaddtrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] + pub fn set_onaddtrack(this: &VideoTrackList, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "VideoTrackList" , js_name = onremovetrack ) ] + #[doc = "Getter for the `onremovetrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onremovetrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] + pub fn onremovetrack(this: &VideoTrackList) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "VideoTrackList" , js_name = onremovetrack ) ] + #[doc = "Setter for the `onremovetrack` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/onremovetrack)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrackList`*"] + pub fn set_onremovetrack(this: &VideoTrackList, value: Option<&::js_sys::Function>); + #[cfg(feature = "VideoTrack")] + # [ wasm_bindgen ( method , structural , js_class = "VideoTrackList" , js_name = getTrackById ) ] + #[doc = "The `getTrackById()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VideoTrackList/getTrackById)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrack`, `VideoTrackList`*"] + pub fn get_track_by_id(this: &VideoTrackList, id: &str) -> Option; + #[cfg(feature = "VideoTrack")] + #[wasm_bindgen(method, structural, js_class = "VideoTrackList", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VideoTrack`, `VideoTrackList`*"] + pub fn get(this: &VideoTrackList, index: u32) -> Option; +} diff --git a/crates/web-sys/src/features/gen_VisibilityState.rs b/crates/web-sys/src/features/gen_VisibilityState.rs new file mode 100644 index 00000000..a528680c --- /dev/null +++ b/crates/web-sys/src/features/gen_VisibilityState.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `VisibilityState` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `VisibilityState`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum VisibilityState { + Hidden = "hidden", + Visible = "visible", +} diff --git a/crates/web-sys/src/features/gen_VoidCallback.rs b/crates/web-sys/src/features/gen_VoidCallback.rs new file mode 100644 index 00000000..b96b2107 --- /dev/null +++ b/crates/web-sys/src/features/gen_VoidCallback.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = VoidCallback ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VoidCallback` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VoidCallback`*"] + pub type VoidCallback; +} +impl VoidCallback { + #[doc = "Construct a new `VoidCallback`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VoidCallback`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `handleEvent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VoidCallback`*"] + pub fn handle_event(&mut self, val: &::js_sys::Function) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("handleEvent"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_VrDisplay.rs b/crates/web-sys/src/features/gen_VrDisplay.rs new file mode 100644 index 00000000..d8df4ad5 --- /dev/null +++ b/crates/web-sys/src/features/gen_VrDisplay.rs @@ -0,0 +1,173 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = VRDisplay , typescript_type = "VRDisplay" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VrDisplay` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] + pub type VrDisplay; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRDisplay" , js_name = isConnected ) ] + #[doc = "Getter for the `isConnected` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/isConnected)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] + pub fn is_connected(this: &VrDisplay) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRDisplay" , js_name = isPresenting ) ] + #[doc = "Getter for the `isPresenting` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/isPresenting)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] + pub fn is_presenting(this: &VrDisplay) -> bool; + #[cfg(feature = "VrDisplayCapabilities")] + # [ wasm_bindgen ( structural , method , getter , js_class = "VRDisplay" , js_name = capabilities ) ] + #[doc = "Getter for the `capabilities` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/capabilities)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrDisplayCapabilities`*"] + pub fn capabilities(this: &VrDisplay) -> VrDisplayCapabilities; + #[cfg(feature = "VrStageParameters")] + # [ wasm_bindgen ( structural , method , getter , js_class = "VRDisplay" , js_name = stageParameters ) ] + #[doc = "Getter for the `stageParameters` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/stageParameters)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrStageParameters`*"] + pub fn stage_parameters(this: &VrDisplay) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRDisplay" , js_name = displayId ) ] + #[doc = "Getter for the `displayId` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/displayId)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] + pub fn display_id(this: &VrDisplay) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRDisplay" , js_name = displayName ) ] + #[doc = "Getter for the `displayName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/displayName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] + pub fn display_name(this: &VrDisplay) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRDisplay" , js_name = depthNear ) ] + #[doc = "Getter for the `depthNear` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthNear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] + pub fn depth_near(this: &VrDisplay) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "VRDisplay" , js_name = depthNear ) ] + #[doc = "Setter for the `depthNear` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthNear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] + pub fn set_depth_near(this: &VrDisplay, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "VRDisplay" , js_name = depthFar ) ] + #[doc = "Getter for the `depthFar` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthFar)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] + pub fn depth_far(this: &VrDisplay) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "VRDisplay" , js_name = depthFar ) ] + #[doc = "Setter for the `depthFar` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/depthFar)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] + pub fn set_depth_far(this: &VrDisplay, value: f64); + # [ wasm_bindgen ( catch , method , structural , js_class = "VRDisplay" , js_name = cancelAnimationFrame ) ] + #[doc = "The `cancelAnimationFrame()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/cancelAnimationFrame)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] + pub fn cancel_animation_frame(this: &VrDisplay, handle: i32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "VRDisplay" , js_name = exitPresent ) ] + #[doc = "The `exitPresent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/exitPresent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] + pub fn exit_present(this: &VrDisplay) -> Result<::js_sys::Promise, JsValue>; + #[cfg(all(feature = "VrEye", feature = "VrEyeParameters",))] + # [ wasm_bindgen ( method , structural , js_class = "VRDisplay" , js_name = getEyeParameters ) ] + #[doc = "The `getEyeParameters()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getEyeParameters)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrEye`, `VrEyeParameters`*"] + pub fn get_eye_parameters(this: &VrDisplay, which_eye: VrEye) -> VrEyeParameters; + #[cfg(feature = "VrFrameData")] + # [ wasm_bindgen ( method , structural , js_class = "VRDisplay" , js_name = getFrameData ) ] + #[doc = "The `getFrameData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getFrameData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrFrameData`*"] + pub fn get_frame_data(this: &VrDisplay, frame_data: &VrFrameData) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "VRDisplay" , js_name = getLayers ) ] + #[doc = "The `getLayers()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getLayers)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] + pub fn get_layers(this: &VrDisplay) -> ::js_sys::Array; + #[cfg(feature = "VrPose")] + # [ wasm_bindgen ( method , structural , js_class = "VRDisplay" , js_name = getPose ) ] + #[doc = "The `getPose()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getPose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrPose`*"] + pub fn get_pose(this: &VrDisplay) -> VrPose; + #[cfg(feature = "VrSubmitFrameResult")] + # [ wasm_bindgen ( method , structural , js_class = "VRDisplay" , js_name = getSubmitFrameResult ) ] + #[doc = "The `getSubmitFrameResult()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/getSubmitFrameResult)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`, `VrSubmitFrameResult`*"] + pub fn get_submit_frame_result(this: &VrDisplay, result: &VrSubmitFrameResult) -> bool; + # [ wasm_bindgen ( catch , method , structural , js_class = "VRDisplay" , js_name = requestAnimationFrame ) ] + #[doc = "The `requestAnimationFrame()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/requestAnimationFrame)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] + pub fn request_animation_frame( + this: &VrDisplay, + callback: &::js_sys::Function, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "VRDisplay" , js_name = requestPresent ) ] + #[doc = "The `requestPresent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/requestPresent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] + pub fn request_present( + this: &VrDisplay, + layers: &::wasm_bindgen::JsValue, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "VRDisplay" , js_name = resetPose ) ] + #[doc = "The `resetPose()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/resetPose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] + pub fn reset_pose(this: &VrDisplay); + # [ wasm_bindgen ( method , structural , js_class = "VRDisplay" , js_name = submitFrame ) ] + #[doc = "The `submitFrame()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplay/submitFrame)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplay`*"] + pub fn submit_frame(this: &VrDisplay); +} diff --git a/crates/web-sys/src/features/gen_VrDisplayCapabilities.rs b/crates/web-sys/src/features/gen_VrDisplayCapabilities.rs new file mode 100644 index 00000000..96123907 --- /dev/null +++ b/crates/web-sys/src/features/gen_VrDisplayCapabilities.rs @@ -0,0 +1,49 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = VRDisplayCapabilities , typescript_type = "VRDisplayCapabilities" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VrDisplayCapabilities` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"] + pub type VrDisplayCapabilities; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRDisplayCapabilities" , js_name = hasPosition ) ] + #[doc = "Getter for the `hasPosition` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/hasPosition)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"] + pub fn has_position(this: &VrDisplayCapabilities) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRDisplayCapabilities" , js_name = hasOrientation ) ] + #[doc = "Getter for the `hasOrientation` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/hasOrientation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"] + pub fn has_orientation(this: &VrDisplayCapabilities) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRDisplayCapabilities" , js_name = hasExternalDisplay ) ] + #[doc = "Getter for the `hasExternalDisplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/hasExternalDisplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"] + pub fn has_external_display(this: &VrDisplayCapabilities) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRDisplayCapabilities" , js_name = canPresent ) ] + #[doc = "Getter for the `canPresent` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/canPresent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"] + pub fn can_present(this: &VrDisplayCapabilities) -> bool; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRDisplayCapabilities" , js_name = maxLayers ) ] + #[doc = "Getter for the `maxLayers` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRDisplayCapabilities/maxLayers)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrDisplayCapabilities`*"] + pub fn max_layers(this: &VrDisplayCapabilities) -> u32; +} diff --git a/crates/web-sys/src/features/gen_VrEye.rs b/crates/web-sys/src/features/gen_VrEye.rs new file mode 100644 index 00000000..ee860299 --- /dev/null +++ b/crates/web-sys/src/features/gen_VrEye.rs @@ -0,0 +1,11 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `VrEye` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `VrEye`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum VrEye { + Left = "left", + Right = "right", +} diff --git a/crates/web-sys/src/features/gen_VrEyeParameters.rs b/crates/web-sys/src/features/gen_VrEyeParameters.rs new file mode 100644 index 00000000..446c045e --- /dev/null +++ b/crates/web-sys/src/features/gen_VrEyeParameters.rs @@ -0,0 +1,43 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = VREyeParameters , typescript_type = "VREyeParameters" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VrEyeParameters` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`*"] + pub type VrEyeParameters; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "VREyeParameters" , js_name = offset ) ] + #[doc = "Getter for the `offset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters/offset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`*"] + pub fn offset(this: &VrEyeParameters) -> Result, JsValue>; + #[cfg(feature = "VrFieldOfView")] + # [ wasm_bindgen ( structural , method , getter , js_class = "VREyeParameters" , js_name = fieldOfView ) ] + #[doc = "Getter for the `fieldOfView` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters/fieldOfView)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`, `VrFieldOfView`*"] + pub fn field_of_view(this: &VrEyeParameters) -> VrFieldOfView; + # [ wasm_bindgen ( structural , method , getter , js_class = "VREyeParameters" , js_name = renderWidth ) ] + #[doc = "Getter for the `renderWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters/renderWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`*"] + pub fn render_width(this: &VrEyeParameters) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "VREyeParameters" , js_name = renderHeight ) ] + #[doc = "Getter for the `renderHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VREyeParameters/renderHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrEyeParameters`*"] + pub fn render_height(this: &VrEyeParameters) -> u32; +} diff --git a/crates/web-sys/src/features/gen_VrFieldOfView.rs b/crates/web-sys/src/features/gen_VrFieldOfView.rs new file mode 100644 index 00000000..cacd86e7 --- /dev/null +++ b/crates/web-sys/src/features/gen_VrFieldOfView.rs @@ -0,0 +1,42 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = VRFieldOfView , typescript_type = "VRFieldOfView" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VrFieldOfView` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFieldOfView)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrFieldOfView`*"] + pub type VrFieldOfView; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRFieldOfView" , js_name = upDegrees ) ] + #[doc = "Getter for the `upDegrees` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFieldOfView/upDegrees)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrFieldOfView`*"] + pub fn up_degrees(this: &VrFieldOfView) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRFieldOfView" , js_name = rightDegrees ) ] + #[doc = "Getter for the `rightDegrees` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFieldOfView/rightDegrees)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrFieldOfView`*"] + pub fn right_degrees(this: &VrFieldOfView) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRFieldOfView" , js_name = downDegrees ) ] + #[doc = "Getter for the `downDegrees` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFieldOfView/downDegrees)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrFieldOfView`*"] + pub fn down_degrees(this: &VrFieldOfView) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRFieldOfView" , js_name = leftDegrees ) ] + #[doc = "Getter for the `leftDegrees` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFieldOfView/leftDegrees)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrFieldOfView`*"] + pub fn left_degrees(this: &VrFieldOfView) -> f64; +} diff --git a/crates/web-sys/src/features/gen_VrFrameData.rs b/crates/web-sys/src/features/gen_VrFrameData.rs new file mode 100644 index 00000000..e13052d1 --- /dev/null +++ b/crates/web-sys/src/features/gen_VrFrameData.rs @@ -0,0 +1,64 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = VRFrameData , typescript_type = "VRFrameData" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VrFrameData` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] + pub type VrFrameData; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRFrameData" , js_name = timestamp ) ] + #[doc = "Getter for the `timestamp` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/timestamp)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] + pub fn timestamp(this: &VrFrameData) -> f64; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "VRFrameData" , js_name = leftProjectionMatrix ) ] + #[doc = "Getter for the `leftProjectionMatrix` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/leftProjectionMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] + pub fn left_projection_matrix(this: &VrFrameData) -> Result, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "VRFrameData" , js_name = leftViewMatrix ) ] + #[doc = "Getter for the `leftViewMatrix` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/leftViewMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] + pub fn left_view_matrix(this: &VrFrameData) -> Result, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "VRFrameData" , js_name = rightProjectionMatrix ) ] + #[doc = "Getter for the `rightProjectionMatrix` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/rightProjectionMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] + pub fn right_projection_matrix(this: &VrFrameData) -> Result, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "VRFrameData" , js_name = rightViewMatrix ) ] + #[doc = "Getter for the `rightViewMatrix` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/rightViewMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] + pub fn right_view_matrix(this: &VrFrameData) -> Result, JsValue>; + #[cfg(feature = "VrPose")] + # [ wasm_bindgen ( structural , method , getter , js_class = "VRFrameData" , js_name = pose ) ] + #[doc = "Getter for the `pose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/pose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrFrameData`, `VrPose`*"] + pub fn pose(this: &VrFrameData) -> VrPose; + #[wasm_bindgen(catch, constructor, js_class = "VRFrameData")] + #[doc = "The `new VrFrameData(..)` constructor, creating a new instance of `VrFrameData`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/VRFrameData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrFrameData`*"] + pub fn new() -> Result; +} diff --git a/crates/web-sys/src/features/gen_VrLayer.rs b/crates/web-sys/src/features/gen_VrLayer.rs new file mode 100644 index 00000000..c99dba7f --- /dev/null +++ b/crates/web-sys/src/features/gen_VrLayer.rs @@ -0,0 +1,71 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = VRLayer ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VrLayer` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrLayer`*"] + pub type VrLayer; +} +impl VrLayer { + #[doc = "Construct a new `VrLayer`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrLayer`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `leftBounds` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrLayer`*"] + pub fn left_bounds(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("leftBounds"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `rightBounds` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrLayer`*"] + pub fn right_bounds(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("rightBounds"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "HtmlCanvasElement")] + #[doc = "Change the `source` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `VrLayer`*"] + pub fn source(&mut self, val: Option<&HtmlCanvasElement>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("source"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_VrMockController.rs b/crates/web-sys/src/features/gen_VrMockController.rs new file mode 100644 index 00000000..caf36ebc --- /dev/null +++ b/crates/web-sys/src/features/gen_VrMockController.rs @@ -0,0 +1,43 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = VRMockController , typescript_type = "VRMockController" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VrMockController` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockController)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrMockController`*"] + pub type VrMockController; + # [ wasm_bindgen ( method , structural , js_class = "VRMockController" , js_name = newAxisMoveEvent ) ] + #[doc = "The `newAxisMoveEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockController/newAxisMoveEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrMockController`*"] + pub fn new_axis_move_event(this: &VrMockController, axis: u32, value: f64); + # [ wasm_bindgen ( method , structural , js_class = "VRMockController" , js_name = newButtonEvent ) ] + #[doc = "The `newButtonEvent()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockController/newButtonEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrMockController`*"] + pub fn new_button_event(this: &VrMockController, button: u32, pressed: bool); + # [ wasm_bindgen ( method , structural , js_class = "VRMockController" , js_name = newPoseMove ) ] + #[doc = "The `newPoseMove()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockController/newPoseMove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrMockController`*"] + pub fn new_pose_move( + this: &VrMockController, + position: Option<&mut [f32]>, + linear_velocity: Option<&mut [f32]>, + linear_acceleration: Option<&mut [f32]>, + orientation: Option<&mut [f32]>, + angular_velocity: Option<&mut [f32]>, + angular_acceleration: Option<&mut [f32]>, + ); +} diff --git a/crates/web-sys/src/features/gen_VrMockDisplay.rs b/crates/web-sys/src/features/gen_VrMockDisplay.rs new file mode 100644 index 00000000..6bd13a78 --- /dev/null +++ b/crates/web-sys/src/features/gen_VrMockDisplay.rs @@ -0,0 +1,68 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = VRMockDisplay , typescript_type = "VRMockDisplay" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VrMockDisplay` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"] + pub type VrMockDisplay; + #[cfg(feature = "VrEye")] + # [ wasm_bindgen ( method , structural , js_class = "VRMockDisplay" , js_name = setEyeParameter ) ] + #[doc = "The `setEyeParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setEyeParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrEye`, `VrMockDisplay`*"] + pub fn set_eye_parameter( + this: &VrMockDisplay, + eye: VrEye, + offset_x: f64, + offset_y: f64, + offset_z: f64, + up_degree: f64, + right_degree: f64, + down_degree: f64, + left_degree: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "VRMockDisplay" , js_name = setEyeResolution ) ] + #[doc = "The `setEyeResolution()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setEyeResolution)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"] + pub fn set_eye_resolution(this: &VrMockDisplay, a_render_width: u32, a_render_height: u32); + # [ wasm_bindgen ( method , structural , js_class = "VRMockDisplay" , js_name = setMountState ) ] + #[doc = "The `setMountState()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setMountState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"] + pub fn set_mount_state(this: &VrMockDisplay, is_mounted: bool); + # [ wasm_bindgen ( method , structural , js_class = "VRMockDisplay" , js_name = setPose ) ] + #[doc = "The `setPose()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/setPose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"] + pub fn set_pose( + this: &VrMockDisplay, + position: Option<&mut [f32]>, + linear_velocity: Option<&mut [f32]>, + linear_acceleration: Option<&mut [f32]>, + orientation: Option<&mut [f32]>, + angular_velocity: Option<&mut [f32]>, + angular_acceleration: Option<&mut [f32]>, + ); + # [ wasm_bindgen ( method , structural , js_class = "VRMockDisplay" , js_name = update ) ] + #[doc = "The `update()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRMockDisplay/update)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrMockDisplay`*"] + pub fn update(this: &VrMockDisplay); +} diff --git a/crates/web-sys/src/features/gen_VrPose.rs b/crates/web-sys/src/features/gen_VrPose.rs new file mode 100644 index 00000000..51cebf7c --- /dev/null +++ b/crates/web-sys/src/features/gen_VrPose.rs @@ -0,0 +1,56 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = VRPose , typescript_type = "VRPose" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VrPose` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] + pub type VrPose; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "VRPose" , js_name = position ) ] + #[doc = "Getter for the `position` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/position)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] + pub fn position(this: &VrPose) -> Result>, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "VRPose" , js_name = linearVelocity ) ] + #[doc = "Getter for the `linearVelocity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/linearVelocity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] + pub fn linear_velocity(this: &VrPose) -> Result>, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "VRPose" , js_name = linearAcceleration ) ] + #[doc = "Getter for the `linearAcceleration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/linearAcceleration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] + pub fn linear_acceleration(this: &VrPose) -> Result>, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "VRPose" , js_name = orientation ) ] + #[doc = "Getter for the `orientation` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/orientation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] + pub fn orientation(this: &VrPose) -> Result>, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "VRPose" , js_name = angularVelocity ) ] + #[doc = "Getter for the `angularVelocity` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/angularVelocity)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] + pub fn angular_velocity(this: &VrPose) -> Result>, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "VRPose" , js_name = angularAcceleration ) ] + #[doc = "Getter for the `angularAcceleration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRPose/angularAcceleration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrPose`*"] + pub fn angular_acceleration(this: &VrPose) -> Result>, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_VrServiceTest.rs b/crates/web-sys/src/features/gen_VrServiceTest.rs new file mode 100644 index 00000000..06d42f7b --- /dev/null +++ b/crates/web-sys/src/features/gen_VrServiceTest.rs @@ -0,0 +1,31 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = VRServiceTest , typescript_type = "VRServiceTest" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VrServiceTest` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRServiceTest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrServiceTest`*"] + pub type VrServiceTest; + # [ wasm_bindgen ( catch , method , structural , js_class = "VRServiceTest" , js_name = attachVRController ) ] + #[doc = "The `attachVRController()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRServiceTest/attachVRController)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrServiceTest`*"] + pub fn attach_vr_controller( + this: &VrServiceTest, + id: &str, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "VRServiceTest" , js_name = attachVRDisplay ) ] + #[doc = "The `attachVRDisplay()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRServiceTest/attachVRDisplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrServiceTest`*"] + pub fn attach_vr_display(this: &VrServiceTest, id: &str) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_VrStageParameters.rs b/crates/web-sys/src/features/gen_VrStageParameters.rs new file mode 100644 index 00000000..90c0e4a6 --- /dev/null +++ b/crates/web-sys/src/features/gen_VrStageParameters.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = VRStageParameters , typescript_type = "VRStageParameters" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VrStageParameters` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRStageParameters)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrStageParameters`*"] + pub type VrStageParameters; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "VRStageParameters" , js_name = sittingToStandingTransform ) ] + #[doc = "Getter for the `sittingToStandingTransform` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRStageParameters/sittingToStandingTransform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrStageParameters`*"] + pub fn sitting_to_standing_transform(this: &VrStageParameters) -> Result, JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRStageParameters" , js_name = sizeX ) ] + #[doc = "Getter for the `sizeX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRStageParameters/sizeX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrStageParameters`*"] + pub fn size_x(this: &VrStageParameters) -> f32; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRStageParameters" , js_name = sizeZ ) ] + #[doc = "Getter for the `sizeZ` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRStageParameters/sizeZ)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrStageParameters`*"] + pub fn size_z(this: &VrStageParameters) -> f32; +} diff --git a/crates/web-sys/src/features/gen_VrSubmitFrameResult.rs b/crates/web-sys/src/features/gen_VrSubmitFrameResult.rs new file mode 100644 index 00000000..c206620c --- /dev/null +++ b/crates/web-sys/src/features/gen_VrSubmitFrameResult.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = VRSubmitFrameResult , typescript_type = "VRSubmitFrameResult" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VrSubmitFrameResult` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"] + pub type VrSubmitFrameResult; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRSubmitFrameResult" , js_name = frameNum ) ] + #[doc = "Getter for the `frameNum` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult/frameNum)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"] + pub fn frame_num(this: &VrSubmitFrameResult) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "VRSubmitFrameResult" , js_name = base64Image ) ] + #[doc = "Getter for the `base64Image` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult/base64Image)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"] + pub fn base64_image(this: &VrSubmitFrameResult) -> Option; + #[wasm_bindgen(catch, constructor, js_class = "VRSubmitFrameResult")] + #[doc = "The `new VrSubmitFrameResult(..)` constructor, creating a new instance of `VrSubmitFrameResult`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VRSubmitFrameResult/VRSubmitFrameResult)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VrSubmitFrameResult`*"] + pub fn new() -> Result; +} diff --git a/crates/web-sys/src/features/gen_VttCue.rs b/crates/web-sys/src/features/gen_VttCue.rs new file mode 100644 index 00000000..98ff63bb --- /dev/null +++ b/crates/web-sys/src/features/gen_VttCue.rs @@ -0,0 +1,179 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = TextTrackCue , extends = EventTarget , extends = :: js_sys :: Object , js_name = VTTCue , typescript_type = "VTTCue" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VttCue` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] + pub type VttCue; + #[cfg(feature = "VttRegion")] + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTCue" , js_name = region ) ] + #[doc = "Getter for the `region` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/region)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttCue`, `VttRegion`*"] + pub fn region(this: &VttCue) -> Option; + #[cfg(feature = "VttRegion")] + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTCue" , js_name = region ) ] + #[doc = "Setter for the `region` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/region)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttCue`, `VttRegion`*"] + pub fn set_region(this: &VttCue, value: Option<&VttRegion>); + #[cfg(feature = "DirectionSetting")] + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTCue" , js_name = vertical ) ] + #[doc = "Getter for the `vertical` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/vertical)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DirectionSetting`, `VttCue`*"] + pub fn vertical(this: &VttCue) -> DirectionSetting; + #[cfg(feature = "DirectionSetting")] + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTCue" , js_name = vertical ) ] + #[doc = "Setter for the `vertical` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/vertical)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DirectionSetting`, `VttCue`*"] + pub fn set_vertical(this: &VttCue, value: DirectionSetting); + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTCue" , js_name = snapToLines ) ] + #[doc = "Getter for the `snapToLines` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/snapToLines)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] + pub fn snap_to_lines(this: &VttCue) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTCue" , js_name = snapToLines ) ] + #[doc = "Setter for the `snapToLines` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/snapToLines)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] + pub fn set_snap_to_lines(this: &VttCue, value: bool); + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTCue" , js_name = line ) ] + #[doc = "Getter for the `line` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/line)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] + pub fn line(this: &VttCue) -> ::wasm_bindgen::JsValue; + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTCue" , js_name = line ) ] + #[doc = "Setter for the `line` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/line)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] + pub fn set_line(this: &VttCue, value: &::wasm_bindgen::JsValue); + #[cfg(feature = "LineAlignSetting")] + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTCue" , js_name = lineAlign ) ] + #[doc = "Getter for the `lineAlign` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/lineAlign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `LineAlignSetting`, `VttCue`*"] + pub fn line_align(this: &VttCue) -> LineAlignSetting; + #[cfg(feature = "LineAlignSetting")] + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTCue" , js_name = lineAlign ) ] + #[doc = "Setter for the `lineAlign` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/lineAlign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `LineAlignSetting`, `VttCue`*"] + pub fn set_line_align(this: &VttCue, value: LineAlignSetting); + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTCue" , js_name = position ) ] + #[doc = "Getter for the `position` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/position)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] + pub fn position(this: &VttCue) -> ::wasm_bindgen::JsValue; + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTCue" , js_name = position ) ] + #[doc = "Setter for the `position` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/position)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] + pub fn set_position(this: &VttCue, value: &::wasm_bindgen::JsValue); + #[cfg(feature = "PositionAlignSetting")] + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTCue" , js_name = positionAlign ) ] + #[doc = "Getter for the `positionAlign` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/positionAlign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PositionAlignSetting`, `VttCue`*"] + pub fn position_align(this: &VttCue) -> PositionAlignSetting; + #[cfg(feature = "PositionAlignSetting")] + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTCue" , js_name = positionAlign ) ] + #[doc = "Setter for the `positionAlign` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/positionAlign)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `PositionAlignSetting`, `VttCue`*"] + pub fn set_position_align(this: &VttCue, value: PositionAlignSetting); + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTCue" , js_name = size ) ] + #[doc = "Getter for the `size` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/size)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] + pub fn size(this: &VttCue) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTCue" , js_name = size ) ] + #[doc = "Setter for the `size` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/size)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] + pub fn set_size(this: &VttCue, value: f64); + #[cfg(feature = "AlignSetting")] + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTCue" , js_name = align ) ] + #[doc = "Getter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AlignSetting`, `VttCue`*"] + pub fn align(this: &VttCue) -> AlignSetting; + #[cfg(feature = "AlignSetting")] + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTCue" , js_name = align ) ] + #[doc = "Setter for the `align` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/align)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `AlignSetting`, `VttCue`*"] + pub fn set_align(this: &VttCue, value: AlignSetting); + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTCue" , js_name = text ) ] + #[doc = "Getter for the `text` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] + pub fn text(this: &VttCue) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTCue" , js_name = text ) ] + #[doc = "Setter for the `text` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/text)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] + pub fn set_text(this: &VttCue, value: &str); + #[wasm_bindgen(catch, constructor, js_class = "VTTCue")] + #[doc = "The `new VttCue(..)` constructor, creating a new instance of `VttCue`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/VTTCue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttCue`*"] + pub fn new(start_time: f64, end_time: f64, text: &str) -> Result; + #[cfg(feature = "DocumentFragment")] + # [ wasm_bindgen ( method , structural , js_class = "VTTCue" , js_name = getCueAsHTML ) ] + #[doc = "The `getCueAsHTML()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTCue/getCueAsHTML)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `DocumentFragment`, `VttCue`*"] + pub fn get_cue_as_html(this: &VttCue) -> DocumentFragment; +} diff --git a/crates/web-sys/src/features/gen_VttRegion.rs b/crates/web-sys/src/features/gen_VttRegion.rs new file mode 100644 index 00000000..c004fac6 --- /dev/null +++ b/crates/web-sys/src/features/gen_VttRegion.rs @@ -0,0 +1,135 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = VTTRegion , typescript_type = "VTTRegion" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `VttRegion` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] + pub type VttRegion; + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTRegion" , js_name = id ) ] + #[doc = "Getter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] + pub fn id(this: &VttRegion) -> String; + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTRegion" , js_name = id ) ] + #[doc = "Setter for the `id` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/id)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] + pub fn set_id(this: &VttRegion, value: &str); + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTRegion" , js_name = width ) ] + #[doc = "Getter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] + pub fn width(this: &VttRegion) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTRegion" , js_name = width ) ] + #[doc = "Setter for the `width` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/width)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] + pub fn set_width(this: &VttRegion, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTRegion" , js_name = lines ) ] + #[doc = "Getter for the `lines` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/lines)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] + pub fn lines(this: &VttRegion) -> i32; + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTRegion" , js_name = lines ) ] + #[doc = "Setter for the `lines` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/lines)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] + pub fn set_lines(this: &VttRegion, value: i32); + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTRegion" , js_name = regionAnchorX ) ] + #[doc = "Getter for the `regionAnchorX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] + pub fn region_anchor_x(this: &VttRegion) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTRegion" , js_name = regionAnchorX ) ] + #[doc = "Setter for the `regionAnchorX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] + pub fn set_region_anchor_x(this: &VttRegion, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTRegion" , js_name = regionAnchorY ) ] + #[doc = "Getter for the `regionAnchorY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] + pub fn region_anchor_y(this: &VttRegion) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTRegion" , js_name = regionAnchorY ) ] + #[doc = "Setter for the `regionAnchorY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/regionAnchorY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] + pub fn set_region_anchor_y(this: &VttRegion, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTRegion" , js_name = viewportAnchorX ) ] + #[doc = "Getter for the `viewportAnchorX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] + pub fn viewport_anchor_x(this: &VttRegion) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTRegion" , js_name = viewportAnchorX ) ] + #[doc = "Setter for the `viewportAnchorX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] + pub fn set_viewport_anchor_x(this: &VttRegion, value: f64); + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTRegion" , js_name = viewportAnchorY ) ] + #[doc = "Getter for the `viewportAnchorY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] + pub fn viewport_anchor_y(this: &VttRegion) -> f64; + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTRegion" , js_name = viewportAnchorY ) ] + #[doc = "Setter for the `viewportAnchorY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/viewportAnchorY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] + pub fn set_viewport_anchor_y(this: &VttRegion, value: f64); + #[cfg(feature = "ScrollSetting")] + # [ wasm_bindgen ( structural , method , getter , js_class = "VTTRegion" , js_name = scroll ) ] + #[doc = "Getter for the `scroll` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/scroll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollSetting`, `VttRegion`*"] + pub fn scroll(this: &VttRegion) -> ScrollSetting; + #[cfg(feature = "ScrollSetting")] + # [ wasm_bindgen ( structural , method , setter , js_class = "VTTRegion" , js_name = scroll ) ] + #[doc = "Setter for the `scroll` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/scroll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollSetting`, `VttRegion`*"] + pub fn set_scroll(this: &VttRegion, value: ScrollSetting); + #[wasm_bindgen(catch, constructor, js_class = "VTTRegion")] + #[doc = "The `new VttRegion(..)` constructor, creating a new instance of `VttRegion`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/VTTRegion/VTTRegion)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VttRegion`*"] + pub fn new() -> Result; +} diff --git a/crates/web-sys/src/features/gen_WaveShaperNode.rs b/crates/web-sys/src/features/gen_WaveShaperNode.rs new file mode 100644 index 00000000..763006d6 --- /dev/null +++ b/crates/web-sys/src/features/gen_WaveShaperNode.rs @@ -0,0 +1,63 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = AudioNode , extends = EventTarget , extends = :: js_sys :: Object , js_name = WaveShaperNode , typescript_type = "WaveShaperNode" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WaveShaperNode` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WaveShaperNode`*"] + pub type WaveShaperNode; + # [ wasm_bindgen ( structural , method , getter , js_class = "WaveShaperNode" , js_name = curve ) ] + #[doc = "Getter for the `curve` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/curve)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WaveShaperNode`*"] + pub fn curve(this: &WaveShaperNode) -> Option>; + # [ wasm_bindgen ( structural , method , setter , js_class = "WaveShaperNode" , js_name = curve ) ] + #[doc = "Setter for the `curve` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/curve)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WaveShaperNode`*"] + pub fn set_curve(this: &WaveShaperNode, value: Option<&mut [f32]>); + #[cfg(feature = "OverSampleType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "WaveShaperNode" , js_name = oversample ) ] + #[doc = "Getter for the `oversample` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/oversample)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OverSampleType`, `WaveShaperNode`*"] + pub fn oversample(this: &WaveShaperNode) -> OverSampleType; + #[cfg(feature = "OverSampleType")] + # [ wasm_bindgen ( structural , method , setter , js_class = "WaveShaperNode" , js_name = oversample ) ] + #[doc = "Setter for the `oversample` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/oversample)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OverSampleType`, `WaveShaperNode`*"] + pub fn set_oversample(this: &WaveShaperNode, value: OverSampleType); + #[cfg(feature = "BaseAudioContext")] + #[wasm_bindgen(catch, constructor, js_class = "WaveShaperNode")] + #[doc = "The `new WaveShaperNode(..)` constructor, creating a new instance of `WaveShaperNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/WaveShaperNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `WaveShaperNode`*"] + pub fn new(context: &BaseAudioContext) -> Result; + #[cfg(all(feature = "BaseAudioContext", feature = "WaveShaperOptions",))] + #[wasm_bindgen(catch, constructor, js_class = "WaveShaperNode")] + #[doc = "The `new WaveShaperNode(..)` constructor, creating a new instance of `WaveShaperNode`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WaveShaperNode/WaveShaperNode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BaseAudioContext`, `WaveShaperNode`, `WaveShaperOptions`*"] + pub fn new_with_options( + context: &BaseAudioContext, + options: &WaveShaperOptions, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_WaveShaperOptions.rs b/crates/web-sys/src/features/gen_WaveShaperOptions.rs new file mode 100644 index 00000000..1bb7fa26 --- /dev/null +++ b/crates/web-sys/src/features/gen_WaveShaperOptions.rs @@ -0,0 +1,106 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WaveShaperOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WaveShaperOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WaveShaperOptions`*"] + pub type WaveShaperOptions; +} +impl WaveShaperOptions { + #[doc = "Construct a new `WaveShaperOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WaveShaperOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `channelCount` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WaveShaperOptions`*"] + pub fn channel_count(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCount"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelCountMode")] + #[doc = "Change the `channelCountMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelCountMode`, `WaveShaperOptions`*"] + pub fn channel_count_mode(&mut self, val: ChannelCountMode) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelCountMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "ChannelInterpretation")] + #[doc = "Change the `channelInterpretation` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ChannelInterpretation`, `WaveShaperOptions`*"] + pub fn channel_interpretation(&mut self, val: ChannelInterpretation) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("channelInterpretation"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `curve` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WaveShaperOptions`*"] + pub fn curve(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("curve"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "OverSampleType")] + #[doc = "Change the `oversample` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `OverSampleType`, `WaveShaperOptions`*"] + pub fn oversample(&mut self, val: OverSampleType) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("oversample"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_WebGl2RenderingContext.rs b/crates/web-sys/src/features/gen_WebGl2RenderingContext.rs new file mode 100644 index 00000000..ed8a9a70 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGl2RenderingContext.rs @@ -0,0 +1,8486 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGL2RenderingContext , typescript_type = "WebGL2RenderingContext" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGl2RenderingContext` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub type WebGl2RenderingContext; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebGL2RenderingContext" , js_name = canvas ) ] + #[doc = "Getter for the `canvas` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/canvas)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn canvas(this: &WebGl2RenderingContext) -> Option<::js_sys::Object>; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebGL2RenderingContext" , js_name = drawingBufferWidth ) ] + #[doc = "Getter for the `drawingBufferWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawingBufferWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn drawing_buffer_width(this: &WebGl2RenderingContext) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebGL2RenderingContext" , js_name = drawingBufferHeight ) ] + #[doc = "Getter for the `drawingBufferHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawingBufferHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn drawing_buffer_height(this: &WebGl2RenderingContext) -> i32; + #[cfg(feature = "WebGlQuery")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = beginQuery ) ] + #[doc = "The `beginQuery()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/beginQuery)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlQuery`*"] + pub fn begin_query(this: &WebGl2RenderingContext, target: u32, query: &WebGlQuery); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = beginTransformFeedback ) ] + #[doc = "The `beginTransformFeedback()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/beginTransformFeedback)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn begin_transform_feedback(this: &WebGl2RenderingContext, primitive_mode: u32); + #[cfg(feature = "WebGlBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBufferBase ) ] + #[doc = "The `bindBufferBase()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBufferBase)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] + pub fn bind_buffer_base( + this: &WebGl2RenderingContext, + target: u32, + index: u32, + buffer: Option<&WebGlBuffer>, + ); + #[cfg(feature = "WebGlBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBufferRange ) ] + #[doc = "The `bindBufferRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBufferRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] + pub fn bind_buffer_range_with_i32_and_i32( + this: &WebGl2RenderingContext, + target: u32, + index: u32, + buffer: Option<&WebGlBuffer>, + offset: i32, + size: i32, + ); + #[cfg(feature = "WebGlBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBufferRange ) ] + #[doc = "The `bindBufferRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBufferRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] + pub fn bind_buffer_range_with_f64_and_i32( + this: &WebGl2RenderingContext, + target: u32, + index: u32, + buffer: Option<&WebGlBuffer>, + offset: f64, + size: i32, + ); + #[cfg(feature = "WebGlBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBufferRange ) ] + #[doc = "The `bindBufferRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBufferRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] + pub fn bind_buffer_range_with_i32_and_f64( + this: &WebGl2RenderingContext, + target: u32, + index: u32, + buffer: Option<&WebGlBuffer>, + offset: i32, + size: f64, + ); + #[cfg(feature = "WebGlBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBufferRange ) ] + #[doc = "The `bindBufferRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBufferRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] + pub fn bind_buffer_range_with_f64_and_f64( + this: &WebGl2RenderingContext, + target: u32, + index: u32, + buffer: Option<&WebGlBuffer>, + offset: f64, + size: f64, + ); + #[cfg(feature = "WebGlSampler")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bindSampler ) ] + #[doc = "The `bindSampler()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindSampler)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] + pub fn bind_sampler(this: &WebGl2RenderingContext, unit: u32, sampler: Option<&WebGlSampler>); + #[cfg(feature = "WebGlTransformFeedback")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bindTransformFeedback ) ] + #[doc = "The `bindTransformFeedback()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindTransformFeedback)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTransformFeedback`*"] + pub fn bind_transform_feedback( + this: &WebGl2RenderingContext, + target: u32, + tf: Option<&WebGlTransformFeedback>, + ); + #[cfg(feature = "WebGlVertexArrayObject")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bindVertexArray ) ] + #[doc = "The `bindVertexArray()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindVertexArray)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlVertexArrayObject`*"] + pub fn bind_vertex_array(this: &WebGl2RenderingContext, array: Option<&WebGlVertexArrayObject>); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = blitFramebuffer ) ] + #[doc = "The `blitFramebuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blitFramebuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn blit_framebuffer( + this: &WebGl2RenderingContext, + src_x0: i32, + src_y0: i32, + src_x1: i32, + src_y1: i32, + dst_x0: i32, + dst_y0: i32, + dst_x1: i32, + dst_y1: i32, + mask: u32, + filter: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData ) ] + #[doc = "The `bufferData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_data_with_i32(this: &WebGl2RenderingContext, target: u32, size: i32, usage: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData ) ] + #[doc = "The `bufferData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_data_with_f64(this: &WebGl2RenderingContext, target: u32, size: f64, usage: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData ) ] + #[doc = "The `bufferData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_data_with_opt_array_buffer( + this: &WebGl2RenderingContext, + target: u32, + src_data: Option<&::js_sys::ArrayBuffer>, + usage: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData ) ] + #[doc = "The `bufferData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_data_with_array_buffer_view( + this: &WebGl2RenderingContext, + target: u32, + src_data: &::js_sys::Object, + usage: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData ) ] + #[doc = "The `bufferData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_data_with_u8_array( + this: &WebGl2RenderingContext, + target: u32, + src_data: &[u8], + usage: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData ) ] + #[doc = "The `bufferData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_data_with_array_buffer_view_and_src_offset( + this: &WebGl2RenderingContext, + target: u32, + src_data: &::js_sys::Object, + usage: u32, + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData ) ] + #[doc = "The `bufferData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_data_with_u8_array_and_src_offset( + this: &WebGl2RenderingContext, + target: u32, + src_data: &[u8], + usage: u32, + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData ) ] + #[doc = "The `bufferData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_data_with_array_buffer_view_and_src_offset_and_length( + this: &WebGl2RenderingContext, + target: u32, + src_data: &::js_sys::Object, + usage: u32, + src_offset: u32, + length: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferData ) ] + #[doc = "The `bufferData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_data_with_u8_array_and_src_offset_and_length( + this: &WebGl2RenderingContext, + target: u32, + src_data: &[u8], + usage: u32, + src_offset: u32, + length: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_sub_data_with_i32_and_array_buffer( + this: &WebGl2RenderingContext, + target: u32, + offset: i32, + src_data: &::js_sys::ArrayBuffer, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_sub_data_with_f64_and_array_buffer( + this: &WebGl2RenderingContext, + target: u32, + offset: f64, + src_data: &::js_sys::ArrayBuffer, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_sub_data_with_i32_and_array_buffer_view( + this: &WebGl2RenderingContext, + target: u32, + offset: i32, + src_data: &::js_sys::Object, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_sub_data_with_f64_and_array_buffer_view( + this: &WebGl2RenderingContext, + target: u32, + offset: f64, + src_data: &::js_sys::Object, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_sub_data_with_i32_and_u8_array( + this: &WebGl2RenderingContext, + target: u32, + offset: i32, + src_data: &[u8], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_sub_data_with_f64_and_u8_array( + this: &WebGl2RenderingContext, + target: u32, + offset: f64, + src_data: &[u8], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_sub_data_with_i32_and_array_buffer_view_and_src_offset( + this: &WebGl2RenderingContext, + target: u32, + dst_byte_offset: i32, + src_data: &::js_sys::Object, + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_sub_data_with_f64_and_array_buffer_view_and_src_offset( + this: &WebGl2RenderingContext, + target: u32, + dst_byte_offset: f64, + src_data: &::js_sys::Object, + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_sub_data_with_i32_and_u8_array_and_src_offset( + this: &WebGl2RenderingContext, + target: u32, + dst_byte_offset: i32, + src_data: &[u8], + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_sub_data_with_f64_and_u8_array_and_src_offset( + this: &WebGl2RenderingContext, + target: u32, + dst_byte_offset: f64, + src_data: &[u8], + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_sub_data_with_i32_and_array_buffer_view_and_src_offset_and_length( + this: &WebGl2RenderingContext, + target: u32, + dst_byte_offset: i32, + src_data: &::js_sys::Object, + src_offset: u32, + length: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_sub_data_with_f64_and_array_buffer_view_and_src_offset_and_length( + this: &WebGl2RenderingContext, + target: u32, + dst_byte_offset: f64, + src_data: &::js_sys::Object, + src_offset: u32, + length: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_sub_data_with_i32_and_u8_array_and_src_offset_and_length( + this: &WebGl2RenderingContext, + target: u32, + dst_byte_offset: i32, + src_data: &[u8], + src_offset: u32, + length: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn buffer_sub_data_with_f64_and_u8_array_and_src_offset_and_length( + this: &WebGl2RenderingContext, + target: u32, + dst_byte_offset: f64, + src_data: &[u8], + src_offset: u32, + length: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferfi ) ] + #[doc = "The `clearBufferfi()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferfi)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn clear_bufferfi( + this: &WebGl2RenderingContext, + buffer: u32, + drawbuffer: i32, + depth: f32, + stencil: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferfv ) ] + #[doc = "The `clearBufferfv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferfv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn clear_bufferfv_with_f32_array( + this: &WebGl2RenderingContext, + buffer: u32, + drawbuffer: i32, + values: &[f32], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferfv ) ] + #[doc = "The `clearBufferfv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferfv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn clear_bufferfv_with_f32_sequence( + this: &WebGl2RenderingContext, + buffer: u32, + drawbuffer: i32, + values: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferfv ) ] + #[doc = "The `clearBufferfv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferfv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn clear_bufferfv_with_f32_array_and_src_offset( + this: &WebGl2RenderingContext, + buffer: u32, + drawbuffer: i32, + values: &[f32], + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferfv ) ] + #[doc = "The `clearBufferfv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferfv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn clear_bufferfv_with_f32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + buffer: u32, + drawbuffer: i32, + values: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferiv ) ] + #[doc = "The `clearBufferiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn clear_bufferiv_with_i32_array( + this: &WebGl2RenderingContext, + buffer: u32, + drawbuffer: i32, + values: &[i32], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferiv ) ] + #[doc = "The `clearBufferiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn clear_bufferiv_with_i32_sequence( + this: &WebGl2RenderingContext, + buffer: u32, + drawbuffer: i32, + values: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferiv ) ] + #[doc = "The `clearBufferiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn clear_bufferiv_with_i32_array_and_src_offset( + this: &WebGl2RenderingContext, + buffer: u32, + drawbuffer: i32, + values: &[i32], + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferiv ) ] + #[doc = "The `clearBufferiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn clear_bufferiv_with_i32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + buffer: u32, + drawbuffer: i32, + values: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferuiv ) ] + #[doc = "The `clearBufferuiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferuiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn clear_bufferuiv_with_u32_array( + this: &WebGl2RenderingContext, + buffer: u32, + drawbuffer: i32, + values: &[u32], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferuiv ) ] + #[doc = "The `clearBufferuiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferuiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn clear_bufferuiv_with_u32_sequence( + this: &WebGl2RenderingContext, + buffer: u32, + drawbuffer: i32, + values: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferuiv ) ] + #[doc = "The `clearBufferuiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferuiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn clear_bufferuiv_with_u32_array_and_src_offset( + this: &WebGl2RenderingContext, + buffer: u32, + drawbuffer: i32, + values: &[u32], + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clearBufferuiv ) ] + #[doc = "The `clearBufferuiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearBufferuiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn clear_bufferuiv_with_u32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + buffer: u32, + drawbuffer: i32, + values: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlSync")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clientWaitSync ) ] + #[doc = "The `clientWaitSync()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clientWaitSync)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] + pub fn client_wait_sync_with_u32( + this: &WebGl2RenderingContext, + sync: &WebGlSync, + flags: u32, + timeout: u32, + ) -> u32; + #[cfg(feature = "WebGlSync")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clientWaitSync ) ] + #[doc = "The `clientWaitSync()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clientWaitSync)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] + pub fn client_wait_sync_with_f64( + this: &WebGl2RenderingContext, + sync: &WebGlSync, + flags: u32, + timeout: f64, + ) -> u32; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D ) ] + #[doc = "The `compressedTexImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_image_2d_with_i32_and_i32( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + border: i32, + image_size: i32, + offset: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D ) ] + #[doc = "The `compressedTexImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_image_2d_with_i32_and_f64( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + border: i32, + image_size: i32, + offset: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D ) ] + #[doc = "The `compressedTexImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_image_2d_with_array_buffer_view( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + border: i32, + src_data: &::js_sys::Object, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D ) ] + #[doc = "The `compressedTexImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_image_2d_with_u8_array( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + border: i32, + src_data: &[u8], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D ) ] + #[doc = "The `compressedTexImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_image_2d_with_array_buffer_view_and_u32( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + border: i32, + src_data: &::js_sys::Object, + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D ) ] + #[doc = "The `compressedTexImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_image_2d_with_u8_array_and_u32( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + border: i32, + src_data: &[u8], + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D ) ] + #[doc = "The `compressedTexImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_image_2d_with_array_buffer_view_and_u32_and_src_length_override( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + border: i32, + src_data: &::js_sys::Object, + src_offset: u32, + src_length_override: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage2D ) ] + #[doc = "The `compressedTexImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_image_2d_with_u8_array_and_u32_and_src_length_override( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + border: i32, + src_data: &[u8], + src_offset: u32, + src_length_override: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D ) ] + #[doc = "The `compressedTexImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_image_3d_with_i32_and_i32( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + depth: i32, + border: i32, + image_size: i32, + offset: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D ) ] + #[doc = "The `compressedTexImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_image_3d_with_i32_and_f64( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + depth: i32, + border: i32, + image_size: i32, + offset: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D ) ] + #[doc = "The `compressedTexImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_image_3d_with_array_buffer_view( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + depth: i32, + border: i32, + src_data: &::js_sys::Object, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D ) ] + #[doc = "The `compressedTexImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_image_3d_with_u8_array( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + depth: i32, + border: i32, + src_data: &[u8], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D ) ] + #[doc = "The `compressedTexImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_image_3d_with_array_buffer_view_and_u32( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + depth: i32, + border: i32, + src_data: &::js_sys::Object, + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D ) ] + #[doc = "The `compressedTexImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_image_3d_with_u8_array_and_u32( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + depth: i32, + border: i32, + src_data: &[u8], + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D ) ] + #[doc = "The `compressedTexImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_image_3d_with_array_buffer_view_and_u32_and_src_length_override( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + depth: i32, + border: i32, + src_data: &::js_sys::Object, + src_offset: u32, + src_length_override: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexImage3D ) ] + #[doc = "The `compressedTexImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_image_3d_with_u8_array_and_u32_and_src_length_override( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + depth: i32, + border: i32, + src_data: &[u8], + src_offset: u32, + src_length_override: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D ) ] + #[doc = "The `compressedTexSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_sub_image_2d_with_i32_and_i32( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + image_size: i32, + offset: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D ) ] + #[doc = "The `compressedTexSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_sub_image_2d_with_i32_and_f64( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + image_size: i32, + offset: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D ) ] + #[doc = "The `compressedTexSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_sub_image_2d_with_array_buffer_view( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + src_data: &::js_sys::Object, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D ) ] + #[doc = "The `compressedTexSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_sub_image_2d_with_u8_array( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + src_data: &mut [u8], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D ) ] + #[doc = "The `compressedTexSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_sub_image_2d_with_array_buffer_view_and_u32( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + src_data: &::js_sys::Object, + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D ) ] + #[doc = "The `compressedTexSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_sub_image_2d_with_u8_array_and_u32( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + src_data: &mut [u8], + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D ) ] + #[doc = "The `compressedTexSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_sub_image_2d_with_array_buffer_view_and_u32_and_src_length_override( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + src_data: &::js_sys::Object, + src_offset: u32, + src_length_override: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage2D ) ] + #[doc = "The `compressedTexSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_sub_image_2d_with_u8_array_and_u32_and_src_length_override( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + src_data: &mut [u8], + src_offset: u32, + src_length_override: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D ) ] + #[doc = "The `compressedTexSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_sub_image_3d_with_i32_and_i32( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + image_size: i32, + offset: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D ) ] + #[doc = "The `compressedTexSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_sub_image_3d_with_i32_and_f64( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + image_size: i32, + offset: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D ) ] + #[doc = "The `compressedTexSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_sub_image_3d_with_array_buffer_view( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + src_data: &::js_sys::Object, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D ) ] + #[doc = "The `compressedTexSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_sub_image_3d_with_u8_array( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + src_data: &mut [u8], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D ) ] + #[doc = "The `compressedTexSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_sub_image_3d_with_array_buffer_view_and_u32( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + src_data: &::js_sys::Object, + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D ) ] + #[doc = "The `compressedTexSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_sub_image_3d_with_u8_array_and_u32( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + src_data: &mut [u8], + src_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D ) ] + #[doc = "The `compressedTexSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_sub_image_3d_with_array_buffer_view_and_u32_and_src_length_override( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + src_data: &::js_sys::Object, + src_offset: u32, + src_length_override: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compressedTexSubImage3D ) ] + #[doc = "The `compressedTexSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compressedTexSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn compressed_tex_sub_image_3d_with_u8_array_and_u32_and_src_length_override( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + src_data: &mut [u8], + src_offset: u32, + src_length_override: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData ) ] + #[doc = "The `copyBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn copy_buffer_sub_data_with_i32_and_i32_and_i32( + this: &WebGl2RenderingContext, + read_target: u32, + write_target: u32, + read_offset: i32, + write_offset: i32, + size: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData ) ] + #[doc = "The `copyBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn copy_buffer_sub_data_with_f64_and_i32_and_i32( + this: &WebGl2RenderingContext, + read_target: u32, + write_target: u32, + read_offset: f64, + write_offset: i32, + size: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData ) ] + #[doc = "The `copyBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn copy_buffer_sub_data_with_i32_and_f64_and_i32( + this: &WebGl2RenderingContext, + read_target: u32, + write_target: u32, + read_offset: i32, + write_offset: f64, + size: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData ) ] + #[doc = "The `copyBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn copy_buffer_sub_data_with_f64_and_f64_and_i32( + this: &WebGl2RenderingContext, + read_target: u32, + write_target: u32, + read_offset: f64, + write_offset: f64, + size: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData ) ] + #[doc = "The `copyBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn copy_buffer_sub_data_with_i32_and_i32_and_f64( + this: &WebGl2RenderingContext, + read_target: u32, + write_target: u32, + read_offset: i32, + write_offset: i32, + size: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData ) ] + #[doc = "The `copyBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn copy_buffer_sub_data_with_f64_and_i32_and_f64( + this: &WebGl2RenderingContext, + read_target: u32, + write_target: u32, + read_offset: f64, + write_offset: i32, + size: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData ) ] + #[doc = "The `copyBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn copy_buffer_sub_data_with_i32_and_f64_and_f64( + this: &WebGl2RenderingContext, + read_target: u32, + write_target: u32, + read_offset: i32, + write_offset: f64, + size: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = copyBufferSubData ) ] + #[doc = "The `copyBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn copy_buffer_sub_data_with_f64_and_f64_and_f64( + this: &WebGl2RenderingContext, + read_target: u32, + write_target: u32, + read_offset: f64, + write_offset: f64, + size: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = copyTexSubImage3D ) ] + #[doc = "The `copyTexSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyTexSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn copy_tex_sub_image_3d( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + x: i32, + y: i32, + width: i32, + height: i32, + ); + #[cfg(feature = "WebGlQuery")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = createQuery ) ] + #[doc = "The `createQuery()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createQuery)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlQuery`*"] + pub fn create_query(this: &WebGl2RenderingContext) -> Option; + #[cfg(feature = "WebGlSampler")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = createSampler ) ] + #[doc = "The `createSampler()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createSampler)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] + pub fn create_sampler(this: &WebGl2RenderingContext) -> Option; + #[cfg(feature = "WebGlTransformFeedback")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = createTransformFeedback ) ] + #[doc = "The `createTransformFeedback()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createTransformFeedback)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTransformFeedback`*"] + pub fn create_transform_feedback( + this: &WebGl2RenderingContext, + ) -> Option; + #[cfg(feature = "WebGlVertexArrayObject")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = createVertexArray ) ] + #[doc = "The `createVertexArray()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createVertexArray)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlVertexArrayObject`*"] + pub fn create_vertex_array(this: &WebGl2RenderingContext) -> Option; + #[cfg(feature = "WebGlQuery")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteQuery ) ] + #[doc = "The `deleteQuery()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteQuery)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlQuery`*"] + pub fn delete_query(this: &WebGl2RenderingContext, query: Option<&WebGlQuery>); + #[cfg(feature = "WebGlSampler")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteSampler ) ] + #[doc = "The `deleteSampler()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteSampler)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] + pub fn delete_sampler(this: &WebGl2RenderingContext, sampler: Option<&WebGlSampler>); + #[cfg(feature = "WebGlSync")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteSync ) ] + #[doc = "The `deleteSync()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteSync)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] + pub fn delete_sync(this: &WebGl2RenderingContext, sync: Option<&WebGlSync>); + #[cfg(feature = "WebGlTransformFeedback")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteTransformFeedback ) ] + #[doc = "The `deleteTransformFeedback()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteTransformFeedback)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTransformFeedback`*"] + pub fn delete_transform_feedback( + this: &WebGl2RenderingContext, + tf: Option<&WebGlTransformFeedback>, + ); + #[cfg(feature = "WebGlVertexArrayObject")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteVertexArray ) ] + #[doc = "The `deleteVertexArray()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteVertexArray)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlVertexArrayObject`*"] + pub fn delete_vertex_array( + this: &WebGl2RenderingContext, + vertex_array: Option<&WebGlVertexArrayObject>, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = drawArraysInstanced ) ] + #[doc = "The `drawArraysInstanced()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawArraysInstanced)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn draw_arrays_instanced( + this: &WebGl2RenderingContext, + mode: u32, + first: i32, + count: i32, + instance_count: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = drawBuffers ) ] + #[doc = "The `drawBuffers()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawBuffers)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn draw_buffers(this: &WebGl2RenderingContext, buffers: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = drawElementsInstanced ) ] + #[doc = "The `drawElementsInstanced()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn draw_elements_instanced_with_i32( + this: &WebGl2RenderingContext, + mode: u32, + count: i32, + type_: u32, + offset: i32, + instance_count: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = drawElementsInstanced ) ] + #[doc = "The `drawElementsInstanced()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawElementsInstanced)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn draw_elements_instanced_with_f64( + this: &WebGl2RenderingContext, + mode: u32, + count: i32, + type_: u32, + offset: f64, + instance_count: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = drawRangeElements ) ] + #[doc = "The `drawRangeElements()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawRangeElements)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn draw_range_elements_with_i32( + this: &WebGl2RenderingContext, + mode: u32, + start: u32, + end: u32, + count: i32, + type_: u32, + offset: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = drawRangeElements ) ] + #[doc = "The `drawRangeElements()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawRangeElements)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn draw_range_elements_with_f64( + this: &WebGl2RenderingContext, + mode: u32, + start: u32, + end: u32, + count: i32, + type_: u32, + offset: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = endQuery ) ] + #[doc = "The `endQuery()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/endQuery)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn end_query(this: &WebGl2RenderingContext, target: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = endTransformFeedback ) ] + #[doc = "The `endTransformFeedback()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/endTransformFeedback)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn end_transform_feedback(this: &WebGl2RenderingContext); + #[cfg(feature = "WebGlSync")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = fenceSync ) ] + #[doc = "The `fenceSync()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/fenceSync)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] + pub fn fence_sync( + this: &WebGl2RenderingContext, + condition: u32, + flags: u32, + ) -> Option; + #[cfg(feature = "WebGlTexture")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = framebufferTextureLayer ) ] + #[doc = "The `framebufferTextureLayer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/framebufferTextureLayer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTexture`*"] + pub fn framebuffer_texture_layer( + this: &WebGl2RenderingContext, + target: u32, + attachment: u32, + texture: Option<&WebGlTexture>, + level: i32, + layer: i32, + ); + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getActiveUniformBlockName ) ] + #[doc = "The `getActiveUniformBlockName()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn get_active_uniform_block_name( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + uniform_block_index: u32, + ) -> Option; + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getActiveUniformBlockParameter ) ] + #[doc = "The `getActiveUniformBlockParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getActiveUniformBlockParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn get_active_uniform_block_parameter( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + uniform_block_index: u32, + pname: u32, + ) -> Result<::wasm_bindgen::JsValue, JsValue>; + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getActiveUniforms ) ] + #[doc = "The `getActiveUniforms()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getActiveUniforms)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn get_active_uniforms( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + uniform_indices: &::wasm_bindgen::JsValue, + pname: u32, + ) -> ::wasm_bindgen::JsValue; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData ) ] + #[doc = "The `getBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_buffer_sub_data_with_i32_and_array_buffer_view( + this: &WebGl2RenderingContext, + target: u32, + src_byte_offset: i32, + dst_data: &::js_sys::Object, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData ) ] + #[doc = "The `getBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_buffer_sub_data_with_f64_and_array_buffer_view( + this: &WebGl2RenderingContext, + target: u32, + src_byte_offset: f64, + dst_data: &::js_sys::Object, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData ) ] + #[doc = "The `getBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_buffer_sub_data_with_i32_and_u8_array( + this: &WebGl2RenderingContext, + target: u32, + src_byte_offset: i32, + dst_data: &mut [u8], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData ) ] + #[doc = "The `getBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_buffer_sub_data_with_f64_and_u8_array( + this: &WebGl2RenderingContext, + target: u32, + src_byte_offset: f64, + dst_data: &mut [u8], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData ) ] + #[doc = "The `getBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_buffer_sub_data_with_i32_and_array_buffer_view_and_dst_offset( + this: &WebGl2RenderingContext, + target: u32, + src_byte_offset: i32, + dst_data: &::js_sys::Object, + dst_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData ) ] + #[doc = "The `getBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_buffer_sub_data_with_f64_and_array_buffer_view_and_dst_offset( + this: &WebGl2RenderingContext, + target: u32, + src_byte_offset: f64, + dst_data: &::js_sys::Object, + dst_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData ) ] + #[doc = "The `getBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_buffer_sub_data_with_i32_and_u8_array_and_dst_offset( + this: &WebGl2RenderingContext, + target: u32, + src_byte_offset: i32, + dst_data: &mut [u8], + dst_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData ) ] + #[doc = "The `getBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_buffer_sub_data_with_f64_and_u8_array_and_dst_offset( + this: &WebGl2RenderingContext, + target: u32, + src_byte_offset: f64, + dst_data: &mut [u8], + dst_offset: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData ) ] + #[doc = "The `getBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_buffer_sub_data_with_i32_and_array_buffer_view_and_dst_offset_and_length( + this: &WebGl2RenderingContext, + target: u32, + src_byte_offset: i32, + dst_data: &::js_sys::Object, + dst_offset: u32, + length: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData ) ] + #[doc = "The `getBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_buffer_sub_data_with_f64_and_array_buffer_view_and_dst_offset_and_length( + this: &WebGl2RenderingContext, + target: u32, + src_byte_offset: f64, + dst_data: &::js_sys::Object, + dst_offset: u32, + length: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData ) ] + #[doc = "The `getBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_buffer_sub_data_with_i32_and_u8_array_and_dst_offset_and_length( + this: &WebGl2RenderingContext, + target: u32, + src_byte_offset: i32, + dst_data: &mut [u8], + dst_offset: u32, + length: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferSubData ) ] + #[doc = "The `getBufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_buffer_sub_data_with_f64_and_u8_array_and_dst_offset_and_length( + this: &WebGl2RenderingContext, + target: u32, + src_byte_offset: f64, + dst_data: &mut [u8], + dst_offset: u32, + length: u32, + ); + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getFragDataLocation ) ] + #[doc = "The `getFragDataLocation()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getFragDataLocation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn get_frag_data_location( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + name: &str, + ) -> i32; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getIndexedParameter ) ] + #[doc = "The `getIndexedParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getIndexedParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_indexed_parameter( + this: &WebGl2RenderingContext, + target: u32, + index: u32, + ) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getInternalformatParameter ) ] + #[doc = "The `getInternalformatParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getInternalformatParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_internalformat_parameter( + this: &WebGl2RenderingContext, + target: u32, + internalformat: u32, + pname: u32, + ) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getQuery ) ] + #[doc = "The `getQuery()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getQuery)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_query( + this: &WebGl2RenderingContext, + target: u32, + pname: u32, + ) -> ::wasm_bindgen::JsValue; + #[cfg(feature = "WebGlQuery")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getQueryParameter ) ] + #[doc = "The `getQueryParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getQueryParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlQuery`*"] + pub fn get_query_parameter( + this: &WebGl2RenderingContext, + query: &WebGlQuery, + pname: u32, + ) -> ::wasm_bindgen::JsValue; + #[cfg(feature = "WebGlSampler")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getSamplerParameter ) ] + #[doc = "The `getSamplerParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getSamplerParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] + pub fn get_sampler_parameter( + this: &WebGl2RenderingContext, + sampler: &WebGlSampler, + pname: u32, + ) -> ::wasm_bindgen::JsValue; + #[cfg(feature = "WebGlSync")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getSyncParameter ) ] + #[doc = "The `getSyncParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getSyncParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] + pub fn get_sync_parameter( + this: &WebGl2RenderingContext, + sync: &WebGlSync, + pname: u32, + ) -> ::wasm_bindgen::JsValue; + #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getTransformFeedbackVarying ) ] + #[doc = "The `getTransformFeedbackVarying()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getTransformFeedbackVarying)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlActiveInfo`, `WebGlProgram`*"] + pub fn get_transform_feedback_varying( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + index: u32, + ) -> Option; + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getUniformBlockIndex ) ] + #[doc = "The `getUniformBlockIndex()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getUniformBlockIndex)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn get_uniform_block_index( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + uniform_block_name: &str, + ) -> u32; + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getUniformIndices ) ] + #[doc = "The `getUniformIndices()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getUniformIndices)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn get_uniform_indices( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + uniform_names: &::wasm_bindgen::JsValue, + ) -> Option<::js_sys::Array>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = invalidateFramebuffer ) ] + #[doc = "The `invalidateFramebuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/invalidateFramebuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn invalidate_framebuffer( + this: &WebGl2RenderingContext, + target: u32, + attachments: &::wasm_bindgen::JsValue, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = invalidateSubFramebuffer ) ] + #[doc = "The `invalidateSubFramebuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/invalidateSubFramebuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn invalidate_sub_framebuffer( + this: &WebGl2RenderingContext, + target: u32, + attachments: &::wasm_bindgen::JsValue, + x: i32, + y: i32, + width: i32, + height: i32, + ) -> Result<(), JsValue>; + #[cfg(feature = "WebGlQuery")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = isQuery ) ] + #[doc = "The `isQuery()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isQuery)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlQuery`*"] + pub fn is_query(this: &WebGl2RenderingContext, query: Option<&WebGlQuery>) -> bool; + #[cfg(feature = "WebGlSampler")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = isSampler ) ] + #[doc = "The `isSampler()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isSampler)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] + pub fn is_sampler(this: &WebGl2RenderingContext, sampler: Option<&WebGlSampler>) -> bool; + #[cfg(feature = "WebGlSync")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = isSync ) ] + #[doc = "The `isSync()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isSync)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] + pub fn is_sync(this: &WebGl2RenderingContext, sync: Option<&WebGlSync>) -> bool; + #[cfg(feature = "WebGlTransformFeedback")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = isTransformFeedback ) ] + #[doc = "The `isTransformFeedback()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isTransformFeedback)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTransformFeedback`*"] + pub fn is_transform_feedback( + this: &WebGl2RenderingContext, + tf: Option<&WebGlTransformFeedback>, + ) -> bool; + #[cfg(feature = "WebGlVertexArrayObject")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = isVertexArray ) ] + #[doc = "The `isVertexArray()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isVertexArray)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlVertexArrayObject`*"] + pub fn is_vertex_array( + this: &WebGl2RenderingContext, + vertex_array: Option<&WebGlVertexArrayObject>, + ) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = pauseTransformFeedback ) ] + #[doc = "The `pauseTransformFeedback()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/pauseTransformFeedback)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn pause_transform_feedback(this: &WebGl2RenderingContext); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = readBuffer ) ] + #[doc = "The `readBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn read_buffer(this: &WebGl2RenderingContext, src: u32); + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels ) ] + #[doc = "The `readPixels()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn read_pixels_with_opt_array_buffer_view( + this: &WebGl2RenderingContext, + x: i32, + y: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + dst_data: Option<&::js_sys::Object>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels ) ] + #[doc = "The `readPixels()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn read_pixels_with_opt_u8_array( + this: &WebGl2RenderingContext, + x: i32, + y: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + dst_data: Option<&mut [u8]>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels ) ] + #[doc = "The `readPixels()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn read_pixels_with_i32( + this: &WebGl2RenderingContext, + x: i32, + y: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + offset: i32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels ) ] + #[doc = "The `readPixels()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn read_pixels_with_f64( + this: &WebGl2RenderingContext, + x: i32, + y: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + offset: f64, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels ) ] + #[doc = "The `readPixels()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn read_pixels_with_array_buffer_view_and_dst_offset( + this: &WebGl2RenderingContext, + x: i32, + y: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + dst_data: &::js_sys::Object, + dst_offset: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = readPixels ) ] + #[doc = "The `readPixels()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/readPixels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn read_pixels_with_u8_array_and_dst_offset( + this: &WebGl2RenderingContext, + x: i32, + y: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + dst_data: &mut [u8], + dst_offset: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = renderbufferStorageMultisample ) ] + #[doc = "The `renderbufferStorageMultisample()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/renderbufferStorageMultisample)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn renderbuffer_storage_multisample( + this: &WebGl2RenderingContext, + target: u32, + samples: i32, + internalformat: u32, + width: i32, + height: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = resumeTransformFeedback ) ] + #[doc = "The `resumeTransformFeedback()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/resumeTransformFeedback)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn resume_transform_feedback(this: &WebGl2RenderingContext); + #[cfg(feature = "WebGlSampler")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = samplerParameterf ) ] + #[doc = "The `samplerParameterf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/samplerParameterf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] + pub fn sampler_parameterf( + this: &WebGl2RenderingContext, + sampler: &WebGlSampler, + pname: u32, + param: f32, + ); + #[cfg(feature = "WebGlSampler")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = samplerParameteri ) ] + #[doc = "The `samplerParameteri()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/samplerParameteri)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSampler`*"] + pub fn sampler_parameteri( + this: &WebGl2RenderingContext, + sampler: &WebGlSampler, + pname: u32, + param: i32, + ); + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_array_buffer_view( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + border: i32, + format: u32, + type_: u32, + pixels: Option<&::js_sys::Object>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_u8_array( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + border: i32, + format: u32, + type_: u32, + pixels: Option<&[u8]>, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlCanvasElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGl2RenderingContext`*"] + pub fn tex_image_2d_with_u32_and_u32_and_html_canvas_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + format: u32, + type_: u32, + source: &HtmlCanvasElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGl2RenderingContext`*"] + pub fn tex_image_2d_with_u32_and_u32_and_html_image_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + format: u32, + type_: u32, + source: &HtmlImageElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlVideoElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGl2RenderingContext`*"] + pub fn tex_image_2d_with_u32_and_u32_and_html_video_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + format: u32, + type_: u32, + source: &HtmlVideoElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGl2RenderingContext`*"] + pub fn tex_image_2d_with_u32_and_u32_and_image_bitmap( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + format: u32, + type_: u32, + source: &ImageBitmap, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGl2RenderingContext`*"] + pub fn tex_image_2d_with_u32_and_u32_and_image_data( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + format: u32, + type_: u32, + source: &ImageData, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_i32( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + border: i32, + format: u32, + type_: u32, + pbo_offset: i32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_f64( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + border: i32, + format: u32, + type_: u32, + pbo_offset: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlCanvasElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGl2RenderingContext`*"] + pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_html_canvas_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + border: i32, + format: u32, + type_: u32, + source: &HtmlCanvasElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGl2RenderingContext`*"] + pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_html_image_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + border: i32, + format: u32, + type_: u32, + source: &HtmlImageElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlVideoElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGl2RenderingContext`*"] + pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_html_video_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + border: i32, + format: u32, + type_: u32, + source: &HtmlVideoElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGl2RenderingContext`*"] + pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_image_bitmap( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + border: i32, + format: u32, + type_: u32, + source: &ImageBitmap, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGl2RenderingContext`*"] + pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_image_data( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + border: i32, + format: u32, + type_: u32, + source: &ImageData, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_array_buffer_view_and_src_offset( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + border: i32, + format: u32, + type_: u32, + src_data: &::js_sys::Object, + src_offset: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_u8_array_and_src_offset( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + border: i32, + format: u32, + type_: u32, + src_data: &[u8], + src_offset: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D ) ] + #[doc = "The `texImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_image_3d_with_i32( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + depth: i32, + border: i32, + format: u32, + type_: u32, + pbo_offset: i32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D ) ] + #[doc = "The `texImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_image_3d_with_f64( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + depth: i32, + border: i32, + format: u32, + type_: u32, + pbo_offset: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlCanvasElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D ) ] + #[doc = "The `texImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGl2RenderingContext`*"] + pub fn tex_image_3d_with_html_canvas_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + depth: i32, + border: i32, + format: u32, + type_: u32, + source: &HtmlCanvasElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D ) ] + #[doc = "The `texImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGl2RenderingContext`*"] + pub fn tex_image_3d_with_html_image_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + depth: i32, + border: i32, + format: u32, + type_: u32, + source: &HtmlImageElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlVideoElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D ) ] + #[doc = "The `texImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGl2RenderingContext`*"] + pub fn tex_image_3d_with_html_video_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + depth: i32, + border: i32, + format: u32, + type_: u32, + source: &HtmlVideoElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D ) ] + #[doc = "The `texImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGl2RenderingContext`*"] + pub fn tex_image_3d_with_image_bitmap( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + depth: i32, + border: i32, + format: u32, + type_: u32, + source: &ImageBitmap, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D ) ] + #[doc = "The `texImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGl2RenderingContext`*"] + pub fn tex_image_3d_with_image_data( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + depth: i32, + border: i32, + format: u32, + type_: u32, + source: &ImageData, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D ) ] + #[doc = "The `texImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_image_3d_with_opt_array_buffer_view( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + depth: i32, + border: i32, + format: u32, + type_: u32, + src_data: Option<&::js_sys::Object>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D ) ] + #[doc = "The `texImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_image_3d_with_opt_u8_array( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + depth: i32, + border: i32, + format: u32, + type_: u32, + src_data: Option<&[u8]>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D ) ] + #[doc = "The `texImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_image_3d_with_array_buffer_view_and_src_offset( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + depth: i32, + border: i32, + format: u32, + type_: u32, + src_data: &::js_sys::Object, + src_offset: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texImage3D ) ] + #[doc = "The `texImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_image_3d_with_u8_array_and_src_offset( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + depth: i32, + border: i32, + format: u32, + type_: u32, + src_data: &[u8], + src_offset: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = texStorage2D ) ] + #[doc = "The `texStorage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texStorage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_storage_2d( + this: &WebGl2RenderingContext, + target: u32, + levels: i32, + internalformat: u32, + width: i32, + height: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = texStorage3D ) ] + #[doc = "The `texStorage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texStorage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_storage_3d( + this: &WebGl2RenderingContext, + target: u32, + levels: i32, + internalformat: u32, + width: i32, + height: i32, + depth: i32, + ); + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_array_buffer_view( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + pixels: Option<&::js_sys::Object>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_u8_array( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + pixels: Option<&[u8]>, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlCanvasElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGl2RenderingContext`*"] + pub fn tex_sub_image_2d_with_u32_and_u32_and_html_canvas_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + format: u32, + type_: u32, + source: &HtmlCanvasElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGl2RenderingContext`*"] + pub fn tex_sub_image_2d_with_u32_and_u32_and_html_image_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + format: u32, + type_: u32, + source: &HtmlImageElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlVideoElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGl2RenderingContext`*"] + pub fn tex_sub_image_2d_with_u32_and_u32_and_html_video_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + format: u32, + type_: u32, + source: &HtmlVideoElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGl2RenderingContext`*"] + pub fn tex_sub_image_2d_with_u32_and_u32_and_image_bitmap( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + format: u32, + type_: u32, + source: &ImageBitmap, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGl2RenderingContext`*"] + pub fn tex_sub_image_2d_with_u32_and_u32_and_image_data( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + format: u32, + type_: u32, + source: &ImageData, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_i32( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + pbo_offset: i32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_f64( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + pbo_offset: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlCanvasElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGl2RenderingContext`*"] + pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_html_canvas_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + source: &HtmlCanvasElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGl2RenderingContext`*"] + pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_html_image_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + source: &HtmlImageElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlVideoElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGl2RenderingContext`*"] + pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_html_video_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + source: &HtmlVideoElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGl2RenderingContext`*"] + pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_image_bitmap( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + source: &ImageBitmap, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGl2RenderingContext`*"] + pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_image_data( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + source: &ImageData, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_array_buffer_view_and_src_offset( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + src_data: &::js_sys::Object, + src_offset: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_u8_array_and_src_offset( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + src_data: &[u8], + src_offset: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D ) ] + #[doc = "The `texSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_sub_image_3d_with_i32( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + type_: u32, + pbo_offset: i32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D ) ] + #[doc = "The `texSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_sub_image_3d_with_f64( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + type_: u32, + pbo_offset: f64, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlCanvasElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D ) ] + #[doc = "The `texSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGl2RenderingContext`*"] + pub fn tex_sub_image_3d_with_html_canvas_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + type_: u32, + source: &HtmlCanvasElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D ) ] + #[doc = "The `texSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGl2RenderingContext`*"] + pub fn tex_sub_image_3d_with_html_image_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + type_: u32, + source: &HtmlImageElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlVideoElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D ) ] + #[doc = "The `texSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGl2RenderingContext`*"] + pub fn tex_sub_image_3d_with_html_video_element( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + type_: u32, + source: &HtmlVideoElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D ) ] + #[doc = "The `texSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGl2RenderingContext`*"] + pub fn tex_sub_image_3d_with_image_bitmap( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + type_: u32, + source: &ImageBitmap, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D ) ] + #[doc = "The `texSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGl2RenderingContext`*"] + pub fn tex_sub_image_3d_with_image_data( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + type_: u32, + source: &ImageData, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D ) ] + #[doc = "The `texSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_sub_image_3d_with_opt_array_buffer_view( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + type_: u32, + src_data: Option<&::js_sys::Object>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D ) ] + #[doc = "The `texSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_sub_image_3d_with_opt_u8_array( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + type_: u32, + src_data: Option<&[u8]>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D ) ] + #[doc = "The `texSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_sub_image_3d_with_opt_array_buffer_view_and_src_offset( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + type_: u32, + src_data: Option<&::js_sys::Object>, + src_offset: u32, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = texSubImage3D ) ] + #[doc = "The `texSubImage3D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texSubImage3D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_sub_image_3d_with_opt_u8_array_and_src_offset( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + zoffset: i32, + width: i32, + height: i32, + depth: i32, + format: u32, + type_: u32, + src_data: Option<&[u8]>, + src_offset: u32, + ) -> Result<(), JsValue>; + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = transformFeedbackVaryings ) ] + #[doc = "The `transformFeedbackVaryings()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/transformFeedbackVaryings)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn transform_feedback_varyings( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + varyings: &::wasm_bindgen::JsValue, + buffer_mode: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv ) ] + #[doc = "The `uniform1fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1fv_with_f32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv ) ] + #[doc = "The `uniform1fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1fv_with_f32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv ) ] + #[doc = "The `uniform1fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1fv_with_f32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[f32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv ) ] + #[doc = "The `uniform1fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1fv_with_f32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv ) ] + #[doc = "The `uniform1fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1fv_with_f32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[f32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1fv ) ] + #[doc = "The `uniform1fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1fv_with_f32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv ) ] + #[doc = "The `uniform1iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1iv_with_i32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[i32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv ) ] + #[doc = "The `uniform1iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1iv_with_i32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv ) ] + #[doc = "The `uniform1iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1iv_with_i32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[i32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv ) ] + #[doc = "The `uniform1iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1iv_with_i32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv ) ] + #[doc = "The `uniform1iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1iv_with_i32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[i32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1iv ) ] + #[doc = "The `uniform1iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1iv_with_i32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1ui ) ] + #[doc = "The `uniform1ui()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1ui)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1ui( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + v0: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv ) ] + #[doc = "The `uniform1uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1uiv_with_u32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[u32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv ) ] + #[doc = "The `uniform1uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1uiv_with_u32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv ) ] + #[doc = "The `uniform1uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1uiv_with_u32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[u32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv ) ] + #[doc = "The `uniform1uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1uiv_with_u32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv ) ] + #[doc = "The `uniform1uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1uiv_with_u32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[u32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1uiv ) ] + #[doc = "The `uniform1uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1uiv_with_u32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv ) ] + #[doc = "The `uniform2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2fv_with_f32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv ) ] + #[doc = "The `uniform2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2fv_with_f32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv ) ] + #[doc = "The `uniform2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2fv_with_f32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[f32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv ) ] + #[doc = "The `uniform2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2fv_with_f32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv ) ] + #[doc = "The `uniform2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2fv_with_f32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[f32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2fv ) ] + #[doc = "The `uniform2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2fv_with_f32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv ) ] + #[doc = "The `uniform2iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2iv_with_i32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[i32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv ) ] + #[doc = "The `uniform2iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2iv_with_i32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv ) ] + #[doc = "The `uniform2iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2iv_with_i32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[i32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv ) ] + #[doc = "The `uniform2iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2iv_with_i32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv ) ] + #[doc = "The `uniform2iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2iv_with_i32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[i32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2iv ) ] + #[doc = "The `uniform2iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2iv_with_i32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2ui ) ] + #[doc = "The `uniform2ui()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2ui)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2ui( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + v0: u32, + v1: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv ) ] + #[doc = "The `uniform2uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2uiv_with_u32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[u32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv ) ] + #[doc = "The `uniform2uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2uiv_with_u32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv ) ] + #[doc = "The `uniform2uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2uiv_with_u32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[u32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv ) ] + #[doc = "The `uniform2uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2uiv_with_u32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv ) ] + #[doc = "The `uniform2uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2uiv_with_u32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[u32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2uiv ) ] + #[doc = "The `uniform2uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2uiv_with_u32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv ) ] + #[doc = "The `uniform3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3fv_with_f32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv ) ] + #[doc = "The `uniform3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3fv_with_f32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv ) ] + #[doc = "The `uniform3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3fv_with_f32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[f32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv ) ] + #[doc = "The `uniform3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3fv_with_f32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv ) ] + #[doc = "The `uniform3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3fv_with_f32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[f32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3fv ) ] + #[doc = "The `uniform3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3fv_with_f32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv ) ] + #[doc = "The `uniform3iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3iv_with_i32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[i32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv ) ] + #[doc = "The `uniform3iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3iv_with_i32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv ) ] + #[doc = "The `uniform3iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3iv_with_i32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[i32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv ) ] + #[doc = "The `uniform3iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3iv_with_i32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv ) ] + #[doc = "The `uniform3iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3iv_with_i32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[i32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3iv ) ] + #[doc = "The `uniform3iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3iv_with_i32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3ui ) ] + #[doc = "The `uniform3ui()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3ui)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3ui( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + v0: u32, + v1: u32, + v2: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv ) ] + #[doc = "The `uniform3uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3uiv_with_u32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[u32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv ) ] + #[doc = "The `uniform3uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3uiv_with_u32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv ) ] + #[doc = "The `uniform3uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3uiv_with_u32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[u32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv ) ] + #[doc = "The `uniform3uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3uiv_with_u32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv ) ] + #[doc = "The `uniform3uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3uiv_with_u32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[u32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3uiv ) ] + #[doc = "The `uniform3uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3uiv_with_u32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv ) ] + #[doc = "The `uniform4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4fv_with_f32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv ) ] + #[doc = "The `uniform4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4fv_with_f32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv ) ] + #[doc = "The `uniform4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4fv_with_f32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[f32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv ) ] + #[doc = "The `uniform4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4fv_with_f32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv ) ] + #[doc = "The `uniform4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4fv_with_f32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[f32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4fv ) ] + #[doc = "The `uniform4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4fv_with_f32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv ) ] + #[doc = "The `uniform4iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4iv_with_i32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[i32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv ) ] + #[doc = "The `uniform4iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4iv_with_i32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv ) ] + #[doc = "The `uniform4iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4iv_with_i32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[i32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv ) ] + #[doc = "The `uniform4iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4iv_with_i32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv ) ] + #[doc = "The `uniform4iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4iv_with_i32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[i32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4iv ) ] + #[doc = "The `uniform4iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4iv_with_i32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4ui ) ] + #[doc = "The `uniform4ui()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4ui)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4ui( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + v0: u32, + v1: u32, + v2: u32, + v3: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv ) ] + #[doc = "The `uniform4uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4uiv_with_u32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[u32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv ) ] + #[doc = "The `uniform4uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4uiv_with_u32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv ) ] + #[doc = "The `uniform4uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4uiv_with_u32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[u32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv ) ] + #[doc = "The `uniform4uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4uiv_with_u32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv ) ] + #[doc = "The `uniform4uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4uiv_with_u32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[u32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4uiv ) ] + #[doc = "The `uniform4uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4uiv_with_u32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformBlockBinding ) ] + #[doc = "The `uniformBlockBinding()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformBlockBinding)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn uniform_block_binding( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + uniform_block_index: u32, + uniform_block_binding: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv ) ] + #[doc = "The `uniformMatrix2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2fv_with_f32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv ) ] + #[doc = "The `uniformMatrix2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2fv_with_f32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv ) ] + #[doc = "The `uniformMatrix2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2fv_with_f32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv ) ] + #[doc = "The `uniformMatrix2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2fv_with_f32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv ) ] + #[doc = "The `uniformMatrix2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2fv_with_f32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2fv ) ] + #[doc = "The `uniformMatrix2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2fv_with_f32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv ) ] + #[doc = "The `uniformMatrix2x3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2x3fv_with_f32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv ) ] + #[doc = "The `uniformMatrix2x3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2x3fv_with_f32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv ) ] + #[doc = "The `uniformMatrix2x3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2x3fv_with_f32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv ) ] + #[doc = "The `uniformMatrix2x3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2x3fv_with_f32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv ) ] + #[doc = "The `uniformMatrix2x3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2x3fv_with_f32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x3fv ) ] + #[doc = "The `uniformMatrix2x3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2x3fv_with_f32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv ) ] + #[doc = "The `uniformMatrix2x4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2x4fv_with_f32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv ) ] + #[doc = "The `uniformMatrix2x4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2x4fv_with_f32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv ) ] + #[doc = "The `uniformMatrix2x4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2x4fv_with_f32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv ) ] + #[doc = "The `uniformMatrix2x4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2x4fv_with_f32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv ) ] + #[doc = "The `uniformMatrix2x4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2x4fv_with_f32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix2x4fv ) ] + #[doc = "The `uniformMatrix2x4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix2x4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2x4fv_with_f32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv ) ] + #[doc = "The `uniformMatrix3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3fv_with_f32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv ) ] + #[doc = "The `uniformMatrix3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3fv_with_f32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv ) ] + #[doc = "The `uniformMatrix3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3fv_with_f32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv ) ] + #[doc = "The `uniformMatrix3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3fv_with_f32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv ) ] + #[doc = "The `uniformMatrix3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3fv_with_f32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3fv ) ] + #[doc = "The `uniformMatrix3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3fv_with_f32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv ) ] + #[doc = "The `uniformMatrix3x2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3x2fv_with_f32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv ) ] + #[doc = "The `uniformMatrix3x2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3x2fv_with_f32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv ) ] + #[doc = "The `uniformMatrix3x2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3x2fv_with_f32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv ) ] + #[doc = "The `uniformMatrix3x2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3x2fv_with_f32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv ) ] + #[doc = "The `uniformMatrix3x2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3x2fv_with_f32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x2fv ) ] + #[doc = "The `uniformMatrix3x2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3x2fv_with_f32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv ) ] + #[doc = "The `uniformMatrix3x4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3x4fv_with_f32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv ) ] + #[doc = "The `uniformMatrix3x4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3x4fv_with_f32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv ) ] + #[doc = "The `uniformMatrix3x4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3x4fv_with_f32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv ) ] + #[doc = "The `uniformMatrix3x4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3x4fv_with_f32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv ) ] + #[doc = "The `uniformMatrix3x4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3x4fv_with_f32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix3x4fv ) ] + #[doc = "The `uniformMatrix3x4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix3x4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3x4fv_with_f32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv ) ] + #[doc = "The `uniformMatrix4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4fv_with_f32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv ) ] + #[doc = "The `uniformMatrix4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4fv_with_f32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv ) ] + #[doc = "The `uniformMatrix4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4fv_with_f32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv ) ] + #[doc = "The `uniformMatrix4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4fv_with_f32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv ) ] + #[doc = "The `uniformMatrix4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4fv_with_f32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4fv ) ] + #[doc = "The `uniformMatrix4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4fv_with_f32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv ) ] + #[doc = "The `uniformMatrix4x2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4x2fv_with_f32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv ) ] + #[doc = "The `uniformMatrix4x2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4x2fv_with_f32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv ) ] + #[doc = "The `uniformMatrix4x2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4x2fv_with_f32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv ) ] + #[doc = "The `uniformMatrix4x2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4x2fv_with_f32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv ) ] + #[doc = "The `uniformMatrix4x2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4x2fv_with_f32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x2fv ) ] + #[doc = "The `uniformMatrix4x2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4x2fv_with_f32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv ) ] + #[doc = "The `uniformMatrix4x3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4x3fv_with_f32_array( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv ) ] + #[doc = "The `uniformMatrix4x3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4x3fv_with_f32_sequence( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv ) ] + #[doc = "The `uniformMatrix4x3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4x3fv_with_f32_array_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv ) ] + #[doc = "The `uniformMatrix4x3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4x3fv_with_f32_sequence_and_src_offset( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv ) ] + #[doc = "The `uniformMatrix4x3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4x3fv_with_f32_array_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + src_offset: u32, + src_length: u32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniformMatrix4x3fv ) ] + #[doc = "The `uniformMatrix4x3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniformMatrix4x3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4x3fv_with_f32_sequence_and_src_offset_and_src_length( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + src_offset: u32, + src_length: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribDivisor ) ] + #[doc = "The `vertexAttribDivisor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribDivisor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib_divisor(this: &WebGl2RenderingContext, index: u32, divisor: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4i ) ] + #[doc = "The `vertexAttribI4i()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4i)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib_i4i( + this: &WebGl2RenderingContext, + index: u32, + x: i32, + y: i32, + z: i32, + w: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4iv ) ] + #[doc = "The `vertexAttribI4iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib_i4iv_with_i32_array( + this: &WebGl2RenderingContext, + index: u32, + values: &mut [i32], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4iv ) ] + #[doc = "The `vertexAttribI4iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib_i4iv_with_i32_sequence( + this: &WebGl2RenderingContext, + index: u32, + values: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4ui ) ] + #[doc = "The `vertexAttribI4ui()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4ui)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib_i4ui( + this: &WebGl2RenderingContext, + index: u32, + x: u32, + y: u32, + z: u32, + w: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4uiv ) ] + #[doc = "The `vertexAttribI4uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib_i4uiv_with_u32_array( + this: &WebGl2RenderingContext, + index: u32, + values: &mut [u32], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribI4uiv ) ] + #[doc = "The `vertexAttribI4uiv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribI4uiv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib_i4uiv_with_u32_sequence( + this: &WebGl2RenderingContext, + index: u32, + values: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribIPointer ) ] + #[doc = "The `vertexAttribIPointer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib_i_pointer_with_i32( + this: &WebGl2RenderingContext, + index: u32, + size: i32, + type_: u32, + stride: i32, + offset: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribIPointer ) ] + #[doc = "The `vertexAttribIPointer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribIPointer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib_i_pointer_with_f64( + this: &WebGl2RenderingContext, + index: u32, + size: i32, + type_: u32, + stride: i32, + offset: f64, + ); + #[cfg(feature = "WebGlSync")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = waitSync ) ] + #[doc = "The `waitSync()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/waitSync)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] + pub fn wait_sync_with_i32( + this: &WebGl2RenderingContext, + sync: &WebGlSync, + flags: u32, + timeout: i32, + ); + #[cfg(feature = "WebGlSync")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = waitSync ) ] + #[doc = "The `waitSync()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/waitSync)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlSync`*"] + pub fn wait_sync_with_f64( + this: &WebGl2RenderingContext, + sync: &WebGlSync, + flags: u32, + timeout: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = activeTexture ) ] + #[doc = "The `activeTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/activeTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn active_texture(this: &WebGl2RenderingContext, texture: u32); + #[cfg(all(feature = "WebGlProgram", feature = "WebGlShader",))] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = attachShader ) ] + #[doc = "The `attachShader()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/attachShader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`, `WebGlShader`*"] + pub fn attach_shader( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + shader: &WebGlShader, + ); + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bindAttribLocation ) ] + #[doc = "The `bindAttribLocation()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindAttribLocation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn bind_attrib_location( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + index: u32, + name: &str, + ); + #[cfg(feature = "WebGlBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bindBuffer ) ] + #[doc = "The `bindBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] + pub fn bind_buffer(this: &WebGl2RenderingContext, target: u32, buffer: Option<&WebGlBuffer>); + #[cfg(feature = "WebGlFramebuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bindFramebuffer ) ] + #[doc = "The `bindFramebuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindFramebuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlFramebuffer`*"] + pub fn bind_framebuffer( + this: &WebGl2RenderingContext, + target: u32, + framebuffer: Option<&WebGlFramebuffer>, + ); + #[cfg(feature = "WebGlRenderbuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bindRenderbuffer ) ] + #[doc = "The `bindRenderbuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindRenderbuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlRenderbuffer`*"] + pub fn bind_renderbuffer( + this: &WebGl2RenderingContext, + target: u32, + renderbuffer: Option<&WebGlRenderbuffer>, + ); + #[cfg(feature = "WebGlTexture")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = bindTexture ) ] + #[doc = "The `bindTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/bindTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTexture`*"] + pub fn bind_texture(this: &WebGl2RenderingContext, target: u32, texture: Option<&WebGlTexture>); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = blendColor ) ] + #[doc = "The `blendColor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blendColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn blend_color(this: &WebGl2RenderingContext, red: f32, green: f32, blue: f32, alpha: f32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = blendEquation ) ] + #[doc = "The `blendEquation()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blendEquation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn blend_equation(this: &WebGl2RenderingContext, mode: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = blendEquationSeparate ) ] + #[doc = "The `blendEquationSeparate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blendEquationSeparate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn blend_equation_separate(this: &WebGl2RenderingContext, mode_rgb: u32, mode_alpha: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = blendFunc ) ] + #[doc = "The `blendFunc()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blendFunc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn blend_func(this: &WebGl2RenderingContext, sfactor: u32, dfactor: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = blendFuncSeparate ) ] + #[doc = "The `blendFuncSeparate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/blendFuncSeparate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn blend_func_separate( + this: &WebGl2RenderingContext, + src_rgb: u32, + dst_rgb: u32, + src_alpha: u32, + dst_alpha: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = checkFramebufferStatus ) ] + #[doc = "The `checkFramebufferStatus()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/checkFramebufferStatus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn check_framebuffer_status(this: &WebGl2RenderingContext, target: u32) -> u32; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clear ) ] + #[doc = "The `clear()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn clear(this: &WebGl2RenderingContext, mask: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clearColor ) ] + #[doc = "The `clearColor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn clear_color(this: &WebGl2RenderingContext, red: f32, green: f32, blue: f32, alpha: f32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clearDepth ) ] + #[doc = "The `clearDepth()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearDepth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn clear_depth(this: &WebGl2RenderingContext, depth: f32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = clearStencil ) ] + #[doc = "The `clearStencil()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/clearStencil)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn clear_stencil(this: &WebGl2RenderingContext, s: i32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = colorMask ) ] + #[doc = "The `colorMask()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/colorMask)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn color_mask( + this: &WebGl2RenderingContext, + red: bool, + green: bool, + blue: bool, + alpha: bool, + ); + #[cfg(feature = "WebGlShader")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = compileShader ) ] + #[doc = "The `compileShader()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/compileShader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] + pub fn compile_shader(this: &WebGl2RenderingContext, shader: &WebGlShader); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = copyTexImage2D ) ] + #[doc = "The `copyTexImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyTexImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn copy_tex_image_2d( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + internalformat: u32, + x: i32, + y: i32, + width: i32, + height: i32, + border: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = copyTexSubImage2D ) ] + #[doc = "The `copyTexSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/copyTexSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn copy_tex_sub_image_2d( + this: &WebGl2RenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + x: i32, + y: i32, + width: i32, + height: i32, + ); + #[cfg(feature = "WebGlBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = createBuffer ) ] + #[doc = "The `createBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] + pub fn create_buffer(this: &WebGl2RenderingContext) -> Option; + #[cfg(feature = "WebGlFramebuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = createFramebuffer ) ] + #[doc = "The `createFramebuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createFramebuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlFramebuffer`*"] + pub fn create_framebuffer(this: &WebGl2RenderingContext) -> Option; + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = createProgram ) ] + #[doc = "The `createProgram()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createProgram)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn create_program(this: &WebGl2RenderingContext) -> Option; + #[cfg(feature = "WebGlRenderbuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = createRenderbuffer ) ] + #[doc = "The `createRenderbuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createRenderbuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlRenderbuffer`*"] + pub fn create_renderbuffer(this: &WebGl2RenderingContext) -> Option; + #[cfg(feature = "WebGlShader")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = createShader ) ] + #[doc = "The `createShader()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createShader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] + pub fn create_shader(this: &WebGl2RenderingContext, type_: u32) -> Option; + #[cfg(feature = "WebGlTexture")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = createTexture ) ] + #[doc = "The `createTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/createTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTexture`*"] + pub fn create_texture(this: &WebGl2RenderingContext) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = cullFace ) ] + #[doc = "The `cullFace()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/cullFace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn cull_face(this: &WebGl2RenderingContext, mode: u32); + #[cfg(feature = "WebGlBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteBuffer ) ] + #[doc = "The `deleteBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] + pub fn delete_buffer(this: &WebGl2RenderingContext, buffer: Option<&WebGlBuffer>); + #[cfg(feature = "WebGlFramebuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteFramebuffer ) ] + #[doc = "The `deleteFramebuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteFramebuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlFramebuffer`*"] + pub fn delete_framebuffer( + this: &WebGl2RenderingContext, + framebuffer: Option<&WebGlFramebuffer>, + ); + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteProgram ) ] + #[doc = "The `deleteProgram()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteProgram)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn delete_program(this: &WebGl2RenderingContext, program: Option<&WebGlProgram>); + #[cfg(feature = "WebGlRenderbuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteRenderbuffer ) ] + #[doc = "The `deleteRenderbuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteRenderbuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlRenderbuffer`*"] + pub fn delete_renderbuffer( + this: &WebGl2RenderingContext, + renderbuffer: Option<&WebGlRenderbuffer>, + ); + #[cfg(feature = "WebGlShader")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteShader ) ] + #[doc = "The `deleteShader()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteShader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] + pub fn delete_shader(this: &WebGl2RenderingContext, shader: Option<&WebGlShader>); + #[cfg(feature = "WebGlTexture")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = deleteTexture ) ] + #[doc = "The `deleteTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/deleteTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTexture`*"] + pub fn delete_texture(this: &WebGl2RenderingContext, texture: Option<&WebGlTexture>); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = depthFunc ) ] + #[doc = "The `depthFunc()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/depthFunc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn depth_func(this: &WebGl2RenderingContext, func: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = depthMask ) ] + #[doc = "The `depthMask()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/depthMask)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn depth_mask(this: &WebGl2RenderingContext, flag: bool); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = depthRange ) ] + #[doc = "The `depthRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/depthRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn depth_range(this: &WebGl2RenderingContext, z_near: f32, z_far: f32); + #[cfg(all(feature = "WebGlProgram", feature = "WebGlShader",))] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = detachShader ) ] + #[doc = "The `detachShader()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/detachShader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`, `WebGlShader`*"] + pub fn detach_shader( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + shader: &WebGlShader, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = disable ) ] + #[doc = "The `disable()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/disable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn disable(this: &WebGl2RenderingContext, cap: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = disableVertexAttribArray ) ] + #[doc = "The `disableVertexAttribArray()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/disableVertexAttribArray)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn disable_vertex_attrib_array(this: &WebGl2RenderingContext, index: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = drawArrays ) ] + #[doc = "The `drawArrays()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawArrays)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn draw_arrays(this: &WebGl2RenderingContext, mode: u32, first: i32, count: i32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = drawElements ) ] + #[doc = "The `drawElements()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawElements)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn draw_elements_with_i32( + this: &WebGl2RenderingContext, + mode: u32, + count: i32, + type_: u32, + offset: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = drawElements ) ] + #[doc = "The `drawElements()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/drawElements)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn draw_elements_with_f64( + this: &WebGl2RenderingContext, + mode: u32, + count: i32, + type_: u32, + offset: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = enable ) ] + #[doc = "The `enable()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/enable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn enable(this: &WebGl2RenderingContext, cap: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = enableVertexAttribArray ) ] + #[doc = "The `enableVertexAttribArray()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/enableVertexAttribArray)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn enable_vertex_attrib_array(this: &WebGl2RenderingContext, index: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = finish ) ] + #[doc = "The `finish()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/finish)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn finish(this: &WebGl2RenderingContext); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = flush ) ] + #[doc = "The `flush()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/flush)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn flush(this: &WebGl2RenderingContext); + #[cfg(feature = "WebGlRenderbuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = framebufferRenderbuffer ) ] + #[doc = "The `framebufferRenderbuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/framebufferRenderbuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlRenderbuffer`*"] + pub fn framebuffer_renderbuffer( + this: &WebGl2RenderingContext, + target: u32, + attachment: u32, + renderbuffertarget: u32, + renderbuffer: Option<&WebGlRenderbuffer>, + ); + #[cfg(feature = "WebGlTexture")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = framebufferTexture2D ) ] + #[doc = "The `framebufferTexture2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/framebufferTexture2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTexture`*"] + pub fn framebuffer_texture_2d( + this: &WebGl2RenderingContext, + target: u32, + attachment: u32, + textarget: u32, + texture: Option<&WebGlTexture>, + level: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = frontFace ) ] + #[doc = "The `frontFace()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/frontFace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn front_face(this: &WebGl2RenderingContext, mode: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = generateMipmap ) ] + #[doc = "The `generateMipmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/generateMipmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn generate_mipmap(this: &WebGl2RenderingContext, target: u32); + #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getActiveAttrib ) ] + #[doc = "The `getActiveAttrib()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getActiveAttrib)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlActiveInfo`, `WebGlProgram`*"] + pub fn get_active_attrib( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + index: u32, + ) -> Option; + #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getActiveUniform ) ] + #[doc = "The `getActiveUniform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getActiveUniform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlActiveInfo`, `WebGlProgram`*"] + pub fn get_active_uniform( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + index: u32, + ) -> Option; + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getAttachedShaders ) ] + #[doc = "The `getAttachedShaders()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getAttachedShaders)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn get_attached_shaders( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + ) -> Option<::js_sys::Array>; + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getAttribLocation ) ] + #[doc = "The `getAttribLocation()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getAttribLocation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn get_attrib_location( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + name: &str, + ) -> i32; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getBufferParameter ) ] + #[doc = "The `getBufferParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getBufferParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_buffer_parameter( + this: &WebGl2RenderingContext, + target: u32, + pname: u32, + ) -> ::wasm_bindgen::JsValue; + #[cfg(feature = "WebGlContextAttributes")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getContextAttributes ) ] + #[doc = "The `getContextAttributes()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getContextAttributes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlContextAttributes`*"] + pub fn get_context_attributes(this: &WebGl2RenderingContext) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getError ) ] + #[doc = "The `getError()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_error(this: &WebGl2RenderingContext) -> u32; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getExtension ) ] + #[doc = "The `getExtension()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getExtension)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_extension( + this: &WebGl2RenderingContext, + name: &str, + ) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getFramebufferAttachmentParameter ) ] + #[doc = "The `getFramebufferAttachmentParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getFramebufferAttachmentParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_framebuffer_attachment_parameter( + this: &WebGl2RenderingContext, + target: u32, + attachment: u32, + pname: u32, + ) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getParameter ) ] + #[doc = "The `getParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_parameter( + this: &WebGl2RenderingContext, + pname: u32, + ) -> Result<::wasm_bindgen::JsValue, JsValue>; + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getProgramInfoLog ) ] + #[doc = "The `getProgramInfoLog()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getProgramInfoLog)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn get_program_info_log( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + ) -> Option; + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getProgramParameter ) ] + #[doc = "The `getProgramParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getProgramParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn get_program_parameter( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + pname: u32, + ) -> ::wasm_bindgen::JsValue; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getRenderbufferParameter ) ] + #[doc = "The `getRenderbufferParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getRenderbufferParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_renderbuffer_parameter( + this: &WebGl2RenderingContext, + target: u32, + pname: u32, + ) -> ::wasm_bindgen::JsValue; + #[cfg(feature = "WebGlShader")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getShaderInfoLog ) ] + #[doc = "The `getShaderInfoLog()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getShaderInfoLog)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] + pub fn get_shader_info_log( + this: &WebGl2RenderingContext, + shader: &WebGlShader, + ) -> Option; + #[cfg(feature = "WebGlShader")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getShaderParameter ) ] + #[doc = "The `getShaderParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getShaderParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] + pub fn get_shader_parameter( + this: &WebGl2RenderingContext, + shader: &WebGlShader, + pname: u32, + ) -> ::wasm_bindgen::JsValue; + #[cfg(feature = "WebGlShaderPrecisionFormat")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getShaderPrecisionFormat ) ] + #[doc = "The `getShaderPrecisionFormat()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getShaderPrecisionFormat)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShaderPrecisionFormat`*"] + pub fn get_shader_precision_format( + this: &WebGl2RenderingContext, + shadertype: u32, + precisiontype: u32, + ) -> Option; + #[cfg(feature = "WebGlShader")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getShaderSource ) ] + #[doc = "The `getShaderSource()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getShaderSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] + pub fn get_shader_source(this: &WebGl2RenderingContext, shader: &WebGlShader) + -> Option; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getSupportedExtensions ) ] + #[doc = "The `getSupportedExtensions()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getSupportedExtensions)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_supported_extensions(this: &WebGl2RenderingContext) -> Option<::js_sys::Array>; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getTexParameter ) ] + #[doc = "The `getTexParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getTexParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_tex_parameter( + this: &WebGl2RenderingContext, + target: u32, + pname: u32, + ) -> ::wasm_bindgen::JsValue; + #[cfg(all(feature = "WebGlProgram", feature = "WebGlUniformLocation",))] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getUniform ) ] + #[doc = "The `getUniform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getUniform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`, `WebGlUniformLocation`*"] + pub fn get_uniform( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + location: &WebGlUniformLocation, + ) -> ::wasm_bindgen::JsValue; + #[cfg(all(feature = "WebGlProgram", feature = "WebGlUniformLocation",))] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getUniformLocation ) ] + #[doc = "The `getUniformLocation()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getUniformLocation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`, `WebGlUniformLocation`*"] + pub fn get_uniform_location( + this: &WebGl2RenderingContext, + program: &WebGlProgram, + name: &str, + ) -> Option; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGL2RenderingContext" , js_name = getVertexAttrib ) ] + #[doc = "The `getVertexAttrib()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getVertexAttrib)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_vertex_attrib( + this: &WebGl2RenderingContext, + index: u32, + pname: u32, + ) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = getVertexAttribOffset ) ] + #[doc = "The `getVertexAttribOffset()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/getVertexAttribOffset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn get_vertex_attrib_offset(this: &WebGl2RenderingContext, index: u32, pname: u32) -> f64; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = hint ) ] + #[doc = "The `hint()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/hint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn hint(this: &WebGl2RenderingContext, target: u32, mode: u32); + #[cfg(feature = "WebGlBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = isBuffer ) ] + #[doc = "The `isBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlBuffer`*"] + pub fn is_buffer(this: &WebGl2RenderingContext, buffer: Option<&WebGlBuffer>) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = isContextLost ) ] + #[doc = "The `isContextLost()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isContextLost)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn is_context_lost(this: &WebGl2RenderingContext) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = isEnabled ) ] + #[doc = "The `isEnabled()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isEnabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn is_enabled(this: &WebGl2RenderingContext, cap: u32) -> bool; + #[cfg(feature = "WebGlFramebuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = isFramebuffer ) ] + #[doc = "The `isFramebuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isFramebuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlFramebuffer`*"] + pub fn is_framebuffer( + this: &WebGl2RenderingContext, + framebuffer: Option<&WebGlFramebuffer>, + ) -> bool; + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = isProgram ) ] + #[doc = "The `isProgram()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isProgram)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn is_program(this: &WebGl2RenderingContext, program: Option<&WebGlProgram>) -> bool; + #[cfg(feature = "WebGlRenderbuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = isRenderbuffer ) ] + #[doc = "The `isRenderbuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isRenderbuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlRenderbuffer`*"] + pub fn is_renderbuffer( + this: &WebGl2RenderingContext, + renderbuffer: Option<&WebGlRenderbuffer>, + ) -> bool; + #[cfg(feature = "WebGlShader")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = isShader ) ] + #[doc = "The `isShader()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isShader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] + pub fn is_shader(this: &WebGl2RenderingContext, shader: Option<&WebGlShader>) -> bool; + #[cfg(feature = "WebGlTexture")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = isTexture ) ] + #[doc = "The `isTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/isTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlTexture`*"] + pub fn is_texture(this: &WebGl2RenderingContext, texture: Option<&WebGlTexture>) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = lineWidth ) ] + #[doc = "The `lineWidth()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/lineWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn line_width(this: &WebGl2RenderingContext, width: f32); + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = linkProgram ) ] + #[doc = "The `linkProgram()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/linkProgram)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn link_program(this: &WebGl2RenderingContext, program: &WebGlProgram); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = pixelStorei ) ] + #[doc = "The `pixelStorei()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/pixelStorei)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn pixel_storei(this: &WebGl2RenderingContext, pname: u32, param: i32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = polygonOffset ) ] + #[doc = "The `polygonOffset()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/polygonOffset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn polygon_offset(this: &WebGl2RenderingContext, factor: f32, units: f32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = renderbufferStorage ) ] + #[doc = "The `renderbufferStorage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/renderbufferStorage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn renderbuffer_storage( + this: &WebGl2RenderingContext, + target: u32, + internalformat: u32, + width: i32, + height: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = sampleCoverage ) ] + #[doc = "The `sampleCoverage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/sampleCoverage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn sample_coverage(this: &WebGl2RenderingContext, value: f32, invert: bool); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = scissor ) ] + #[doc = "The `scissor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/scissor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn scissor(this: &WebGl2RenderingContext, x: i32, y: i32, width: i32, height: i32); + #[cfg(feature = "WebGlShader")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = shaderSource ) ] + #[doc = "The `shaderSource()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/shaderSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlShader`*"] + pub fn shader_source(this: &WebGl2RenderingContext, shader: &WebGlShader, source: &str); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = stencilFunc ) ] + #[doc = "The `stencilFunc()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/stencilFunc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn stencil_func(this: &WebGl2RenderingContext, func: u32, ref_: i32, mask: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = stencilFuncSeparate ) ] + #[doc = "The `stencilFuncSeparate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/stencilFuncSeparate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn stencil_func_separate( + this: &WebGl2RenderingContext, + face: u32, + func: u32, + ref_: i32, + mask: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = stencilMask ) ] + #[doc = "The `stencilMask()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/stencilMask)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn stencil_mask(this: &WebGl2RenderingContext, mask: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = stencilMaskSeparate ) ] + #[doc = "The `stencilMaskSeparate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/stencilMaskSeparate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn stencil_mask_separate(this: &WebGl2RenderingContext, face: u32, mask: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = stencilOp ) ] + #[doc = "The `stencilOp()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/stencilOp)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn stencil_op(this: &WebGl2RenderingContext, fail: u32, zfail: u32, zpass: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = stencilOpSeparate ) ] + #[doc = "The `stencilOpSeparate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/stencilOpSeparate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn stencil_op_separate( + this: &WebGl2RenderingContext, + face: u32, + fail: u32, + zfail: u32, + zpass: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = texParameterf ) ] + #[doc = "The `texParameterf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texParameterf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_parameterf(this: &WebGl2RenderingContext, target: u32, pname: u32, param: f32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = texParameteri ) ] + #[doc = "The `texParameteri()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/texParameteri)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn tex_parameteri(this: &WebGl2RenderingContext, target: u32, pname: u32, param: i32); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1f ) ] + #[doc = "The `uniform1f()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1f( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + x: f32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform1i ) ] + #[doc = "The `uniform1i()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform1i)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1i( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + x: i32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2f ) ] + #[doc = "The `uniform2f()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2f( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + x: f32, + y: f32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform2i ) ] + #[doc = "The `uniform2i()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform2i)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2i( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + x: i32, + y: i32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3f ) ] + #[doc = "The `uniform3f()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3f( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + x: f32, + y: f32, + z: f32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform3i ) ] + #[doc = "The `uniform3i()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform3i)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3i( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + x: i32, + y: i32, + z: i32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4f ) ] + #[doc = "The `uniform4f()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4f( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + x: f32, + y: f32, + z: f32, + w: f32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = uniform4i ) ] + #[doc = "The `uniform4i()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/uniform4i)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4i( + this: &WebGl2RenderingContext, + location: Option<&WebGlUniformLocation>, + x: i32, + y: i32, + z: i32, + w: i32, + ); + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = useProgram ) ] + #[doc = "The `useProgram()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/useProgram)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn use_program(this: &WebGl2RenderingContext, program: Option<&WebGlProgram>); + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = validateProgram ) ] + #[doc = "The `validateProgram()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/validateProgram)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `WebGlProgram`*"] + pub fn validate_program(this: &WebGl2RenderingContext, program: &WebGlProgram); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib1f ) ] + #[doc = "The `vertexAttrib1f()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib1f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib1f(this: &WebGl2RenderingContext, indx: u32, x: f32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib1fv ) ] + #[doc = "The `vertexAttrib1fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib1fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib1fv_with_f32_array( + this: &WebGl2RenderingContext, + indx: u32, + values: &[f32], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib1fv ) ] + #[doc = "The `vertexAttrib1fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib1fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib1fv_with_f32_sequence( + this: &WebGl2RenderingContext, + indx: u32, + values: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib2f ) ] + #[doc = "The `vertexAttrib2f()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib2f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib2f(this: &WebGl2RenderingContext, indx: u32, x: f32, y: f32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib2fv ) ] + #[doc = "The `vertexAttrib2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib2fv_with_f32_array( + this: &WebGl2RenderingContext, + indx: u32, + values: &[f32], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib2fv ) ] + #[doc = "The `vertexAttrib2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib2fv_with_f32_sequence( + this: &WebGl2RenderingContext, + indx: u32, + values: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib3f ) ] + #[doc = "The `vertexAttrib3f()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib3f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib3f(this: &WebGl2RenderingContext, indx: u32, x: f32, y: f32, z: f32); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib3fv ) ] + #[doc = "The `vertexAttrib3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib3fv_with_f32_array( + this: &WebGl2RenderingContext, + indx: u32, + values: &[f32], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib3fv ) ] + #[doc = "The `vertexAttrib3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib3fv_with_f32_sequence( + this: &WebGl2RenderingContext, + indx: u32, + values: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib4f ) ] + #[doc = "The `vertexAttrib4f()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib4f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib4f( + this: &WebGl2RenderingContext, + indx: u32, + x: f32, + y: f32, + z: f32, + w: f32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib4fv ) ] + #[doc = "The `vertexAttrib4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib4fv_with_f32_array( + this: &WebGl2RenderingContext, + indx: u32, + values: &[f32], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttrib4fv ) ] + #[doc = "The `vertexAttrib4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttrib4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib4fv_with_f32_sequence( + this: &WebGl2RenderingContext, + indx: u32, + values: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribPointer ) ] + #[doc = "The `vertexAttribPointer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribPointer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib_pointer_with_i32( + this: &WebGl2RenderingContext, + indx: u32, + size: i32, + type_: u32, + normalized: bool, + stride: i32, + offset: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = vertexAttribPointer ) ] + #[doc = "The `vertexAttribPointer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/vertexAttribPointer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn vertex_attrib_pointer_with_f64( + this: &WebGl2RenderingContext, + indx: u32, + size: i32, + type_: u32, + normalized: bool, + stride: i32, + offset: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGL2RenderingContext" , js_name = viewport ) ] + #[doc = "The `viewport()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGL2RenderingContext/viewport)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub fn viewport(this: &WebGl2RenderingContext, x: i32, y: i32, width: i32, height: i32); +} +impl WebGl2RenderingContext { + #[doc = "The `WebGL2RenderingContext.READ_BUFFER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const READ_BUFFER: u32 = 3074u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNPACK_ROW_LENGTH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNPACK_ROW_LENGTH: u32 = 3314u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNPACK_SKIP_ROWS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNPACK_SKIP_ROWS: u32 = 3315u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNPACK_SKIP_PIXELS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNPACK_SKIP_PIXELS: u32 = 3316u64 as u32; + #[doc = "The `WebGL2RenderingContext.PACK_ROW_LENGTH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const PACK_ROW_LENGTH: u32 = 3330u64 as u32; + #[doc = "The `WebGL2RenderingContext.PACK_SKIP_ROWS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const PACK_SKIP_ROWS: u32 = 3331u64 as u32; + #[doc = "The `WebGL2RenderingContext.PACK_SKIP_PIXELS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const PACK_SKIP_PIXELS: u32 = 3332u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR: u32 = 6144u64 as u32; + #[doc = "The `WebGL2RenderingContext.DEPTH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DEPTH: u32 = 6145u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL: u32 = 6146u64 as u32; + #[doc = "The `WebGL2RenderingContext.RED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RED: u32 = 6403u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGB8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGB8: u32 = 32849u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGBA8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGBA8: u32 = 32856u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGB10_A2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGB10_A2: u32 = 32857u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_BINDING_3D` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_BINDING_3D: u32 = 32874u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNPACK_SKIP_IMAGES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNPACK_SKIP_IMAGES: u32 = 32877u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNPACK_IMAGE_HEIGHT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNPACK_IMAGE_HEIGHT: u32 = 32878u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_3D` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_3D: u32 = 32879u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_WRAP_R` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_WRAP_R: u32 = 32882u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_3D_TEXTURE_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_3D_TEXTURE_SIZE: u32 = 32883u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_2_10_10_10_REV` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_INT_2_10_10_10_REV: u32 = 33640u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_ELEMENTS_VERTICES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_ELEMENTS_VERTICES: u32 = 33000u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_ELEMENTS_INDICES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_ELEMENTS_INDICES: u32 = 33001u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_MIN_LOD` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_MIN_LOD: u32 = 33082u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_MAX_LOD` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_MAX_LOD: u32 = 33083u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_BASE_LEVEL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_BASE_LEVEL: u32 = 33084u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_MAX_LEVEL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_MAX_LEVEL: u32 = 33085u64 as u32; + #[doc = "The `WebGL2RenderingContext.MIN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MIN: u32 = 32775u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX: u32 = 32776u64 as u32; + #[doc = "The `WebGL2RenderingContext.DEPTH_COMPONENT24` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DEPTH_COMPONENT24: u32 = 33190u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_TEXTURE_LOD_BIAS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_TEXTURE_LOD_BIAS: u32 = 34045u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_COMPARE_MODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_COMPARE_MODE: u32 = 34892u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_COMPARE_FUNC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_COMPARE_FUNC: u32 = 34893u64 as u32; + #[doc = "The `WebGL2RenderingContext.CURRENT_QUERY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const CURRENT_QUERY: u32 = 34917u64 as u32; + #[doc = "The `WebGL2RenderingContext.QUERY_RESULT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const QUERY_RESULT: u32 = 34918u64 as u32; + #[doc = "The `WebGL2RenderingContext.QUERY_RESULT_AVAILABLE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const QUERY_RESULT_AVAILABLE: u32 = 34919u64 as u32; + #[doc = "The `WebGL2RenderingContext.STREAM_READ` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STREAM_READ: u32 = 35041u64 as u32; + #[doc = "The `WebGL2RenderingContext.STREAM_COPY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STREAM_COPY: u32 = 35042u64 as u32; + #[doc = "The `WebGL2RenderingContext.STATIC_READ` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STATIC_READ: u32 = 35045u64 as u32; + #[doc = "The `WebGL2RenderingContext.STATIC_COPY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STATIC_COPY: u32 = 35046u64 as u32; + #[doc = "The `WebGL2RenderingContext.DYNAMIC_READ` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DYNAMIC_READ: u32 = 35049u64 as u32; + #[doc = "The `WebGL2RenderingContext.DYNAMIC_COPY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DYNAMIC_COPY: u32 = 35050u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_DRAW_BUFFERS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_DRAW_BUFFERS: u32 = 34852u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER0` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_BUFFER0: u32 = 34853u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER1` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_BUFFER1: u32 = 34854u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_BUFFER2: u32 = 34855u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_BUFFER3: u32 = 34856u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_BUFFER4: u32 = 34857u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER5` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_BUFFER5: u32 = 34858u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER6` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_BUFFER6: u32 = 34859u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER7` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_BUFFER7: u32 = 34860u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_BUFFER8: u32 = 34861u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER9` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_BUFFER9: u32 = 34862u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER10` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_BUFFER10: u32 = 34863u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER11` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_BUFFER11: u32 = 34864u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER12` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_BUFFER12: u32 = 34865u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER13` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_BUFFER13: u32 = 34866u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER14` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_BUFFER14: u32 = 34867u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_BUFFER15` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_BUFFER15: u32 = 34868u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_FRAGMENT_UNIFORM_COMPONENTS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_FRAGMENT_UNIFORM_COMPONENTS: u32 = 35657u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_VERTEX_UNIFORM_COMPONENTS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_VERTEX_UNIFORM_COMPONENTS: u32 = 35658u64 as u32; + #[doc = "The `WebGL2RenderingContext.SAMPLER_3D` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SAMPLER_3D: u32 = 35679u64 as u32; + #[doc = "The `WebGL2RenderingContext.SAMPLER_2D_SHADOW` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SAMPLER_2D_SHADOW: u32 = 35682u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAGMENT_SHADER_DERIVATIVE_HINT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAGMENT_SHADER_DERIVATIVE_HINT: u32 = 35723u64 as u32; + #[doc = "The `WebGL2RenderingContext.PIXEL_PACK_BUFFER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const PIXEL_PACK_BUFFER: u32 = 35051u64 as u32; + #[doc = "The `WebGL2RenderingContext.PIXEL_UNPACK_BUFFER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const PIXEL_UNPACK_BUFFER: u32 = 35052u64 as u32; + #[doc = "The `WebGL2RenderingContext.PIXEL_PACK_BUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const PIXEL_PACK_BUFFER_BINDING: u32 = 35053u64 as u32; + #[doc = "The `WebGL2RenderingContext.PIXEL_UNPACK_BUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const PIXEL_UNPACK_BUFFER_BINDING: u32 = 35055u64 as u32; + #[doc = "The `WebGL2RenderingContext.FLOAT_MAT2x3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FLOAT_MAT2X3: u32 = 35685u64 as u32; + #[doc = "The `WebGL2RenderingContext.FLOAT_MAT2x4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FLOAT_MAT2X4: u32 = 35686u64 as u32; + #[doc = "The `WebGL2RenderingContext.FLOAT_MAT3x2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FLOAT_MAT3X2: u32 = 35687u64 as u32; + #[doc = "The `WebGL2RenderingContext.FLOAT_MAT3x4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FLOAT_MAT3X4: u32 = 35688u64 as u32; + #[doc = "The `WebGL2RenderingContext.FLOAT_MAT4x2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FLOAT_MAT4X2: u32 = 35689u64 as u32; + #[doc = "The `WebGL2RenderingContext.FLOAT_MAT4x3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FLOAT_MAT4X3: u32 = 35690u64 as u32; + #[doc = "The `WebGL2RenderingContext.SRGB` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SRGB: u32 = 35904u64 as u32; + #[doc = "The `WebGL2RenderingContext.SRGB8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SRGB8: u32 = 35905u64 as u32; + #[doc = "The `WebGL2RenderingContext.SRGB8_ALPHA8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SRGB8_ALPHA8: u32 = 35907u64 as u32; + #[doc = "The `WebGL2RenderingContext.COMPARE_REF_TO_TEXTURE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COMPARE_REF_TO_TEXTURE: u32 = 34894u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGBA32F` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGBA32F: u32 = 34836u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGB32F` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGB32F: u32 = 34837u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGBA16F` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGBA16F: u32 = 34842u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGB16F` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGB16F: u32 = 34843u64 as u32; + #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_INTEGER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const VERTEX_ATTRIB_ARRAY_INTEGER: u32 = 35069u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_ARRAY_TEXTURE_LAYERS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_ARRAY_TEXTURE_LAYERS: u32 = 35071u64 as u32; + #[doc = "The `WebGL2RenderingContext.MIN_PROGRAM_TEXEL_OFFSET` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MIN_PROGRAM_TEXEL_OFFSET: u32 = 35076u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_PROGRAM_TEXEL_OFFSET` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_PROGRAM_TEXEL_OFFSET: u32 = 35077u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_VARYING_COMPONENTS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_VARYING_COMPONENTS: u32 = 35659u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_2D_ARRAY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_2D_ARRAY: u32 = 35866u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_BINDING_2D_ARRAY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_BINDING_2D_ARRAY: u32 = 35869u64 as u32; + #[doc = "The `WebGL2RenderingContext.R11F_G11F_B10F` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const R11F_G11F_B10F: u32 = 35898u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_10F_11F_11F_REV` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_INT_10F_11F_11F_REV: u32 = 35899u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGB9_E5` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGB9_E5: u32 = 35901u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_5_9_9_9_REV` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_INT_5_9_9_9_REV: u32 = 35902u64 as u32; + #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_BUFFER_MODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TRANSFORM_FEEDBACK_BUFFER_MODE: u32 = 35967u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: u32 = 35968u64 as u32; + #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_VARYINGS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TRANSFORM_FEEDBACK_VARYINGS: u32 = 35971u64 as u32; + #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_BUFFER_START` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TRANSFORM_FEEDBACK_BUFFER_START: u32 = 35972u64 as u32; + #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_BUFFER_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TRANSFORM_FEEDBACK_BUFFER_SIZE: u32 = 35973u64 as u32; + #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: u32 = 35976u64 as u32; + #[doc = "The `WebGL2RenderingContext.RASTERIZER_DISCARD` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RASTERIZER_DISCARD: u32 = 35977u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: u32 = 35978u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: u32 = 35979u64 as u32; + #[doc = "The `WebGL2RenderingContext.INTERLEAVED_ATTRIBS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INTERLEAVED_ATTRIBS: u32 = 35980u64 as u32; + #[doc = "The `WebGL2RenderingContext.SEPARATE_ATTRIBS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SEPARATE_ATTRIBS: u32 = 35981u64 as u32; + #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_BUFFER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TRANSFORM_FEEDBACK_BUFFER: u32 = 35982u64 as u32; + #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_BUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TRANSFORM_FEEDBACK_BUFFER_BINDING: u32 = 35983u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGBA32UI` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGBA32UI: u32 = 36208u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGB32UI` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGB32UI: u32 = 36209u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGBA16UI` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGBA16UI: u32 = 36214u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGB16UI` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGB16UI: u32 = 36215u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGBA8UI` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGBA8UI: u32 = 36220u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGB8UI` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGB8UI: u32 = 36221u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGBA32I` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGBA32I: u32 = 36226u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGB32I` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGB32I: u32 = 36227u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGBA16I` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGBA16I: u32 = 36232u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGB16I` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGB16I: u32 = 36233u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGBA8I` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGBA8I: u32 = 36238u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGB8I` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGB8I: u32 = 36239u64 as u32; + #[doc = "The `WebGL2RenderingContext.RED_INTEGER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RED_INTEGER: u32 = 36244u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGB_INTEGER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGB_INTEGER: u32 = 36248u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGBA_INTEGER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGBA_INTEGER: u32 = 36249u64 as u32; + #[doc = "The `WebGL2RenderingContext.SAMPLER_2D_ARRAY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SAMPLER_2D_ARRAY: u32 = 36289u64 as u32; + #[doc = "The `WebGL2RenderingContext.SAMPLER_2D_ARRAY_SHADOW` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SAMPLER_2D_ARRAY_SHADOW: u32 = 36292u64 as u32; + #[doc = "The `WebGL2RenderingContext.SAMPLER_CUBE_SHADOW` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SAMPLER_CUBE_SHADOW: u32 = 36293u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_VEC2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_INT_VEC2: u32 = 36294u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_VEC3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_INT_VEC3: u32 = 36295u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_VEC4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_INT_VEC4: u32 = 36296u64 as u32; + #[doc = "The `WebGL2RenderingContext.INT_SAMPLER_2D` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INT_SAMPLER_2D: u32 = 36298u64 as u32; + #[doc = "The `WebGL2RenderingContext.INT_SAMPLER_3D` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INT_SAMPLER_3D: u32 = 36299u64 as u32; + #[doc = "The `WebGL2RenderingContext.INT_SAMPLER_CUBE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INT_SAMPLER_CUBE: u32 = 36300u64 as u32; + #[doc = "The `WebGL2RenderingContext.INT_SAMPLER_2D_ARRAY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INT_SAMPLER_2D_ARRAY: u32 = 36303u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_SAMPLER_2D` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_INT_SAMPLER_2D: u32 = 36306u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_SAMPLER_3D` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_INT_SAMPLER_3D: u32 = 36307u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_SAMPLER_CUBE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_INT_SAMPLER_CUBE: u32 = 36308u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_SAMPLER_2D_ARRAY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_INT_SAMPLER_2D_ARRAY: u32 = 36311u64 as u32; + #[doc = "The `WebGL2RenderingContext.DEPTH_COMPONENT32F` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DEPTH_COMPONENT32F: u32 = 36012u64 as u32; + #[doc = "The `WebGL2RenderingContext.DEPTH32F_STENCIL8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DEPTH32F_STENCIL8: u32 = 36013u64 as u32; + #[doc = "The `WebGL2RenderingContext.FLOAT_32_UNSIGNED_INT_24_8_REV` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FLOAT_32_UNSIGNED_INT_24_8_REV: u32 = 36269u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: u32 = 33296u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: u32 = 33297u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_RED_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_ATTACHMENT_RED_SIZE: u32 = 33298u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_GREEN_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: u32 = 33299u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_BLUE_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: u32 = 33300u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: u32 = 33301u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: u32 = 33302u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: u32 = 33303u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_DEFAULT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_DEFAULT: u32 = 33304u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT_24_8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_INT_24_8: u32 = 34042u64 as u32; + #[doc = "The `WebGL2RenderingContext.DEPTH24_STENCIL8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DEPTH24_STENCIL8: u32 = 35056u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_NORMALIZED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_NORMALIZED: u32 = 35863u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_FRAMEBUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_FRAMEBUFFER_BINDING: u32 = 36006u64 as u32; + #[doc = "The `WebGL2RenderingContext.READ_FRAMEBUFFER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const READ_FRAMEBUFFER: u32 = 36008u64 as u32; + #[doc = "The `WebGL2RenderingContext.DRAW_FRAMEBUFFER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DRAW_FRAMEBUFFER: u32 = 36009u64 as u32; + #[doc = "The `WebGL2RenderingContext.READ_FRAMEBUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const READ_FRAMEBUFFER_BINDING: u32 = 36010u64 as u32; + #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_SAMPLES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RENDERBUFFER_SAMPLES: u32 = 36011u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: u32 = 36052u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_COLOR_ATTACHMENTS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_COLOR_ATTACHMENTS: u32 = 36063u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT1` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_ATTACHMENT1: u32 = 36065u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_ATTACHMENT2: u32 = 36066u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_ATTACHMENT3: u32 = 36067u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_ATTACHMENT4: u32 = 36068u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT5` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_ATTACHMENT5: u32 = 36069u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT6` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_ATTACHMENT6: u32 = 36070u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT7` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_ATTACHMENT7: u32 = 36071u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_ATTACHMENT8: u32 = 36072u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT9` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_ATTACHMENT9: u32 = 36073u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT10` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_ATTACHMENT10: u32 = 36074u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT11` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_ATTACHMENT11: u32 = 36075u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT12` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_ATTACHMENT12: u32 = 36076u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT13` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_ATTACHMENT13: u32 = 36077u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT14` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_ATTACHMENT14: u32 = 36078u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT15` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_ATTACHMENT15: u32 = 36079u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_MULTISAMPLE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: u32 = 36182u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_SAMPLES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_SAMPLES: u32 = 36183u64 as u32; + #[doc = "The `WebGL2RenderingContext.HALF_FLOAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const HALF_FLOAT: u32 = 5131u64 as u32; + #[doc = "The `WebGL2RenderingContext.RG` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RG: u32 = 33319u64 as u32; + #[doc = "The `WebGL2RenderingContext.RG_INTEGER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RG_INTEGER: u32 = 33320u64 as u32; + #[doc = "The `WebGL2RenderingContext.R8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const R8: u32 = 33321u64 as u32; + #[doc = "The `WebGL2RenderingContext.RG8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RG8: u32 = 33323u64 as u32; + #[doc = "The `WebGL2RenderingContext.R16F` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const R16F: u32 = 33325u64 as u32; + #[doc = "The `WebGL2RenderingContext.R32F` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const R32F: u32 = 33326u64 as u32; + #[doc = "The `WebGL2RenderingContext.RG16F` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RG16F: u32 = 33327u64 as u32; + #[doc = "The `WebGL2RenderingContext.RG32F` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RG32F: u32 = 33328u64 as u32; + #[doc = "The `WebGL2RenderingContext.R8I` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const R8I: u32 = 33329u64 as u32; + #[doc = "The `WebGL2RenderingContext.R8UI` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const R8UI: u32 = 33330u64 as u32; + #[doc = "The `WebGL2RenderingContext.R16I` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const R16I: u32 = 33331u64 as u32; + #[doc = "The `WebGL2RenderingContext.R16UI` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const R16UI: u32 = 33332u64 as u32; + #[doc = "The `WebGL2RenderingContext.R32I` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const R32I: u32 = 33333u64 as u32; + #[doc = "The `WebGL2RenderingContext.R32UI` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const R32UI: u32 = 33334u64 as u32; + #[doc = "The `WebGL2RenderingContext.RG8I` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RG8I: u32 = 33335u64 as u32; + #[doc = "The `WebGL2RenderingContext.RG8UI` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RG8UI: u32 = 33336u64 as u32; + #[doc = "The `WebGL2RenderingContext.RG16I` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RG16I: u32 = 33337u64 as u32; + #[doc = "The `WebGL2RenderingContext.RG16UI` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RG16UI: u32 = 33338u64 as u32; + #[doc = "The `WebGL2RenderingContext.RG32I` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RG32I: u32 = 33339u64 as u32; + #[doc = "The `WebGL2RenderingContext.RG32UI` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RG32UI: u32 = 33340u64 as u32; + #[doc = "The `WebGL2RenderingContext.VERTEX_ARRAY_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const VERTEX_ARRAY_BINDING: u32 = 34229u64 as u32; + #[doc = "The `WebGL2RenderingContext.R8_SNORM` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const R8_SNORM: u32 = 36756u64 as u32; + #[doc = "The `WebGL2RenderingContext.RG8_SNORM` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RG8_SNORM: u32 = 36757u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGB8_SNORM` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGB8_SNORM: u32 = 36758u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGBA8_SNORM` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGBA8_SNORM: u32 = 36759u64 as u32; + #[doc = "The `WebGL2RenderingContext.SIGNED_NORMALIZED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SIGNED_NORMALIZED: u32 = 36764u64 as u32; + #[doc = "The `WebGL2RenderingContext.COPY_READ_BUFFER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COPY_READ_BUFFER: u32 = 36662u64 as u32; + #[doc = "The `WebGL2RenderingContext.COPY_WRITE_BUFFER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COPY_WRITE_BUFFER: u32 = 36663u64 as u32; + #[doc = "The `WebGL2RenderingContext.COPY_READ_BUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COPY_READ_BUFFER_BINDING: u32 = 36662u64 as u32; + #[doc = "The `WebGL2RenderingContext.COPY_WRITE_BUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COPY_WRITE_BUFFER_BINDING: u32 = 36663u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_BUFFER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_BUFFER: u32 = 35345u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_BUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_BUFFER_BINDING: u32 = 35368u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_BUFFER_START` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_BUFFER_START: u32 = 35369u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_BUFFER_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_BUFFER_SIZE: u32 = 35370u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_VERTEX_UNIFORM_BLOCKS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_VERTEX_UNIFORM_BLOCKS: u32 = 35371u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_FRAGMENT_UNIFORM_BLOCKS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_FRAGMENT_UNIFORM_BLOCKS: u32 = 35373u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_COMBINED_UNIFORM_BLOCKS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_COMBINED_UNIFORM_BLOCKS: u32 = 35374u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_UNIFORM_BUFFER_BINDINGS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_UNIFORM_BUFFER_BINDINGS: u32 = 35375u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_UNIFORM_BLOCK_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_UNIFORM_BLOCK_SIZE: u32 = 35376u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: u32 = 35377u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: u32 = 35379u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_BUFFER_OFFSET_ALIGNMENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_BUFFER_OFFSET_ALIGNMENT: u32 = 35380u64 as u32; + #[doc = "The `WebGL2RenderingContext.ACTIVE_UNIFORM_BLOCKS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ACTIVE_UNIFORM_BLOCKS: u32 = 35382u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_TYPE: u32 = 35383u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_SIZE: u32 = 35384u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_BLOCK_INDEX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_BLOCK_INDEX: u32 = 35386u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_OFFSET` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_OFFSET: u32 = 35387u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_ARRAY_STRIDE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_ARRAY_STRIDE: u32 = 35388u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_MATRIX_STRIDE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_MATRIX_STRIDE: u32 = 35389u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_IS_ROW_MAJOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_IS_ROW_MAJOR: u32 = 35390u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_BLOCK_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_BLOCK_BINDING: u32 = 35391u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_BLOCK_DATA_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_BLOCK_DATA_SIZE: u32 = 35392u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_BLOCK_ACTIVE_UNIFORMS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_BLOCK_ACTIVE_UNIFORMS: u32 = 35394u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: u32 = 35395u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: u32 = 35396u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: u32 = 35398u64 as u32; + #[doc = "The `WebGL2RenderingContext.INVALID_INDEX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INVALID_INDEX: u32 = 4294967295u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_VERTEX_OUTPUT_COMPONENTS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_VERTEX_OUTPUT_COMPONENTS: u32 = 37154u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_FRAGMENT_INPUT_COMPONENTS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_FRAGMENT_INPUT_COMPONENTS: u32 = 37157u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_SERVER_WAIT_TIMEOUT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_SERVER_WAIT_TIMEOUT: u32 = 37137u64 as u32; + #[doc = "The `WebGL2RenderingContext.OBJECT_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const OBJECT_TYPE: u32 = 37138u64 as u32; + #[doc = "The `WebGL2RenderingContext.SYNC_CONDITION` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SYNC_CONDITION: u32 = 37139u64 as u32; + #[doc = "The `WebGL2RenderingContext.SYNC_STATUS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SYNC_STATUS: u32 = 37140u64 as u32; + #[doc = "The `WebGL2RenderingContext.SYNC_FLAGS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SYNC_FLAGS: u32 = 37141u64 as u32; + #[doc = "The `WebGL2RenderingContext.SYNC_FENCE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SYNC_FENCE: u32 = 37142u64 as u32; + #[doc = "The `WebGL2RenderingContext.SYNC_GPU_COMMANDS_COMPLETE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SYNC_GPU_COMMANDS_COMPLETE: u32 = 37143u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNALED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNALED: u32 = 37144u64 as u32; + #[doc = "The `WebGL2RenderingContext.SIGNALED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SIGNALED: u32 = 37145u64 as u32; + #[doc = "The `WebGL2RenderingContext.ALREADY_SIGNALED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ALREADY_SIGNALED: u32 = 37146u64 as u32; + #[doc = "The `WebGL2RenderingContext.TIMEOUT_EXPIRED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TIMEOUT_EXPIRED: u32 = 37147u64 as u32; + #[doc = "The `WebGL2RenderingContext.CONDITION_SATISFIED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const CONDITION_SATISFIED: u32 = 37148u64 as u32; + #[doc = "The `WebGL2RenderingContext.WAIT_FAILED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const WAIT_FAILED: u32 = 37149u64 as u32; + #[doc = "The `WebGL2RenderingContext.SYNC_FLUSH_COMMANDS_BIT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SYNC_FLUSH_COMMANDS_BIT: u32 = 1u64 as u32; + #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_DIVISOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const VERTEX_ATTRIB_ARRAY_DIVISOR: u32 = 35070u64 as u32; + #[doc = "The `WebGL2RenderingContext.ANY_SAMPLES_PASSED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ANY_SAMPLES_PASSED: u32 = 35887u64 as u32; + #[doc = "The `WebGL2RenderingContext.ANY_SAMPLES_PASSED_CONSERVATIVE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ANY_SAMPLES_PASSED_CONSERVATIVE: u32 = 36202u64 as u32; + #[doc = "The `WebGL2RenderingContext.SAMPLER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SAMPLER_BINDING: u32 = 35097u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGB10_A2UI` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGB10_A2UI: u32 = 36975u64 as u32; + #[doc = "The `WebGL2RenderingContext.INT_2_10_10_10_REV` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INT_2_10_10_10_REV: u32 = 36255u64 as u32; + #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TRANSFORM_FEEDBACK: u32 = 36386u64 as u32; + #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_PAUSED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TRANSFORM_FEEDBACK_PAUSED: u32 = 36387u64 as u32; + #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_ACTIVE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TRANSFORM_FEEDBACK_ACTIVE: u32 = 36388u64 as u32; + #[doc = "The `WebGL2RenderingContext.TRANSFORM_FEEDBACK_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TRANSFORM_FEEDBACK_BINDING: u32 = 36389u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_IMMUTABLE_FORMAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_IMMUTABLE_FORMAT: u32 = 37167u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_ELEMENT_INDEX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_ELEMENT_INDEX: u32 = 36203u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_IMMUTABLE_LEVELS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_IMMUTABLE_LEVELS: u32 = 33503u64 as u32; + #[doc = "The `WebGL2RenderingContext.TIMEOUT_IGNORED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TIMEOUT_IGNORED: f64 = -1i64 as f64; + #[doc = "The `WebGL2RenderingContext.MAX_CLIENT_WAIT_TIMEOUT_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_CLIENT_WAIT_TIMEOUT_WEBGL: u32 = 37447u64 as u32; + #[doc = "The `WebGL2RenderingContext.DEPTH_BUFFER_BIT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DEPTH_BUFFER_BIT: u32 = 256u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_BUFFER_BIT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_BUFFER_BIT: u32 = 1024u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_BUFFER_BIT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_BUFFER_BIT: u32 = 16384u64 as u32; + #[doc = "The `WebGL2RenderingContext.POINTS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const POINTS: u32 = 0u64 as u32; + #[doc = "The `WebGL2RenderingContext.LINES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const LINES: u32 = 1u64 as u32; + #[doc = "The `WebGL2RenderingContext.LINE_LOOP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const LINE_LOOP: u32 = 2u64 as u32; + #[doc = "The `WebGL2RenderingContext.LINE_STRIP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const LINE_STRIP: u32 = 3u64 as u32; + #[doc = "The `WebGL2RenderingContext.TRIANGLES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TRIANGLES: u32 = 4u64 as u32; + #[doc = "The `WebGL2RenderingContext.TRIANGLE_STRIP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TRIANGLE_STRIP: u32 = 5u64 as u32; + #[doc = "The `WebGL2RenderingContext.TRIANGLE_FAN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TRIANGLE_FAN: u32 = 6u64 as u32; + #[doc = "The `WebGL2RenderingContext.ZERO` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ZERO: u32 = 0i64 as u32; + #[doc = "The `WebGL2RenderingContext.ONE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ONE: u32 = 1u64 as u32; + #[doc = "The `WebGL2RenderingContext.SRC_COLOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SRC_COLOR: u32 = 768u64 as u32; + #[doc = "The `WebGL2RenderingContext.ONE_MINUS_SRC_COLOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ONE_MINUS_SRC_COLOR: u32 = 769u64 as u32; + #[doc = "The `WebGL2RenderingContext.SRC_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SRC_ALPHA: u32 = 770u64 as u32; + #[doc = "The `WebGL2RenderingContext.ONE_MINUS_SRC_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ONE_MINUS_SRC_ALPHA: u32 = 771u64 as u32; + #[doc = "The `WebGL2RenderingContext.DST_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DST_ALPHA: u32 = 772u64 as u32; + #[doc = "The `WebGL2RenderingContext.ONE_MINUS_DST_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ONE_MINUS_DST_ALPHA: u32 = 773u64 as u32; + #[doc = "The `WebGL2RenderingContext.DST_COLOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DST_COLOR: u32 = 774u64 as u32; + #[doc = "The `WebGL2RenderingContext.ONE_MINUS_DST_COLOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ONE_MINUS_DST_COLOR: u32 = 775u64 as u32; + #[doc = "The `WebGL2RenderingContext.SRC_ALPHA_SATURATE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SRC_ALPHA_SATURATE: u32 = 776u64 as u32; + #[doc = "The `WebGL2RenderingContext.FUNC_ADD` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FUNC_ADD: u32 = 32774u64 as u32; + #[doc = "The `WebGL2RenderingContext.BLEND_EQUATION` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BLEND_EQUATION: u32 = 32777u64 as u32; + #[doc = "The `WebGL2RenderingContext.BLEND_EQUATION_RGB` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BLEND_EQUATION_RGB: u32 = 32777u64 as u32; + #[doc = "The `WebGL2RenderingContext.BLEND_EQUATION_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BLEND_EQUATION_ALPHA: u32 = 34877u64 as u32; + #[doc = "The `WebGL2RenderingContext.FUNC_SUBTRACT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FUNC_SUBTRACT: u32 = 32778u64 as u32; + #[doc = "The `WebGL2RenderingContext.FUNC_REVERSE_SUBTRACT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FUNC_REVERSE_SUBTRACT: u32 = 32779u64 as u32; + #[doc = "The `WebGL2RenderingContext.BLEND_DST_RGB` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BLEND_DST_RGB: u32 = 32968u64 as u32; + #[doc = "The `WebGL2RenderingContext.BLEND_SRC_RGB` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BLEND_SRC_RGB: u32 = 32969u64 as u32; + #[doc = "The `WebGL2RenderingContext.BLEND_DST_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BLEND_DST_ALPHA: u32 = 32970u64 as u32; + #[doc = "The `WebGL2RenderingContext.BLEND_SRC_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BLEND_SRC_ALPHA: u32 = 32971u64 as u32; + #[doc = "The `WebGL2RenderingContext.CONSTANT_COLOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const CONSTANT_COLOR: u32 = 32769u64 as u32; + #[doc = "The `WebGL2RenderingContext.ONE_MINUS_CONSTANT_COLOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ONE_MINUS_CONSTANT_COLOR: u32 = 32770u64 as u32; + #[doc = "The `WebGL2RenderingContext.CONSTANT_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const CONSTANT_ALPHA: u32 = 32771u64 as u32; + #[doc = "The `WebGL2RenderingContext.ONE_MINUS_CONSTANT_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ONE_MINUS_CONSTANT_ALPHA: u32 = 32772u64 as u32; + #[doc = "The `WebGL2RenderingContext.BLEND_COLOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BLEND_COLOR: u32 = 32773u64 as u32; + #[doc = "The `WebGL2RenderingContext.ARRAY_BUFFER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ARRAY_BUFFER: u32 = 34962u64 as u32; + #[doc = "The `WebGL2RenderingContext.ELEMENT_ARRAY_BUFFER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ELEMENT_ARRAY_BUFFER: u32 = 34963u64 as u32; + #[doc = "The `WebGL2RenderingContext.ARRAY_BUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ARRAY_BUFFER_BINDING: u32 = 34964u64 as u32; + #[doc = "The `WebGL2RenderingContext.ELEMENT_ARRAY_BUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ELEMENT_ARRAY_BUFFER_BINDING: u32 = 34965u64 as u32; + #[doc = "The `WebGL2RenderingContext.STREAM_DRAW` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STREAM_DRAW: u32 = 35040u64 as u32; + #[doc = "The `WebGL2RenderingContext.STATIC_DRAW` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STATIC_DRAW: u32 = 35044u64 as u32; + #[doc = "The `WebGL2RenderingContext.DYNAMIC_DRAW` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DYNAMIC_DRAW: u32 = 35048u64 as u32; + #[doc = "The `WebGL2RenderingContext.BUFFER_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BUFFER_SIZE: u32 = 34660u64 as u32; + #[doc = "The `WebGL2RenderingContext.BUFFER_USAGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BUFFER_USAGE: u32 = 34661u64 as u32; + #[doc = "The `WebGL2RenderingContext.CURRENT_VERTEX_ATTRIB` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const CURRENT_VERTEX_ATTRIB: u32 = 34342u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRONT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRONT: u32 = 1028u64 as u32; + #[doc = "The `WebGL2RenderingContext.BACK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BACK: u32 = 1029u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRONT_AND_BACK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRONT_AND_BACK: u32 = 1032u64 as u32; + #[doc = "The `WebGL2RenderingContext.CULL_FACE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const CULL_FACE: u32 = 2884u64 as u32; + #[doc = "The `WebGL2RenderingContext.BLEND` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BLEND: u32 = 3042u64 as u32; + #[doc = "The `WebGL2RenderingContext.DITHER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DITHER: u32 = 3024u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_TEST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_TEST: u32 = 2960u64 as u32; + #[doc = "The `WebGL2RenderingContext.DEPTH_TEST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DEPTH_TEST: u32 = 2929u64 as u32; + #[doc = "The `WebGL2RenderingContext.SCISSOR_TEST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SCISSOR_TEST: u32 = 3089u64 as u32; + #[doc = "The `WebGL2RenderingContext.POLYGON_OFFSET_FILL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const POLYGON_OFFSET_FILL: u32 = 32823u64 as u32; + #[doc = "The `WebGL2RenderingContext.SAMPLE_ALPHA_TO_COVERAGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SAMPLE_ALPHA_TO_COVERAGE: u32 = 32926u64 as u32; + #[doc = "The `WebGL2RenderingContext.SAMPLE_COVERAGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SAMPLE_COVERAGE: u32 = 32928u64 as u32; + #[doc = "The `WebGL2RenderingContext.NO_ERROR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const NO_ERROR: u32 = 0i64 as u32; + #[doc = "The `WebGL2RenderingContext.INVALID_ENUM` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INVALID_ENUM: u32 = 1280u64 as u32; + #[doc = "The `WebGL2RenderingContext.INVALID_VALUE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INVALID_VALUE: u32 = 1281u64 as u32; + #[doc = "The `WebGL2RenderingContext.INVALID_OPERATION` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INVALID_OPERATION: u32 = 1282u64 as u32; + #[doc = "The `WebGL2RenderingContext.OUT_OF_MEMORY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const OUT_OF_MEMORY: u32 = 1285u64 as u32; + #[doc = "The `WebGL2RenderingContext.CW` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const CW: u32 = 2304u64 as u32; + #[doc = "The `WebGL2RenderingContext.CCW` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const CCW: u32 = 2305u64 as u32; + #[doc = "The `WebGL2RenderingContext.LINE_WIDTH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const LINE_WIDTH: u32 = 2849u64 as u32; + #[doc = "The `WebGL2RenderingContext.ALIASED_POINT_SIZE_RANGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ALIASED_POINT_SIZE_RANGE: u32 = 33901u64 as u32; + #[doc = "The `WebGL2RenderingContext.ALIASED_LINE_WIDTH_RANGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ALIASED_LINE_WIDTH_RANGE: u32 = 33902u64 as u32; + #[doc = "The `WebGL2RenderingContext.CULL_FACE_MODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const CULL_FACE_MODE: u32 = 2885u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRONT_FACE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRONT_FACE: u32 = 2886u64 as u32; + #[doc = "The `WebGL2RenderingContext.DEPTH_RANGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DEPTH_RANGE: u32 = 2928u64 as u32; + #[doc = "The `WebGL2RenderingContext.DEPTH_WRITEMASK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DEPTH_WRITEMASK: u32 = 2930u64 as u32; + #[doc = "The `WebGL2RenderingContext.DEPTH_CLEAR_VALUE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DEPTH_CLEAR_VALUE: u32 = 2931u64 as u32; + #[doc = "The `WebGL2RenderingContext.DEPTH_FUNC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DEPTH_FUNC: u32 = 2932u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_CLEAR_VALUE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_CLEAR_VALUE: u32 = 2961u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_FUNC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_FUNC: u32 = 2962u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_FAIL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_FAIL: u32 = 2964u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_PASS_DEPTH_FAIL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_PASS_DEPTH_FAIL: u32 = 2965u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_PASS_DEPTH_PASS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_PASS_DEPTH_PASS: u32 = 2966u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_REF` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_REF: u32 = 2967u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_VALUE_MASK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_VALUE_MASK: u32 = 2963u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_WRITEMASK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_WRITEMASK: u32 = 2968u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_BACK_FUNC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_BACK_FUNC: u32 = 34816u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_BACK_FAIL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_BACK_FAIL: u32 = 34817u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_BACK_PASS_DEPTH_FAIL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_BACK_PASS_DEPTH_FAIL: u32 = 34818u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_BACK_PASS_DEPTH_PASS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_BACK_PASS_DEPTH_PASS: u32 = 34819u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_BACK_REF` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_BACK_REF: u32 = 36003u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_BACK_VALUE_MASK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_BACK_VALUE_MASK: u32 = 36004u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_BACK_WRITEMASK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_BACK_WRITEMASK: u32 = 36005u64 as u32; + #[doc = "The `WebGL2RenderingContext.VIEWPORT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const VIEWPORT: u32 = 2978u64 as u32; + #[doc = "The `WebGL2RenderingContext.SCISSOR_BOX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SCISSOR_BOX: u32 = 3088u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_CLEAR_VALUE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_CLEAR_VALUE: u32 = 3106u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_WRITEMASK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_WRITEMASK: u32 = 3107u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNPACK_ALIGNMENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNPACK_ALIGNMENT: u32 = 3317u64 as u32; + #[doc = "The `WebGL2RenderingContext.PACK_ALIGNMENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const PACK_ALIGNMENT: u32 = 3333u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_TEXTURE_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_TEXTURE_SIZE: u32 = 3379u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_VIEWPORT_DIMS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_VIEWPORT_DIMS: u32 = 3386u64 as u32; + #[doc = "The `WebGL2RenderingContext.SUBPIXEL_BITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SUBPIXEL_BITS: u32 = 3408u64 as u32; + #[doc = "The `WebGL2RenderingContext.RED_BITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RED_BITS: u32 = 3410u64 as u32; + #[doc = "The `WebGL2RenderingContext.GREEN_BITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const GREEN_BITS: u32 = 3411u64 as u32; + #[doc = "The `WebGL2RenderingContext.BLUE_BITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BLUE_BITS: u32 = 3412u64 as u32; + #[doc = "The `WebGL2RenderingContext.ALPHA_BITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ALPHA_BITS: u32 = 3413u64 as u32; + #[doc = "The `WebGL2RenderingContext.DEPTH_BITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DEPTH_BITS: u32 = 3414u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_BITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_BITS: u32 = 3415u64 as u32; + #[doc = "The `WebGL2RenderingContext.POLYGON_OFFSET_UNITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const POLYGON_OFFSET_UNITS: u32 = 10752u64 as u32; + #[doc = "The `WebGL2RenderingContext.POLYGON_OFFSET_FACTOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const POLYGON_OFFSET_FACTOR: u32 = 32824u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_BINDING_2D` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_BINDING_2D: u32 = 32873u64 as u32; + #[doc = "The `WebGL2RenderingContext.SAMPLE_BUFFERS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SAMPLE_BUFFERS: u32 = 32936u64 as u32; + #[doc = "The `WebGL2RenderingContext.SAMPLES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SAMPLES: u32 = 32937u64 as u32; + #[doc = "The `WebGL2RenderingContext.SAMPLE_COVERAGE_VALUE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SAMPLE_COVERAGE_VALUE: u32 = 32938u64 as u32; + #[doc = "The `WebGL2RenderingContext.SAMPLE_COVERAGE_INVERT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SAMPLE_COVERAGE_INVERT: u32 = 32939u64 as u32; + #[doc = "The `WebGL2RenderingContext.COMPRESSED_TEXTURE_FORMATS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COMPRESSED_TEXTURE_FORMATS: u32 = 34467u64 as u32; + #[doc = "The `WebGL2RenderingContext.DONT_CARE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DONT_CARE: u32 = 4352u64 as u32; + #[doc = "The `WebGL2RenderingContext.FASTEST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FASTEST: u32 = 4353u64 as u32; + #[doc = "The `WebGL2RenderingContext.NICEST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const NICEST: u32 = 4354u64 as u32; + #[doc = "The `WebGL2RenderingContext.GENERATE_MIPMAP_HINT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const GENERATE_MIPMAP_HINT: u32 = 33170u64 as u32; + #[doc = "The `WebGL2RenderingContext.BYTE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BYTE: u32 = 5120u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_BYTE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_BYTE: u32 = 5121u64 as u32; + #[doc = "The `WebGL2RenderingContext.SHORT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SHORT: u32 = 5122u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_SHORT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_SHORT: u32 = 5123u64 as u32; + #[doc = "The `WebGL2RenderingContext.INT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INT: u32 = 5124u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_INT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_INT: u32 = 5125u64 as u32; + #[doc = "The `WebGL2RenderingContext.FLOAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FLOAT: u32 = 5126u64 as u32; + #[doc = "The `WebGL2RenderingContext.DEPTH_COMPONENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DEPTH_COMPONENT: u32 = 6402u64 as u32; + #[doc = "The `WebGL2RenderingContext.ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ALPHA: u32 = 6406u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGB` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGB: u32 = 6407u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGBA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGBA: u32 = 6408u64 as u32; + #[doc = "The `WebGL2RenderingContext.LUMINANCE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const LUMINANCE: u32 = 6409u64 as u32; + #[doc = "The `WebGL2RenderingContext.LUMINANCE_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const LUMINANCE_ALPHA: u32 = 6410u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_SHORT_4_4_4_4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_SHORT_4_4_4_4: u32 = 32819u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_SHORT_5_5_5_1` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_SHORT_5_5_5_1: u32 = 32820u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNSIGNED_SHORT_5_6_5` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNSIGNED_SHORT_5_6_5: u32 = 33635u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAGMENT_SHADER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAGMENT_SHADER: u32 = 35632u64 as u32; + #[doc = "The `WebGL2RenderingContext.VERTEX_SHADER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const VERTEX_SHADER: u32 = 35633u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_VERTEX_ATTRIBS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_VERTEX_ATTRIBS: u32 = 34921u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_VERTEX_UNIFORM_VECTORS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_VERTEX_UNIFORM_VECTORS: u32 = 36347u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_VARYING_VECTORS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_VARYING_VECTORS: u32 = 36348u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_COMBINED_TEXTURE_IMAGE_UNITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_COMBINED_TEXTURE_IMAGE_UNITS: u32 = 35661u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_VERTEX_TEXTURE_IMAGE_UNITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_VERTEX_TEXTURE_IMAGE_UNITS: u32 = 35660u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_TEXTURE_IMAGE_UNITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_TEXTURE_IMAGE_UNITS: u32 = 34930u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_FRAGMENT_UNIFORM_VECTORS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_FRAGMENT_UNIFORM_VECTORS: u32 = 36349u64 as u32; + #[doc = "The `WebGL2RenderingContext.SHADER_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SHADER_TYPE: u32 = 35663u64 as u32; + #[doc = "The `WebGL2RenderingContext.DELETE_STATUS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DELETE_STATUS: u32 = 35712u64 as u32; + #[doc = "The `WebGL2RenderingContext.LINK_STATUS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const LINK_STATUS: u32 = 35714u64 as u32; + #[doc = "The `WebGL2RenderingContext.VALIDATE_STATUS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const VALIDATE_STATUS: u32 = 35715u64 as u32; + #[doc = "The `WebGL2RenderingContext.ATTACHED_SHADERS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ATTACHED_SHADERS: u32 = 35717u64 as u32; + #[doc = "The `WebGL2RenderingContext.ACTIVE_UNIFORMS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ACTIVE_UNIFORMS: u32 = 35718u64 as u32; + #[doc = "The `WebGL2RenderingContext.ACTIVE_ATTRIBUTES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ACTIVE_ATTRIBUTES: u32 = 35721u64 as u32; + #[doc = "The `WebGL2RenderingContext.SHADING_LANGUAGE_VERSION` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SHADING_LANGUAGE_VERSION: u32 = 35724u64 as u32; + #[doc = "The `WebGL2RenderingContext.CURRENT_PROGRAM` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const CURRENT_PROGRAM: u32 = 35725u64 as u32; + #[doc = "The `WebGL2RenderingContext.NEVER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const NEVER: u32 = 512u64 as u32; + #[doc = "The `WebGL2RenderingContext.LESS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const LESS: u32 = 513u64 as u32; + #[doc = "The `WebGL2RenderingContext.EQUAL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const EQUAL: u32 = 514u64 as u32; + #[doc = "The `WebGL2RenderingContext.LEQUAL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const LEQUAL: u32 = 515u64 as u32; + #[doc = "The `WebGL2RenderingContext.GREATER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const GREATER: u32 = 516u64 as u32; + #[doc = "The `WebGL2RenderingContext.NOTEQUAL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const NOTEQUAL: u32 = 517u64 as u32; + #[doc = "The `WebGL2RenderingContext.GEQUAL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const GEQUAL: u32 = 518u64 as u32; + #[doc = "The `WebGL2RenderingContext.ALWAYS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ALWAYS: u32 = 519u64 as u32; + #[doc = "The `WebGL2RenderingContext.KEEP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const KEEP: u32 = 7680u64 as u32; + #[doc = "The `WebGL2RenderingContext.REPLACE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const REPLACE: u32 = 7681u64 as u32; + #[doc = "The `WebGL2RenderingContext.INCR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INCR: u32 = 7682u64 as u32; + #[doc = "The `WebGL2RenderingContext.DECR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DECR: u32 = 7683u64 as u32; + #[doc = "The `WebGL2RenderingContext.INVERT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INVERT: u32 = 5386u64 as u32; + #[doc = "The `WebGL2RenderingContext.INCR_WRAP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INCR_WRAP: u32 = 34055u64 as u32; + #[doc = "The `WebGL2RenderingContext.DECR_WRAP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DECR_WRAP: u32 = 34056u64 as u32; + #[doc = "The `WebGL2RenderingContext.VENDOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const VENDOR: u32 = 7936u64 as u32; + #[doc = "The `WebGL2RenderingContext.RENDERER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RENDERER: u32 = 7937u64 as u32; + #[doc = "The `WebGL2RenderingContext.VERSION` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const VERSION: u32 = 7938u64 as u32; + #[doc = "The `WebGL2RenderingContext.NEAREST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const NEAREST: u32 = 9728u64 as u32; + #[doc = "The `WebGL2RenderingContext.LINEAR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const LINEAR: u32 = 9729u64 as u32; + #[doc = "The `WebGL2RenderingContext.NEAREST_MIPMAP_NEAREST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const NEAREST_MIPMAP_NEAREST: u32 = 9984u64 as u32; + #[doc = "The `WebGL2RenderingContext.LINEAR_MIPMAP_NEAREST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const LINEAR_MIPMAP_NEAREST: u32 = 9985u64 as u32; + #[doc = "The `WebGL2RenderingContext.NEAREST_MIPMAP_LINEAR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const NEAREST_MIPMAP_LINEAR: u32 = 9986u64 as u32; + #[doc = "The `WebGL2RenderingContext.LINEAR_MIPMAP_LINEAR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const LINEAR_MIPMAP_LINEAR: u32 = 9987u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_MAG_FILTER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_MAG_FILTER: u32 = 10240u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_MIN_FILTER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_MIN_FILTER: u32 = 10241u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_WRAP_S` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_WRAP_S: u32 = 10242u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_WRAP_T` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_WRAP_T: u32 = 10243u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_2D` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_2D: u32 = 3553u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE: u32 = 5890u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_CUBE_MAP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_CUBE_MAP: u32 = 34067u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_BINDING_CUBE_MAP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_BINDING_CUBE_MAP: u32 = 34068u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_X` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_CUBE_MAP_POSITIVE_X: u32 = 34069u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_CUBE_MAP_NEGATIVE_X: u32 = 34070u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_CUBE_MAP_POSITIVE_Y: u32 = 34071u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_CUBE_MAP_NEGATIVE_Y: u32 = 34072u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_CUBE_MAP_POSITIVE_Z: u32 = 34073u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE_CUBE_MAP_NEGATIVE_Z: u32 = 34074u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_CUBE_MAP_TEXTURE_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_CUBE_MAP_TEXTURE_SIZE: u32 = 34076u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE0` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE0: u32 = 33984u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE1` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE1: u32 = 33985u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE2: u32 = 33986u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE3: u32 = 33987u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE4: u32 = 33988u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE5` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE5: u32 = 33989u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE6` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE6: u32 = 33990u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE7` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE7: u32 = 33991u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE8: u32 = 33992u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE9` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE9: u32 = 33993u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE10` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE10: u32 = 33994u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE11` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE11: u32 = 33995u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE12` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE12: u32 = 33996u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE13` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE13: u32 = 33997u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE14` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE14: u32 = 33998u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE15` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE15: u32 = 33999u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE16` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE16: u32 = 34000u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE17` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE17: u32 = 34001u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE18` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE18: u32 = 34002u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE19` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE19: u32 = 34003u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE20` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE20: u32 = 34004u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE21` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE21: u32 = 34005u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE22` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE22: u32 = 34006u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE23` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE23: u32 = 34007u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE24` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE24: u32 = 34008u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE25` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE25: u32 = 34009u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE26` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE26: u32 = 34010u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE27` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE27: u32 = 34011u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE28` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE28: u32 = 34012u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE29` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE29: u32 = 34013u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE30` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE30: u32 = 34014u64 as u32; + #[doc = "The `WebGL2RenderingContext.TEXTURE31` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const TEXTURE31: u32 = 34015u64 as u32; + #[doc = "The `WebGL2RenderingContext.ACTIVE_TEXTURE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const ACTIVE_TEXTURE: u32 = 34016u64 as u32; + #[doc = "The `WebGL2RenderingContext.REPEAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const REPEAT: u32 = 10497u64 as u32; + #[doc = "The `WebGL2RenderingContext.CLAMP_TO_EDGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const CLAMP_TO_EDGE: u32 = 33071u64 as u32; + #[doc = "The `WebGL2RenderingContext.MIRRORED_REPEAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MIRRORED_REPEAT: u32 = 33648u64 as u32; + #[doc = "The `WebGL2RenderingContext.FLOAT_VEC2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FLOAT_VEC2: u32 = 35664u64 as u32; + #[doc = "The `WebGL2RenderingContext.FLOAT_VEC3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FLOAT_VEC3: u32 = 35665u64 as u32; + #[doc = "The `WebGL2RenderingContext.FLOAT_VEC4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FLOAT_VEC4: u32 = 35666u64 as u32; + #[doc = "The `WebGL2RenderingContext.INT_VEC2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INT_VEC2: u32 = 35667u64 as u32; + #[doc = "The `WebGL2RenderingContext.INT_VEC3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INT_VEC3: u32 = 35668u64 as u32; + #[doc = "The `WebGL2RenderingContext.INT_VEC4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INT_VEC4: u32 = 35669u64 as u32; + #[doc = "The `WebGL2RenderingContext.BOOL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BOOL: u32 = 35670u64 as u32; + #[doc = "The `WebGL2RenderingContext.BOOL_VEC2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BOOL_VEC2: u32 = 35671u64 as u32; + #[doc = "The `WebGL2RenderingContext.BOOL_VEC3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BOOL_VEC3: u32 = 35672u64 as u32; + #[doc = "The `WebGL2RenderingContext.BOOL_VEC4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BOOL_VEC4: u32 = 35673u64 as u32; + #[doc = "The `WebGL2RenderingContext.FLOAT_MAT2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FLOAT_MAT2: u32 = 35674u64 as u32; + #[doc = "The `WebGL2RenderingContext.FLOAT_MAT3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FLOAT_MAT3: u32 = 35675u64 as u32; + #[doc = "The `WebGL2RenderingContext.FLOAT_MAT4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FLOAT_MAT4: u32 = 35676u64 as u32; + #[doc = "The `WebGL2RenderingContext.SAMPLER_2D` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SAMPLER_2D: u32 = 35678u64 as u32; + #[doc = "The `WebGL2RenderingContext.SAMPLER_CUBE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const SAMPLER_CUBE: u32 = 35680u64 as u32; + #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_ENABLED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const VERTEX_ATTRIB_ARRAY_ENABLED: u32 = 34338u64 as u32; + #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const VERTEX_ATTRIB_ARRAY_SIZE: u32 = 34339u64 as u32; + #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_STRIDE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const VERTEX_ATTRIB_ARRAY_STRIDE: u32 = 34340u64 as u32; + #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const VERTEX_ATTRIB_ARRAY_TYPE: u32 = 34341u64 as u32; + #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_NORMALIZED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const VERTEX_ATTRIB_ARRAY_NORMALIZED: u32 = 34922u64 as u32; + #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_POINTER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const VERTEX_ATTRIB_ARRAY_POINTER: u32 = 34373u64 as u32; + #[doc = "The `WebGL2RenderingContext.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: u32 = 34975u64 as u32; + #[doc = "The `WebGL2RenderingContext.IMPLEMENTATION_COLOR_READ_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const IMPLEMENTATION_COLOR_READ_TYPE: u32 = 35738u64 as u32; + #[doc = "The `WebGL2RenderingContext.IMPLEMENTATION_COLOR_READ_FORMAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const IMPLEMENTATION_COLOR_READ_FORMAT: u32 = 35739u64 as u32; + #[doc = "The `WebGL2RenderingContext.COMPILE_STATUS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COMPILE_STATUS: u32 = 35713u64 as u32; + #[doc = "The `WebGL2RenderingContext.LOW_FLOAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const LOW_FLOAT: u32 = 36336u64 as u32; + #[doc = "The `WebGL2RenderingContext.MEDIUM_FLOAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MEDIUM_FLOAT: u32 = 36337u64 as u32; + #[doc = "The `WebGL2RenderingContext.HIGH_FLOAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const HIGH_FLOAT: u32 = 36338u64 as u32; + #[doc = "The `WebGL2RenderingContext.LOW_INT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const LOW_INT: u32 = 36339u64 as u32; + #[doc = "The `WebGL2RenderingContext.MEDIUM_INT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MEDIUM_INT: u32 = 36340u64 as u32; + #[doc = "The `WebGL2RenderingContext.HIGH_INT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const HIGH_INT: u32 = 36341u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER: u32 = 36160u64 as u32; + #[doc = "The `WebGL2RenderingContext.RENDERBUFFER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RENDERBUFFER: u32 = 36161u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGBA4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGBA4: u32 = 32854u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGB5_A1` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGB5_A1: u32 = 32855u64 as u32; + #[doc = "The `WebGL2RenderingContext.RGB565` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RGB565: u32 = 36194u64 as u32; + #[doc = "The `WebGL2RenderingContext.DEPTH_COMPONENT16` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DEPTH_COMPONENT16: u32 = 33189u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_INDEX8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_INDEX8: u32 = 36168u64 as u32; + #[doc = "The `WebGL2RenderingContext.DEPTH_STENCIL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DEPTH_STENCIL: u32 = 34041u64 as u32; + #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_WIDTH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RENDERBUFFER_WIDTH: u32 = 36162u64 as u32; + #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_HEIGHT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RENDERBUFFER_HEIGHT: u32 = 36163u64 as u32; + #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_INTERNAL_FORMAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RENDERBUFFER_INTERNAL_FORMAT: u32 = 36164u64 as u32; + #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_RED_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RENDERBUFFER_RED_SIZE: u32 = 36176u64 as u32; + #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_GREEN_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RENDERBUFFER_GREEN_SIZE: u32 = 36177u64 as u32; + #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_BLUE_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RENDERBUFFER_BLUE_SIZE: u32 = 36178u64 as u32; + #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_ALPHA_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RENDERBUFFER_ALPHA_SIZE: u32 = 36179u64 as u32; + #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_DEPTH_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RENDERBUFFER_DEPTH_SIZE: u32 = 36180u64 as u32; + #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_STENCIL_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RENDERBUFFER_STENCIL_SIZE: u32 = 36181u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: u32 = 36048u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: u32 = 36049u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: u32 = 36050u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: u32 = 36051u64 as u32; + #[doc = "The `WebGL2RenderingContext.COLOR_ATTACHMENT0` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const COLOR_ATTACHMENT0: u32 = 36064u64 as u32; + #[doc = "The `WebGL2RenderingContext.DEPTH_ATTACHMENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DEPTH_ATTACHMENT: u32 = 36096u64 as u32; + #[doc = "The `WebGL2RenderingContext.STENCIL_ATTACHMENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const STENCIL_ATTACHMENT: u32 = 36128u64 as u32; + #[doc = "The `WebGL2RenderingContext.DEPTH_STENCIL_ATTACHMENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const DEPTH_STENCIL_ATTACHMENT: u32 = 33306u64 as u32; + #[doc = "The `WebGL2RenderingContext.NONE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const NONE: u32 = 0i64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_COMPLETE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_COMPLETE: u32 = 36053u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_ATTACHMENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_INCOMPLETE_ATTACHMENT: u32 = 36054u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: u32 = 36055u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_INCOMPLETE_DIMENSIONS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_INCOMPLETE_DIMENSIONS: u32 = 36057u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_UNSUPPORTED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_UNSUPPORTED: u32 = 36061u64 as u32; + #[doc = "The `WebGL2RenderingContext.FRAMEBUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const FRAMEBUFFER_BINDING: u32 = 36006u64 as u32; + #[doc = "The `WebGL2RenderingContext.RENDERBUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const RENDERBUFFER_BINDING: u32 = 36007u64 as u32; + #[doc = "The `WebGL2RenderingContext.MAX_RENDERBUFFER_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const MAX_RENDERBUFFER_SIZE: u32 = 34024u64 as u32; + #[doc = "The `WebGL2RenderingContext.INVALID_FRAMEBUFFER_OPERATION` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const INVALID_FRAMEBUFFER_OPERATION: u32 = 1286u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNPACK_FLIP_Y_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNPACK_FLIP_Y_WEBGL: u32 = 37440u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNPACK_PREMULTIPLY_ALPHA_WEBGL: u32 = 37441u64 as u32; + #[doc = "The `WebGL2RenderingContext.CONTEXT_LOST_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const CONTEXT_LOST_WEBGL: u32 = 37442u64 as u32; + #[doc = "The `WebGL2RenderingContext.UNPACK_COLORSPACE_CONVERSION_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const UNPACK_COLORSPACE_CONVERSION_WEBGL: u32 = 37443u64 as u32; + #[doc = "The `WebGL2RenderingContext.BROWSER_DEFAULT_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`*"] + pub const BROWSER_DEFAULT_WEBGL: u32 = 37444u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_WebGlActiveInfo.rs b/crates/web-sys/src/features/gen_WebGlActiveInfo.rs new file mode 100644 index 00000000..dc1094e8 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlActiveInfo.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGLActiveInfo , typescript_type = "WebGLActiveInfo" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlActiveInfo` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLActiveInfo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`*"] + pub type WebGlActiveInfo; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebGLActiveInfo" , js_name = size ) ] + #[doc = "Getter for the `size` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLActiveInfo/size)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`*"] + pub fn size(this: &WebGlActiveInfo) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebGLActiveInfo" , js_name = type ) ] + #[doc = "Getter for the `type` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLActiveInfo/type)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`*"] + pub fn type_(this: &WebGlActiveInfo) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebGLActiveInfo" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLActiveInfo/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`*"] + pub fn name(this: &WebGlActiveInfo) -> String; +} diff --git a/crates/web-sys/src/features/gen_WebGlBuffer.rs b/crates/web-sys/src/features/gen_WebGlBuffer.rs new file mode 100644 index 00000000..f51946d2 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlBuffer.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGLBuffer , typescript_type = "WebGLBuffer" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlBuffer` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`*"] + pub type WebGlBuffer; +} diff --git a/crates/web-sys/src/features/gen_WebGlContextAttributes.rs b/crates/web-sys/src/features/gen_WebGlContextAttributes.rs new file mode 100644 index 00000000..7d25308c --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlContextAttributes.rs @@ -0,0 +1,151 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGLContextAttributes ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlContextAttributes` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] + pub type WebGlContextAttributes; +} +impl WebGlContextAttributes { + #[doc = "Construct a new `WebGlContextAttributes`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `alpha` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] + pub fn alpha(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("alpha"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `antialias` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] + pub fn antialias(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("antialias"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `depth` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] + pub fn depth(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("depth"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `failIfMajorPerformanceCaveat` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] + pub fn fail_if_major_performance_caveat(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("failIfMajorPerformanceCaveat"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "WebGlPowerPreference")] + #[doc = "Change the `powerPreference` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`, `WebGlPowerPreference`*"] + pub fn power_preference(&mut self, val: WebGlPowerPreference) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("powerPreference"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `premultipliedAlpha` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] + pub fn premultiplied_alpha(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("premultipliedAlpha"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `preserveDrawingBuffer` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] + pub fn preserve_drawing_buffer(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("preserveDrawingBuffer"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `stencil` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`*"] + pub fn stencil(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("stencil"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_WebGlContextEvent.rs b/crates/web-sys/src/features/gen_WebGlContextEvent.rs new file mode 100644 index 00000000..c01ca40f --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlContextEvent.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Event , extends = :: js_sys :: Object , js_name = WebGLContextEvent , typescript_type = "WebGLContextEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlContextEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLContextEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextEvent`*"] + pub type WebGlContextEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebGLContextEvent" , js_name = statusMessage ) ] + #[doc = "Getter for the `statusMessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLContextEvent/statusMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextEvent`*"] + pub fn status_message(this: &WebGlContextEvent) -> String; + #[wasm_bindgen(catch, constructor, js_class = "WebGLContextEvent")] + #[doc = "The `new WebGlContextEvent(..)` constructor, creating a new instance of `WebGlContextEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLContextEvent/WebGLContextEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "WebGlContextEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "WebGLContextEvent")] + #[doc = "The `new WebGlContextEvent(..)` constructor, creating a new instance of `WebGlContextEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLContextEvent/WebGLContextEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextEvent`, `WebGlContextEventInit`*"] + pub fn new_with_event_init( + type_: &str, + event_init: &WebGlContextEventInit, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_WebGlContextEventInit.rs b/crates/web-sys/src/features/gen_WebGlContextEventInit.rs new file mode 100644 index 00000000..ef39dbab --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlContextEventInit.rs @@ -0,0 +1,90 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGLContextEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlContextEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] + pub type WebGlContextEventInit; +} +impl WebGlContextEventInit { + #[doc = "Construct a new `WebGlContextEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `statusMessage` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextEventInit`*"] + pub fn status_message(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("statusMessage"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_WebGlFramebuffer.rs b/crates/web-sys/src/features/gen_WebGlFramebuffer.rs new file mode 100644 index 00000000..3eb78693 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlFramebuffer.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGLFramebuffer , typescript_type = "WebGLFramebuffer" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlFramebuffer` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLFramebuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`*"] + pub type WebGlFramebuffer; +} diff --git a/crates/web-sys/src/features/gen_WebGlPowerPreference.rs b/crates/web-sys/src/features/gen_WebGlPowerPreference.rs new file mode 100644 index 00000000..538918f1 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlPowerPreference.rs @@ -0,0 +1,12 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `WebGlPowerPreference` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `WebGlPowerPreference`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum WebGlPowerPreference { + Default = "default", + LowPower = "low-power", + HighPerformance = "high-performance", +} diff --git a/crates/web-sys/src/features/gen_WebGlProgram.rs b/crates/web-sys/src/features/gen_WebGlProgram.rs new file mode 100644 index 00000000..8abc4f2f --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlProgram.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGLProgram , typescript_type = "WebGLProgram" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlProgram` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLProgram)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`*"] + pub type WebGlProgram; +} diff --git a/crates/web-sys/src/features/gen_WebGlQuery.rs b/crates/web-sys/src/features/gen_WebGlQuery.rs new file mode 100644 index 00000000..4e4009dc --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlQuery.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGLQuery , typescript_type = "WebGLQuery" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlQuery` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLQuery)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlQuery`*"] + pub type WebGlQuery; +} diff --git a/crates/web-sys/src/features/gen_WebGlRenderbuffer.rs b/crates/web-sys/src/features/gen_WebGlRenderbuffer.rs new file mode 100644 index 00000000..1f3bcd6b --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlRenderbuffer.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGLRenderbuffer , typescript_type = "WebGLRenderbuffer" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlRenderbuffer` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderbuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`*"] + pub type WebGlRenderbuffer; +} diff --git a/crates/web-sys/src/features/gen_WebGlRenderingContext.rs b/crates/web-sys/src/features/gen_WebGlRenderingContext.rs new file mode 100644 index 00000000..892af574 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlRenderingContext.rs @@ -0,0 +1,3117 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGLRenderingContext , typescript_type = "WebGLRenderingContext" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlRenderingContext` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub type WebGlRenderingContext; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebGLRenderingContext" , js_name = canvas ) ] + #[doc = "Getter for the `canvas` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/canvas)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn canvas(this: &WebGlRenderingContext) -> Option<::js_sys::Object>; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebGLRenderingContext" , js_name = drawingBufferWidth ) ] + #[doc = "Getter for the `drawingBufferWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawingBufferWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn drawing_buffer_width(this: &WebGlRenderingContext) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebGLRenderingContext" , js_name = drawingBufferHeight ) ] + #[doc = "Getter for the `drawingBufferHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawingBufferHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn drawing_buffer_height(this: &WebGlRenderingContext) -> i32; + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData ) ] + #[doc = "The `bufferData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn buffer_data_with_i32(this: &WebGlRenderingContext, target: u32, size: i32, usage: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData ) ] + #[doc = "The `bufferData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn buffer_data_with_f64(this: &WebGlRenderingContext, target: u32, size: f64, usage: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData ) ] + #[doc = "The `bufferData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn buffer_data_with_opt_array_buffer( + this: &WebGlRenderingContext, + target: u32, + data: Option<&::js_sys::ArrayBuffer>, + usage: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData ) ] + #[doc = "The `bufferData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn buffer_data_with_array_buffer_view( + this: &WebGlRenderingContext, + target: u32, + data: &::js_sys::Object, + usage: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = bufferData ) ] + #[doc = "The `bufferData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn buffer_data_with_u8_array( + this: &WebGlRenderingContext, + target: u32, + data: &[u8], + usage: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn buffer_sub_data_with_i32_and_array_buffer( + this: &WebGlRenderingContext, + target: u32, + offset: i32, + data: &::js_sys::ArrayBuffer, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn buffer_sub_data_with_f64_and_array_buffer( + this: &WebGlRenderingContext, + target: u32, + offset: f64, + data: &::js_sys::ArrayBuffer, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn buffer_sub_data_with_i32_and_array_buffer_view( + this: &WebGlRenderingContext, + target: u32, + offset: i32, + data: &::js_sys::Object, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn buffer_sub_data_with_f64_and_array_buffer_view( + this: &WebGlRenderingContext, + target: u32, + offset: f64, + data: &::js_sys::Object, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn buffer_sub_data_with_i32_and_u8_array( + this: &WebGlRenderingContext, + target: u32, + offset: i32, + data: &[u8], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = bufferSubData ) ] + #[doc = "The `bufferSubData()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn buffer_sub_data_with_f64_and_u8_array( + this: &WebGlRenderingContext, + target: u32, + offset: f64, + data: &[u8], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = commit ) ] + #[doc = "The `commit()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/commit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn commit(this: &WebGlRenderingContext); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = compressedTexImage2D ) ] + #[doc = "The `compressedTexImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn compressed_tex_image_2d_with_array_buffer_view( + this: &WebGlRenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + border: i32, + data: &::js_sys::Object, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = compressedTexImage2D ) ] + #[doc = "The `compressedTexImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn compressed_tex_image_2d_with_u8_array( + this: &WebGlRenderingContext, + target: u32, + level: i32, + internalformat: u32, + width: i32, + height: i32, + border: i32, + data: &[u8], + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = compressedTexSubImage2D ) ] + #[doc = "The `compressedTexSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn compressed_tex_sub_image_2d_with_array_buffer_view( + this: &WebGlRenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + data: &::js_sys::Object, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = compressedTexSubImage2D ) ] + #[doc = "The `compressedTexSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn compressed_tex_sub_image_2d_with_u8_array( + this: &WebGlRenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + data: &mut [u8], + ); + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = readPixels ) ] + #[doc = "The `readPixels()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn read_pixels_with_opt_array_buffer_view( + this: &WebGlRenderingContext, + x: i32, + y: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + pixels: Option<&::js_sys::Object>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = readPixels ) ] + #[doc = "The `readPixels()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn read_pixels_with_opt_u8_array( + this: &WebGlRenderingContext, + x: i32, + y: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + pixels: Option<&mut [u8]>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_array_buffer_view( + this: &WebGlRenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + border: i32, + format: u32, + type_: u32, + pixels: Option<&::js_sys::Object>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_u8_array( + this: &WebGlRenderingContext, + target: u32, + level: i32, + internalformat: i32, + width: i32, + height: i32, + border: i32, + format: u32, + type_: u32, + pixels: Option<&[u8]>, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGlRenderingContext`*"] + pub fn tex_image_2d_with_u32_and_u32_and_image_bitmap( + this: &WebGlRenderingContext, + target: u32, + level: i32, + internalformat: i32, + format: u32, + type_: u32, + pixels: &ImageBitmap, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGlRenderingContext`*"] + pub fn tex_image_2d_with_u32_and_u32_and_image_data( + this: &WebGlRenderingContext, + target: u32, + level: i32, + internalformat: i32, + format: u32, + type_: u32, + pixels: &ImageData, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGlRenderingContext`*"] + pub fn tex_image_2d_with_u32_and_u32_and_image( + this: &WebGlRenderingContext, + target: u32, + level: i32, + internalformat: i32, + format: u32, + type_: u32, + image: &HtmlImageElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlCanvasElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGlRenderingContext`*"] + pub fn tex_image_2d_with_u32_and_u32_and_canvas( + this: &WebGlRenderingContext, + target: u32, + level: i32, + internalformat: i32, + format: u32, + type_: u32, + canvas: &HtmlCanvasElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlVideoElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texImage2D ) ] + #[doc = "The `texImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGlRenderingContext`*"] + pub fn tex_image_2d_with_u32_and_u32_and_video( + this: &WebGlRenderingContext, + target: u32, + level: i32, + internalformat: i32, + format: u32, + type_: u32, + video: &HtmlVideoElement, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_array_buffer_view( + this: &WebGlRenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + pixels: Option<&::js_sys::Object>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_u8_array( + this: &WebGlRenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + width: i32, + height: i32, + format: u32, + type_: u32, + pixels: Option<&[u8]>, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGlRenderingContext`*"] + pub fn tex_sub_image_2d_with_u32_and_u32_and_image_bitmap( + this: &WebGlRenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + format: u32, + type_: u32, + pixels: &ImageBitmap, + ) -> Result<(), JsValue>; + #[cfg(feature = "ImageData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGlRenderingContext`*"] + pub fn tex_sub_image_2d_with_u32_and_u32_and_image_data( + this: &WebGlRenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + format: u32, + type_: u32, + pixels: &ImageData, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGlRenderingContext`*"] + pub fn tex_sub_image_2d_with_u32_and_u32_and_image( + this: &WebGlRenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + format: u32, + type_: u32, + image: &HtmlImageElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlCanvasElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGlRenderingContext`*"] + pub fn tex_sub_image_2d_with_u32_and_u32_and_canvas( + this: &WebGlRenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + format: u32, + type_: u32, + canvas: &HtmlCanvasElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "HtmlVideoElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = texSubImage2D ) ] + #[doc = "The `texSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGlRenderingContext`*"] + pub fn tex_sub_image_2d_with_u32_and_u32_and_video( + this: &WebGlRenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + format: u32, + type_: u32, + video: &HtmlVideoElement, + ) -> Result<(), JsValue>; + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1fv ) ] + #[doc = "The `uniform1fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1fv_with_f32_array( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1fv ) ] + #[doc = "The `uniform1fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1fv_with_f32_sequence( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1iv ) ] + #[doc = "The `uniform1iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1iv_with_i32_array( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[i32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1iv ) ] + #[doc = "The `uniform1iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1iv_with_i32_sequence( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2fv ) ] + #[doc = "The `uniform2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2fv_with_f32_array( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2fv ) ] + #[doc = "The `uniform2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2fv_with_f32_sequence( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2iv ) ] + #[doc = "The `uniform2iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2iv_with_i32_array( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[i32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2iv ) ] + #[doc = "The `uniform2iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2iv_with_i32_sequence( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3fv ) ] + #[doc = "The `uniform3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3fv_with_f32_array( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3fv ) ] + #[doc = "The `uniform3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3fv_with_f32_sequence( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3iv ) ] + #[doc = "The `uniform3iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3iv_with_i32_array( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[i32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3iv ) ] + #[doc = "The `uniform3iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3iv_with_i32_sequence( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4fv ) ] + #[doc = "The `uniform4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4fv_with_f32_array( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4fv ) ] + #[doc = "The `uniform4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4fv_with_f32_sequence( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4iv ) ] + #[doc = "The `uniform4iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4iv_with_i32_array( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + data: &[i32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4iv ) ] + #[doc = "The `uniform4iv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4iv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4iv_with_i32_sequence( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix2fv ) ] + #[doc = "The `uniformMatrix2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2fv_with_f32_array( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix2fv ) ] + #[doc = "The `uniformMatrix2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix2fv_with_f32_sequence( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix3fv ) ] + #[doc = "The `uniformMatrix3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3fv_with_f32_array( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix3fv ) ] + #[doc = "The `uniformMatrix3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix3fv_with_f32_sequence( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix4fv ) ] + #[doc = "The `uniformMatrix4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4fv_with_f32_array( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &[f32], + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniformMatrix4fv ) ] + #[doc = "The `uniformMatrix4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform_matrix4fv_with_f32_sequence( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + transpose: bool, + data: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = activeTexture ) ] + #[doc = "The `activeTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/activeTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn active_texture(this: &WebGlRenderingContext, texture: u32); + #[cfg(all(feature = "WebGlProgram", feature = "WebGlShader",))] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = attachShader ) ] + #[doc = "The `attachShader()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/attachShader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`, `WebGlShader`*"] + pub fn attach_shader( + this: &WebGlRenderingContext, + program: &WebGlProgram, + shader: &WebGlShader, + ); + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = bindAttribLocation ) ] + #[doc = "The `bindAttribLocation()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindAttribLocation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] + pub fn bind_attrib_location( + this: &WebGlRenderingContext, + program: &WebGlProgram, + index: u32, + name: &str, + ); + #[cfg(feature = "WebGlBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = bindBuffer ) ] + #[doc = "The `bindBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"] + pub fn bind_buffer(this: &WebGlRenderingContext, target: u32, buffer: Option<&WebGlBuffer>); + #[cfg(feature = "WebGlFramebuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = bindFramebuffer ) ] + #[doc = "The `bindFramebuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindFramebuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"] + pub fn bind_framebuffer( + this: &WebGlRenderingContext, + target: u32, + framebuffer: Option<&WebGlFramebuffer>, + ); + #[cfg(feature = "WebGlRenderbuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = bindRenderbuffer ) ] + #[doc = "The `bindRenderbuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindRenderbuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"] + pub fn bind_renderbuffer( + this: &WebGlRenderingContext, + target: u32, + renderbuffer: Option<&WebGlRenderbuffer>, + ); + #[cfg(feature = "WebGlTexture")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = bindTexture ) ] + #[doc = "The `bindTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] + pub fn bind_texture(this: &WebGlRenderingContext, target: u32, texture: Option<&WebGlTexture>); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = blendColor ) ] + #[doc = "The `blendColor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn blend_color(this: &WebGlRenderingContext, red: f32, green: f32, blue: f32, alpha: f32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = blendEquation ) ] + #[doc = "The `blendEquation()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendEquation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn blend_equation(this: &WebGlRenderingContext, mode: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = blendEquationSeparate ) ] + #[doc = "The `blendEquationSeparate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendEquationSeparate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn blend_equation_separate(this: &WebGlRenderingContext, mode_rgb: u32, mode_alpha: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = blendFunc ) ] + #[doc = "The `blendFunc()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendFunc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn blend_func(this: &WebGlRenderingContext, sfactor: u32, dfactor: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = blendFuncSeparate ) ] + #[doc = "The `blendFuncSeparate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendFuncSeparate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn blend_func_separate( + this: &WebGlRenderingContext, + src_rgb: u32, + dst_rgb: u32, + src_alpha: u32, + dst_alpha: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = checkFramebufferStatus ) ] + #[doc = "The `checkFramebufferStatus()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn check_framebuffer_status(this: &WebGlRenderingContext, target: u32) -> u32; + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = clear ) ] + #[doc = "The `clear()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn clear(this: &WebGlRenderingContext, mask: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = clearColor ) ] + #[doc = "The `clearColor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearColor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn clear_color(this: &WebGlRenderingContext, red: f32, green: f32, blue: f32, alpha: f32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = clearDepth ) ] + #[doc = "The `clearDepth()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearDepth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn clear_depth(this: &WebGlRenderingContext, depth: f32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = clearStencil ) ] + #[doc = "The `clearStencil()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearStencil)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn clear_stencil(this: &WebGlRenderingContext, s: i32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = colorMask ) ] + #[doc = "The `colorMask()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/colorMask)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn color_mask( + this: &WebGlRenderingContext, + red: bool, + green: bool, + blue: bool, + alpha: bool, + ); + #[cfg(feature = "WebGlShader")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = compileShader ) ] + #[doc = "The `compileShader()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compileShader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] + pub fn compile_shader(this: &WebGlRenderingContext, shader: &WebGlShader); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = copyTexImage2D ) ] + #[doc = "The `copyTexImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/copyTexImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn copy_tex_image_2d( + this: &WebGlRenderingContext, + target: u32, + level: i32, + internalformat: u32, + x: i32, + y: i32, + width: i32, + height: i32, + border: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = copyTexSubImage2D ) ] + #[doc = "The `copyTexSubImage2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn copy_tex_sub_image_2d( + this: &WebGlRenderingContext, + target: u32, + level: i32, + xoffset: i32, + yoffset: i32, + x: i32, + y: i32, + width: i32, + height: i32, + ); + #[cfg(feature = "WebGlBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = createBuffer ) ] + #[doc = "The `createBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"] + pub fn create_buffer(this: &WebGlRenderingContext) -> Option; + #[cfg(feature = "WebGlFramebuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = createFramebuffer ) ] + #[doc = "The `createFramebuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createFramebuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"] + pub fn create_framebuffer(this: &WebGlRenderingContext) -> Option; + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = createProgram ) ] + #[doc = "The `createProgram()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createProgram)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] + pub fn create_program(this: &WebGlRenderingContext) -> Option; + #[cfg(feature = "WebGlRenderbuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = createRenderbuffer ) ] + #[doc = "The `createRenderbuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createRenderbuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"] + pub fn create_renderbuffer(this: &WebGlRenderingContext) -> Option; + #[cfg(feature = "WebGlShader")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = createShader ) ] + #[doc = "The `createShader()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createShader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] + pub fn create_shader(this: &WebGlRenderingContext, type_: u32) -> Option; + #[cfg(feature = "WebGlTexture")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = createTexture ) ] + #[doc = "The `createTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] + pub fn create_texture(this: &WebGlRenderingContext) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = cullFace ) ] + #[doc = "The `cullFace()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/cullFace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn cull_face(this: &WebGlRenderingContext, mode: u32); + #[cfg(feature = "WebGlBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = deleteBuffer ) ] + #[doc = "The `deleteBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"] + pub fn delete_buffer(this: &WebGlRenderingContext, buffer: Option<&WebGlBuffer>); + #[cfg(feature = "WebGlFramebuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = deleteFramebuffer ) ] + #[doc = "The `deleteFramebuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteFramebuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"] + pub fn delete_framebuffer(this: &WebGlRenderingContext, framebuffer: Option<&WebGlFramebuffer>); + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = deleteProgram ) ] + #[doc = "The `deleteProgram()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteProgram)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] + pub fn delete_program(this: &WebGlRenderingContext, program: Option<&WebGlProgram>); + #[cfg(feature = "WebGlRenderbuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = deleteRenderbuffer ) ] + #[doc = "The `deleteRenderbuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"] + pub fn delete_renderbuffer( + this: &WebGlRenderingContext, + renderbuffer: Option<&WebGlRenderbuffer>, + ); + #[cfg(feature = "WebGlShader")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = deleteShader ) ] + #[doc = "The `deleteShader()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteShader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] + pub fn delete_shader(this: &WebGlRenderingContext, shader: Option<&WebGlShader>); + #[cfg(feature = "WebGlTexture")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = deleteTexture ) ] + #[doc = "The `deleteTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] + pub fn delete_texture(this: &WebGlRenderingContext, texture: Option<&WebGlTexture>); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = depthFunc ) ] + #[doc = "The `depthFunc()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthFunc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn depth_func(this: &WebGlRenderingContext, func: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = depthMask ) ] + #[doc = "The `depthMask()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthMask)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn depth_mask(this: &WebGlRenderingContext, flag: bool); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = depthRange ) ] + #[doc = "The `depthRange()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthRange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn depth_range(this: &WebGlRenderingContext, z_near: f32, z_far: f32); + #[cfg(all(feature = "WebGlProgram", feature = "WebGlShader",))] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = detachShader ) ] + #[doc = "The `detachShader()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/detachShader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`, `WebGlShader`*"] + pub fn detach_shader( + this: &WebGlRenderingContext, + program: &WebGlProgram, + shader: &WebGlShader, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = disable ) ] + #[doc = "The `disable()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/disable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn disable(this: &WebGlRenderingContext, cap: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = disableVertexAttribArray ) ] + #[doc = "The `disableVertexAttribArray()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn disable_vertex_attrib_array(this: &WebGlRenderingContext, index: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = drawArrays ) ] + #[doc = "The `drawArrays()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawArrays)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn draw_arrays(this: &WebGlRenderingContext, mode: u32, first: i32, count: i32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = drawElements ) ] + #[doc = "The `drawElements()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn draw_elements_with_i32( + this: &WebGlRenderingContext, + mode: u32, + count: i32, + type_: u32, + offset: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = drawElements ) ] + #[doc = "The `drawElements()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn draw_elements_with_f64( + this: &WebGlRenderingContext, + mode: u32, + count: i32, + type_: u32, + offset: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = enable ) ] + #[doc = "The `enable()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/enable)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn enable(this: &WebGlRenderingContext, cap: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = enableVertexAttribArray ) ] + #[doc = "The `enableVertexAttribArray()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn enable_vertex_attrib_array(this: &WebGlRenderingContext, index: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = finish ) ] + #[doc = "The `finish()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/finish)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn finish(this: &WebGlRenderingContext); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = flush ) ] + #[doc = "The `flush()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/flush)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn flush(this: &WebGlRenderingContext); + #[cfg(feature = "WebGlRenderbuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = framebufferRenderbuffer ) ] + #[doc = "The `framebufferRenderbuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"] + pub fn framebuffer_renderbuffer( + this: &WebGlRenderingContext, + target: u32, + attachment: u32, + renderbuffertarget: u32, + renderbuffer: Option<&WebGlRenderbuffer>, + ); + #[cfg(feature = "WebGlTexture")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = framebufferTexture2D ) ] + #[doc = "The `framebufferTexture2D()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/framebufferTexture2D)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] + pub fn framebuffer_texture_2d( + this: &WebGlRenderingContext, + target: u32, + attachment: u32, + textarget: u32, + texture: Option<&WebGlTexture>, + level: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = frontFace ) ] + #[doc = "The `frontFace()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/frontFace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn front_face(this: &WebGlRenderingContext, mode: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = generateMipmap ) ] + #[doc = "The `generateMipmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/generateMipmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn generate_mipmap(this: &WebGlRenderingContext, target: u32); + #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getActiveAttrib ) ] + #[doc = "The `getActiveAttrib()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getActiveAttrib)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`, `WebGlProgram`, `WebGlRenderingContext`*"] + pub fn get_active_attrib( + this: &WebGlRenderingContext, + program: &WebGlProgram, + index: u32, + ) -> Option; + #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getActiveUniform ) ] + #[doc = "The `getActiveUniform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getActiveUniform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`, `WebGlProgram`, `WebGlRenderingContext`*"] + pub fn get_active_uniform( + this: &WebGlRenderingContext, + program: &WebGlProgram, + index: u32, + ) -> Option; + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getAttachedShaders ) ] + #[doc = "The `getAttachedShaders()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getAttachedShaders)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] + pub fn get_attached_shaders( + this: &WebGlRenderingContext, + program: &WebGlProgram, + ) -> Option<::js_sys::Array>; + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getAttribLocation ) ] + #[doc = "The `getAttribLocation()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getAttribLocation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] + pub fn get_attrib_location( + this: &WebGlRenderingContext, + program: &WebGlProgram, + name: &str, + ) -> i32; + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getBufferParameter ) ] + #[doc = "The `getBufferParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getBufferParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn get_buffer_parameter( + this: &WebGlRenderingContext, + target: u32, + pname: u32, + ) -> ::wasm_bindgen::JsValue; + #[cfg(feature = "WebGlContextAttributes")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getContextAttributes ) ] + #[doc = "The `getContextAttributes()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getContextAttributes)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`, `WebGlRenderingContext`*"] + pub fn get_context_attributes(this: &WebGlRenderingContext) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getError ) ] + #[doc = "The `getError()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn get_error(this: &WebGlRenderingContext) -> u32; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = getExtension ) ] + #[doc = "The `getExtension()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getExtension)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn get_extension( + this: &WebGlRenderingContext, + name: &str, + ) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = getFramebufferAttachmentParameter ) ] + #[doc = "The `getFramebufferAttachmentParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn get_framebuffer_attachment_parameter( + this: &WebGlRenderingContext, + target: u32, + attachment: u32, + pname: u32, + ) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = getParameter ) ] + #[doc = "The `getParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn get_parameter( + this: &WebGlRenderingContext, + pname: u32, + ) -> Result<::wasm_bindgen::JsValue, JsValue>; + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getProgramInfoLog ) ] + #[doc = "The `getProgramInfoLog()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getProgramInfoLog)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] + pub fn get_program_info_log( + this: &WebGlRenderingContext, + program: &WebGlProgram, + ) -> Option; + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getProgramParameter ) ] + #[doc = "The `getProgramParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getProgramParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] + pub fn get_program_parameter( + this: &WebGlRenderingContext, + program: &WebGlProgram, + pname: u32, + ) -> ::wasm_bindgen::JsValue; + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getRenderbufferParameter ) ] + #[doc = "The `getRenderbufferParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn get_renderbuffer_parameter( + this: &WebGlRenderingContext, + target: u32, + pname: u32, + ) -> ::wasm_bindgen::JsValue; + #[cfg(feature = "WebGlShader")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getShaderInfoLog ) ] + #[doc = "The `getShaderInfoLog()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderInfoLog)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] + pub fn get_shader_info_log( + this: &WebGlRenderingContext, + shader: &WebGlShader, + ) -> Option; + #[cfg(feature = "WebGlShader")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getShaderParameter ) ] + #[doc = "The `getShaderParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] + pub fn get_shader_parameter( + this: &WebGlRenderingContext, + shader: &WebGlShader, + pname: u32, + ) -> ::wasm_bindgen::JsValue; + #[cfg(feature = "WebGlShaderPrecisionFormat")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getShaderPrecisionFormat ) ] + #[doc = "The `getShaderPrecisionFormat()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShaderPrecisionFormat`*"] + pub fn get_shader_precision_format( + this: &WebGlRenderingContext, + shadertype: u32, + precisiontype: u32, + ) -> Option; + #[cfg(feature = "WebGlShader")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getShaderSource ) ] + #[doc = "The `getShaderSource()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] + pub fn get_shader_source(this: &WebGlRenderingContext, shader: &WebGlShader) -> Option; + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getSupportedExtensions ) ] + #[doc = "The `getSupportedExtensions()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getSupportedExtensions)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn get_supported_extensions(this: &WebGlRenderingContext) -> Option<::js_sys::Array>; + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getTexParameter ) ] + #[doc = "The `getTexParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getTexParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn get_tex_parameter( + this: &WebGlRenderingContext, + target: u32, + pname: u32, + ) -> ::wasm_bindgen::JsValue; + #[cfg(all(feature = "WebGlProgram", feature = "WebGlUniformLocation",))] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getUniform ) ] + #[doc = "The `getUniform()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getUniform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn get_uniform( + this: &WebGlRenderingContext, + program: &WebGlProgram, + location: &WebGlUniformLocation, + ) -> ::wasm_bindgen::JsValue; + #[cfg(all(feature = "WebGlProgram", feature = "WebGlUniformLocation",))] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getUniformLocation ) ] + #[doc = "The `getUniformLocation()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getUniformLocation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn get_uniform_location( + this: &WebGlRenderingContext, + program: &WebGlProgram, + name: &str, + ) -> Option; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebGLRenderingContext" , js_name = getVertexAttrib ) ] + #[doc = "The `getVertexAttrib()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getVertexAttrib)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn get_vertex_attrib( + this: &WebGlRenderingContext, + index: u32, + pname: u32, + ) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = getVertexAttribOffset ) ] + #[doc = "The `getVertexAttribOffset()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn get_vertex_attrib_offset(this: &WebGlRenderingContext, index: u32, pname: u32) -> f64; + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = hint ) ] + #[doc = "The `hint()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/hint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn hint(this: &WebGlRenderingContext, target: u32, mode: u32); + #[cfg(feature = "WebGlBuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = isBuffer ) ] + #[doc = "The `isBuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isBuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"] + pub fn is_buffer(this: &WebGlRenderingContext, buffer: Option<&WebGlBuffer>) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = isContextLost ) ] + #[doc = "The `isContextLost()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isContextLost)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn is_context_lost(this: &WebGlRenderingContext) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = isEnabled ) ] + #[doc = "The `isEnabled()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isEnabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn is_enabled(this: &WebGlRenderingContext, cap: u32) -> bool; + #[cfg(feature = "WebGlFramebuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = isFramebuffer ) ] + #[doc = "The `isFramebuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isFramebuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"] + pub fn is_framebuffer( + this: &WebGlRenderingContext, + framebuffer: Option<&WebGlFramebuffer>, + ) -> bool; + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = isProgram ) ] + #[doc = "The `isProgram()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isProgram)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] + pub fn is_program(this: &WebGlRenderingContext, program: Option<&WebGlProgram>) -> bool; + #[cfg(feature = "WebGlRenderbuffer")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = isRenderbuffer ) ] + #[doc = "The `isRenderbuffer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isRenderbuffer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"] + pub fn is_renderbuffer( + this: &WebGlRenderingContext, + renderbuffer: Option<&WebGlRenderbuffer>, + ) -> bool; + #[cfg(feature = "WebGlShader")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = isShader ) ] + #[doc = "The `isShader()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isShader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] + pub fn is_shader(this: &WebGlRenderingContext, shader: Option<&WebGlShader>) -> bool; + #[cfg(feature = "WebGlTexture")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = isTexture ) ] + #[doc = "The `isTexture()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"] + pub fn is_texture(this: &WebGlRenderingContext, texture: Option<&WebGlTexture>) -> bool; + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = lineWidth ) ] + #[doc = "The `lineWidth()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/lineWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn line_width(this: &WebGlRenderingContext, width: f32); + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = linkProgram ) ] + #[doc = "The `linkProgram()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/linkProgram)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] + pub fn link_program(this: &WebGlRenderingContext, program: &WebGlProgram); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = pixelStorei ) ] + #[doc = "The `pixelStorei()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/pixelStorei)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn pixel_storei(this: &WebGlRenderingContext, pname: u32, param: i32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = polygonOffset ) ] + #[doc = "The `polygonOffset()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/polygonOffset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn polygon_offset(this: &WebGlRenderingContext, factor: f32, units: f32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = renderbufferStorage ) ] + #[doc = "The `renderbufferStorage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/renderbufferStorage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn renderbuffer_storage( + this: &WebGlRenderingContext, + target: u32, + internalformat: u32, + width: i32, + height: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = sampleCoverage ) ] + #[doc = "The `sampleCoverage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/sampleCoverage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn sample_coverage(this: &WebGlRenderingContext, value: f32, invert: bool); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = scissor ) ] + #[doc = "The `scissor()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/scissor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn scissor(this: &WebGlRenderingContext, x: i32, y: i32, width: i32, height: i32); + #[cfg(feature = "WebGlShader")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = shaderSource ) ] + #[doc = "The `shaderSource()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/shaderSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"] + pub fn shader_source(this: &WebGlRenderingContext, shader: &WebGlShader, source: &str); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = stencilFunc ) ] + #[doc = "The `stencilFunc()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilFunc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn stencil_func(this: &WebGlRenderingContext, func: u32, ref_: i32, mask: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = stencilFuncSeparate ) ] + #[doc = "The `stencilFuncSeparate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn stencil_func_separate( + this: &WebGlRenderingContext, + face: u32, + func: u32, + ref_: i32, + mask: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = stencilMask ) ] + #[doc = "The `stencilMask()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilMask)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn stencil_mask(this: &WebGlRenderingContext, mask: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = stencilMaskSeparate ) ] + #[doc = "The `stencilMaskSeparate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn stencil_mask_separate(this: &WebGlRenderingContext, face: u32, mask: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = stencilOp ) ] + #[doc = "The `stencilOp()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilOp)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn stencil_op(this: &WebGlRenderingContext, fail: u32, zfail: u32, zpass: u32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = stencilOpSeparate ) ] + #[doc = "The `stencilOpSeparate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilOpSeparate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn stencil_op_separate( + this: &WebGlRenderingContext, + face: u32, + fail: u32, + zfail: u32, + zpass: u32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = texParameterf ) ] + #[doc = "The `texParameterf()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texParameterf)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn tex_parameterf(this: &WebGlRenderingContext, target: u32, pname: u32, param: f32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = texParameteri ) ] + #[doc = "The `texParameteri()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texParameteri)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn tex_parameteri(this: &WebGlRenderingContext, target: u32, pname: u32, param: i32); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1f ) ] + #[doc = "The `uniform1f()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1f(this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, x: f32); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform1i ) ] + #[doc = "The `uniform1i()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1i)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform1i(this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, x: i32); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2f ) ] + #[doc = "The `uniform2f()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2f( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + x: f32, + y: f32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform2i ) ] + #[doc = "The `uniform2i()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2i)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform2i( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + x: i32, + y: i32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3f ) ] + #[doc = "The `uniform3f()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3f( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + x: f32, + y: f32, + z: f32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform3i ) ] + #[doc = "The `uniform3i()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3i)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform3i( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + x: i32, + y: i32, + z: i32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4f ) ] + #[doc = "The `uniform4f()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4f( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + x: f32, + y: f32, + z: f32, + w: f32, + ); + #[cfg(feature = "WebGlUniformLocation")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = uniform4i ) ] + #[doc = "The `uniform4i()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4i)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"] + pub fn uniform4i( + this: &WebGlRenderingContext, + location: Option<&WebGlUniformLocation>, + x: i32, + y: i32, + z: i32, + w: i32, + ); + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = useProgram ) ] + #[doc = "The `useProgram()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/useProgram)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] + pub fn use_program(this: &WebGlRenderingContext, program: Option<&WebGlProgram>); + #[cfg(feature = "WebGlProgram")] + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = validateProgram ) ] + #[doc = "The `validateProgram()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/validateProgram)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"] + pub fn validate_program(this: &WebGlRenderingContext, program: &WebGlProgram); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib1f ) ] + #[doc = "The `vertexAttrib1f()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib1f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn vertex_attrib1f(this: &WebGlRenderingContext, indx: u32, x: f32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib1fv ) ] + #[doc = "The `vertexAttrib1fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib1fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn vertex_attrib1fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib1fv ) ] + #[doc = "The `vertexAttrib1fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib1fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn vertex_attrib1fv_with_f32_sequence( + this: &WebGlRenderingContext, + indx: u32, + values: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib2f ) ] + #[doc = "The `vertexAttrib2f()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib2f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn vertex_attrib2f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib2fv ) ] + #[doc = "The `vertexAttrib2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn vertex_attrib2fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib2fv ) ] + #[doc = "The `vertexAttrib2fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib2fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn vertex_attrib2fv_with_f32_sequence( + this: &WebGlRenderingContext, + indx: u32, + values: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib3f ) ] + #[doc = "The `vertexAttrib3f()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib3f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn vertex_attrib3f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32, z: f32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib3fv ) ] + #[doc = "The `vertexAttrib3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn vertex_attrib3fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib3fv ) ] + #[doc = "The `vertexAttrib3fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib3fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn vertex_attrib3fv_with_f32_sequence( + this: &WebGlRenderingContext, + indx: u32, + values: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib4f ) ] + #[doc = "The `vertexAttrib4f()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib4f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn vertex_attrib4f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32, z: f32, w: f32); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib4fv ) ] + #[doc = "The `vertexAttrib4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn vertex_attrib4fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttrib4fv ) ] + #[doc = "The `vertexAttrib4fv()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib4fv)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn vertex_attrib4fv_with_f32_sequence( + this: &WebGlRenderingContext, + indx: u32, + values: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttribPointer ) ] + #[doc = "The `vertexAttribPointer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn vertex_attrib_pointer_with_i32( + this: &WebGlRenderingContext, + indx: u32, + size: i32, + type_: u32, + normalized: bool, + stride: i32, + offset: i32, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = vertexAttribPointer ) ] + #[doc = "The `vertexAttribPointer()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn vertex_attrib_pointer_with_f64( + this: &WebGlRenderingContext, + indx: u32, + size: i32, + type_: u32, + normalized: bool, + stride: i32, + offset: f64, + ); + # [ wasm_bindgen ( method , structural , js_class = "WebGLRenderingContext" , js_name = viewport ) ] + #[doc = "The `viewport()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/viewport)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub fn viewport(this: &WebGlRenderingContext, x: i32, y: i32, width: i32, height: i32); +} +impl WebGlRenderingContext { + #[doc = "The `WebGLRenderingContext.DEPTH_BUFFER_BIT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DEPTH_BUFFER_BIT: u32 = 256u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_BUFFER_BIT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_BUFFER_BIT: u32 = 1024u64 as u32; + #[doc = "The `WebGLRenderingContext.COLOR_BUFFER_BIT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const COLOR_BUFFER_BIT: u32 = 16384u64 as u32; + #[doc = "The `WebGLRenderingContext.POINTS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const POINTS: u32 = 0u64 as u32; + #[doc = "The `WebGLRenderingContext.LINES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const LINES: u32 = 1u64 as u32; + #[doc = "The `WebGLRenderingContext.LINE_LOOP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const LINE_LOOP: u32 = 2u64 as u32; + #[doc = "The `WebGLRenderingContext.LINE_STRIP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const LINE_STRIP: u32 = 3u64 as u32; + #[doc = "The `WebGLRenderingContext.TRIANGLES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TRIANGLES: u32 = 4u64 as u32; + #[doc = "The `WebGLRenderingContext.TRIANGLE_STRIP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TRIANGLE_STRIP: u32 = 5u64 as u32; + #[doc = "The `WebGLRenderingContext.TRIANGLE_FAN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TRIANGLE_FAN: u32 = 6u64 as u32; + #[doc = "The `WebGLRenderingContext.ZERO` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ZERO: u32 = 0i64 as u32; + #[doc = "The `WebGLRenderingContext.ONE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ONE: u32 = 1u64 as u32; + #[doc = "The `WebGLRenderingContext.SRC_COLOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const SRC_COLOR: u32 = 768u64 as u32; + #[doc = "The `WebGLRenderingContext.ONE_MINUS_SRC_COLOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ONE_MINUS_SRC_COLOR: u32 = 769u64 as u32; + #[doc = "The `WebGLRenderingContext.SRC_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const SRC_ALPHA: u32 = 770u64 as u32; + #[doc = "The `WebGLRenderingContext.ONE_MINUS_SRC_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ONE_MINUS_SRC_ALPHA: u32 = 771u64 as u32; + #[doc = "The `WebGLRenderingContext.DST_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DST_ALPHA: u32 = 772u64 as u32; + #[doc = "The `WebGLRenderingContext.ONE_MINUS_DST_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ONE_MINUS_DST_ALPHA: u32 = 773u64 as u32; + #[doc = "The `WebGLRenderingContext.DST_COLOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DST_COLOR: u32 = 774u64 as u32; + #[doc = "The `WebGLRenderingContext.ONE_MINUS_DST_COLOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ONE_MINUS_DST_COLOR: u32 = 775u64 as u32; + #[doc = "The `WebGLRenderingContext.SRC_ALPHA_SATURATE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const SRC_ALPHA_SATURATE: u32 = 776u64 as u32; + #[doc = "The `WebGLRenderingContext.FUNC_ADD` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FUNC_ADD: u32 = 32774u64 as u32; + #[doc = "The `WebGLRenderingContext.BLEND_EQUATION` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BLEND_EQUATION: u32 = 32777u64 as u32; + #[doc = "The `WebGLRenderingContext.BLEND_EQUATION_RGB` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BLEND_EQUATION_RGB: u32 = 32777u64 as u32; + #[doc = "The `WebGLRenderingContext.BLEND_EQUATION_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BLEND_EQUATION_ALPHA: u32 = 34877u64 as u32; + #[doc = "The `WebGLRenderingContext.FUNC_SUBTRACT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FUNC_SUBTRACT: u32 = 32778u64 as u32; + #[doc = "The `WebGLRenderingContext.FUNC_REVERSE_SUBTRACT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FUNC_REVERSE_SUBTRACT: u32 = 32779u64 as u32; + #[doc = "The `WebGLRenderingContext.BLEND_DST_RGB` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BLEND_DST_RGB: u32 = 32968u64 as u32; + #[doc = "The `WebGLRenderingContext.BLEND_SRC_RGB` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BLEND_SRC_RGB: u32 = 32969u64 as u32; + #[doc = "The `WebGLRenderingContext.BLEND_DST_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BLEND_DST_ALPHA: u32 = 32970u64 as u32; + #[doc = "The `WebGLRenderingContext.BLEND_SRC_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BLEND_SRC_ALPHA: u32 = 32971u64 as u32; + #[doc = "The `WebGLRenderingContext.CONSTANT_COLOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const CONSTANT_COLOR: u32 = 32769u64 as u32; + #[doc = "The `WebGLRenderingContext.ONE_MINUS_CONSTANT_COLOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ONE_MINUS_CONSTANT_COLOR: u32 = 32770u64 as u32; + #[doc = "The `WebGLRenderingContext.CONSTANT_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const CONSTANT_ALPHA: u32 = 32771u64 as u32; + #[doc = "The `WebGLRenderingContext.ONE_MINUS_CONSTANT_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ONE_MINUS_CONSTANT_ALPHA: u32 = 32772u64 as u32; + #[doc = "The `WebGLRenderingContext.BLEND_COLOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BLEND_COLOR: u32 = 32773u64 as u32; + #[doc = "The `WebGLRenderingContext.ARRAY_BUFFER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ARRAY_BUFFER: u32 = 34962u64 as u32; + #[doc = "The `WebGLRenderingContext.ELEMENT_ARRAY_BUFFER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ELEMENT_ARRAY_BUFFER: u32 = 34963u64 as u32; + #[doc = "The `WebGLRenderingContext.ARRAY_BUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ARRAY_BUFFER_BINDING: u32 = 34964u64 as u32; + #[doc = "The `WebGLRenderingContext.ELEMENT_ARRAY_BUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ELEMENT_ARRAY_BUFFER_BINDING: u32 = 34965u64 as u32; + #[doc = "The `WebGLRenderingContext.STREAM_DRAW` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STREAM_DRAW: u32 = 35040u64 as u32; + #[doc = "The `WebGLRenderingContext.STATIC_DRAW` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STATIC_DRAW: u32 = 35044u64 as u32; + #[doc = "The `WebGLRenderingContext.DYNAMIC_DRAW` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DYNAMIC_DRAW: u32 = 35048u64 as u32; + #[doc = "The `WebGLRenderingContext.BUFFER_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BUFFER_SIZE: u32 = 34660u64 as u32; + #[doc = "The `WebGLRenderingContext.BUFFER_USAGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BUFFER_USAGE: u32 = 34661u64 as u32; + #[doc = "The `WebGLRenderingContext.CURRENT_VERTEX_ATTRIB` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const CURRENT_VERTEX_ATTRIB: u32 = 34342u64 as u32; + #[doc = "The `WebGLRenderingContext.FRONT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FRONT: u32 = 1028u64 as u32; + #[doc = "The `WebGLRenderingContext.BACK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BACK: u32 = 1029u64 as u32; + #[doc = "The `WebGLRenderingContext.FRONT_AND_BACK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FRONT_AND_BACK: u32 = 1032u64 as u32; + #[doc = "The `WebGLRenderingContext.CULL_FACE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const CULL_FACE: u32 = 2884u64 as u32; + #[doc = "The `WebGLRenderingContext.BLEND` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BLEND: u32 = 3042u64 as u32; + #[doc = "The `WebGLRenderingContext.DITHER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DITHER: u32 = 3024u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_TEST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_TEST: u32 = 2960u64 as u32; + #[doc = "The `WebGLRenderingContext.DEPTH_TEST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DEPTH_TEST: u32 = 2929u64 as u32; + #[doc = "The `WebGLRenderingContext.SCISSOR_TEST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const SCISSOR_TEST: u32 = 3089u64 as u32; + #[doc = "The `WebGLRenderingContext.POLYGON_OFFSET_FILL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const POLYGON_OFFSET_FILL: u32 = 32823u64 as u32; + #[doc = "The `WebGLRenderingContext.SAMPLE_ALPHA_TO_COVERAGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const SAMPLE_ALPHA_TO_COVERAGE: u32 = 32926u64 as u32; + #[doc = "The `WebGLRenderingContext.SAMPLE_COVERAGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const SAMPLE_COVERAGE: u32 = 32928u64 as u32; + #[doc = "The `WebGLRenderingContext.NO_ERROR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const NO_ERROR: u32 = 0i64 as u32; + #[doc = "The `WebGLRenderingContext.INVALID_ENUM` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const INVALID_ENUM: u32 = 1280u64 as u32; + #[doc = "The `WebGLRenderingContext.INVALID_VALUE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const INVALID_VALUE: u32 = 1281u64 as u32; + #[doc = "The `WebGLRenderingContext.INVALID_OPERATION` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const INVALID_OPERATION: u32 = 1282u64 as u32; + #[doc = "The `WebGLRenderingContext.OUT_OF_MEMORY` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const OUT_OF_MEMORY: u32 = 1285u64 as u32; + #[doc = "The `WebGLRenderingContext.CW` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const CW: u32 = 2304u64 as u32; + #[doc = "The `WebGLRenderingContext.CCW` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const CCW: u32 = 2305u64 as u32; + #[doc = "The `WebGLRenderingContext.LINE_WIDTH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const LINE_WIDTH: u32 = 2849u64 as u32; + #[doc = "The `WebGLRenderingContext.ALIASED_POINT_SIZE_RANGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ALIASED_POINT_SIZE_RANGE: u32 = 33901u64 as u32; + #[doc = "The `WebGLRenderingContext.ALIASED_LINE_WIDTH_RANGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ALIASED_LINE_WIDTH_RANGE: u32 = 33902u64 as u32; + #[doc = "The `WebGLRenderingContext.CULL_FACE_MODE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const CULL_FACE_MODE: u32 = 2885u64 as u32; + #[doc = "The `WebGLRenderingContext.FRONT_FACE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FRONT_FACE: u32 = 2886u64 as u32; + #[doc = "The `WebGLRenderingContext.DEPTH_RANGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DEPTH_RANGE: u32 = 2928u64 as u32; + #[doc = "The `WebGLRenderingContext.DEPTH_WRITEMASK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DEPTH_WRITEMASK: u32 = 2930u64 as u32; + #[doc = "The `WebGLRenderingContext.DEPTH_CLEAR_VALUE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DEPTH_CLEAR_VALUE: u32 = 2931u64 as u32; + #[doc = "The `WebGLRenderingContext.DEPTH_FUNC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DEPTH_FUNC: u32 = 2932u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_CLEAR_VALUE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_CLEAR_VALUE: u32 = 2961u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_FUNC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_FUNC: u32 = 2962u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_FAIL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_FAIL: u32 = 2964u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_PASS_DEPTH_FAIL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_PASS_DEPTH_FAIL: u32 = 2965u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_PASS_DEPTH_PASS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_PASS_DEPTH_PASS: u32 = 2966u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_REF` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_REF: u32 = 2967u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_VALUE_MASK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_VALUE_MASK: u32 = 2963u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_WRITEMASK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_WRITEMASK: u32 = 2968u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_BACK_FUNC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_BACK_FUNC: u32 = 34816u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_BACK_FAIL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_BACK_FAIL: u32 = 34817u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_BACK_PASS_DEPTH_FAIL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_BACK_PASS_DEPTH_FAIL: u32 = 34818u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_BACK_PASS_DEPTH_PASS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_BACK_PASS_DEPTH_PASS: u32 = 34819u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_BACK_REF` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_BACK_REF: u32 = 36003u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_BACK_VALUE_MASK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_BACK_VALUE_MASK: u32 = 36004u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_BACK_WRITEMASK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_BACK_WRITEMASK: u32 = 36005u64 as u32; + #[doc = "The `WebGLRenderingContext.VIEWPORT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const VIEWPORT: u32 = 2978u64 as u32; + #[doc = "The `WebGLRenderingContext.SCISSOR_BOX` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const SCISSOR_BOX: u32 = 3088u64 as u32; + #[doc = "The `WebGLRenderingContext.COLOR_CLEAR_VALUE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const COLOR_CLEAR_VALUE: u32 = 3106u64 as u32; + #[doc = "The `WebGLRenderingContext.COLOR_WRITEMASK` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const COLOR_WRITEMASK: u32 = 3107u64 as u32; + #[doc = "The `WebGLRenderingContext.UNPACK_ALIGNMENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const UNPACK_ALIGNMENT: u32 = 3317u64 as u32; + #[doc = "The `WebGLRenderingContext.PACK_ALIGNMENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const PACK_ALIGNMENT: u32 = 3333u64 as u32; + #[doc = "The `WebGLRenderingContext.MAX_TEXTURE_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const MAX_TEXTURE_SIZE: u32 = 3379u64 as u32; + #[doc = "The `WebGLRenderingContext.MAX_VIEWPORT_DIMS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const MAX_VIEWPORT_DIMS: u32 = 3386u64 as u32; + #[doc = "The `WebGLRenderingContext.SUBPIXEL_BITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const SUBPIXEL_BITS: u32 = 3408u64 as u32; + #[doc = "The `WebGLRenderingContext.RED_BITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RED_BITS: u32 = 3410u64 as u32; + #[doc = "The `WebGLRenderingContext.GREEN_BITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const GREEN_BITS: u32 = 3411u64 as u32; + #[doc = "The `WebGLRenderingContext.BLUE_BITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BLUE_BITS: u32 = 3412u64 as u32; + #[doc = "The `WebGLRenderingContext.ALPHA_BITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ALPHA_BITS: u32 = 3413u64 as u32; + #[doc = "The `WebGLRenderingContext.DEPTH_BITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DEPTH_BITS: u32 = 3414u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_BITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_BITS: u32 = 3415u64 as u32; + #[doc = "The `WebGLRenderingContext.POLYGON_OFFSET_UNITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const POLYGON_OFFSET_UNITS: u32 = 10752u64 as u32; + #[doc = "The `WebGLRenderingContext.POLYGON_OFFSET_FACTOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const POLYGON_OFFSET_FACTOR: u32 = 32824u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE_BINDING_2D` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE_BINDING_2D: u32 = 32873u64 as u32; + #[doc = "The `WebGLRenderingContext.SAMPLE_BUFFERS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const SAMPLE_BUFFERS: u32 = 32936u64 as u32; + #[doc = "The `WebGLRenderingContext.SAMPLES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const SAMPLES: u32 = 32937u64 as u32; + #[doc = "The `WebGLRenderingContext.SAMPLE_COVERAGE_VALUE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const SAMPLE_COVERAGE_VALUE: u32 = 32938u64 as u32; + #[doc = "The `WebGLRenderingContext.SAMPLE_COVERAGE_INVERT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const SAMPLE_COVERAGE_INVERT: u32 = 32939u64 as u32; + #[doc = "The `WebGLRenderingContext.COMPRESSED_TEXTURE_FORMATS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const COMPRESSED_TEXTURE_FORMATS: u32 = 34467u64 as u32; + #[doc = "The `WebGLRenderingContext.DONT_CARE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DONT_CARE: u32 = 4352u64 as u32; + #[doc = "The `WebGLRenderingContext.FASTEST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FASTEST: u32 = 4353u64 as u32; + #[doc = "The `WebGLRenderingContext.NICEST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const NICEST: u32 = 4354u64 as u32; + #[doc = "The `WebGLRenderingContext.GENERATE_MIPMAP_HINT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const GENERATE_MIPMAP_HINT: u32 = 33170u64 as u32; + #[doc = "The `WebGLRenderingContext.BYTE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BYTE: u32 = 5120u64 as u32; + #[doc = "The `WebGLRenderingContext.UNSIGNED_BYTE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const UNSIGNED_BYTE: u32 = 5121u64 as u32; + #[doc = "The `WebGLRenderingContext.SHORT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const SHORT: u32 = 5122u64 as u32; + #[doc = "The `WebGLRenderingContext.UNSIGNED_SHORT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const UNSIGNED_SHORT: u32 = 5123u64 as u32; + #[doc = "The `WebGLRenderingContext.INT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const INT: u32 = 5124u64 as u32; + #[doc = "The `WebGLRenderingContext.UNSIGNED_INT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const UNSIGNED_INT: u32 = 5125u64 as u32; + #[doc = "The `WebGLRenderingContext.FLOAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FLOAT: u32 = 5126u64 as u32; + #[doc = "The `WebGLRenderingContext.DEPTH_COMPONENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DEPTH_COMPONENT: u32 = 6402u64 as u32; + #[doc = "The `WebGLRenderingContext.ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ALPHA: u32 = 6406u64 as u32; + #[doc = "The `WebGLRenderingContext.RGB` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RGB: u32 = 6407u64 as u32; + #[doc = "The `WebGLRenderingContext.RGBA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RGBA: u32 = 6408u64 as u32; + #[doc = "The `WebGLRenderingContext.LUMINANCE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const LUMINANCE: u32 = 6409u64 as u32; + #[doc = "The `WebGLRenderingContext.LUMINANCE_ALPHA` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const LUMINANCE_ALPHA: u32 = 6410u64 as u32; + #[doc = "The `WebGLRenderingContext.UNSIGNED_SHORT_4_4_4_4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const UNSIGNED_SHORT_4_4_4_4: u32 = 32819u64 as u32; + #[doc = "The `WebGLRenderingContext.UNSIGNED_SHORT_5_5_5_1` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const UNSIGNED_SHORT_5_5_5_1: u32 = 32820u64 as u32; + #[doc = "The `WebGLRenderingContext.UNSIGNED_SHORT_5_6_5` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const UNSIGNED_SHORT_5_6_5: u32 = 33635u64 as u32; + #[doc = "The `WebGLRenderingContext.FRAGMENT_SHADER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FRAGMENT_SHADER: u32 = 35632u64 as u32; + #[doc = "The `WebGLRenderingContext.VERTEX_SHADER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const VERTEX_SHADER: u32 = 35633u64 as u32; + #[doc = "The `WebGLRenderingContext.MAX_VERTEX_ATTRIBS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const MAX_VERTEX_ATTRIBS: u32 = 34921u64 as u32; + #[doc = "The `WebGLRenderingContext.MAX_VERTEX_UNIFORM_VECTORS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const MAX_VERTEX_UNIFORM_VECTORS: u32 = 36347u64 as u32; + #[doc = "The `WebGLRenderingContext.MAX_VARYING_VECTORS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const MAX_VARYING_VECTORS: u32 = 36348u64 as u32; + #[doc = "The `WebGLRenderingContext.MAX_COMBINED_TEXTURE_IMAGE_UNITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const MAX_COMBINED_TEXTURE_IMAGE_UNITS: u32 = 35661u64 as u32; + #[doc = "The `WebGLRenderingContext.MAX_VERTEX_TEXTURE_IMAGE_UNITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const MAX_VERTEX_TEXTURE_IMAGE_UNITS: u32 = 35660u64 as u32; + #[doc = "The `WebGLRenderingContext.MAX_TEXTURE_IMAGE_UNITS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const MAX_TEXTURE_IMAGE_UNITS: u32 = 34930u64 as u32; + #[doc = "The `WebGLRenderingContext.MAX_FRAGMENT_UNIFORM_VECTORS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const MAX_FRAGMENT_UNIFORM_VECTORS: u32 = 36349u64 as u32; + #[doc = "The `WebGLRenderingContext.SHADER_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const SHADER_TYPE: u32 = 35663u64 as u32; + #[doc = "The `WebGLRenderingContext.DELETE_STATUS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DELETE_STATUS: u32 = 35712u64 as u32; + #[doc = "The `WebGLRenderingContext.LINK_STATUS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const LINK_STATUS: u32 = 35714u64 as u32; + #[doc = "The `WebGLRenderingContext.VALIDATE_STATUS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const VALIDATE_STATUS: u32 = 35715u64 as u32; + #[doc = "The `WebGLRenderingContext.ATTACHED_SHADERS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ATTACHED_SHADERS: u32 = 35717u64 as u32; + #[doc = "The `WebGLRenderingContext.ACTIVE_UNIFORMS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ACTIVE_UNIFORMS: u32 = 35718u64 as u32; + #[doc = "The `WebGLRenderingContext.ACTIVE_ATTRIBUTES` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ACTIVE_ATTRIBUTES: u32 = 35721u64 as u32; + #[doc = "The `WebGLRenderingContext.SHADING_LANGUAGE_VERSION` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const SHADING_LANGUAGE_VERSION: u32 = 35724u64 as u32; + #[doc = "The `WebGLRenderingContext.CURRENT_PROGRAM` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const CURRENT_PROGRAM: u32 = 35725u64 as u32; + #[doc = "The `WebGLRenderingContext.NEVER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const NEVER: u32 = 512u64 as u32; + #[doc = "The `WebGLRenderingContext.LESS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const LESS: u32 = 513u64 as u32; + #[doc = "The `WebGLRenderingContext.EQUAL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const EQUAL: u32 = 514u64 as u32; + #[doc = "The `WebGLRenderingContext.LEQUAL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const LEQUAL: u32 = 515u64 as u32; + #[doc = "The `WebGLRenderingContext.GREATER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const GREATER: u32 = 516u64 as u32; + #[doc = "The `WebGLRenderingContext.NOTEQUAL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const NOTEQUAL: u32 = 517u64 as u32; + #[doc = "The `WebGLRenderingContext.GEQUAL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const GEQUAL: u32 = 518u64 as u32; + #[doc = "The `WebGLRenderingContext.ALWAYS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ALWAYS: u32 = 519u64 as u32; + #[doc = "The `WebGLRenderingContext.KEEP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const KEEP: u32 = 7680u64 as u32; + #[doc = "The `WebGLRenderingContext.REPLACE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const REPLACE: u32 = 7681u64 as u32; + #[doc = "The `WebGLRenderingContext.INCR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const INCR: u32 = 7682u64 as u32; + #[doc = "The `WebGLRenderingContext.DECR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DECR: u32 = 7683u64 as u32; + #[doc = "The `WebGLRenderingContext.INVERT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const INVERT: u32 = 5386u64 as u32; + #[doc = "The `WebGLRenderingContext.INCR_WRAP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const INCR_WRAP: u32 = 34055u64 as u32; + #[doc = "The `WebGLRenderingContext.DECR_WRAP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DECR_WRAP: u32 = 34056u64 as u32; + #[doc = "The `WebGLRenderingContext.VENDOR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const VENDOR: u32 = 7936u64 as u32; + #[doc = "The `WebGLRenderingContext.RENDERER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RENDERER: u32 = 7937u64 as u32; + #[doc = "The `WebGLRenderingContext.VERSION` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const VERSION: u32 = 7938u64 as u32; + #[doc = "The `WebGLRenderingContext.NEAREST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const NEAREST: u32 = 9728u64 as u32; + #[doc = "The `WebGLRenderingContext.LINEAR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const LINEAR: u32 = 9729u64 as u32; + #[doc = "The `WebGLRenderingContext.NEAREST_MIPMAP_NEAREST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const NEAREST_MIPMAP_NEAREST: u32 = 9984u64 as u32; + #[doc = "The `WebGLRenderingContext.LINEAR_MIPMAP_NEAREST` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const LINEAR_MIPMAP_NEAREST: u32 = 9985u64 as u32; + #[doc = "The `WebGLRenderingContext.NEAREST_MIPMAP_LINEAR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const NEAREST_MIPMAP_LINEAR: u32 = 9986u64 as u32; + #[doc = "The `WebGLRenderingContext.LINEAR_MIPMAP_LINEAR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const LINEAR_MIPMAP_LINEAR: u32 = 9987u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE_MAG_FILTER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE_MAG_FILTER: u32 = 10240u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE_MIN_FILTER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE_MIN_FILTER: u32 = 10241u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE_WRAP_S` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE_WRAP_S: u32 = 10242u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE_WRAP_T` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE_WRAP_T: u32 = 10243u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE_2D` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE_2D: u32 = 3553u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE: u32 = 5890u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE_CUBE_MAP: u32 = 34067u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE_BINDING_CUBE_MAP` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE_BINDING_CUBE_MAP: u32 = 34068u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_X` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE_CUBE_MAP_POSITIVE_X: u32 = 34069u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE_CUBE_MAP_NEGATIVE_X: u32 = 34070u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE_CUBE_MAP_POSITIVE_Y: u32 = 34071u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE_CUBE_MAP_NEGATIVE_Y: u32 = 34072u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE_CUBE_MAP_POSITIVE_Z: u32 = 34073u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE_CUBE_MAP_NEGATIVE_Z: u32 = 34074u64 as u32; + #[doc = "The `WebGLRenderingContext.MAX_CUBE_MAP_TEXTURE_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const MAX_CUBE_MAP_TEXTURE_SIZE: u32 = 34076u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE0` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE0: u32 = 33984u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE1` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE1: u32 = 33985u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE2: u32 = 33986u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE3: u32 = 33987u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE4: u32 = 33988u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE5` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE5: u32 = 33989u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE6` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE6: u32 = 33990u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE7` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE7: u32 = 33991u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE8: u32 = 33992u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE9` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE9: u32 = 33993u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE10` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE10: u32 = 33994u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE11` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE11: u32 = 33995u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE12` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE12: u32 = 33996u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE13` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE13: u32 = 33997u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE14` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE14: u32 = 33998u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE15` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE15: u32 = 33999u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE16` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE16: u32 = 34000u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE17` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE17: u32 = 34001u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE18` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE18: u32 = 34002u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE19` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE19: u32 = 34003u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE20` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE20: u32 = 34004u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE21` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE21: u32 = 34005u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE22` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE22: u32 = 34006u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE23` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE23: u32 = 34007u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE24` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE24: u32 = 34008u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE25` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE25: u32 = 34009u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE26` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE26: u32 = 34010u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE27` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE27: u32 = 34011u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE28` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE28: u32 = 34012u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE29` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE29: u32 = 34013u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE30` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE30: u32 = 34014u64 as u32; + #[doc = "The `WebGLRenderingContext.TEXTURE31` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const TEXTURE31: u32 = 34015u64 as u32; + #[doc = "The `WebGLRenderingContext.ACTIVE_TEXTURE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const ACTIVE_TEXTURE: u32 = 34016u64 as u32; + #[doc = "The `WebGLRenderingContext.REPEAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const REPEAT: u32 = 10497u64 as u32; + #[doc = "The `WebGLRenderingContext.CLAMP_TO_EDGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const CLAMP_TO_EDGE: u32 = 33071u64 as u32; + #[doc = "The `WebGLRenderingContext.MIRRORED_REPEAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const MIRRORED_REPEAT: u32 = 33648u64 as u32; + #[doc = "The `WebGLRenderingContext.FLOAT_VEC2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FLOAT_VEC2: u32 = 35664u64 as u32; + #[doc = "The `WebGLRenderingContext.FLOAT_VEC3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FLOAT_VEC3: u32 = 35665u64 as u32; + #[doc = "The `WebGLRenderingContext.FLOAT_VEC4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FLOAT_VEC4: u32 = 35666u64 as u32; + #[doc = "The `WebGLRenderingContext.INT_VEC2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const INT_VEC2: u32 = 35667u64 as u32; + #[doc = "The `WebGLRenderingContext.INT_VEC3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const INT_VEC3: u32 = 35668u64 as u32; + #[doc = "The `WebGLRenderingContext.INT_VEC4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const INT_VEC4: u32 = 35669u64 as u32; + #[doc = "The `WebGLRenderingContext.BOOL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BOOL: u32 = 35670u64 as u32; + #[doc = "The `WebGLRenderingContext.BOOL_VEC2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BOOL_VEC2: u32 = 35671u64 as u32; + #[doc = "The `WebGLRenderingContext.BOOL_VEC3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BOOL_VEC3: u32 = 35672u64 as u32; + #[doc = "The `WebGLRenderingContext.BOOL_VEC4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BOOL_VEC4: u32 = 35673u64 as u32; + #[doc = "The `WebGLRenderingContext.FLOAT_MAT2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FLOAT_MAT2: u32 = 35674u64 as u32; + #[doc = "The `WebGLRenderingContext.FLOAT_MAT3` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FLOAT_MAT3: u32 = 35675u64 as u32; + #[doc = "The `WebGLRenderingContext.FLOAT_MAT4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FLOAT_MAT4: u32 = 35676u64 as u32; + #[doc = "The `WebGLRenderingContext.SAMPLER_2D` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const SAMPLER_2D: u32 = 35678u64 as u32; + #[doc = "The `WebGLRenderingContext.SAMPLER_CUBE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const SAMPLER_CUBE: u32 = 35680u64 as u32; + #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_ENABLED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const VERTEX_ATTRIB_ARRAY_ENABLED: u32 = 34338u64 as u32; + #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const VERTEX_ATTRIB_ARRAY_SIZE: u32 = 34339u64 as u32; + #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_STRIDE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const VERTEX_ATTRIB_ARRAY_STRIDE: u32 = 34340u64 as u32; + #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const VERTEX_ATTRIB_ARRAY_TYPE: u32 = 34341u64 as u32; + #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_NORMALIZED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const VERTEX_ATTRIB_ARRAY_NORMALIZED: u32 = 34922u64 as u32; + #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_POINTER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const VERTEX_ATTRIB_ARRAY_POINTER: u32 = 34373u64 as u32; + #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: u32 = 34975u64 as u32; + #[doc = "The `WebGLRenderingContext.IMPLEMENTATION_COLOR_READ_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const IMPLEMENTATION_COLOR_READ_TYPE: u32 = 35738u64 as u32; + #[doc = "The `WebGLRenderingContext.IMPLEMENTATION_COLOR_READ_FORMAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const IMPLEMENTATION_COLOR_READ_FORMAT: u32 = 35739u64 as u32; + #[doc = "The `WebGLRenderingContext.COMPILE_STATUS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const COMPILE_STATUS: u32 = 35713u64 as u32; + #[doc = "The `WebGLRenderingContext.LOW_FLOAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const LOW_FLOAT: u32 = 36336u64 as u32; + #[doc = "The `WebGLRenderingContext.MEDIUM_FLOAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const MEDIUM_FLOAT: u32 = 36337u64 as u32; + #[doc = "The `WebGLRenderingContext.HIGH_FLOAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const HIGH_FLOAT: u32 = 36338u64 as u32; + #[doc = "The `WebGLRenderingContext.LOW_INT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const LOW_INT: u32 = 36339u64 as u32; + #[doc = "The `WebGLRenderingContext.MEDIUM_INT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const MEDIUM_INT: u32 = 36340u64 as u32; + #[doc = "The `WebGLRenderingContext.HIGH_INT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const HIGH_INT: u32 = 36341u64 as u32; + #[doc = "The `WebGLRenderingContext.FRAMEBUFFER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FRAMEBUFFER: u32 = 36160u64 as u32; + #[doc = "The `WebGLRenderingContext.RENDERBUFFER` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RENDERBUFFER: u32 = 36161u64 as u32; + #[doc = "The `WebGLRenderingContext.RGBA4` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RGBA4: u32 = 32854u64 as u32; + #[doc = "The `WebGLRenderingContext.RGB5_A1` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RGB5_A1: u32 = 32855u64 as u32; + #[doc = "The `WebGLRenderingContext.RGB565` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RGB565: u32 = 36194u64 as u32; + #[doc = "The `WebGLRenderingContext.DEPTH_COMPONENT16` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DEPTH_COMPONENT16: u32 = 33189u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_INDEX8` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_INDEX8: u32 = 36168u64 as u32; + #[doc = "The `WebGLRenderingContext.DEPTH_STENCIL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DEPTH_STENCIL: u32 = 34041u64 as u32; + #[doc = "The `WebGLRenderingContext.RENDERBUFFER_WIDTH` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RENDERBUFFER_WIDTH: u32 = 36162u64 as u32; + #[doc = "The `WebGLRenderingContext.RENDERBUFFER_HEIGHT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RENDERBUFFER_HEIGHT: u32 = 36163u64 as u32; + #[doc = "The `WebGLRenderingContext.RENDERBUFFER_INTERNAL_FORMAT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RENDERBUFFER_INTERNAL_FORMAT: u32 = 36164u64 as u32; + #[doc = "The `WebGLRenderingContext.RENDERBUFFER_RED_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RENDERBUFFER_RED_SIZE: u32 = 36176u64 as u32; + #[doc = "The `WebGLRenderingContext.RENDERBUFFER_GREEN_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RENDERBUFFER_GREEN_SIZE: u32 = 36177u64 as u32; + #[doc = "The `WebGLRenderingContext.RENDERBUFFER_BLUE_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RENDERBUFFER_BLUE_SIZE: u32 = 36178u64 as u32; + #[doc = "The `WebGLRenderingContext.RENDERBUFFER_ALPHA_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RENDERBUFFER_ALPHA_SIZE: u32 = 36179u64 as u32; + #[doc = "The `WebGLRenderingContext.RENDERBUFFER_DEPTH_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RENDERBUFFER_DEPTH_SIZE: u32 = 36180u64 as u32; + #[doc = "The `WebGLRenderingContext.RENDERBUFFER_STENCIL_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RENDERBUFFER_STENCIL_SIZE: u32 = 36181u64 as u32; + #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: u32 = 36048u64 as u32; + #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: u32 = 36049u64 as u32; + #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: u32 = 36050u64 as u32; + #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: u32 = 36051u64 as u32; + #[doc = "The `WebGLRenderingContext.COLOR_ATTACHMENT0` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const COLOR_ATTACHMENT0: u32 = 36064u64 as u32; + #[doc = "The `WebGLRenderingContext.DEPTH_ATTACHMENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DEPTH_ATTACHMENT: u32 = 36096u64 as u32; + #[doc = "The `WebGLRenderingContext.STENCIL_ATTACHMENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const STENCIL_ATTACHMENT: u32 = 36128u64 as u32; + #[doc = "The `WebGLRenderingContext.DEPTH_STENCIL_ATTACHMENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const DEPTH_STENCIL_ATTACHMENT: u32 = 33306u64 as u32; + #[doc = "The `WebGLRenderingContext.NONE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const NONE: u32 = 0i64 as u32; + #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_COMPLETE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FRAMEBUFFER_COMPLETE: u32 = 36053u64 as u32; + #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_ATTACHMENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FRAMEBUFFER_INCOMPLETE_ATTACHMENT: u32 = 36054u64 as u32; + #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: u32 = 36055u64 as u32; + #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_DIMENSIONS` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FRAMEBUFFER_INCOMPLETE_DIMENSIONS: u32 = 36057u64 as u32; + #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_UNSUPPORTED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FRAMEBUFFER_UNSUPPORTED: u32 = 36061u64 as u32; + #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const FRAMEBUFFER_BINDING: u32 = 36006u64 as u32; + #[doc = "The `WebGLRenderingContext.RENDERBUFFER_BINDING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const RENDERBUFFER_BINDING: u32 = 36007u64 as u32; + #[doc = "The `WebGLRenderingContext.MAX_RENDERBUFFER_SIZE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const MAX_RENDERBUFFER_SIZE: u32 = 34024u64 as u32; + #[doc = "The `WebGLRenderingContext.INVALID_FRAMEBUFFER_OPERATION` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const INVALID_FRAMEBUFFER_OPERATION: u32 = 1286u64 as u32; + #[doc = "The `WebGLRenderingContext.UNPACK_FLIP_Y_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const UNPACK_FLIP_Y_WEBGL: u32 = 37440u64 as u32; + #[doc = "The `WebGLRenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const UNPACK_PREMULTIPLY_ALPHA_WEBGL: u32 = 37441u64 as u32; + #[doc = "The `WebGLRenderingContext.CONTEXT_LOST_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const CONTEXT_LOST_WEBGL: u32 = 37442u64 as u32; + #[doc = "The `WebGLRenderingContext.UNPACK_COLORSPACE_CONVERSION_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const UNPACK_COLORSPACE_CONVERSION_WEBGL: u32 = 37443u64 as u32; + #[doc = "The `WebGLRenderingContext.BROWSER_DEFAULT_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"] + pub const BROWSER_DEFAULT_WEBGL: u32 = 37444u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_WebGlSampler.rs b/crates/web-sys/src/features/gen_WebGlSampler.rs new file mode 100644 index 00000000..b4faf3c9 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlSampler.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGLSampler , typescript_type = "WebGLSampler" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlSampler` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLSampler)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlSampler`*"] + pub type WebGlSampler; +} diff --git a/crates/web-sys/src/features/gen_WebGlShader.rs b/crates/web-sys/src/features/gen_WebGlShader.rs new file mode 100644 index 00000000..28fac2d9 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlShader.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGLShader , typescript_type = "WebGLShader" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlShader` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLShader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlShader`*"] + pub type WebGlShader; +} diff --git a/crates/web-sys/src/features/gen_WebGlShaderPrecisionFormat.rs b/crates/web-sys/src/features/gen_WebGlShaderPrecisionFormat.rs new file mode 100644 index 00000000..48cb0651 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlShaderPrecisionFormat.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGLShaderPrecisionFormat , typescript_type = "WebGLShaderPrecisionFormat" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlShaderPrecisionFormat` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLShaderPrecisionFormat)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlShaderPrecisionFormat`*"] + pub type WebGlShaderPrecisionFormat; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebGLShaderPrecisionFormat" , js_name = rangeMin ) ] + #[doc = "Getter for the `rangeMin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLShaderPrecisionFormat/rangeMin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlShaderPrecisionFormat`*"] + pub fn range_min(this: &WebGlShaderPrecisionFormat) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebGLShaderPrecisionFormat" , js_name = rangeMax ) ] + #[doc = "Getter for the `rangeMax` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLShaderPrecisionFormat/rangeMax)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlShaderPrecisionFormat`*"] + pub fn range_max(this: &WebGlShaderPrecisionFormat) -> i32; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebGLShaderPrecisionFormat" , js_name = precision ) ] + #[doc = "Getter for the `precision` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLShaderPrecisionFormat/precision)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlShaderPrecisionFormat`*"] + pub fn precision(this: &WebGlShaderPrecisionFormat) -> i32; +} diff --git a/crates/web-sys/src/features/gen_WebGlSync.rs b/crates/web-sys/src/features/gen_WebGlSync.rs new file mode 100644 index 00000000..d3e5d264 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlSync.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGLSync , typescript_type = "WebGLSync" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlSync` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLSync)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlSync`*"] + pub type WebGlSync; +} diff --git a/crates/web-sys/src/features/gen_WebGlTexture.rs b/crates/web-sys/src/features/gen_WebGlTexture.rs new file mode 100644 index 00000000..ef839e68 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlTexture.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGLTexture , typescript_type = "WebGLTexture" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlTexture` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLTexture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlTexture`*"] + pub type WebGlTexture; +} diff --git a/crates/web-sys/src/features/gen_WebGlTransformFeedback.rs b/crates/web-sys/src/features/gen_WebGlTransformFeedback.rs new file mode 100644 index 00000000..850ae210 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlTransformFeedback.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGLTransformFeedback , typescript_type = "WebGLTransformFeedback" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlTransformFeedback` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLTransformFeedback)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlTransformFeedback`*"] + pub type WebGlTransformFeedback; +} diff --git a/crates/web-sys/src/features/gen_WebGlUniformLocation.rs b/crates/web-sys/src/features/gen_WebGlUniformLocation.rs new file mode 100644 index 00000000..6df29fa5 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlUniformLocation.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGLUniformLocation , typescript_type = "WebGLUniformLocation" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlUniformLocation` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLUniformLocation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlUniformLocation`*"] + pub type WebGlUniformLocation; +} diff --git a/crates/web-sys/src/features/gen_WebGlVertexArrayObject.rs b/crates/web-sys/src/features/gen_WebGlVertexArrayObject.rs new file mode 100644 index 00000000..beafab2c --- /dev/null +++ b/crates/web-sys/src/features/gen_WebGlVertexArrayObject.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebGLVertexArrayObject , typescript_type = "WebGLVertexArrayObject" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebGlVertexArrayObject` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLVertexArrayObject)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlVertexArrayObject`*"] + pub type WebGlVertexArrayObject; +} diff --git a/crates/web-sys/src/features/gen_WebKitCssMatrix.rs b/crates/web-sys/src/features/gen_WebKitCssMatrix.rs new file mode 100644 index 00000000..f45c5dc3 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebKitCssMatrix.rs @@ -0,0 +1,244 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = DomMatrix , extends = DomMatrixReadOnly , extends = :: js_sys :: Object , js_name = WebKitCSSMatrix , typescript_type = "WebKitCSSMatrix" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebKitCssMatrix` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub type WebKitCssMatrix; + #[wasm_bindgen(catch, constructor, js_class = "WebKitCSSMatrix")] + #[doc = "The `new WebKitCssMatrix(..)` constructor, creating a new instance of `WebKitCssMatrix`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/WebKitCSSMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "WebKitCSSMatrix")] + #[doc = "The `new WebKitCssMatrix(..)` constructor, creating a new instance of `WebKitCssMatrix`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/WebKitCSSMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn new_with_transform_list(transform_list: &str) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "WebKitCSSMatrix")] + #[doc = "The `new WebKitCssMatrix(..)` constructor, creating a new instance of `WebKitCssMatrix`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/WebKitCSSMatrix)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn new_with_other(other: &WebKitCssMatrix) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebKitCSSMatrix" , js_name = inverse ) ] + #[doc = "The `inverse()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/inverse)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn inverse(this: &WebKitCssMatrix) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = multiply ) ] + #[doc = "The `multiply()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/multiply)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn multiply(this: &WebKitCssMatrix, other: &WebKitCssMatrix) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = rotate ) ] + #[doc = "The `rotate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn rotate(this: &WebKitCssMatrix) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = rotate ) ] + #[doc = "The `rotate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn rotate_with_rot_x(this: &WebKitCssMatrix, rot_x: f64) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = rotate ) ] + #[doc = "The `rotate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn rotate_with_rot_x_and_rot_y( + this: &WebKitCssMatrix, + rot_x: f64, + rot_y: f64, + ) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = rotate ) ] + #[doc = "The `rotate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn rotate_with_rot_x_and_rot_y_and_rot_z( + this: &WebKitCssMatrix, + rot_x: f64, + rot_y: f64, + rot_z: f64, + ) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = rotateAxisAngle ) ] + #[doc = "The `rotateAxisAngle()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotateAxisAngle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn rotate_axis_angle(this: &WebKitCssMatrix) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = rotateAxisAngle ) ] + #[doc = "The `rotateAxisAngle()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotateAxisAngle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn rotate_axis_angle_with_x(this: &WebKitCssMatrix, x: f64) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = rotateAxisAngle ) ] + #[doc = "The `rotateAxisAngle()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotateAxisAngle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn rotate_axis_angle_with_x_and_y( + this: &WebKitCssMatrix, + x: f64, + y: f64, + ) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = rotateAxisAngle ) ] + #[doc = "The `rotateAxisAngle()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotateAxisAngle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn rotate_axis_angle_with_x_and_y_and_z( + this: &WebKitCssMatrix, + x: f64, + y: f64, + z: f64, + ) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = rotateAxisAngle ) ] + #[doc = "The `rotateAxisAngle()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/rotateAxisAngle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn rotate_axis_angle_with_x_and_y_and_z_and_angle( + this: &WebKitCssMatrix, + x: f64, + y: f64, + z: f64, + angle: f64, + ) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = scale ) ] + #[doc = "The `scale()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/scale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn scale(this: &WebKitCssMatrix) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = scale ) ] + #[doc = "The `scale()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/scale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn scale_with_scale_x(this: &WebKitCssMatrix, scale_x: f64) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = scale ) ] + #[doc = "The `scale()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/scale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn scale_with_scale_x_and_scale_y( + this: &WebKitCssMatrix, + scale_x: f64, + scale_y: f64, + ) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = scale ) ] + #[doc = "The `scale()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/scale)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn scale_with_scale_x_and_scale_y_and_scale_z( + this: &WebKitCssMatrix, + scale_x: f64, + scale_y: f64, + scale_z: f64, + ) -> WebKitCssMatrix; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebKitCSSMatrix" , js_name = setMatrixValue ) ] + #[doc = "The `setMatrixValue()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/setMatrixValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn set_matrix_value( + this: &WebKitCssMatrix, + transform_list: &str, + ) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = skewX ) ] + #[doc = "The `skewX()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/skewX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn skew_x(this: &WebKitCssMatrix) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = skewX ) ] + #[doc = "The `skewX()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/skewX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn skew_x_with_sx(this: &WebKitCssMatrix, sx: f64) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = skewY ) ] + #[doc = "The `skewY()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/skewY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn skew_y(this: &WebKitCssMatrix) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = skewY ) ] + #[doc = "The `skewY()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/skewY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn skew_y_with_sy(this: &WebKitCssMatrix, sy: f64) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = translate ) ] + #[doc = "The `translate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/translate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn translate(this: &WebKitCssMatrix) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = translate ) ] + #[doc = "The `translate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/translate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn translate_with_tx(this: &WebKitCssMatrix, tx: f64) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = translate ) ] + #[doc = "The `translate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/translate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn translate_with_tx_and_ty(this: &WebKitCssMatrix, tx: f64, ty: f64) -> WebKitCssMatrix; + # [ wasm_bindgen ( method , structural , js_class = "WebKitCSSMatrix" , js_name = translate ) ] + #[doc = "The `translate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebKitCSSMatrix/translate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebKitCssMatrix`*"] + pub fn translate_with_tx_and_ty_and_tz( + this: &WebKitCssMatrix, + tx: f64, + ty: f64, + tz: f64, + ) -> WebKitCssMatrix; +} diff --git a/crates/web-sys/src/features/gen_WebSocket.rs b/crates/web-sys/src/features/gen_WebSocket.rs new file mode 100644 index 00000000..2afb2dca --- /dev/null +++ b/crates/web-sys/src/features/gen_WebSocket.rs @@ -0,0 +1,230 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = WebSocket , typescript_type = "WebSocket" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebSocket` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub type WebSocket; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebSocket" , js_name = url ) ] + #[doc = "Getter for the `url` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/url)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn url(this: &WebSocket) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebSocket" , js_name = readyState ) ] + #[doc = "Getter for the `readyState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/readyState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn ready_state(this: &WebSocket) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebSocket" , js_name = bufferedAmount ) ] + #[doc = "Getter for the `bufferedAmount` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/bufferedAmount)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn buffered_amount(this: &WebSocket) -> u32; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebSocket" , js_name = onopen ) ] + #[doc = "Getter for the `onopen` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onopen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn onopen(this: &WebSocket) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "WebSocket" , js_name = onopen ) ] + #[doc = "Setter for the `onopen` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onopen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn set_onopen(this: &WebSocket, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "WebSocket" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn onerror(this: &WebSocket) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "WebSocket" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn set_onerror(this: &WebSocket, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "WebSocket" , js_name = onclose ) ] + #[doc = "Getter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn onclose(this: &WebSocket) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "WebSocket" , js_name = onclose ) ] + #[doc = "Setter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn set_onclose(this: &WebSocket, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "WebSocket" , js_name = extensions ) ] + #[doc = "Getter for the `extensions` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/extensions)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn extensions(this: &WebSocket) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebSocket" , js_name = protocol ) ] + #[doc = "Getter for the `protocol` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/protocol)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn protocol(this: &WebSocket) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "WebSocket" , js_name = onmessage ) ] + #[doc = "Getter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn onmessage(this: &WebSocket) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "WebSocket" , js_name = onmessage ) ] + #[doc = "Setter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn set_onmessage(this: &WebSocket, value: Option<&::js_sys::Function>); + #[cfg(feature = "BinaryType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "WebSocket" , js_name = binaryType ) ] + #[doc = "Getter for the `binaryType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/binaryType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BinaryType`, `WebSocket`*"] + pub fn binary_type(this: &WebSocket) -> BinaryType; + #[cfg(feature = "BinaryType")] + # [ wasm_bindgen ( structural , method , setter , js_class = "WebSocket" , js_name = binaryType ) ] + #[doc = "Setter for the `binaryType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/binaryType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BinaryType`, `WebSocket`*"] + pub fn set_binary_type(this: &WebSocket, value: BinaryType); + #[wasm_bindgen(catch, constructor, js_class = "WebSocket")] + #[doc = "The `new WebSocket(..)` constructor, creating a new instance of `WebSocket`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/WebSocket)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn new(url: &str) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "WebSocket")] + #[doc = "The `new WebSocket(..)` constructor, creating a new instance of `WebSocket`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/WebSocket)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn new_with_str(url: &str, protocols: &str) -> Result; + #[wasm_bindgen(catch, constructor, js_class = "WebSocket")] + #[doc = "The `new WebSocket(..)` constructor, creating a new instance of `WebSocket`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/WebSocket)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn new_with_str_sequence( + url: &str, + protocols: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebSocket" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn close(this: &WebSocket) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebSocket" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn close_with_code(this: &WebSocket, code: u16) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebSocket" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn close_with_code_and_reason( + this: &WebSocket, + code: u16, + reason: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebSocket" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn send_with_str(this: &WebSocket, data: &str) -> Result<(), JsValue>; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WebSocket" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `WebSocket`*"] + pub fn send_with_blob(this: &WebSocket, data: &Blob) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebSocket" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn send_with_array_buffer( + this: &WebSocket, + data: &::js_sys::ArrayBuffer, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebSocket" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn send_with_array_buffer_view( + this: &WebSocket, + data: &::js_sys::Object, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WebSocket" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub fn send_with_u8_array(this: &WebSocket, data: &[u8]) -> Result<(), JsValue>; +} +impl WebSocket { + #[doc = "The `WebSocket.CONNECTING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub const CONNECTING: u16 = 0i64 as u16; + #[doc = "The `WebSocket.OPEN` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub const OPEN: u16 = 1u64 as u16; + #[doc = "The `WebSocket.CLOSING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub const CLOSING: u16 = 2u64 as u16; + #[doc = "The `WebSocket.CLOSED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocket`*"] + pub const CLOSED: u16 = 3u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_WebSocketDict.rs b/crates/web-sys/src/features/gen_WebSocketDict.rs new file mode 100644 index 00000000..259e719e --- /dev/null +++ b/crates/web-sys/src/features/gen_WebSocketDict.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebSocketDict ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebSocketDict` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocketDict`*"] + pub type WebSocketDict; +} +impl WebSocketDict { + #[doc = "Construct a new `WebSocketDict`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocketDict`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `websockets` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocketDict`*"] + pub fn websockets(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("websockets"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_WebSocketElement.rs b/crates/web-sys/src/features/gen_WebSocketElement.rs new file mode 100644 index 00000000..beae86b7 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebSocketElement.rs @@ -0,0 +1,124 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebSocketElement ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebSocketElement` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] + pub type WebSocketElement; +} +impl WebSocketElement { + #[doc = "Construct a new `WebSocketElement`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `encrypted` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] + pub fn encrypted(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("encrypted"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `hostport` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] + pub fn hostport(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("hostport"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `msgreceived` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] + pub fn msgreceived(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("msgreceived"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `msgsent` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] + pub fn msgsent(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("msgsent"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `receivedsize` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] + pub fn receivedsize(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("receivedsize"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `sentsize` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebSocketElement`*"] + pub fn sentsize(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("sentsize"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_WebglColorBufferFloat.rs b/crates/web-sys/src/features/gen_WebglColorBufferFloat.rs new file mode 100644 index 00000000..974db818 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebglColorBufferFloat.rs @@ -0,0 +1,32 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_color_buffer_float , typescript_type = "WEBGL_color_buffer_float" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebglColorBufferFloat` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_color_buffer_float)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglColorBufferFloat`*"] + pub type WebglColorBufferFloat; +} +impl WebglColorBufferFloat { + #[doc = "The `WEBGL_color_buffer_float.RGBA32F_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglColorBufferFloat`*"] + pub const RGBA32F_EXT: u32 = 34836u64 as u32; + #[doc = "The `WEBGL_color_buffer_float.RGB32F_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglColorBufferFloat`*"] + pub const RGB32F_EXT: u32 = 34837u64 as u32; + #[doc = "The `WEBGL_color_buffer_float.FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglColorBufferFloat`*"] + pub const FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: u32 = 33297u64 as u32; + #[doc = "The `WEBGL_color_buffer_float.UNSIGNED_NORMALIZED_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglColorBufferFloat`*"] + pub const UNSIGNED_NORMALIZED_EXT: u32 = 35863u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_WebglCompressedTextureAstc.rs b/crates/web-sys/src/features/gen_WebglCompressedTextureAstc.rs new file mode 100644 index 00000000..4de80222 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebglCompressedTextureAstc.rs @@ -0,0 +1,135 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_astc , typescript_type = "WEBGL_compressed_texture_astc" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebglCompressedTextureAstc` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_astc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub type WebglCompressedTextureAstc; + # [ wasm_bindgen ( method , structural , js_class = "WEBGL_compressed_texture_astc" , js_name = getSupportedProfiles ) ] + #[doc = "The `getSupportedProfiles()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_astc/getSupportedProfiles)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub fn get_supported_profiles(this: &WebglCompressedTextureAstc) -> Option<::js_sys::Array>; +} +impl WebglCompressedTextureAstc { + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_4x4_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_RGBA_ASTC_4X4_KHR: u32 = 37808u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_5x4_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_RGBA_ASTC_5X4_KHR: u32 = 37809u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_5x5_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_RGBA_ASTC_5X5_KHR: u32 = 37810u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_6x5_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_RGBA_ASTC_6X5_KHR: u32 = 37811u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_6x6_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_RGBA_ASTC_6X6_KHR: u32 = 37812u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_8x5_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_RGBA_ASTC_8X5_KHR: u32 = 37813u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_8x6_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_RGBA_ASTC_8X6_KHR: u32 = 37814u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_8x8_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_RGBA_ASTC_8X8_KHR: u32 = 37815u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_10x5_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_RGBA_ASTC_10X5_KHR: u32 = 37816u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_10x6_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_RGBA_ASTC_10X6_KHR: u32 = 37817u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_10x8_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_RGBA_ASTC_10X8_KHR: u32 = 37818u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_10x10_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_RGBA_ASTC_10X10_KHR: u32 = 37819u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_12x10_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_RGBA_ASTC_12X10_KHR: u32 = 37820u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_RGBA_ASTC_12x12_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_RGBA_ASTC_12X12_KHR: u32 = 37821u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_SRGB8_ALPHA8_ASTC_4X4_KHR: u32 = 37840u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_SRGB8_ALPHA8_ASTC_5X4_KHR: u32 = 37841u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_SRGB8_ALPHA8_ASTC_5X5_KHR: u32 = 37842u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_SRGB8_ALPHA8_ASTC_6X5_KHR: u32 = 37843u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_SRGB8_ALPHA8_ASTC_6X6_KHR: u32 = 37844u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_SRGB8_ALPHA8_ASTC_8X5_KHR: u32 = 37845u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_SRGB8_ALPHA8_ASTC_8X6_KHR: u32 = 37846u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_SRGB8_ALPHA8_ASTC_8X8_KHR: u32 = 37847u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_SRGB8_ALPHA8_ASTC_10X5_KHR: u32 = 37848u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_SRGB8_ALPHA8_ASTC_10X6_KHR: u32 = 37849u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_SRGB8_ALPHA8_ASTC_10X8_KHR: u32 = 37850u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_SRGB8_ALPHA8_ASTC_10X10_KHR: u32 = 37851u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_SRGB8_ALPHA8_ASTC_12X10_KHR: u32 = 37852u64 as u32; + #[doc = "The `WEBGL_compressed_texture_astc.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAstc`*"] + pub const COMPRESSED_SRGB8_ALPHA8_ASTC_12X12_KHR: u32 = 37853u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_WebglCompressedTextureAtc.rs b/crates/web-sys/src/features/gen_WebglCompressedTextureAtc.rs new file mode 100644 index 00000000..b5f57dd7 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebglCompressedTextureAtc.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_atc , typescript_type = "WEBGL_compressed_texture_atc" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebglCompressedTextureAtc` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_atc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAtc`*"] + pub type WebglCompressedTextureAtc; +} +impl WebglCompressedTextureAtc { + #[doc = "The `WEBGL_compressed_texture_atc.COMPRESSED_RGB_ATC_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAtc`*"] + pub const COMPRESSED_RGB_ATC_WEBGL: u32 = 35986u64 as u32; + #[doc = "The `WEBGL_compressed_texture_atc.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAtc`*"] + pub const COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL: u32 = 35987u64 as u32; + #[doc = "The `WEBGL_compressed_texture_atc.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureAtc`*"] + pub const COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL: u32 = 34798u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_WebglCompressedTextureEtc.rs b/crates/web-sys/src/features/gen_WebglCompressedTextureEtc.rs new file mode 100644 index 00000000..d0a5ff53 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebglCompressedTextureEtc.rs @@ -0,0 +1,56 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_etc , typescript_type = "WEBGL_compressed_texture_etc" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebglCompressedTextureEtc` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_etc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] + pub type WebglCompressedTextureEtc; +} +impl WebglCompressedTextureEtc { + #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_R11_EAC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] + pub const COMPRESSED_R11_EAC: u32 = 37488u64 as u32; + #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_SIGNED_R11_EAC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] + pub const COMPRESSED_SIGNED_R11_EAC: u32 = 37489u64 as u32; + #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_RG11_EAC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] + pub const COMPRESSED_RG11_EAC: u32 = 37490u64 as u32; + #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_SIGNED_RG11_EAC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] + pub const COMPRESSED_SIGNED_RG11_EAC: u32 = 37491u64 as u32; + #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_RGB8_ETC2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] + pub const COMPRESSED_RGB8_ETC2: u32 = 37492u64 as u32; + #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_SRGB8_ETC2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] + pub const COMPRESSED_SRGB8_ETC2: u32 = 37493u64 as u32; + #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] + pub const COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: u32 = 37494u64 as u32; + #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] + pub const COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: u32 = 37495u64 as u32; + #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_RGBA8_ETC2_EAC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] + pub const COMPRESSED_RGBA8_ETC2_EAC: u32 = 37496u64 as u32; + #[doc = "The `WEBGL_compressed_texture_etc.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc`*"] + pub const COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: u32 = 37497u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_WebglCompressedTextureEtc1.rs b/crates/web-sys/src/features/gen_WebglCompressedTextureEtc1.rs new file mode 100644 index 00000000..27e5ac2f --- /dev/null +++ b/crates/web-sys/src/features/gen_WebglCompressedTextureEtc1.rs @@ -0,0 +1,20 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_etc1 , typescript_type = "WEBGL_compressed_texture_etc1" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebglCompressedTextureEtc1` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_etc1)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc1`*"] + pub type WebglCompressedTextureEtc1; +} +impl WebglCompressedTextureEtc1 { + #[doc = "The `WEBGL_compressed_texture_etc1.COMPRESSED_RGB_ETC1_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureEtc1`*"] + pub const COMPRESSED_RGB_ETC1_WEBGL: u32 = 36196u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_WebglCompressedTexturePvrtc.rs b/crates/web-sys/src/features/gen_WebglCompressedTexturePvrtc.rs new file mode 100644 index 00000000..9162dcf0 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebglCompressedTexturePvrtc.rs @@ -0,0 +1,32 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_pvrtc , typescript_type = "WEBGL_compressed_texture_pvrtc" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebglCompressedTexturePvrtc` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_pvrtc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTexturePvrtc`*"] + pub type WebglCompressedTexturePvrtc; +} +impl WebglCompressedTexturePvrtc { + #[doc = "The `WEBGL_compressed_texture_pvrtc.COMPRESSED_RGB_PVRTC_4BPPV1_IMG` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTexturePvrtc`*"] + pub const COMPRESSED_RGB_PVRTC_4BPPV1_IMG: u32 = 35840u64 as u32; + #[doc = "The `WEBGL_compressed_texture_pvrtc.COMPRESSED_RGB_PVRTC_2BPPV1_IMG` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTexturePvrtc`*"] + pub const COMPRESSED_RGB_PVRTC_2BPPV1_IMG: u32 = 35841u64 as u32; + #[doc = "The `WEBGL_compressed_texture_pvrtc.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTexturePvrtc`*"] + pub const COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: u32 = 35842u64 as u32; + #[doc = "The `WEBGL_compressed_texture_pvrtc.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTexturePvrtc`*"] + pub const COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: u32 = 35843u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_WebglCompressedTextureS3tc.rs b/crates/web-sys/src/features/gen_WebglCompressedTextureS3tc.rs new file mode 100644 index 00000000..86228f31 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebglCompressedTextureS3tc.rs @@ -0,0 +1,32 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_s3tc , typescript_type = "WEBGL_compressed_texture_s3tc" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebglCompressedTextureS3tc` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_s3tc)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tc`*"] + pub type WebglCompressedTextureS3tc; +} +impl WebglCompressedTextureS3tc { + #[doc = "The `WEBGL_compressed_texture_s3tc.COMPRESSED_RGB_S3TC_DXT1_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tc`*"] + pub const COMPRESSED_RGB_S3TC_DXT1_EXT: u32 = 33776u64 as u32; + #[doc = "The `WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT1_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tc`*"] + pub const COMPRESSED_RGBA_S3TC_DXT1_EXT: u32 = 33777u64 as u32; + #[doc = "The `WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT3_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tc`*"] + pub const COMPRESSED_RGBA_S3TC_DXT3_EXT: u32 = 33778u64 as u32; + #[doc = "The `WEBGL_compressed_texture_s3tc.COMPRESSED_RGBA_S3TC_DXT5_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tc`*"] + pub const COMPRESSED_RGBA_S3TC_DXT5_EXT: u32 = 33779u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_WebglCompressedTextureS3tcSrgb.rs b/crates/web-sys/src/features/gen_WebglCompressedTextureS3tcSrgb.rs new file mode 100644 index 00000000..f641463f --- /dev/null +++ b/crates/web-sys/src/features/gen_WebglCompressedTextureS3tcSrgb.rs @@ -0,0 +1,32 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_compressed_texture_s3tc_srgb , typescript_type = "WEBGL_compressed_texture_s3tc_srgb" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebglCompressedTextureS3tcSrgb` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_compressed_texture_s3tc_srgb)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tcSrgb`*"] + pub type WebglCompressedTextureS3tcSrgb; +} +impl WebglCompressedTextureS3tcSrgb { + #[doc = "The `WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_S3TC_DXT1_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tcSrgb`*"] + pub const COMPRESSED_SRGB_S3TC_DXT1_EXT: u32 = 35916u64 as u32; + #[doc = "The `WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tcSrgb`*"] + pub const COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: u32 = 35917u64 as u32; + #[doc = "The `WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tcSrgb`*"] + pub const COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: u32 = 35918u64 as u32; + #[doc = "The `WEBGL_compressed_texture_s3tc_srgb.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglCompressedTextureS3tcSrgb`*"] + pub const COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: u32 = 35919u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_WebglDebugRendererInfo.rs b/crates/web-sys/src/features/gen_WebglDebugRendererInfo.rs new file mode 100644 index 00000000..4f41b24f --- /dev/null +++ b/crates/web-sys/src/features/gen_WebglDebugRendererInfo.rs @@ -0,0 +1,24 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_debug_renderer_info , typescript_type = "WEBGL_debug_renderer_info" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebglDebugRendererInfo` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_renderer_info)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDebugRendererInfo`*"] + pub type WebglDebugRendererInfo; +} +impl WebglDebugRendererInfo { + #[doc = "The `WEBGL_debug_renderer_info.UNMASKED_VENDOR_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDebugRendererInfo`*"] + pub const UNMASKED_VENDOR_WEBGL: u32 = 37445u64 as u32; + #[doc = "The `WEBGL_debug_renderer_info.UNMASKED_RENDERER_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDebugRendererInfo`*"] + pub const UNMASKED_RENDERER_WEBGL: u32 = 37446u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_WebglDebugShaders.rs b/crates/web-sys/src/features/gen_WebglDebugShaders.rs new file mode 100644 index 00000000..0a4c5719 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebglDebugShaders.rs @@ -0,0 +1,22 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_debug_shaders , typescript_type = "WEBGL_debug_shaders" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebglDebugShaders` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_shaders)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDebugShaders`*"] + pub type WebglDebugShaders; + #[cfg(feature = "WebGlShader")] + # [ wasm_bindgen ( method , structural , js_class = "WEBGL_debug_shaders" , js_name = getTranslatedShaderSource ) ] + #[doc = "The `getTranslatedShaderSource()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebGlShader`, `WebglDebugShaders`*"] + pub fn get_translated_shader_source(this: &WebglDebugShaders, shader: &WebGlShader) -> String; +} diff --git a/crates/web-sys/src/features/gen_WebglDepthTexture.rs b/crates/web-sys/src/features/gen_WebglDepthTexture.rs new file mode 100644 index 00000000..d77db90c --- /dev/null +++ b/crates/web-sys/src/features/gen_WebglDepthTexture.rs @@ -0,0 +1,20 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_depth_texture , typescript_type = "WEBGL_depth_texture" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebglDepthTexture` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_depth_texture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDepthTexture`*"] + pub type WebglDepthTexture; +} +impl WebglDepthTexture { + #[doc = "The `WEBGL_depth_texture.UNSIGNED_INT_24_8_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDepthTexture`*"] + pub const UNSIGNED_INT_24_8_WEBGL: u32 = 34042u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_WebglDrawBuffers.rs b/crates/web-sys/src/features/gen_WebglDrawBuffers.rs new file mode 100644 index 00000000..3bba5560 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebglDrawBuffers.rs @@ -0,0 +1,159 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_draw_buffers , typescript_type = "WEBGL_draw_buffers" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebglDrawBuffers` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_draw_buffers)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub type WebglDrawBuffers; + # [ wasm_bindgen ( method , structural , js_class = "WEBGL_draw_buffers" , js_name = drawBuffersWEBGL ) ] + #[doc = "The `drawBuffersWEBGL()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_draw_buffers/drawBuffersWEBGL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub fn draw_buffers_webgl(this: &WebglDrawBuffers, buffers: &::wasm_bindgen::JsValue); +} +impl WebglDrawBuffers { + #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT0_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const COLOR_ATTACHMENT0_WEBGL: u32 = 36064u64 as u32; + #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT1_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const COLOR_ATTACHMENT1_WEBGL: u32 = 36065u64 as u32; + #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT2_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const COLOR_ATTACHMENT2_WEBGL: u32 = 36066u64 as u32; + #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT3_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const COLOR_ATTACHMENT3_WEBGL: u32 = 36067u64 as u32; + #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT4_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const COLOR_ATTACHMENT4_WEBGL: u32 = 36068u64 as u32; + #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT5_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const COLOR_ATTACHMENT5_WEBGL: u32 = 36069u64 as u32; + #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT6_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const COLOR_ATTACHMENT6_WEBGL: u32 = 36070u64 as u32; + #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT7_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const COLOR_ATTACHMENT7_WEBGL: u32 = 36071u64 as u32; + #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT8_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const COLOR_ATTACHMENT8_WEBGL: u32 = 36072u64 as u32; + #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT9_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const COLOR_ATTACHMENT9_WEBGL: u32 = 36073u64 as u32; + #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT10_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const COLOR_ATTACHMENT10_WEBGL: u32 = 36074u64 as u32; + #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT11_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const COLOR_ATTACHMENT11_WEBGL: u32 = 36075u64 as u32; + #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT12_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const COLOR_ATTACHMENT12_WEBGL: u32 = 36076u64 as u32; + #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT13_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const COLOR_ATTACHMENT13_WEBGL: u32 = 36077u64 as u32; + #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT14_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const COLOR_ATTACHMENT14_WEBGL: u32 = 36078u64 as u32; + #[doc = "The `WEBGL_draw_buffers.COLOR_ATTACHMENT15_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const COLOR_ATTACHMENT15_WEBGL: u32 = 36079u64 as u32; + #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER0_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const DRAW_BUFFER0_WEBGL: u32 = 34853u64 as u32; + #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER1_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const DRAW_BUFFER1_WEBGL: u32 = 34854u64 as u32; + #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER2_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const DRAW_BUFFER2_WEBGL: u32 = 34855u64 as u32; + #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER3_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const DRAW_BUFFER3_WEBGL: u32 = 34856u64 as u32; + #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER4_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const DRAW_BUFFER4_WEBGL: u32 = 34857u64 as u32; + #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER5_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const DRAW_BUFFER5_WEBGL: u32 = 34858u64 as u32; + #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER6_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const DRAW_BUFFER6_WEBGL: u32 = 34859u64 as u32; + #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER7_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const DRAW_BUFFER7_WEBGL: u32 = 34860u64 as u32; + #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER8_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const DRAW_BUFFER8_WEBGL: u32 = 34861u64 as u32; + #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER9_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const DRAW_BUFFER9_WEBGL: u32 = 34862u64 as u32; + #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER10_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const DRAW_BUFFER10_WEBGL: u32 = 34863u64 as u32; + #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER11_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const DRAW_BUFFER11_WEBGL: u32 = 34864u64 as u32; + #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER12_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const DRAW_BUFFER12_WEBGL: u32 = 34865u64 as u32; + #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER13_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const DRAW_BUFFER13_WEBGL: u32 = 34866u64 as u32; + #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER14_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const DRAW_BUFFER14_WEBGL: u32 = 34867u64 as u32; + #[doc = "The `WEBGL_draw_buffers.DRAW_BUFFER15_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const DRAW_BUFFER15_WEBGL: u32 = 34868u64 as u32; + #[doc = "The `WEBGL_draw_buffers.MAX_COLOR_ATTACHMENTS_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const MAX_COLOR_ATTACHMENTS_WEBGL: u32 = 36063u64 as u32; + #[doc = "The `WEBGL_draw_buffers.MAX_DRAW_BUFFERS_WEBGL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglDrawBuffers`*"] + pub const MAX_DRAW_BUFFERS_WEBGL: u32 = 34852u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_WebglLoseContext.rs b/crates/web-sys/src/features/gen_WebglLoseContext.rs new file mode 100644 index 00000000..ebed1a29 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebglLoseContext.rs @@ -0,0 +1,28 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_lose_context , typescript_type = "WEBGL_lose_context" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebglLoseContext` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglLoseContext`*"] + pub type WebglLoseContext; + # [ wasm_bindgen ( method , structural , js_class = "WEBGL_lose_context" , js_name = loseContext ) ] + #[doc = "The `loseContext()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context/loseContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglLoseContext`*"] + pub fn lose_context(this: &WebglLoseContext); + # [ wasm_bindgen ( method , structural , js_class = "WEBGL_lose_context" , js_name = restoreContext ) ] + #[doc = "The `restoreContext()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_lose_context/restoreContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebglLoseContext`*"] + pub fn restore_context(this: &WebglLoseContext); +} diff --git a/crates/web-sys/src/features/gen_WebrtcGlobalStatisticsReport.rs b/crates/web-sys/src/features/gen_WebrtcGlobalStatisticsReport.rs new file mode 100644 index 00000000..5bbf6fb0 --- /dev/null +++ b/crates/web-sys/src/features/gen_WebrtcGlobalStatisticsReport.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WebrtcGlobalStatisticsReport ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WebrtcGlobalStatisticsReport` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebrtcGlobalStatisticsReport`*"] + pub type WebrtcGlobalStatisticsReport; +} +impl WebrtcGlobalStatisticsReport { + #[doc = "Construct a new `WebrtcGlobalStatisticsReport`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebrtcGlobalStatisticsReport`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `reports` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WebrtcGlobalStatisticsReport`*"] + pub fn reports(&mut self, val: &::wasm_bindgen::JsValue) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("reports"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_WheelEvent.rs b/crates/web-sys/src/features/gen_WheelEvent.rs new file mode 100644 index 00000000..fc67015c --- /dev/null +++ b/crates/web-sys/src/features/gen_WheelEvent.rs @@ -0,0 +1,74 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = MouseEvent , extends = UiEvent , extends = Event , extends = :: js_sys :: Object , js_name = WheelEvent , typescript_type = "WheelEvent" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WheelEvent` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] + pub type WheelEvent; + # [ wasm_bindgen ( structural , method , getter , js_class = "WheelEvent" , js_name = deltaX ) ] + #[doc = "Getter for the `deltaX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] + pub fn delta_x(this: &WheelEvent) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "WheelEvent" , js_name = deltaY ) ] + #[doc = "Getter for the `deltaY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] + pub fn delta_y(this: &WheelEvent) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "WheelEvent" , js_name = deltaZ ) ] + #[doc = "Getter for the `deltaZ` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaZ)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] + pub fn delta_z(this: &WheelEvent) -> f64; + # [ wasm_bindgen ( structural , method , getter , js_class = "WheelEvent" , js_name = deltaMode ) ] + #[doc = "Getter for the `deltaMode` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/deltaMode)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] + pub fn delta_mode(this: &WheelEvent) -> u32; + #[wasm_bindgen(catch, constructor, js_class = "WheelEvent")] + #[doc = "The `new WheelEvent(..)` constructor, creating a new instance of `WheelEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/WheelEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] + pub fn new(type_: &str) -> Result; + #[cfg(feature = "WheelEventInit")] + #[wasm_bindgen(catch, constructor, js_class = "WheelEvent")] + #[doc = "The `new WheelEvent(..)` constructor, creating a new instance of `WheelEvent`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WheelEvent/WheelEvent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEvent`, `WheelEventInit`*"] + pub fn new_with_event_init_dict( + type_: &str, + event_init_dict: &WheelEventInit, + ) -> Result; +} +impl WheelEvent { + #[doc = "The `WheelEvent.DOM_DELTA_PIXEL` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] + pub const DOM_DELTA_PIXEL: u32 = 0u64 as u32; + #[doc = "The `WheelEvent.DOM_DELTA_LINE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] + pub const DOM_DELTA_LINE: u32 = 1u64 as u32; + #[doc = "The `WheelEvent.DOM_DELTA_PAGE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEvent`*"] + pub const DOM_DELTA_PAGE: u32 = 2u64 as u32; +} diff --git a/crates/web-sys/src/features/gen_WheelEventInit.rs b/crates/web-sys/src/features/gen_WheelEventInit.rs new file mode 100644 index 00000000..1116664c --- /dev/null +++ b/crates/web-sys/src/features/gen_WheelEventInit.rs @@ -0,0 +1,529 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WheelEventInit ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WheelEventInit` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub type WheelEventInit; +} +impl WheelEventInit { + #[doc = "Construct a new `WheelEventInit`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `bubbles` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn bubbles(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("bubbles"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `cancelable` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn cancelable(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("cancelable"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `composed` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn composed(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("composed"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `detail` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn detail(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("detail"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "Window")] + #[doc = "Change the `view` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`, `Window`*"] + pub fn view(&mut self, val: Option<&Window>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("view"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `altKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn alt_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("altKey"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `ctrlKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn ctrl_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("ctrlKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `metaKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn meta_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("metaKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierAltGraph` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn modifier_alt_graph(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierAltGraph"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierCapsLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn modifier_caps_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierCapsLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierFn` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn modifier_fn(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierFn"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierFnLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn modifier_fn_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierFnLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierNumLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn modifier_num_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierNumLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierOS` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn modifier_os(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierOS"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierScrollLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn modifier_scroll_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierScrollLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierSymbol` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn modifier_symbol(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierSymbol"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `modifierSymbolLock` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn modifier_symbol_lock(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("modifierSymbolLock"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `shiftKey` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn shift_key(&mut self, val: bool) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("shiftKey"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `button` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn button(&mut self, val: i16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("button"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `buttons` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn buttons(&mut self, val: u16) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("buttons"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `clientX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn client_x(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("clientX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `clientY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn client_y(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("clientY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `movementX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn movement_x(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("movementX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `movementY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn movement_y(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("movementY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[cfg(feature = "EventTarget")] + #[doc = "Change the `relatedTarget` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `EventTarget`, `WheelEventInit`*"] + pub fn related_target(&mut self, val: Option<&EventTarget>) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("relatedTarget"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `screenX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn screen_x(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("screenX"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `screenY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn screen_y(&mut self, val: i32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("screenY"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `deltaMode` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn delta_mode(&mut self, val: u32) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("deltaMode"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `deltaX` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn delta_x(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("deltaX"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `deltaY` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn delta_y(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("deltaY"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `deltaZ` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WheelEventInit`*"] + pub fn delta_z(&mut self, val: f64) -> &mut Self { + use wasm_bindgen::JsValue; + let r = + ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("deltaZ"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_WidevineCdmManifest.rs b/crates/web-sys/src/features/gen_WidevineCdmManifest.rs new file mode 100644 index 00000000..c38e68d7 --- /dev/null +++ b/crates/web-sys/src/features/gen_WidevineCdmManifest.rs @@ -0,0 +1,152 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WidevineCDMManifest ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WidevineCdmManifest` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] + pub type WidevineCdmManifest; +} +impl WidevineCdmManifest { + #[doc = "Construct a new `WidevineCdmManifest`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] + pub fn new( + description: &str, + name: &str, + version: &str, + x_cdm_codecs: &str, + x_cdm_host_versions: &str, + x_cdm_interface_versions: &str, + x_cdm_module_versions: &str, + ) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret.description(description); + ret.name(name); + ret.version(version); + ret.x_cdm_codecs(x_cdm_codecs); + ret.x_cdm_host_versions(x_cdm_host_versions); + ret.x_cdm_interface_versions(x_cdm_interface_versions); + ret.x_cdm_module_versions(x_cdm_module_versions); + ret + } + #[doc = "Change the `description` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] + pub fn description(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("description"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `version` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] + pub fn version(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("version"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `x-cdm-codecs` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] + pub fn x_cdm_codecs(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("x-cdm-codecs"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `x-cdm-host-versions` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] + pub fn x_cdm_host_versions(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("x-cdm-host-versions"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `x-cdm-interface-versions` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] + pub fn x_cdm_interface_versions(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("x-cdm-interface-versions"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } + #[doc = "Change the `x-cdm-module-versions` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WidevineCdmManifest`*"] + pub fn x_cdm_module_versions(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("x-cdm-module-versions"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Window.rs b/crates/web-sys/src/features/gen_Window.rs new file mode 100644 index 00000000..d461ddc1 --- /dev/null +++ b/crates/web-sys/src/features/gen_Window.rs @@ -0,0 +1,3153 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = Window , typescript_type = "Window" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Window` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub type Window; + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = window ) ] + #[doc = "Getter for the `window` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/window)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn window(this: &Window) -> Window; + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = self ) ] + #[doc = "Getter for the `self` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/self)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn self_(this: &Window) -> Window; + #[cfg(feature = "Document")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = document ) ] + #[doc = "Getter for the `document` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/document)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Window`*"] + pub fn document(this: &Window) -> Option; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = name ) ] + #[doc = "Getter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn name(this: &Window) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Window" , js_name = name ) ] + #[doc = "Setter for the `name` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/name)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_name(this: &Window, value: &str) -> Result<(), JsValue>; + #[cfg(feature = "Location")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = location ) ] + #[doc = "Getter for the `location` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/location)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Location`, `Window`*"] + pub fn location(this: &Window) -> Location; + #[cfg(feature = "History")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = history ) ] + #[doc = "Getter for the `history` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/history)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `History`, `Window`*"] + pub fn history(this: &Window) -> Result; + #[cfg(feature = "CustomElementRegistry")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = customElements ) ] + #[doc = "Getter for the `customElements` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/customElements)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CustomElementRegistry`, `Window`*"] + pub fn custom_elements(this: &Window) -> CustomElementRegistry; + #[cfg(feature = "BarProp")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = locationbar ) ] + #[doc = "Getter for the `locationbar` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/locationbar)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] + pub fn locationbar(this: &Window) -> Result; + #[cfg(feature = "BarProp")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = menubar ) ] + #[doc = "Getter for the `menubar` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/menubar)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] + pub fn menubar(this: &Window) -> Result; + #[cfg(feature = "BarProp")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = personalbar ) ] + #[doc = "Getter for the `personalbar` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/personalbar)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] + pub fn personalbar(this: &Window) -> Result; + #[cfg(feature = "BarProp")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = scrollbars ) ] + #[doc = "Getter for the `scrollbars` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollbars)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] + pub fn scrollbars(this: &Window) -> Result; + #[cfg(feature = "BarProp")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = statusbar ) ] + #[doc = "Getter for the `statusbar` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/statusbar)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] + pub fn statusbar(this: &Window) -> Result; + #[cfg(feature = "BarProp")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = toolbar ) ] + #[doc = "Getter for the `toolbar` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/toolbar)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `BarProp`, `Window`*"] + pub fn toolbar(this: &Window) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = status ) ] + #[doc = "Getter for the `status` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/status)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn status(this: &Window) -> Result; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Window" , js_name = status ) ] + #[doc = "Setter for the `status` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/status)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_status(this: &Window, value: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = closed ) ] + #[doc = "Getter for the `closed` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/closed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn closed(this: &Window) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = event ) ] + #[doc = "Getter for the `event` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/event)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn event(this: &Window) -> ::wasm_bindgen::JsValue; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = frames ) ] + #[doc = "Getter for the `frames` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/frames)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn frames(this: &Window) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = length ) ] + #[doc = "Getter for the `length` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/length)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn length(this: &Window) -> u32; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = top ) ] + #[doc = "Getter for the `top` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/top)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn top(this: &Window) -> Result, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = opener ) ] + #[doc = "Getter for the `opener` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/opener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn opener(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Window" , js_name = opener ) ] + #[doc = "Setter for the `opener` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/opener)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_opener(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = parent ) ] + #[doc = "Getter for the `parent` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/parent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn parent(this: &Window) -> Result, JsValue>; + #[cfg(feature = "Element")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = frameElement ) ] + #[doc = "Getter for the `frameElement` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/frameElement)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Element`, `Window`*"] + pub fn frame_element(this: &Window) -> Result, JsValue>; + #[cfg(feature = "Navigator")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = navigator ) ] + #[doc = "Getter for the `navigator` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/navigator)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Navigator`, `Window`*"] + pub fn navigator(this: &Window) -> Navigator; + #[cfg(feature = "External")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = external ) ] + #[doc = "Getter for the `external` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/external)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `External`, `Window`*"] + pub fn external(this: &Window) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onappinstalled ) ] + #[doc = "Getter for the `onappinstalled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onappinstalled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onappinstalled(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onappinstalled ) ] + #[doc = "Setter for the `onappinstalled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onappinstalled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onappinstalled(this: &Window, value: Option<&::js_sys::Function>); + #[cfg(feature = "Screen")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = screen ) ] + #[doc = "Getter for the `screen` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/screen)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Screen`, `Window`*"] + pub fn screen(this: &Window) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = innerWidth ) ] + #[doc = "Getter for the `innerWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn inner_width(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Window" , js_name = innerWidth ) ] + #[doc = "Setter for the `innerWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/innerWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_inner_width(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = innerHeight ) ] + #[doc = "Getter for the `innerHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/innerHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn inner_height(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Window" , js_name = innerHeight ) ] + #[doc = "Setter for the `innerHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/innerHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_inner_height(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = scrollX ) ] + #[doc = "Getter for the `scrollX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn scroll_x(this: &Window) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = pageXOffset ) ] + #[doc = "Getter for the `pageXOffset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/pageXOffset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn page_x_offset(this: &Window) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = scrollY ) ] + #[doc = "Getter for the `scrollY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn scroll_y(this: &Window) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = pageYOffset ) ] + #[doc = "Getter for the `pageYOffset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/pageYOffset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn page_y_offset(this: &Window) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = screenX ) ] + #[doc = "Getter for the `screenX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/screenX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn screen_x(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Window" , js_name = screenX ) ] + #[doc = "Setter for the `screenX` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/screenX)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_screen_x(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = screenY ) ] + #[doc = "Getter for the `screenY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/screenY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn screen_y(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Window" , js_name = screenY ) ] + #[doc = "Setter for the `screenY` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/screenY)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_screen_y(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = outerWidth ) ] + #[doc = "Getter for the `outerWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/outerWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn outer_width(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Window" , js_name = outerWidth ) ] + #[doc = "Setter for the `outerWidth` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/outerWidth)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_outer_width(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = outerHeight ) ] + #[doc = "Getter for the `outerHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/outerHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn outer_height(this: &Window) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( structural , catch , method , setter , js_class = "Window" , js_name = outerHeight ) ] + #[doc = "Setter for the `outerHeight` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/outerHeight)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_outer_height(this: &Window, value: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = devicePixelRatio ) ] + #[doc = "Getter for the `devicePixelRatio` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn device_pixel_ratio(this: &Window) -> f64; + #[cfg(feature = "Performance")] + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = performance ) ] + #[doc = "Getter for the `performance` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/performance)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Performance`, `Window`*"] + pub fn performance(this: &Window) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = orientation ) ] + #[doc = "Getter for the `orientation` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/orientation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn orientation(this: &Window) -> i16; + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onorientationchange ) ] + #[doc = "Getter for the `onorientationchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onorientationchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onorientationchange(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onorientationchange ) ] + #[doc = "Setter for the `onorientationchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onorientationchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onorientationchange(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onvrdisplayconnect ) ] + #[doc = "Getter for the `onvrdisplayconnect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplayconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onvrdisplayconnect(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onvrdisplayconnect ) ] + #[doc = "Setter for the `onvrdisplayconnect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplayconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onvrdisplayconnect(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onvrdisplaydisconnect ) ] + #[doc = "Getter for the `onvrdisplaydisconnect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaydisconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onvrdisplaydisconnect(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onvrdisplaydisconnect ) ] + #[doc = "Setter for the `onvrdisplaydisconnect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaydisconnect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onvrdisplaydisconnect(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onvrdisplayactivate ) ] + #[doc = "Getter for the `onvrdisplayactivate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplayactivate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onvrdisplayactivate(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onvrdisplayactivate ) ] + #[doc = "Setter for the `onvrdisplayactivate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplayactivate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onvrdisplayactivate(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onvrdisplaydeactivate ) ] + #[doc = "Getter for the `onvrdisplaydeactivate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaydeactivate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onvrdisplaydeactivate(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onvrdisplaydeactivate ) ] + #[doc = "Setter for the `onvrdisplaydeactivate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaydeactivate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onvrdisplaydeactivate(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onvrdisplaypresentchange ) ] + #[doc = "Getter for the `onvrdisplaypresentchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaypresentchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onvrdisplaypresentchange(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onvrdisplaypresentchange ) ] + #[doc = "Setter for the `onvrdisplaypresentchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvrdisplaypresentchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onvrdisplaypresentchange(this: &Window, value: Option<&::js_sys::Function>); + #[cfg(feature = "Worklet")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = paintWorklet ) ] + #[doc = "Getter for the `paintWorklet` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/paintWorklet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`, `Worklet`*"] + pub fn paint_worklet(this: &Window) -> Result; + #[cfg(feature = "Crypto")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = crypto ) ] + #[doc = "Getter for the `crypto` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/crypto)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Crypto`, `Window`*"] + pub fn crypto(this: &Window) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onabort ) ] + #[doc = "Getter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onabort(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onabort ) ] + #[doc = "Setter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onabort(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onblur ) ] + #[doc = "Getter for the `onblur` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onblur)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onblur(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onblur ) ] + #[doc = "Setter for the `onblur` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onblur)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onblur(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onfocus ) ] + #[doc = "Getter for the `onfocus` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onfocus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onfocus(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onfocus ) ] + #[doc = "Setter for the `onfocus` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onfocus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onfocus(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onauxclick ) ] + #[doc = "Getter for the `onauxclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onauxclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onauxclick(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onauxclick ) ] + #[doc = "Setter for the `onauxclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onauxclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onauxclick(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = oncanplay ) ] + #[doc = "Getter for the `oncanplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncanplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn oncanplay(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = oncanplay ) ] + #[doc = "Setter for the `oncanplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncanplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_oncanplay(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = oncanplaythrough ) ] + #[doc = "Getter for the `oncanplaythrough` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncanplaythrough)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn oncanplaythrough(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = oncanplaythrough ) ] + #[doc = "Setter for the `oncanplaythrough` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncanplaythrough)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_oncanplaythrough(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onchange ) ] + #[doc = "Getter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onchange(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onchange ) ] + #[doc = "Setter for the `onchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onchange(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onclick ) ] + #[doc = "Getter for the `onclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onclick(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onclick ) ] + #[doc = "Setter for the `onclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onclick(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onclose ) ] + #[doc = "Getter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onclose(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onclose ) ] + #[doc = "Setter for the `onclose` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onclose)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onclose(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = oncontextmenu ) ] + #[doc = "Getter for the `oncontextmenu` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncontextmenu)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn oncontextmenu(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = oncontextmenu ) ] + #[doc = "Setter for the `oncontextmenu` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oncontextmenu)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_oncontextmenu(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ondblclick ) ] + #[doc = "Getter for the `ondblclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondblclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ondblclick(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ondblclick ) ] + #[doc = "Setter for the `ondblclick` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondblclick)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ondblclick(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ondrag ) ] + #[doc = "Getter for the `ondrag` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondrag)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ondrag(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ondrag ) ] + #[doc = "Setter for the `ondrag` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondrag)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ondrag(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ondragend ) ] + #[doc = "Getter for the `ondragend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ondragend(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ondragend ) ] + #[doc = "Setter for the `ondragend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ondragend(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ondragenter ) ] + #[doc = "Getter for the `ondragenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ondragenter(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ondragenter ) ] + #[doc = "Setter for the `ondragenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ondragenter(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ondragexit ) ] + #[doc = "Getter for the `ondragexit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragexit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ondragexit(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ondragexit ) ] + #[doc = "Setter for the `ondragexit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragexit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ondragexit(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ondragleave ) ] + #[doc = "Getter for the `ondragleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ondragleave(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ondragleave ) ] + #[doc = "Setter for the `ondragleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ondragleave(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ondragover ) ] + #[doc = "Getter for the `ondragover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ondragover(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ondragover ) ] + #[doc = "Setter for the `ondragover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ondragover(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ondragstart ) ] + #[doc = "Getter for the `ondragstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ondragstart(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ondragstart ) ] + #[doc = "Setter for the `ondragstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondragstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ondragstart(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ondrop ) ] + #[doc = "Getter for the `ondrop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondrop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ondrop(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ondrop ) ] + #[doc = "Setter for the `ondrop` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondrop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ondrop(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ondurationchange ) ] + #[doc = "Getter for the `ondurationchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondurationchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ondurationchange(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ondurationchange ) ] + #[doc = "Setter for the `ondurationchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ondurationchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ondurationchange(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onemptied ) ] + #[doc = "Getter for the `onemptied` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onemptied)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onemptied(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onemptied ) ] + #[doc = "Setter for the `onemptied` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onemptied)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onemptied(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onended ) ] + #[doc = "Getter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onended(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onended ) ] + #[doc = "Setter for the `onended` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onended)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onended(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = oninput ) ] + #[doc = "Getter for the `oninput` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oninput)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn oninput(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = oninput ) ] + #[doc = "Setter for the `oninput` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oninput)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_oninput(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = oninvalid ) ] + #[doc = "Getter for the `oninvalid` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oninvalid)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn oninvalid(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = oninvalid ) ] + #[doc = "Setter for the `oninvalid` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/oninvalid)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_oninvalid(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onkeydown ) ] + #[doc = "Getter for the `onkeydown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeydown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onkeydown(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onkeydown ) ] + #[doc = "Setter for the `onkeydown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeydown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onkeydown(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onkeypress ) ] + #[doc = "Getter for the `onkeypress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeypress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onkeypress(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onkeypress ) ] + #[doc = "Setter for the `onkeypress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeypress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onkeypress(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onkeyup ) ] + #[doc = "Getter for the `onkeyup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeyup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onkeyup(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onkeyup ) ] + #[doc = "Setter for the `onkeyup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onkeyup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onkeyup(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onload ) ] + #[doc = "Getter for the `onload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onload(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onload ) ] + #[doc = "Setter for the `onload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onload(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onloadeddata ) ] + #[doc = "Getter for the `onloadeddata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadeddata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onloadeddata(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onloadeddata ) ] + #[doc = "Setter for the `onloadeddata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadeddata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onloadeddata(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onloadedmetadata ) ] + #[doc = "Getter for the `onloadedmetadata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadedmetadata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onloadedmetadata(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onloadedmetadata ) ] + #[doc = "Setter for the `onloadedmetadata` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadedmetadata)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onloadedmetadata(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onloadend ) ] + #[doc = "Getter for the `onloadend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onloadend(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onloadend ) ] + #[doc = "Setter for the `onloadend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onloadend(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onloadstart ) ] + #[doc = "Getter for the `onloadstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onloadstart(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onloadstart ) ] + #[doc = "Setter for the `onloadstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onloadstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onloadstart(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onmousedown ) ] + #[doc = "Getter for the `onmousedown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmousedown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onmousedown(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onmousedown ) ] + #[doc = "Setter for the `onmousedown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmousedown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onmousedown(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onmouseenter ) ] + #[doc = "Getter for the `onmouseenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onmouseenter(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onmouseenter ) ] + #[doc = "Setter for the `onmouseenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onmouseenter(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onmouseleave ) ] + #[doc = "Getter for the `onmouseleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onmouseleave(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onmouseleave ) ] + #[doc = "Setter for the `onmouseleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onmouseleave(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onmousemove ) ] + #[doc = "Getter for the `onmousemove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmousemove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onmousemove(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onmousemove ) ] + #[doc = "Setter for the `onmousemove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmousemove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onmousemove(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onmouseout ) ] + #[doc = "Getter for the `onmouseout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onmouseout(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onmouseout ) ] + #[doc = "Setter for the `onmouseout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onmouseout(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onmouseover ) ] + #[doc = "Getter for the `onmouseover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onmouseover(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onmouseover ) ] + #[doc = "Setter for the `onmouseover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onmouseover(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onmouseup ) ] + #[doc = "Getter for the `onmouseup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onmouseup(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onmouseup ) ] + #[doc = "Setter for the `onmouseup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmouseup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onmouseup(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onwheel ) ] + #[doc = "Getter for the `onwheel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwheel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onwheel(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onwheel ) ] + #[doc = "Setter for the `onwheel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwheel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onwheel(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onpause ) ] + #[doc = "Getter for the `onpause` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpause)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onpause(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onpause ) ] + #[doc = "Setter for the `onpause` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpause)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onpause(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onplay ) ] + #[doc = "Getter for the `onplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onplay(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onplay ) ] + #[doc = "Setter for the `onplay` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onplay)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onplay(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onplaying ) ] + #[doc = "Getter for the `onplaying` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onplaying)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onplaying(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onplaying ) ] + #[doc = "Setter for the `onplaying` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onplaying)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onplaying(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onprogress ) ] + #[doc = "Getter for the `onprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onprogress(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onprogress ) ] + #[doc = "Setter for the `onprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onprogress(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onratechange ) ] + #[doc = "Getter for the `onratechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onratechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onratechange(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onratechange ) ] + #[doc = "Setter for the `onratechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onratechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onratechange(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onreset ) ] + #[doc = "Getter for the `onreset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onreset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onreset(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onreset ) ] + #[doc = "Setter for the `onreset` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onreset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onreset(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onresize ) ] + #[doc = "Getter for the `onresize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onresize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onresize(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onresize ) ] + #[doc = "Setter for the `onresize` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onresize)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onresize(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onscroll ) ] + #[doc = "Getter for the `onscroll` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onscroll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onscroll(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onscroll ) ] + #[doc = "Setter for the `onscroll` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onscroll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onscroll(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onseeked ) ] + #[doc = "Getter for the `onseeked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onseeked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onseeked(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onseeked ) ] + #[doc = "Setter for the `onseeked` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onseeked)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onseeked(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onseeking ) ] + #[doc = "Getter for the `onseeking` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onseeking)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onseeking(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onseeking ) ] + #[doc = "Setter for the `onseeking` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onseeking)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onseeking(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onselect ) ] + #[doc = "Getter for the `onselect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onselect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onselect(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onselect ) ] + #[doc = "Setter for the `onselect` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onselect)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onselect(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onshow ) ] + #[doc = "Getter for the `onshow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onshow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onshow(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onshow ) ] + #[doc = "Setter for the `onshow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onshow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onshow(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onstalled ) ] + #[doc = "Getter for the `onstalled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onstalled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onstalled(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onstalled ) ] + #[doc = "Setter for the `onstalled` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onstalled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onstalled(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onsubmit ) ] + #[doc = "Getter for the `onsubmit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onsubmit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onsubmit(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onsubmit ) ] + #[doc = "Setter for the `onsubmit` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onsubmit)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onsubmit(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onsuspend ) ] + #[doc = "Getter for the `onsuspend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onsuspend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onsuspend(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onsuspend ) ] + #[doc = "Setter for the `onsuspend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onsuspend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onsuspend(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ontimeupdate ) ] + #[doc = "Getter for the `ontimeupdate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontimeupdate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ontimeupdate(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ontimeupdate ) ] + #[doc = "Setter for the `ontimeupdate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontimeupdate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ontimeupdate(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onvolumechange ) ] + #[doc = "Getter for the `onvolumechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvolumechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onvolumechange(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onvolumechange ) ] + #[doc = "Setter for the `onvolumechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onvolumechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onvolumechange(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onwaiting ) ] + #[doc = "Getter for the `onwaiting` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwaiting)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onwaiting(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onwaiting ) ] + #[doc = "Setter for the `onwaiting` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwaiting)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onwaiting(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onselectstart ) ] + #[doc = "Getter for the `onselectstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onselectstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onselectstart(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onselectstart ) ] + #[doc = "Setter for the `onselectstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onselectstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onselectstart(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ontoggle ) ] + #[doc = "Getter for the `ontoggle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontoggle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ontoggle(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ontoggle ) ] + #[doc = "Setter for the `ontoggle` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontoggle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ontoggle(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onpointercancel ) ] + #[doc = "Getter for the `onpointercancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointercancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onpointercancel(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onpointercancel ) ] + #[doc = "Setter for the `onpointercancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointercancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onpointercancel(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onpointerdown ) ] + #[doc = "Getter for the `onpointerdown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerdown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onpointerdown(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onpointerdown ) ] + #[doc = "Setter for the `onpointerdown` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerdown)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onpointerdown(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onpointerup ) ] + #[doc = "Getter for the `onpointerup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onpointerup(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onpointerup ) ] + #[doc = "Setter for the `onpointerup` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerup)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onpointerup(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onpointermove ) ] + #[doc = "Getter for the `onpointermove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointermove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onpointermove(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onpointermove ) ] + #[doc = "Setter for the `onpointermove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointermove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onpointermove(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onpointerout ) ] + #[doc = "Getter for the `onpointerout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onpointerout(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onpointerout ) ] + #[doc = "Setter for the `onpointerout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onpointerout(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onpointerover ) ] + #[doc = "Getter for the `onpointerover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onpointerover(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onpointerover ) ] + #[doc = "Setter for the `onpointerover` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerover)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onpointerover(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onpointerenter ) ] + #[doc = "Getter for the `onpointerenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onpointerenter(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onpointerenter ) ] + #[doc = "Setter for the `onpointerenter` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerenter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onpointerenter(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onpointerleave ) ] + #[doc = "Getter for the `onpointerleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onpointerleave(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onpointerleave ) ] + #[doc = "Setter for the `onpointerleave` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpointerleave)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onpointerleave(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ongotpointercapture ) ] + #[doc = "Getter for the `ongotpointercapture` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ongotpointercapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ongotpointercapture(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ongotpointercapture ) ] + #[doc = "Setter for the `ongotpointercapture` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ongotpointercapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ongotpointercapture(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onlostpointercapture ) ] + #[doc = "Getter for the `onlostpointercapture` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onlostpointercapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onlostpointercapture(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onlostpointercapture ) ] + #[doc = "Setter for the `onlostpointercapture` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onlostpointercapture)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onlostpointercapture(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onanimationcancel ) ] + #[doc = "Getter for the `onanimationcancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationcancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onanimationcancel(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onanimationcancel ) ] + #[doc = "Setter for the `onanimationcancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationcancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onanimationcancel(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onanimationend ) ] + #[doc = "Getter for the `onanimationend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onanimationend(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onanimationend ) ] + #[doc = "Setter for the `onanimationend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onanimationend(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onanimationiteration ) ] + #[doc = "Getter for the `onanimationiteration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationiteration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onanimationiteration(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onanimationiteration ) ] + #[doc = "Setter for the `onanimationiteration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationiteration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onanimationiteration(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onanimationstart ) ] + #[doc = "Getter for the `onanimationstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onanimationstart(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onanimationstart ) ] + #[doc = "Setter for the `onanimationstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onanimationstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onanimationstart(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ontransitioncancel ) ] + #[doc = "Getter for the `ontransitioncancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitioncancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ontransitioncancel(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ontransitioncancel ) ] + #[doc = "Setter for the `ontransitioncancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitioncancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ontransitioncancel(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ontransitionend ) ] + #[doc = "Getter for the `ontransitionend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ontransitionend(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ontransitionend ) ] + #[doc = "Setter for the `ontransitionend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ontransitionend(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ontransitionrun ) ] + #[doc = "Getter for the `ontransitionrun` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionrun)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ontransitionrun(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ontransitionrun ) ] + #[doc = "Setter for the `ontransitionrun` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionrun)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ontransitionrun(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ontransitionstart ) ] + #[doc = "Getter for the `ontransitionstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ontransitionstart(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ontransitionstart ) ] + #[doc = "Setter for the `ontransitionstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontransitionstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ontransitionstart(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onwebkitanimationend ) ] + #[doc = "Getter for the `onwebkitanimationend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onwebkitanimationend(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onwebkitanimationend ) ] + #[doc = "Setter for the `onwebkitanimationend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onwebkitanimationend(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onwebkitanimationiteration ) ] + #[doc = "Getter for the `onwebkitanimationiteration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationiteration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onwebkitanimationiteration(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onwebkitanimationiteration ) ] + #[doc = "Setter for the `onwebkitanimationiteration` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationiteration)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onwebkitanimationiteration(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onwebkitanimationstart ) ] + #[doc = "Getter for the `onwebkitanimationstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onwebkitanimationstart(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onwebkitanimationstart ) ] + #[doc = "Setter for the `onwebkitanimationstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkitanimationstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onwebkitanimationstart(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onwebkittransitionend ) ] + #[doc = "Getter for the `onwebkittransitionend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkittransitionend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onwebkittransitionend(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onwebkittransitionend ) ] + #[doc = "Setter for the `onwebkittransitionend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onwebkittransitionend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onwebkittransitionend(this: &Window, value: Option<&::js_sys::Function>); + #[cfg(feature = "U2f")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = u2f ) ] + #[doc = "Getter for the `u2f` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/u2f)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `U2f`, `Window`*"] + pub fn u2f(this: &Window) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onerror(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onerror(this: &Window, value: Option<&::js_sys::Function>); + #[cfg(feature = "SpeechSynthesis")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = speechSynthesis ) ] + #[doc = "Getter for the `speechSynthesis` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/speechSynthesis)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `SpeechSynthesis`, `Window`*"] + pub fn speech_synthesis(this: &Window) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ontouchstart ) ] + #[doc = "Getter for the `ontouchstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ontouchstart(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ontouchstart ) ] + #[doc = "Setter for the `ontouchstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ontouchstart(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ontouchend ) ] + #[doc = "Getter for the `ontouchend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ontouchend(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ontouchend ) ] + #[doc = "Setter for the `ontouchend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ontouchend(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ontouchmove ) ] + #[doc = "Getter for the `ontouchmove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchmove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ontouchmove(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ontouchmove ) ] + #[doc = "Setter for the `ontouchmove` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchmove)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ontouchmove(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ontouchcancel ) ] + #[doc = "Getter for the `ontouchcancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchcancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ontouchcancel(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ontouchcancel ) ] + #[doc = "Setter for the `ontouchcancel` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ontouchcancel)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ontouchcancel(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onafterprint ) ] + #[doc = "Getter for the `onafterprint` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onafterprint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onafterprint(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onafterprint ) ] + #[doc = "Setter for the `onafterprint` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onafterprint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onafterprint(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onbeforeprint ) ] + #[doc = "Getter for the `onbeforeprint` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforeprint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onbeforeprint(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onbeforeprint ) ] + #[doc = "Setter for the `onbeforeprint` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforeprint)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onbeforeprint(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onbeforeunload ) ] + #[doc = "Getter for the `onbeforeunload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforeunload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onbeforeunload(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onbeforeunload ) ] + #[doc = "Setter for the `onbeforeunload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onbeforeunload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onbeforeunload(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onhashchange ) ] + #[doc = "Getter for the `onhashchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onhashchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onhashchange(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onhashchange ) ] + #[doc = "Setter for the `onhashchange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onhashchange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onhashchange(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onlanguagechange ) ] + #[doc = "Getter for the `onlanguagechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onlanguagechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onlanguagechange(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onlanguagechange ) ] + #[doc = "Setter for the `onlanguagechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onlanguagechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onlanguagechange(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onmessage ) ] + #[doc = "Getter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onmessage(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onmessage ) ] + #[doc = "Setter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onmessage(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onmessageerror ) ] + #[doc = "Getter for the `onmessageerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmessageerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onmessageerror(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onmessageerror ) ] + #[doc = "Setter for the `onmessageerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onmessageerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onmessageerror(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onoffline ) ] + #[doc = "Getter for the `onoffline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onoffline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onoffline(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onoffline ) ] + #[doc = "Setter for the `onoffline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onoffline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onoffline(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = ononline ) ] + #[doc = "Getter for the `ononline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ononline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn ononline(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = ononline ) ] + #[doc = "Setter for the `ononline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/ononline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_ononline(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onpagehide ) ] + #[doc = "Getter for the `onpagehide` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpagehide)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onpagehide(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onpagehide ) ] + #[doc = "Setter for the `onpagehide` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpagehide)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onpagehide(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onpageshow ) ] + #[doc = "Getter for the `onpageshow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpageshow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onpageshow(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onpageshow ) ] + #[doc = "Setter for the `onpageshow` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpageshow)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onpageshow(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onpopstate ) ] + #[doc = "Getter for the `onpopstate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpopstate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onpopstate(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onpopstate ) ] + #[doc = "Setter for the `onpopstate` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onpopstate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onpopstate(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onstorage ) ] + #[doc = "Getter for the `onstorage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onstorage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onstorage(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onstorage ) ] + #[doc = "Setter for the `onstorage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onstorage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onstorage(this: &Window, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = onunload ) ] + #[doc = "Getter for the `onunload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onunload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn onunload(this: &Window) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Window" , js_name = onunload ) ] + #[doc = "Setter for the `onunload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/onunload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_onunload(this: &Window, value: Option<&::js_sys::Function>); + #[cfg(feature = "Storage")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = localStorage ) ] + #[doc = "Getter for the `localStorage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Storage`, `Window`*"] + pub fn local_storage(this: &Window) -> Result, JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = origin ) ] + #[doc = "Getter for the `origin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/origin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn origin(this: &Window) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "Window" , js_name = isSecureContext ) ] + #[doc = "Getter for the `isSecureContext` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/isSecureContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn is_secure_context(this: &Window) -> bool; + #[cfg(feature = "IdbFactory")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = indexedDB ) ] + #[doc = "Getter for the `indexedDB` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/indexedDB)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `Window`*"] + pub fn indexed_db(this: &Window) -> Result, JsValue>; + #[cfg(feature = "CacheStorage")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = caches ) ] + #[doc = "Getter for the `caches` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/caches)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheStorage`, `Window`*"] + pub fn caches(this: &Window) -> Result; + #[cfg(feature = "Storage")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "Window" , js_name = sessionStorage ) ] + #[doc = "Getter for the `sessionStorage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Storage`, `Window`*"] + pub fn session_storage(this: &Window) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = alert ) ] + #[doc = "The `alert()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/alert)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn alert(this: &Window) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = alert ) ] + #[doc = "The `alert()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/alert)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn alert_with_message(this: &Window, message: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = blur ) ] + #[doc = "The `blur()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/blur)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn blur(this: &Window) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = cancelAnimationFrame ) ] + #[doc = "The `cancelAnimationFrame()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelAnimationFrame)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn cancel_animation_frame(this: &Window, handle: i32) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = cancelIdleCallback ) ] + #[doc = "The `cancelIdleCallback()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelIdleCallback)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn cancel_idle_callback(this: &Window, handle: u32); + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = captureEvents ) ] + #[doc = "The `captureEvents()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/captureEvents)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn capture_events(this: &Window); + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = close ) ] + #[doc = "The `close()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/close)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn close(this: &Window) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = confirm ) ] + #[doc = "The `confirm()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn confirm(this: &Window) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = confirm ) ] + #[doc = "The `confirm()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn confirm_with_message(this: &Window, message: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = focus ) ] + #[doc = "The `focus()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/focus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn focus(this: &Window) -> Result<(), JsValue>; + #[cfg(all(feature = "CssStyleDeclaration", feature = "Element",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = getComputedStyle ) ] + #[doc = "The `getComputedStyle()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`, `Element`, `Window`*"] + pub fn get_computed_style( + this: &Window, + elt: &Element, + ) -> Result, JsValue>; + #[cfg(all(feature = "CssStyleDeclaration", feature = "Element",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = getComputedStyle ) ] + #[doc = "The `getComputedStyle()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CssStyleDeclaration`, `Element`, `Window`*"] + pub fn get_computed_style_with_pseudo_elt( + this: &Window, + elt: &Element, + pseudo_elt: &str, + ) -> Result, JsValue>; + #[cfg(feature = "Selection")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = getSelection ) ] + #[doc = "The `getSelection()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/getSelection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Selection`, `Window`*"] + pub fn get_selection(this: &Window) -> Result, JsValue>; + #[cfg(feature = "MediaQueryList")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = matchMedia ) ] + #[doc = "The `matchMedia()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaQueryList`, `Window`*"] + pub fn match_media(this: &Window, query: &str) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = moveBy ) ] + #[doc = "The `moveBy()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/moveBy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn move_by(this: &Window, x: i32, y: i32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = moveTo ) ] + #[doc = "The `moveTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/moveTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn move_to(this: &Window, x: i32, y: i32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn open(this: &Window) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn open_with_url(this: &Window, url: &str) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn open_with_url_and_target( + this: &Window, + url: &str, + target: &str, + ) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn open_with_url_and_target_and_features( + this: &Window, + url: &str, + target: &str, + features: &str, + ) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = postMessage ) ] + #[doc = "The `postMessage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn post_message( + this: &Window, + message: &::wasm_bindgen::JsValue, + target_origin: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = postMessage ) ] + #[doc = "The `postMessage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn post_message_with_transfer( + this: &Window, + message: &::wasm_bindgen::JsValue, + target_origin: &str, + transfer: &::wasm_bindgen::JsValue, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = print ) ] + #[doc = "The `print()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/print)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn print(this: &Window) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = prompt ) ] + #[doc = "The `prompt()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn prompt(this: &Window) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = prompt ) ] + #[doc = "The `prompt()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn prompt_with_message(this: &Window, message: &str) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = prompt ) ] + #[doc = "The `prompt()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn prompt_with_message_and_default( + this: &Window, + message: &str, + default: &str, + ) -> Result, JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = releaseEvents ) ] + #[doc = "The `releaseEvents()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/releaseEvents)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn release_events(this: &Window); + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = requestAnimationFrame ) ] + #[doc = "The `requestAnimationFrame()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn request_animation_frame( + this: &Window, + callback: &::js_sys::Function, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = requestIdleCallback ) ] + #[doc = "The `requestIdleCallback()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn request_idle_callback( + this: &Window, + callback: &::js_sys::Function, + ) -> Result; + #[cfg(feature = "IdleRequestOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = requestIdleCallback ) ] + #[doc = "The `requestIdleCallback()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdleRequestOptions`, `Window`*"] + pub fn request_idle_callback_with_options( + this: &Window, + callback: &::js_sys::Function, + options: &IdleRequestOptions, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = resizeBy ) ] + #[doc = "The `resizeBy()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/resizeBy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn resize_by(this: &Window, x: i32, y: i32) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = resizeTo ) ] + #[doc = "The `resizeTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/resizeTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn resize_to(this: &Window, x: i32, y: i32) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = scroll ) ] + #[doc = "The `scroll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scroll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn scroll_with_x_and_y(this: &Window, x: f64, y: f64); + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = scroll ) ] + #[doc = "The `scroll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scroll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn scroll(this: &Window); + #[cfg(feature = "ScrollToOptions")] + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = scroll ) ] + #[doc = "The `scroll()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scroll)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`, `Window`*"] + pub fn scroll_with_scroll_to_options(this: &Window, options: &ScrollToOptions); + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = scrollBy ) ] + #[doc = "The `scrollBy()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollBy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn scroll_by_with_x_and_y(this: &Window, x: f64, y: f64); + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = scrollBy ) ] + #[doc = "The `scrollBy()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollBy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn scroll_by(this: &Window); + #[cfg(feature = "ScrollToOptions")] + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = scrollBy ) ] + #[doc = "The `scrollBy()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollBy)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`, `Window`*"] + pub fn scroll_by_with_scroll_to_options(this: &Window, options: &ScrollToOptions); + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = scrollTo ) ] + #[doc = "The `scrollTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn scroll_to_with_x_and_y(this: &Window, x: f64, y: f64); + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = scrollTo ) ] + #[doc = "The `scrollTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn scroll_to(this: &Window); + #[cfg(feature = "ScrollToOptions")] + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = scrollTo ) ] + #[doc = "The `scrollTo()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ScrollToOptions`, `Window`*"] + pub fn scroll_to_with_scroll_to_options(this: &Window, options: &ScrollToOptions); + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = stop ) ] + #[doc = "The `stop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/stop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn stop(this: &Window) -> Result<(), JsValue>; + #[wasm_bindgen(method, structural, js_class = "Window", indexing_getter)] + #[doc = "Indexing getter."] + #[doc = ""] + #[doc = ""] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn get(this: &Window, name: &str) -> Option<::js_sys::Object>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = atob ) ] + #[doc = "The `atob()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/atob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn atob(this: &Window, atob: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = btoa ) ] + #[doc = "The `btoa()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/btoa)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn btoa(this: &Window, btoa: &str) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = clearInterval ) ] + #[doc = "The `clearInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/clearInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn clear_interval(this: &Window); + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = clearInterval ) ] + #[doc = "The `clearInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/clearInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn clear_interval_with_handle(this: &Window, handle: i32); + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = clearTimeout ) ] + #[doc = "The `clearTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/clearTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn clear_timeout(this: &Window); + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = clearTimeout ) ] + #[doc = "The `clearTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/clearTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn clear_timeout_with_handle(this: &Window, handle: i32); + #[cfg(feature = "HtmlImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `Window`*"] + pub fn create_image_bitmap_with_html_image_element( + this: &Window, + a_image: &HtmlImageElement, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "HtmlVideoElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `Window`*"] + pub fn create_image_bitmap_with_html_video_element( + this: &Window, + a_image: &HtmlVideoElement, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "HtmlCanvasElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `Window`*"] + pub fn create_image_bitmap_with_html_canvas_element( + this: &Window, + a_image: &HtmlCanvasElement, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `Window`*"] + pub fn create_image_bitmap_with_blob( + this: &Window, + a_image: &Blob, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "ImageData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`, `Window`*"] + pub fn create_image_bitmap_with_image_data( + this: &Window, + a_image: &ImageData, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CanvasRenderingContext2d")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Window`*"] + pub fn create_image_bitmap_with_canvas_rendering_context_2d( + this: &Window, + a_image: &CanvasRenderingContext2d, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `Window`*"] + pub fn create_image_bitmap_with_image_bitmap( + this: &Window, + a_image: &ImageBitmap, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn create_image_bitmap_with_buffer_source( + this: &Window, + a_image: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn create_image_bitmap_with_u8_array( + this: &Window, + a_image: &mut [u8], + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "HtmlImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `Window`*"] + pub fn create_image_bitmap_with_html_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &Window, + a_image: &HtmlImageElement, + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "HtmlVideoElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `Window`*"] + pub fn create_image_bitmap_with_html_video_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &Window, + a_image: &HtmlVideoElement, + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "HtmlCanvasElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `Window`*"] + pub fn create_image_bitmap_with_html_canvas_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &Window, + a_image: &HtmlCanvasElement, + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `Window`*"] + pub fn create_image_bitmap_with_blob_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &Window, + a_image: &Blob, + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "ImageData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`, `Window`*"] + pub fn create_image_bitmap_with_image_data_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &Window, + a_image: &ImageData, + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CanvasRenderingContext2d")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `Window`*"] + pub fn create_image_bitmap_with_canvas_rendering_context_2d_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &Window, + a_image: &CanvasRenderingContext2d, + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `Window`*"] + pub fn create_image_bitmap_with_image_bitmap_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &Window, + a_image: &ImageBitmap, + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn create_image_bitmap_with_buffer_source_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &Window, + a_image: &::js_sys::Object, + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn create_image_bitmap_with_u8_array_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &Window, + a_image: &mut [u8], + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "Request")] + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = fetch ) ] + #[doc = "The `fetch()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/fetch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`, `Window`*"] + pub fn fetch_with_request(this: &Window, input: &Request) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = fetch ) ] + #[doc = "The `fetch()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/fetch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn fetch_with_str(this: &Window, input: &str) -> ::js_sys::Promise; + #[cfg(all(feature = "Request", feature = "RequestInit",))] + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = fetch ) ] + #[doc = "The `fetch()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/fetch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestInit`, `Window`*"] + pub fn fetch_with_request_and_init( + this: &Window, + input: &Request, + init: &RequestInit, + ) -> ::js_sys::Promise; + #[cfg(feature = "RequestInit")] + # [ wasm_bindgen ( method , structural , js_class = "Window" , js_name = fetch ) ] + #[doc = "The `fetch()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/fetch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RequestInit`, `Window`*"] + pub fn fetch_with_str_and_init( + this: &Window, + input: &str, + init: &RequestInit, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_callback( + this: &Window, + handler: &::js_sys::Function, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + arguments: &::js_sys::Array, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments_0( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments_1( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments_2( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments_3( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments_4( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + arguments_4: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments_5( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + arguments_4: &::wasm_bindgen::JsValue, + arguments_5: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments_6( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + arguments_4: &::wasm_bindgen::JsValue, + arguments_5: &::wasm_bindgen::JsValue, + arguments_6: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments_7( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + arguments_4: &::wasm_bindgen::JsValue, + arguments_5: &::wasm_bindgen::JsValue, + arguments_6: &::wasm_bindgen::JsValue, + arguments_7: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_str(this: &Window, handler: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_str_and_timeout_and_unused( + this: &Window, + handler: &str, + timeout: i32, + unused: &::js_sys::Array, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_str_and_timeout_and_unused_0( + this: &Window, + handler: &str, + timeout: i32, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_str_and_timeout_and_unused_1( + this: &Window, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_str_and_timeout_and_unused_2( + this: &Window, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_str_and_timeout_and_unused_3( + this: &Window, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_str_and_timeout_and_unused_4( + this: &Window, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + unused_4: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_str_and_timeout_and_unused_5( + this: &Window, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + unused_4: &::wasm_bindgen::JsValue, + unused_5: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_str_and_timeout_and_unused_6( + this: &Window, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + unused_4: &::wasm_bindgen::JsValue, + unused_5: &::wasm_bindgen::JsValue, + unused_6: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_interval_with_str_and_timeout_and_unused_7( + this: &Window, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + unused_4: &::wasm_bindgen::JsValue, + unused_5: &::wasm_bindgen::JsValue, + unused_6: &::wasm_bindgen::JsValue, + unused_7: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_callback( + this: &Window, + handler: &::js_sys::Function, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + arguments: &::js_sys::Array, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments_0( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments_1( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments_2( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments_3( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments_4( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + arguments_4: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments_5( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + arguments_4: &::wasm_bindgen::JsValue, + arguments_5: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments_6( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + arguments_4: &::wasm_bindgen::JsValue, + arguments_5: &::wasm_bindgen::JsValue, + arguments_6: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments_7( + this: &Window, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + arguments_4: &::wasm_bindgen::JsValue, + arguments_5: &::wasm_bindgen::JsValue, + arguments_6: &::wasm_bindgen::JsValue, + arguments_7: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_str(this: &Window, handler: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_str_and_timeout_and_unused( + this: &Window, + handler: &str, + timeout: i32, + unused: &::js_sys::Array, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_str_and_timeout_and_unused_0( + this: &Window, + handler: &str, + timeout: i32, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_str_and_timeout_and_unused_1( + this: &Window, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_str_and_timeout_and_unused_2( + this: &Window, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_str_and_timeout_and_unused_3( + this: &Window, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_str_and_timeout_and_unused_4( + this: &Window, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + unused_4: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_str_and_timeout_and_unused_5( + this: &Window, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + unused_4: &::wasm_bindgen::JsValue, + unused_5: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_str_and_timeout_and_unused_6( + this: &Window, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + unused_4: &::wasm_bindgen::JsValue, + unused_5: &::wasm_bindgen::JsValue, + unused_6: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Window" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Window`*"] + pub fn set_timeout_with_str_and_timeout_and_unused_7( + this: &Window, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + unused_4: &::wasm_bindgen::JsValue, + unused_5: &::wasm_bindgen::JsValue, + unused_6: &::wasm_bindgen::JsValue, + unused_7: &::wasm_bindgen::JsValue, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_WindowClient.rs b/crates/web-sys/src/features/gen_WindowClient.rs new file mode 100644 index 00000000..7fb9ee5d --- /dev/null +++ b/crates/web-sys/src/features/gen_WindowClient.rs @@ -0,0 +1,43 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Client , extends = :: js_sys :: Object , js_name = WindowClient , typescript_type = "WindowClient" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WindowClient` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WindowClient)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WindowClient`*"] + pub type WindowClient; + #[cfg(feature = "VisibilityState")] + # [ wasm_bindgen ( structural , method , getter , js_class = "WindowClient" , js_name = visibilityState ) ] + #[doc = "Getter for the `visibilityState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/visibilityState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `VisibilityState`, `WindowClient`*"] + pub fn visibility_state(this: &WindowClient) -> VisibilityState; + # [ wasm_bindgen ( structural , method , getter , js_class = "WindowClient" , js_name = focused ) ] + #[doc = "Getter for the `focused` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/focused)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WindowClient`*"] + pub fn focused(this: &WindowClient) -> bool; + # [ wasm_bindgen ( catch , method , structural , js_class = "WindowClient" , js_name = focus ) ] + #[doc = "The `focus()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/focus)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WindowClient`*"] + pub fn focus(this: &WindowClient) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WindowClient" , js_name = navigate ) ] + #[doc = "The `navigate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WindowClient/navigate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WindowClient`*"] + pub fn navigate(this: &WindowClient, url: &str) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_Worker.rs b/crates/web-sys/src/features/gen_Worker.rs new file mode 100644 index 00000000..b6073bf4 --- /dev/null +++ b/crates/web-sys/src/features/gen_Worker.rs @@ -0,0 +1,96 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = Worker , typescript_type = "Worker" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Worker` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Worker`*"] + pub type Worker; + # [ wasm_bindgen ( structural , method , getter , js_class = "Worker" , js_name = onmessage ) ] + #[doc = "Getter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Worker`*"] + pub fn onmessage(this: &Worker) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Worker" , js_name = onmessage ) ] + #[doc = "Setter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Worker`*"] + pub fn set_onmessage(this: &Worker, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Worker" , js_name = onmessageerror ) ] + #[doc = "Getter for the `onmessageerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessageerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Worker`*"] + pub fn onmessageerror(this: &Worker) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Worker" , js_name = onmessageerror ) ] + #[doc = "Setter for the `onmessageerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onmessageerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Worker`*"] + pub fn set_onmessageerror(this: &Worker, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "Worker" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Worker`*"] + pub fn onerror(this: &Worker) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "Worker" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Worker`*"] + pub fn set_onerror(this: &Worker, value: Option<&::js_sys::Function>); + #[wasm_bindgen(catch, constructor, js_class = "Worker")] + #[doc = "The `new Worker(..)` constructor, creating a new instance of `Worker`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/Worker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Worker`*"] + pub fn new(script_url: &str) -> Result; + #[cfg(feature = "WorkerOptions")] + #[wasm_bindgen(catch, constructor, js_class = "Worker")] + #[doc = "The `new Worker(..)` constructor, creating a new instance of `Worker`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/Worker)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Worker`, `WorkerOptions`*"] + pub fn new_with_options(script_url: &str, options: &WorkerOptions) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "Worker" , js_name = postMessage ) ] + #[doc = "The `postMessage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/postMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Worker`*"] + pub fn post_message(this: &Worker, message: &::wasm_bindgen::JsValue) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "Worker" , js_name = postMessage ) ] + #[doc = "The `postMessage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/postMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Worker`*"] + pub fn post_message_with_transfer( + this: &Worker, + message: &::wasm_bindgen::JsValue, + transfer: &::wasm_bindgen::JsValue, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "Worker" , js_name = terminate ) ] + #[doc = "The `terminate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worker/terminate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Worker`*"] + pub fn terminate(this: &Worker); +} diff --git a/crates/web-sys/src/features/gen_WorkerDebuggerGlobalScope.rs b/crates/web-sys/src/features/gen_WorkerDebuggerGlobalScope.rs new file mode 100644 index 00000000..42474736 --- /dev/null +++ b/crates/web-sys/src/features/gen_WorkerDebuggerGlobalScope.rs @@ -0,0 +1,135 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = WorkerDebuggerGlobalScope , typescript_type = "WorkerDebuggerGlobalScope" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WorkerDebuggerGlobalScope` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] + pub type WorkerDebuggerGlobalScope; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "WorkerDebuggerGlobalScope" , js_name = global ) ] + #[doc = "Getter for the `global` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/global)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] + pub fn global(this: &WorkerDebuggerGlobalScope) -> Result<::js_sys::Object, JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerDebuggerGlobalScope" , js_name = onmessage ) ] + #[doc = "Getter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] + pub fn onmessage(this: &WorkerDebuggerGlobalScope) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "WorkerDebuggerGlobalScope" , js_name = onmessage ) ] + #[doc = "Setter for the `onmessage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/onmessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] + pub fn set_onmessage(this: &WorkerDebuggerGlobalScope, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = createSandbox ) ] + #[doc = "The `createSandbox()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/createSandbox)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] + pub fn create_sandbox( + this: &WorkerDebuggerGlobalScope, + name: &str, + prototype: &::js_sys::Object, + ) -> Result<::js_sys::Object, JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = dump ) ] + #[doc = "The `dump()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/dump)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] + pub fn dump(this: &WorkerDebuggerGlobalScope); + # [ wasm_bindgen ( method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = dump ) ] + #[doc = "The `dump()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/dump)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] + pub fn dump_with_string(this: &WorkerDebuggerGlobalScope, string: &str); + # [ wasm_bindgen ( method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = enterEventLoop ) ] + #[doc = "The `enterEventLoop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/enterEventLoop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] + pub fn enter_event_loop(this: &WorkerDebuggerGlobalScope); + # [ wasm_bindgen ( method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = leaveEventLoop ) ] + #[doc = "The `leaveEventLoop()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/leaveEventLoop)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] + pub fn leave_event_loop(this: &WorkerDebuggerGlobalScope); + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = loadSubScript ) ] + #[doc = "The `loadSubScript()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/loadSubScript)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] + pub fn load_sub_script(this: &WorkerDebuggerGlobalScope, url: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = loadSubScript ) ] + #[doc = "The `loadSubScript()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/loadSubScript)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] + pub fn load_sub_script_with_sandbox( + this: &WorkerDebuggerGlobalScope, + url: &str, + sandbox: &::js_sys::Object, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = postMessage ) ] + #[doc = "The `postMessage()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/postMessage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] + pub fn post_message(this: &WorkerDebuggerGlobalScope, message: &str); + # [ wasm_bindgen ( method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = reportError ) ] + #[doc = "The `reportError()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/reportError)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] + pub fn report_error(this: &WorkerDebuggerGlobalScope, message: &str); + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = retrieveConsoleEvents ) ] + #[doc = "The `retrieveConsoleEvents()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/retrieveConsoleEvents)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] + pub fn retrieve_console_events( + this: &WorkerDebuggerGlobalScope, + ) -> Result<::js_sys::Array, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = setConsoleEventHandler ) ] + #[doc = "The `setConsoleEventHandler()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/setConsoleEventHandler)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] + pub fn set_console_event_handler( + this: &WorkerDebuggerGlobalScope, + handler: Option<&::js_sys::Function>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerDebuggerGlobalScope" , js_name = setImmediate ) ] + #[doc = "The `setImmediate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerDebuggerGlobalScope/setImmediate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerDebuggerGlobalScope`*"] + pub fn set_immediate( + this: &WorkerDebuggerGlobalScope, + handler: &::js_sys::Function, + ) -> Result<(), JsValue>; +} diff --git a/crates/web-sys/src/features/gen_WorkerGlobalScope.rs b/crates/web-sys/src/features/gen_WorkerGlobalScope.rs new file mode 100644 index 00000000..1f38be00 --- /dev/null +++ b/crates/web-sys/src/features/gen_WorkerGlobalScope.rs @@ -0,0 +1,1076 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = WorkerGlobalScope , typescript_type = "WorkerGlobalScope" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WorkerGlobalScope` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub type WorkerGlobalScope; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerGlobalScope" , js_name = self ) ] + #[doc = "Getter for the `self` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/self)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn self_(this: &WorkerGlobalScope) -> WorkerGlobalScope; + #[cfg(feature = "WorkerLocation")] + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerGlobalScope" , js_name = location ) ] + #[doc = "Getter for the `location` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/location)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`, `WorkerLocation`*"] + pub fn location(this: &WorkerGlobalScope) -> WorkerLocation; + #[cfg(feature = "WorkerNavigator")] + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerGlobalScope" , js_name = navigator ) ] + #[doc = "Getter for the `navigator` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/navigator)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`, `WorkerNavigator`*"] + pub fn navigator(this: &WorkerGlobalScope) -> WorkerNavigator; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerGlobalScope" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn onerror(this: &WorkerGlobalScope) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "WorkerGlobalScope" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_onerror(this: &WorkerGlobalScope, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerGlobalScope" , js_name = onoffline ) ] + #[doc = "Getter for the `onoffline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onoffline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn onoffline(this: &WorkerGlobalScope) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "WorkerGlobalScope" , js_name = onoffline ) ] + #[doc = "Setter for the `onoffline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/onoffline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_onoffline(this: &WorkerGlobalScope, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerGlobalScope" , js_name = ononline ) ] + #[doc = "Getter for the `ononline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/ononline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn ononline(this: &WorkerGlobalScope) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "WorkerGlobalScope" , js_name = ononline ) ] + #[doc = "Setter for the `ononline` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/ononline)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_ononline(this: &WorkerGlobalScope, value: Option<&::js_sys::Function>); + #[cfg(feature = "Crypto")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "WorkerGlobalScope" , js_name = crypto ) ] + #[doc = "Getter for the `crypto` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/crypto)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Crypto`, `WorkerGlobalScope`*"] + pub fn crypto(this: &WorkerGlobalScope) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerGlobalScope" , js_name = origin ) ] + #[doc = "Getter for the `origin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/origin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn origin(this: &WorkerGlobalScope) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerGlobalScope" , js_name = isSecureContext ) ] + #[doc = "Getter for the `isSecureContext` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/isSecureContext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn is_secure_context(this: &WorkerGlobalScope) -> bool; + #[cfg(feature = "IdbFactory")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "WorkerGlobalScope" , js_name = indexedDB ) ] + #[doc = "Getter for the `indexedDB` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/indexedDB)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `IdbFactory`, `WorkerGlobalScope`*"] + pub fn indexed_db(this: &WorkerGlobalScope) -> Result, JsValue>; + #[cfg(feature = "CacheStorage")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "WorkerGlobalScope" , js_name = caches ) ] + #[doc = "Getter for the `caches` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/caches)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CacheStorage`, `WorkerGlobalScope`*"] + pub fn caches(this: &WorkerGlobalScope) -> Result; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = importScripts ) ] + #[doc = "The `importScripts()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn import_scripts(this: &WorkerGlobalScope, urls: &::js_sys::Array) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts ) ] + #[doc = "The `importScripts()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn import_scripts_0(this: &WorkerGlobalScope) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts ) ] + #[doc = "The `importScripts()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn import_scripts_1(this: &WorkerGlobalScope, urls_1: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts ) ] + #[doc = "The `importScripts()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn import_scripts_2( + this: &WorkerGlobalScope, + urls_1: &str, + urls_2: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts ) ] + #[doc = "The `importScripts()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn import_scripts_3( + this: &WorkerGlobalScope, + urls_1: &str, + urls_2: &str, + urls_3: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts ) ] + #[doc = "The `importScripts()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn import_scripts_4( + this: &WorkerGlobalScope, + urls_1: &str, + urls_2: &str, + urls_3: &str, + urls_4: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts ) ] + #[doc = "The `importScripts()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn import_scripts_5( + this: &WorkerGlobalScope, + urls_1: &str, + urls_2: &str, + urls_3: &str, + urls_4: &str, + urls_5: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts ) ] + #[doc = "The `importScripts()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn import_scripts_6( + this: &WorkerGlobalScope, + urls_1: &str, + urls_2: &str, + urls_3: &str, + urls_4: &str, + urls_5: &str, + urls_6: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = importScripts ) ] + #[doc = "The `importScripts()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn import_scripts_7( + this: &WorkerGlobalScope, + urls_1: &str, + urls_2: &str, + urls_3: &str, + urls_4: &str, + urls_5: &str, + urls_6: &str, + urls_7: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = atob ) ] + #[doc = "The `atob()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/atob)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn atob(this: &WorkerGlobalScope, atob: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = btoa ) ] + #[doc = "The `btoa()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/btoa)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn btoa(this: &WorkerGlobalScope, btoa: &str) -> Result; + # [ wasm_bindgen ( method , structural , js_class = "WorkerGlobalScope" , js_name = clearInterval ) ] + #[doc = "The `clearInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn clear_interval(this: &WorkerGlobalScope); + # [ wasm_bindgen ( method , structural , js_class = "WorkerGlobalScope" , js_name = clearInterval ) ] + #[doc = "The `clearInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn clear_interval_with_handle(this: &WorkerGlobalScope, handle: i32); + # [ wasm_bindgen ( method , structural , js_class = "WorkerGlobalScope" , js_name = clearTimeout ) ] + #[doc = "The `clearTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn clear_timeout(this: &WorkerGlobalScope); + # [ wasm_bindgen ( method , structural , js_class = "WorkerGlobalScope" , js_name = clearTimeout ) ] + #[doc = "The `clearTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/clearTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn clear_timeout_with_handle(this: &WorkerGlobalScope, handle: i32); + #[cfg(feature = "HtmlImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_html_image_element( + this: &WorkerGlobalScope, + a_image: &HtmlImageElement, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "HtmlVideoElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_html_video_element( + this: &WorkerGlobalScope, + a_image: &HtmlVideoElement, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "HtmlCanvasElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_html_canvas_element( + this: &WorkerGlobalScope, + a_image: &HtmlCanvasElement, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_blob( + this: &WorkerGlobalScope, + a_image: &Blob, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "ImageData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_image_data( + this: &WorkerGlobalScope, + a_image: &ImageData, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CanvasRenderingContext2d")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_canvas_rendering_context_2d( + this: &WorkerGlobalScope, + a_image: &CanvasRenderingContext2d, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_image_bitmap( + this: &WorkerGlobalScope, + a_image: &ImageBitmap, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_buffer_source( + this: &WorkerGlobalScope, + a_image: &::js_sys::Object, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_u8_array( + this: &WorkerGlobalScope, + a_image: &mut [u8], + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "HtmlImageElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_html_image_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &WorkerGlobalScope, + a_image: &HtmlImageElement, + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "HtmlVideoElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_html_video_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &WorkerGlobalScope, + a_image: &HtmlVideoElement, + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "HtmlCanvasElement")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_html_canvas_element_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &WorkerGlobalScope, + a_image: &HtmlCanvasElement, + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_blob_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &WorkerGlobalScope, + a_image: &Blob, + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "ImageData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_image_data_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &WorkerGlobalScope, + a_image: &ImageData, + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "CanvasRenderingContext2d")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `CanvasRenderingContext2d`, `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_canvas_rendering_context_2d_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &WorkerGlobalScope, + a_image: &CanvasRenderingContext2d, + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "ImageBitmap")] + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_image_bitmap_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &WorkerGlobalScope, + a_image: &ImageBitmap, + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_buffer_source_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &WorkerGlobalScope, + a_image: &::js_sys::Object, + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = createImageBitmap ) ] + #[doc = "The `createImageBitmap()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/createImageBitmap)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn create_image_bitmap_with_u8_array_and_a_sx_and_a_sy_and_a_sw_and_a_sh( + this: &WorkerGlobalScope, + a_image: &mut [u8], + a_sx: i32, + a_sy: i32, + a_sw: i32, + a_sh: i32, + ) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "Request")] + # [ wasm_bindgen ( method , structural , js_class = "WorkerGlobalScope" , js_name = fetch ) ] + #[doc = "The `fetch()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`, `WorkerGlobalScope`*"] + pub fn fetch_with_request(this: &WorkerGlobalScope, input: &Request) -> ::js_sys::Promise; + # [ wasm_bindgen ( method , structural , js_class = "WorkerGlobalScope" , js_name = fetch ) ] + #[doc = "The `fetch()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn fetch_with_str(this: &WorkerGlobalScope, input: &str) -> ::js_sys::Promise; + #[cfg(all(feature = "Request", feature = "RequestInit",))] + # [ wasm_bindgen ( method , structural , js_class = "WorkerGlobalScope" , js_name = fetch ) ] + #[doc = "The `fetch()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Request`, `RequestInit`, `WorkerGlobalScope`*"] + pub fn fetch_with_request_and_init( + this: &WorkerGlobalScope, + input: &Request, + init: &RequestInit, + ) -> ::js_sys::Promise; + #[cfg(feature = "RequestInit")] + # [ wasm_bindgen ( method , structural , js_class = "WorkerGlobalScope" , js_name = fetch ) ] + #[doc = "The `fetch()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/fetch)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RequestInit`, `WorkerGlobalScope`*"] + pub fn fetch_with_str_and_init( + this: &WorkerGlobalScope, + input: &str, + init: &RequestInit, + ) -> ::js_sys::Promise; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_callback( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + arguments: &::js_sys::Array, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments_0( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments_1( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments_2( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments_3( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments_4( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + arguments_4: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments_5( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + arguments_4: &::wasm_bindgen::JsValue, + arguments_5: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments_6( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + arguments_4: &::wasm_bindgen::JsValue, + arguments_5: &::wasm_bindgen::JsValue, + arguments_6: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_callback_and_timeout_and_arguments_7( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + arguments_4: &::wasm_bindgen::JsValue, + arguments_5: &::wasm_bindgen::JsValue, + arguments_6: &::wasm_bindgen::JsValue, + arguments_7: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_str(this: &WorkerGlobalScope, handler: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_str_and_timeout_and_unused( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + unused: &::js_sys::Array, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_str_and_timeout_and_unused_0( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_str_and_timeout_and_unused_1( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_str_and_timeout_and_unused_2( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_str_and_timeout_and_unused_3( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_str_and_timeout_and_unused_4( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + unused_4: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_str_and_timeout_and_unused_5( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + unused_4: &::wasm_bindgen::JsValue, + unused_5: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_str_and_timeout_and_unused_6( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + unused_4: &::wasm_bindgen::JsValue, + unused_5: &::wasm_bindgen::JsValue, + unused_6: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setInterval ) ] + #[doc = "The `setInterval()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setInterval)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_interval_with_str_and_timeout_and_unused_7( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + unused_4: &::wasm_bindgen::JsValue, + unused_5: &::wasm_bindgen::JsValue, + unused_6: &::wasm_bindgen::JsValue, + unused_7: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_callback( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + arguments: &::js_sys::Array, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments_0( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments_1( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments_2( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments_3( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments_4( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + arguments_4: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments_5( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + arguments_4: &::wasm_bindgen::JsValue, + arguments_5: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments_6( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + arguments_4: &::wasm_bindgen::JsValue, + arguments_5: &::wasm_bindgen::JsValue, + arguments_6: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_callback_and_timeout_and_arguments_7( + this: &WorkerGlobalScope, + handler: &::js_sys::Function, + timeout: i32, + arguments_1: &::wasm_bindgen::JsValue, + arguments_2: &::wasm_bindgen::JsValue, + arguments_3: &::wasm_bindgen::JsValue, + arguments_4: &::wasm_bindgen::JsValue, + arguments_5: &::wasm_bindgen::JsValue, + arguments_6: &::wasm_bindgen::JsValue, + arguments_7: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_str(this: &WorkerGlobalScope, handler: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , variadic , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_str_and_timeout_and_unused( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + unused: &::js_sys::Array, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_str_and_timeout_and_unused_0( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_str_and_timeout_and_unused_1( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_str_and_timeout_and_unused_2( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_str_and_timeout_and_unused_3( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_str_and_timeout_and_unused_4( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + unused_4: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_str_and_timeout_and_unused_5( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + unused_4: &::wasm_bindgen::JsValue, + unused_5: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_str_and_timeout_and_unused_6( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + unused_4: &::wasm_bindgen::JsValue, + unused_5: &::wasm_bindgen::JsValue, + unused_6: &::wasm_bindgen::JsValue, + ) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "WorkerGlobalScope" , js_name = setTimeout ) ] + #[doc = "The `setTimeout()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/setTimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerGlobalScope`*"] + pub fn set_timeout_with_str_and_timeout_and_unused_7( + this: &WorkerGlobalScope, + handler: &str, + timeout: i32, + unused_1: &::wasm_bindgen::JsValue, + unused_2: &::wasm_bindgen::JsValue, + unused_3: &::wasm_bindgen::JsValue, + unused_4: &::wasm_bindgen::JsValue, + unused_5: &::wasm_bindgen::JsValue, + unused_6: &::wasm_bindgen::JsValue, + unused_7: &::wasm_bindgen::JsValue, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_WorkerLocation.rs b/crates/web-sys/src/features/gen_WorkerLocation.rs new file mode 100644 index 00000000..00b10ce0 --- /dev/null +++ b/crates/web-sys/src/features/gen_WorkerLocation.rs @@ -0,0 +1,77 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WorkerLocation , typescript_type = "WorkerLocation" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WorkerLocation` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] + pub type WorkerLocation; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerLocation" , js_name = href ) ] + #[doc = "Getter for the `href` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/href)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] + pub fn href(this: &WorkerLocation) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerLocation" , js_name = origin ) ] + #[doc = "Getter for the `origin` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/origin)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] + pub fn origin(this: &WorkerLocation) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerLocation" , js_name = protocol ) ] + #[doc = "Getter for the `protocol` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/protocol)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] + pub fn protocol(this: &WorkerLocation) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerLocation" , js_name = host ) ] + #[doc = "Getter for the `host` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/host)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] + pub fn host(this: &WorkerLocation) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerLocation" , js_name = hostname ) ] + #[doc = "Getter for the `hostname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/hostname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] + pub fn hostname(this: &WorkerLocation) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerLocation" , js_name = port ) ] + #[doc = "Getter for the `port` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/port)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] + pub fn port(this: &WorkerLocation) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerLocation" , js_name = pathname ) ] + #[doc = "Getter for the `pathname` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/pathname)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] + pub fn pathname(this: &WorkerLocation) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerLocation" , js_name = search ) ] + #[doc = "Getter for the `search` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/search)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] + pub fn search(this: &WorkerLocation) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerLocation" , js_name = hash ) ] + #[doc = "Getter for the `hash` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerLocation/hash)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerLocation`*"] + pub fn hash(this: &WorkerLocation) -> String; +} diff --git a/crates/web-sys/src/features/gen_WorkerNavigator.rs b/crates/web-sys/src/features/gen_WorkerNavigator.rs new file mode 100644 index 00000000..c023edb3 --- /dev/null +++ b/crates/web-sys/src/features/gen_WorkerNavigator.rs @@ -0,0 +1,127 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WorkerNavigator , typescript_type = "WorkerNavigator" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WorkerNavigator` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] + pub type WorkerNavigator; + #[cfg(feature = "NetworkInformation")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = connection ) ] + #[doc = "Getter for the `connection` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/connection)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `NetworkInformation`, `WorkerNavigator`*"] + pub fn connection(this: &WorkerNavigator) -> Result; + #[cfg(feature = "MediaCapabilities")] + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerNavigator" , js_name = mediaCapabilities ) ] + #[doc = "Getter for the `mediaCapabilities` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/mediaCapabilities)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `MediaCapabilities`, `WorkerNavigator`*"] + pub fn media_capabilities(this: &WorkerNavigator) -> MediaCapabilities; + #[cfg(web_sys_unstable_apis)] + #[cfg(feature = "Gpu")] + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerNavigator" , js_name = gpu ) ] + #[doc = "Getter for the `gpu` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/gpu)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Gpu`, `WorkerNavigator`*"] + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + pub fn gpu(this: &WorkerNavigator) -> Gpu; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerNavigator" , js_name = hardwareConcurrency ) ] + #[doc = "Getter for the `hardwareConcurrency` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/hardwareConcurrency)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] + pub fn hardware_concurrency(this: &WorkerNavigator) -> f64; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = appCodeName ) ] + #[doc = "Getter for the `appCodeName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/appCodeName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] + pub fn app_code_name(this: &WorkerNavigator) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerNavigator" , js_name = appName ) ] + #[doc = "Getter for the `appName` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/appName)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] + pub fn app_name(this: &WorkerNavigator) -> String; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = appVersion ) ] + #[doc = "Getter for the `appVersion` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/appVersion)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] + pub fn app_version(this: &WorkerNavigator) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = platform ) ] + #[doc = "Getter for the `platform` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/platform)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] + pub fn platform(this: &WorkerNavigator) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "WorkerNavigator" , js_name = userAgent ) ] + #[doc = "Getter for the `userAgent` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/userAgent)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] + pub fn user_agent(this: &WorkerNavigator) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerNavigator" , js_name = product ) ] + #[doc = "Getter for the `product` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/product)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] + pub fn product(this: &WorkerNavigator) -> String; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerNavigator" , js_name = language ) ] + #[doc = "Getter for the `language` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/language)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] + pub fn language(this: &WorkerNavigator) -> Option; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerNavigator" , js_name = languages ) ] + #[doc = "Getter for the `languages` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/languages)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] + pub fn languages(this: &WorkerNavigator) -> ::js_sys::Array; + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerNavigator" , js_name = onLine ) ] + #[doc = "Getter for the `onLine` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/onLine)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] + pub fn on_line(this: &WorkerNavigator) -> bool; + #[cfg(feature = "StorageManager")] + # [ wasm_bindgen ( structural , method , getter , js_class = "WorkerNavigator" , js_name = storage ) ] + #[doc = "Getter for the `storage` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/storage)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `StorageManager`, `WorkerNavigator`*"] + pub fn storage(this: &WorkerNavigator) -> StorageManager; + # [ wasm_bindgen ( method , structural , js_class = "WorkerNavigator" , js_name = taintEnabled ) ] + #[doc = "The `taintEnabled()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkerNavigator/taintEnabled)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerNavigator`*"] + pub fn taint_enabled(this: &WorkerNavigator) -> bool; +} diff --git a/crates/web-sys/src/features/gen_WorkerOptions.rs b/crates/web-sys/src/features/gen_WorkerOptions.rs new file mode 100644 index 00000000..e1c12ef0 --- /dev/null +++ b/crates/web-sys/src/features/gen_WorkerOptions.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WorkerOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WorkerOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerOptions`*"] + pub type WorkerOptions; +} +impl WorkerOptions { + #[doc = "Construct a new `WorkerOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `name` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkerOptions`*"] + pub fn name(&mut self, val: &str) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set(self.as_ref(), &JsValue::from("name"), &JsValue::from(val)); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_Worklet.rs b/crates/web-sys/src/features/gen_Worklet.rs new file mode 100644 index 00000000..2d4980db --- /dev/null +++ b/crates/web-sys/src/features/gen_Worklet.rs @@ -0,0 +1,33 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = Worklet , typescript_type = "Worklet" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `Worklet` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worklet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Worklet`*"] + pub type Worklet; + # [ wasm_bindgen ( catch , method , structural , js_class = "Worklet" , js_name = addModule ) ] + #[doc = "The `addModule()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worklet/addModule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Worklet`*"] + pub fn add_module(this: &Worklet, module_url: &str) -> Result<::js_sys::Promise, JsValue>; + #[cfg(feature = "WorkletOptions")] + # [ wasm_bindgen ( catch , method , structural , js_class = "Worklet" , js_name = addModule ) ] + #[doc = "The `addModule()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Worklet/addModule)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Worklet`, `WorkletOptions`*"] + pub fn add_module_with_options( + this: &Worklet, + module_url: &str, + options: &WorkletOptions, + ) -> Result<::js_sys::Promise, JsValue>; +} diff --git a/crates/web-sys/src/features/gen_WorkletGlobalScope.rs b/crates/web-sys/src/features/gen_WorkletGlobalScope.rs new file mode 100644 index 00000000..feab4621 --- /dev/null +++ b/crates/web-sys/src/features/gen_WorkletGlobalScope.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WorkletGlobalScope , typescript_type = "WorkletGlobalScope" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WorkletGlobalScope` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WorkletGlobalScope)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkletGlobalScope`*"] + pub type WorkletGlobalScope; +} diff --git a/crates/web-sys/src/features/gen_WorkletOptions.rs b/crates/web-sys/src/features/gen_WorkletOptions.rs new file mode 100644 index 00000000..37f561ee --- /dev/null +++ b/crates/web-sys/src/features/gen_WorkletOptions.rs @@ -0,0 +1,40 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = WorkletOptions ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `WorkletOptions` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkletOptions`*"] + pub type WorkletOptions; +} +impl WorkletOptions { + #[doc = "Construct a new `WorkletOptions`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `WorkletOptions`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[cfg(feature = "RequestCredentials")] + #[doc = "Change the `credentials` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `RequestCredentials`, `WorkletOptions`*"] + pub fn credentials(&mut self, val: RequestCredentials) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("credentials"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_XPathExpression.rs b/crates/web-sys/src/features/gen_XPathExpression.rs new file mode 100644 index 00000000..a22c5bcf --- /dev/null +++ b/crates/web-sys/src/features/gen_XPathExpression.rs @@ -0,0 +1,47 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = XPathExpression , typescript_type = "XPathExpression" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `XPathExpression` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathExpression)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathExpression`*"] + pub type XPathExpression; + #[cfg(all(feature = "Node", feature = "XPathResult",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "XPathExpression" , js_name = evaluate ) ] + #[doc = "The `evaluate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathExpression/evaluate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathExpression`, `XPathResult`*"] + pub fn evaluate(this: &XPathExpression, context_node: &Node) -> Result; + #[cfg(all(feature = "Node", feature = "XPathResult",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "XPathExpression" , js_name = evaluate ) ] + #[doc = "The `evaluate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathExpression/evaluate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathExpression`, `XPathResult`*"] + pub fn evaluate_with_type( + this: &XPathExpression, + context_node: &Node, + type_: u16, + ) -> Result; + #[cfg(all(feature = "Node", feature = "XPathResult",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "XPathExpression" , js_name = evaluate ) ] + #[doc = "The `evaluate()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathExpression/evaluate)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathExpression`, `XPathResult`*"] + pub fn evaluate_with_type_and_result( + this: &XPathExpression, + context_node: &Node, + type_: u16, + result: Option<&::js_sys::Object>, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_XPathNsResolver.rs b/crates/web-sys/src/features/gen_XPathNsResolver.rs new file mode 100644 index 00000000..078e1056 --- /dev/null +++ b/crates/web-sys/src/features/gen_XPathNsResolver.rs @@ -0,0 +1,39 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = XPathNSResolver ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `XPathNsResolver` dictionary."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathNsResolver`*"] + pub type XPathNsResolver; +} +impl XPathNsResolver { + #[doc = "Construct a new `XPathNsResolver`."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathNsResolver`*"] + pub fn new() -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + ret + } + #[doc = "Change the `lookupNamespaceURI` field of this object."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathNsResolver`*"] + pub fn lookup_namespace_uri(&mut self, val: &::js_sys::Function) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from("lookupNamespaceURI"), + &JsValue::from(val), + ); + debug_assert!( + r.is_ok(), + "setting properties should never fail on our dictionary objects" + ); + let _ = r; + self + } +} diff --git a/crates/web-sys/src/features/gen_XPathResult.rs b/crates/web-sys/src/features/gen_XPathResult.rs new file mode 100644 index 00000000..0df177ad --- /dev/null +++ b/crates/web-sys/src/features/gen_XPathResult.rs @@ -0,0 +1,122 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = XPathResult , typescript_type = "XPathResult" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `XPathResult` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] + pub type XPathResult; + # [ wasm_bindgen ( structural , method , getter , js_class = "XPathResult" , js_name = resultType ) ] + #[doc = "Getter for the `resultType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/resultType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] + pub fn result_type(this: &XPathResult) -> u16; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "XPathResult" , js_name = numberValue ) ] + #[doc = "Getter for the `numberValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/numberValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] + pub fn number_value(this: &XPathResult) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "XPathResult" , js_name = stringValue ) ] + #[doc = "Getter for the `stringValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/stringValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] + pub fn string_value(this: &XPathResult) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "XPathResult" , js_name = booleanValue ) ] + #[doc = "Getter for the `booleanValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/booleanValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] + pub fn boolean_value(this: &XPathResult) -> Result; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "XPathResult" , js_name = singleNodeValue ) ] + #[doc = "Getter for the `singleNodeValue` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/singleNodeValue)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathResult`*"] + pub fn single_node_value(this: &XPathResult) -> Result, JsValue>; + # [ wasm_bindgen ( structural , method , getter , js_class = "XPathResult" , js_name = invalidIteratorState ) ] + #[doc = "Getter for the `invalidIteratorState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/invalidIteratorState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] + pub fn invalid_iterator_state(this: &XPathResult) -> bool; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "XPathResult" , js_name = snapshotLength ) ] + #[doc = "Getter for the `snapshotLength` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/snapshotLength)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] + pub fn snapshot_length(this: &XPathResult) -> Result; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "XPathResult" , js_name = iterateNext ) ] + #[doc = "The `iterateNext()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/iterateNext)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathResult`*"] + pub fn iterate_next(this: &XPathResult) -> Result, JsValue>; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "XPathResult" , js_name = snapshotItem ) ] + #[doc = "The `snapshotItem()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XPathResult/snapshotItem)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `XPathResult`*"] + pub fn snapshot_item(this: &XPathResult, index: u32) -> Result, JsValue>; +} +impl XPathResult { + #[doc = "The `XPathResult.ANY_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] + pub const ANY_TYPE: u16 = 0i64 as u16; + #[doc = "The `XPathResult.NUMBER_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] + pub const NUMBER_TYPE: u16 = 1u64 as u16; + #[doc = "The `XPathResult.STRING_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] + pub const STRING_TYPE: u16 = 2u64 as u16; + #[doc = "The `XPathResult.BOOLEAN_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] + pub const BOOLEAN_TYPE: u16 = 3u64 as u16; + #[doc = "The `XPathResult.UNORDERED_NODE_ITERATOR_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] + pub const UNORDERED_NODE_ITERATOR_TYPE: u16 = 4u64 as u16; + #[doc = "The `XPathResult.ORDERED_NODE_ITERATOR_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] + pub const ORDERED_NODE_ITERATOR_TYPE: u16 = 5u64 as u16; + #[doc = "The `XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] + pub const UNORDERED_NODE_SNAPSHOT_TYPE: u16 = 6u64 as u16; + #[doc = "The `XPathResult.ORDERED_NODE_SNAPSHOT_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] + pub const ORDERED_NODE_SNAPSHOT_TYPE: u16 = 7u64 as u16; + #[doc = "The `XPathResult.ANY_UNORDERED_NODE_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] + pub const ANY_UNORDERED_NODE_TYPE: u16 = 8u64 as u16; + #[doc = "The `XPathResult.FIRST_ORDERED_NODE_TYPE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XPathResult`*"] + pub const FIRST_ORDERED_NODE_TYPE: u16 = 9u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_XmlDocument.rs b/crates/web-sys/src/features/gen_XmlDocument.rs new file mode 100644 index 00000000..095087db --- /dev/null +++ b/crates/web-sys/src/features/gen_XmlDocument.rs @@ -0,0 +1,35 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = Document , extends = Node , extends = EventTarget , extends = :: js_sys :: Object , js_name = XMLDocument , typescript_type = "XMLDocument" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `XmlDocument` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlDocument`*"] + pub type XmlDocument; + # [ wasm_bindgen ( structural , method , getter , js_class = "XMLDocument" , js_name = async ) ] + #[doc = "Getter for the `async` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument/async)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlDocument`*"] + pub fn r#async(this: &XmlDocument) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "XMLDocument" , js_name = async ) ] + #[doc = "Setter for the `async` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument/async)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlDocument`*"] + pub fn set_async(this: &XmlDocument, value: bool); + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLDocument" , js_name = load ) ] + #[doc = "The `load()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLDocument/load)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlDocument`*"] + pub fn load(this: &XmlDocument, url: &str) -> Result; +} diff --git a/crates/web-sys/src/features/gen_XmlHttpRequest.rs b/crates/web-sys/src/features/gen_XmlHttpRequest.rs new file mode 100644 index 00000000..f4f9dc12 --- /dev/null +++ b/crates/web-sys/src/features/gen_XmlHttpRequest.rs @@ -0,0 +1,340 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = XmlHttpRequestEventTarget , extends = EventTarget , extends = :: js_sys :: Object , js_name = XMLHttpRequest , typescript_type = "XMLHttpRequest" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `XmlHttpRequest` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub type XmlHttpRequest; + # [ wasm_bindgen ( structural , method , getter , js_class = "XMLHttpRequest" , js_name = onreadystatechange ) ] + #[doc = "Getter for the `onreadystatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/onreadystatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn onreadystatechange(this: &XmlHttpRequest) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "XMLHttpRequest" , js_name = onreadystatechange ) ] + #[doc = "Setter for the `onreadystatechange` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/onreadystatechange)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn set_onreadystatechange(this: &XmlHttpRequest, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "XMLHttpRequest" , js_name = readyState ) ] + #[doc = "Getter for the `readyState` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/readyState)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn ready_state(this: &XmlHttpRequest) -> u16; + # [ wasm_bindgen ( structural , method , getter , js_class = "XMLHttpRequest" , js_name = timeout ) ] + #[doc = "Getter for the `timeout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn timeout(this: &XmlHttpRequest) -> u32; + # [ wasm_bindgen ( structural , method , setter , js_class = "XMLHttpRequest" , js_name = timeout ) ] + #[doc = "Setter for the `timeout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn set_timeout(this: &XmlHttpRequest, value: u32); + # [ wasm_bindgen ( structural , method , getter , js_class = "XMLHttpRequest" , js_name = withCredentials ) ] + #[doc = "Getter for the `withCredentials` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn with_credentials(this: &XmlHttpRequest) -> bool; + # [ wasm_bindgen ( structural , method , setter , js_class = "XMLHttpRequest" , js_name = withCredentials ) ] + #[doc = "Setter for the `withCredentials` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn set_with_credentials(this: &XmlHttpRequest, value: bool); + #[cfg(feature = "XmlHttpRequestUpload")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = upload ) ] + #[doc = "Getter for the `upload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/upload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`, `XmlHttpRequestUpload`*"] + pub fn upload(this: &XmlHttpRequest) -> Result; + # [ wasm_bindgen ( structural , method , getter , js_class = "XMLHttpRequest" , js_name = responseURL ) ] + #[doc = "Getter for the `responseURL` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseURL)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn response_url(this: &XmlHttpRequest) -> String; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = status ) ] + #[doc = "Getter for the `status` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/status)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn status(this: &XmlHttpRequest) -> Result; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = statusText ) ] + #[doc = "Getter for the `statusText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/statusText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn status_text(this: &XmlHttpRequest) -> Result; + #[cfg(feature = "XmlHttpRequestResponseType")] + # [ wasm_bindgen ( structural , method , getter , js_class = "XMLHttpRequest" , js_name = responseType ) ] + #[doc = "Getter for the `responseType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`, `XmlHttpRequestResponseType`*"] + pub fn response_type(this: &XmlHttpRequest) -> XmlHttpRequestResponseType; + #[cfg(feature = "XmlHttpRequestResponseType")] + # [ wasm_bindgen ( structural , method , setter , js_class = "XMLHttpRequest" , js_name = responseType ) ] + #[doc = "Setter for the `responseType` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`, `XmlHttpRequestResponseType`*"] + pub fn set_response_type(this: &XmlHttpRequest, value: XmlHttpRequestResponseType); + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = response ) ] + #[doc = "Getter for the `response` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/response)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn response(this: &XmlHttpRequest) -> Result<::wasm_bindgen::JsValue, JsValue>; + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = responseText ) ] + #[doc = "Getter for the `responseText` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseText)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn response_text(this: &XmlHttpRequest) -> Result, JsValue>; + #[cfg(feature = "Document")] + # [ wasm_bindgen ( structural , catch , method , getter , js_class = "XMLHttpRequest" , js_name = responseXML ) ] + #[doc = "Getter for the `responseXML` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseXML)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `XmlHttpRequest`*"] + pub fn response_xml(this: &XmlHttpRequest) -> Result, JsValue>; + #[wasm_bindgen(catch, constructor, js_class = "XMLHttpRequest")] + #[doc = "The `new XmlHttpRequest(..)` constructor, creating a new instance of `XmlHttpRequest`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/XMLHttpRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn new() -> Result; + #[wasm_bindgen(catch, constructor, js_class = "XMLHttpRequest")] + #[doc = "The `new XmlHttpRequest(..)` constructor, creating a new instance of `XmlHttpRequest`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/XMLHttpRequest)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn new_with_ignored(ignored: &str) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = abort ) ] + #[doc = "The `abort()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/abort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn abort(this: &XmlHttpRequest) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = getAllResponseHeaders ) ] + #[doc = "The `getAllResponseHeaders()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getAllResponseHeaders)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn get_all_response_headers(this: &XmlHttpRequest) -> Result; + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = getResponseHeader ) ] + #[doc = "The `getResponseHeader()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/getResponseHeader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn get_response_header( + this: &XmlHttpRequest, + header: &str, + ) -> Result, JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn open(this: &XmlHttpRequest, method: &str, url: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn open_with_async( + this: &XmlHttpRequest, + method: &str, + url: &str, + r#async: bool, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn open_with_async_and_user( + this: &XmlHttpRequest, + method: &str, + url: &str, + r#async: bool, + user: Option<&str>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = open ) ] + #[doc = "The `open()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn open_with_async_and_user_and_password( + this: &XmlHttpRequest, + method: &str, + url: &str, + r#async: bool, + user: Option<&str>, + password: Option<&str>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = overrideMimeType ) ] + #[doc = "The `overrideMimeType()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/overrideMimeType)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn override_mime_type(this: &XmlHttpRequest, mime: &str) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn send(this: &XmlHttpRequest) -> Result<(), JsValue>; + #[cfg(feature = "Document")] + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `XmlHttpRequest`*"] + pub fn send_with_opt_document( + this: &XmlHttpRequest, + body: Option<&Document>, + ) -> Result<(), JsValue>; + #[cfg(feature = "Blob")] + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Blob`, `XmlHttpRequest`*"] + pub fn send_with_opt_blob(this: &XmlHttpRequest, body: Option<&Blob>) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn send_with_opt_buffer_source( + this: &XmlHttpRequest, + body: Option<&::js_sys::Object>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn send_with_opt_u8_array( + this: &XmlHttpRequest, + body: Option<&[u8]>, + ) -> Result<(), JsValue>; + #[cfg(feature = "FormData")] + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `FormData`, `XmlHttpRequest`*"] + pub fn send_with_opt_form_data( + this: &XmlHttpRequest, + body: Option<&FormData>, + ) -> Result<(), JsValue>; + #[cfg(feature = "UrlSearchParams")] + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `UrlSearchParams`, `XmlHttpRequest`*"] + pub fn send_with_opt_url_search_params( + this: &XmlHttpRequest, + body: Option<&UrlSearchParams>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn send_with_opt_str(this: &XmlHttpRequest, body: Option<&str>) -> Result<(), JsValue>; + #[cfg(feature = "ReadableStream")] + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = send ) ] + #[doc = "The `send()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `ReadableStream`, `XmlHttpRequest`*"] + pub fn send_with_opt_readable_stream( + this: &XmlHttpRequest, + body: Option<&ReadableStream>, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLHttpRequest" , js_name = setRequestHeader ) ] + #[doc = "The `setRequestHeader()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/setRequestHeader)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub fn set_request_header( + this: &XmlHttpRequest, + header: &str, + value: &str, + ) -> Result<(), JsValue>; +} +impl XmlHttpRequest { + #[doc = "The `XMLHttpRequest.UNSENT` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub const UNSENT: u16 = 0i64 as u16; + #[doc = "The `XMLHttpRequest.OPENED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub const OPENED: u16 = 1u64 as u16; + #[doc = "The `XMLHttpRequest.HEADERS_RECEIVED` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub const HEADERS_RECEIVED: u16 = 2u64 as u16; + #[doc = "The `XMLHttpRequest.LOADING` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub const LOADING: u16 = 3u64 as u16; + #[doc = "The `XMLHttpRequest.DONE` const."] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequest`*"] + pub const DONE: u16 = 4u64 as u16; +} diff --git a/crates/web-sys/src/features/gen_XmlHttpRequestEventTarget.rs b/crates/web-sys/src/features/gen_XmlHttpRequestEventTarget.rs new file mode 100644 index 00000000..0f7bb801 --- /dev/null +++ b/crates/web-sys/src/features/gen_XmlHttpRequestEventTarget.rs @@ -0,0 +1,112 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = EventTarget , extends = :: js_sys :: Object , js_name = XMLHttpRequestEventTarget , typescript_type = "XMLHttpRequestEventTarget" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `XmlHttpRequestEventTarget` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] + pub type XmlHttpRequestEventTarget; + # [ wasm_bindgen ( structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onloadstart ) ] + #[doc = "Getter for the `onloadstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] + pub fn onloadstart(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onloadstart ) ] + #[doc = "Setter for the `onloadstart` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadstart)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] + pub fn set_onloadstart(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onprogress ) ] + #[doc = "Getter for the `onprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] + pub fn onprogress(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onprogress ) ] + #[doc = "Setter for the `onprogress` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onprogress)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] + pub fn set_onprogress(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onabort ) ] + #[doc = "Getter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] + pub fn onabort(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onabort ) ] + #[doc = "Setter for the `onabort` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onabort)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] + pub fn set_onabort(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onerror ) ] + #[doc = "Getter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] + pub fn onerror(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onerror ) ] + #[doc = "Setter for the `onerror` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onerror)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] + pub fn set_onerror(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onload ) ] + #[doc = "Getter for the `onload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] + pub fn onload(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onload ) ] + #[doc = "Setter for the `onload` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] + pub fn set_onload(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = ontimeout ) ] + #[doc = "Getter for the `ontimeout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/ontimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] + pub fn ontimeout(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = ontimeout ) ] + #[doc = "Setter for the `ontimeout` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/ontimeout)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] + pub fn set_ontimeout(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); + # [ wasm_bindgen ( structural , method , getter , js_class = "XMLHttpRequestEventTarget" , js_name = onloadend ) ] + #[doc = "Getter for the `onloadend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] + pub fn onloadend(this: &XmlHttpRequestEventTarget) -> Option<::js_sys::Function>; + # [ wasm_bindgen ( structural , method , setter , js_class = "XMLHttpRequestEventTarget" , js_name = onloadend ) ] + #[doc = "Setter for the `onloadend` field of this object."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestEventTarget/onloadend)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestEventTarget`*"] + pub fn set_onloadend(this: &XmlHttpRequestEventTarget, value: Option<&::js_sys::Function>); +} diff --git a/crates/web-sys/src/features/gen_XmlHttpRequestResponseType.rs b/crates/web-sys/src/features/gen_XmlHttpRequestResponseType.rs new file mode 100644 index 00000000..8144e3e0 --- /dev/null +++ b/crates/web-sys/src/features/gen_XmlHttpRequestResponseType.rs @@ -0,0 +1,15 @@ +#![allow(unused_imports)] +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +#[doc = "The `XmlHttpRequestResponseType` enum."] +#[doc = ""] +#[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestResponseType`*"] +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum XmlHttpRequestResponseType { + None = "", + Arraybuffer = "arraybuffer", + Blob = "blob", + Document = "document", + Json = "json", + Text = "text", +} diff --git a/crates/web-sys/src/features/gen_XmlHttpRequestUpload.rs b/crates/web-sys/src/features/gen_XmlHttpRequestUpload.rs new file mode 100644 index 00000000..419a03e7 --- /dev/null +++ b/crates/web-sys/src/features/gen_XmlHttpRequestUpload.rs @@ -0,0 +1,14 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = XmlHttpRequestEventTarget , extends = EventTarget , extends = :: js_sys :: Object , js_name = XMLHttpRequestUpload , typescript_type = "XMLHttpRequestUpload" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `XmlHttpRequestUpload` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequestUpload)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlHttpRequestUpload`*"] + pub type XmlHttpRequestUpload; +} diff --git a/crates/web-sys/src/features/gen_XmlSerializer.rs b/crates/web-sys/src/features/gen_XmlSerializer.rs new file mode 100644 index 00000000..a6500fb1 --- /dev/null +++ b/crates/web-sys/src/features/gen_XmlSerializer.rs @@ -0,0 +1,29 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = XMLSerializer , typescript_type = "XMLSerializer" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `XmlSerializer` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLSerializer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlSerializer`*"] + pub type XmlSerializer; + #[wasm_bindgen(catch, constructor, js_class = "XMLSerializer")] + #[doc = "The `new XmlSerializer(..)` constructor, creating a new instance of `XmlSerializer`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLSerializer/XMLSerializer)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XmlSerializer`*"] + pub fn new() -> Result; + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "XMLSerializer" , js_name = serializeToString ) ] + #[doc = "The `serializeToString()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XMLSerializer/serializeToString)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `XmlSerializer`*"] + pub fn serialize_to_string(this: &XmlSerializer, root: &Node) -> Result; +} diff --git a/crates/web-sys/src/features/gen_XsltProcessor.rs b/crates/web-sys/src/features/gen_XsltProcessor.rs new file mode 100644 index 00000000..8fdeb5c7 --- /dev/null +++ b/crates/web-sys/src/features/gen_XsltProcessor.rs @@ -0,0 +1,86 @@ +#![allow(unused_imports)] +use super::*; +use wasm_bindgen::prelude::*; +#[wasm_bindgen] +extern "C" { + # [ wasm_bindgen ( extends = :: js_sys :: Object , js_name = XSLTProcessor , typescript_type = "XSLTProcessor" ) ] + #[derive(Debug, Clone, PartialEq, Eq)] + #[doc = "The `XsltProcessor` class."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"] + pub type XsltProcessor; + #[wasm_bindgen(catch, constructor, js_class = "XSLTProcessor")] + #[doc = "The `new XsltProcessor(..)` constructor, creating a new instance of `XsltProcessor`."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/XSLTProcessor)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"] + pub fn new() -> Result; + # [ wasm_bindgen ( method , structural , js_class = "XSLTProcessor" , js_name = clearParameters ) ] + #[doc = "The `clearParameters()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/clearParameters)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"] + pub fn clear_parameters(this: &XsltProcessor); + #[cfg(feature = "Node")] + # [ wasm_bindgen ( catch , method , structural , js_class = "XSLTProcessor" , js_name = importStylesheet ) ] + #[doc = "The `importStylesheet()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/importStylesheet)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Node`, `XsltProcessor`*"] + pub fn import_stylesheet(this: &XsltProcessor, style: &Node) -> Result<(), JsValue>; + # [ wasm_bindgen ( catch , method , structural , js_class = "XSLTProcessor" , js_name = removeParameter ) ] + #[doc = "The `removeParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/removeParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"] + pub fn remove_parameter( + this: &XsltProcessor, + namespace_uri: &str, + local_name: &str, + ) -> Result<(), JsValue>; + # [ wasm_bindgen ( method , structural , js_class = "XSLTProcessor" , js_name = reset ) ] + #[doc = "The `reset()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/reset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"] + pub fn reset(this: &XsltProcessor); + # [ wasm_bindgen ( catch , method , structural , js_class = "XSLTProcessor" , js_name = setParameter ) ] + #[doc = "The `setParameter()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/setParameter)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `XsltProcessor`*"] + pub fn set_parameter( + this: &XsltProcessor, + namespace_uri: &str, + local_name: &str, + value: &::wasm_bindgen::JsValue, + ) -> Result<(), JsValue>; + #[cfg(all(feature = "Document", feature = "Node",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "XSLTProcessor" , js_name = transformToDocument ) ] + #[doc = "The `transformToDocument()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/transformToDocument)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `Node`, `XsltProcessor`*"] + pub fn transform_to_document(this: &XsltProcessor, source: &Node) -> Result; + #[cfg(all(feature = "Document", feature = "DocumentFragment", feature = "Node",))] + # [ wasm_bindgen ( catch , method , structural , js_class = "XSLTProcessor" , js_name = transformToFragment ) ] + #[doc = "The `transformToFragment()` method."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XSLTProcessor/transformToFragment)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `Document`, `DocumentFragment`, `Node`, `XsltProcessor`*"] + pub fn transform_to_fragment( + this: &XsltProcessor, + source: &Node, + output: &Document, + ) -> Result; +} diff --git a/crates/web-sys/src/features/gen_console.rs b/crates/web-sys/src/features/gen_console.rs new file mode 100644 index 00000000..f4abb8b7 --- /dev/null +++ b/crates/web-sys/src/features/gen_console.rs @@ -0,0 +1,1615 @@ +pub mod console { + #![allow(unused_imports)] + use super::super::*; + use wasm_bindgen::prelude::*; + #[wasm_bindgen] + extern "C" { + # [ wasm_bindgen ( js_namespace = console , js_name = assert ) ] + #[doc = "The `console.assert()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn assert(); + # [ wasm_bindgen ( variadic , js_namespace = console , js_name = assert ) ] + #[doc = "The `console.assert()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn assert_with_condition_and_data(condition: bool, data: &::js_sys::Array); + # [ wasm_bindgen ( js_namespace = console , js_name = assert ) ] + #[doc = "The `console.assert()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn assert_with_condition_and_data_0(condition: bool); + # [ wasm_bindgen ( js_namespace = console , js_name = assert ) ] + #[doc = "The `console.assert()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn assert_with_condition_and_data_1(condition: bool, data_1: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = assert ) ] + #[doc = "The `console.assert()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn assert_with_condition_and_data_2( + condition: bool, + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = assert ) ] + #[doc = "The `console.assert()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn assert_with_condition_and_data_3( + condition: bool, + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = assert ) ] + #[doc = "The `console.assert()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn assert_with_condition_and_data_4( + condition: bool, + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = assert ) ] + #[doc = "The `console.assert()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn assert_with_condition_and_data_5( + condition: bool, + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = assert ) ] + #[doc = "The `console.assert()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn assert_with_condition_and_data_6( + condition: bool, + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = assert ) ] + #[doc = "The `console.assert()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/assert)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn assert_with_condition_and_data_7( + condition: bool, + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + data_7: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = clear ) ] + #[doc = "The `console.clear()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/clear)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn clear(); + # [ wasm_bindgen ( js_namespace = console , js_name = count ) ] + #[doc = "The `console.count()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/count)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn count(); + # [ wasm_bindgen ( js_namespace = console , js_name = count ) ] + #[doc = "The `console.count()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/count)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn count_with_label(label: &str); + # [ wasm_bindgen ( js_namespace = console , js_name = countReset ) ] + #[doc = "The `console.countReset()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/countReset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn count_reset(); + # [ wasm_bindgen ( js_namespace = console , js_name = countReset ) ] + #[doc = "The `console.countReset()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/countReset)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn count_reset_with_label(label: &str); + # [ wasm_bindgen ( variadic , js_namespace = console , js_name = debug ) ] + #[doc = "The `console.debug()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn debug(data: &::js_sys::Array); + # [ wasm_bindgen ( js_namespace = console , js_name = debug ) ] + #[doc = "The `console.debug()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn debug_0(); + # [ wasm_bindgen ( js_namespace = console , js_name = debug ) ] + #[doc = "The `console.debug()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn debug_1(data_1: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = debug ) ] + #[doc = "The `console.debug()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn debug_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = debug ) ] + #[doc = "The `console.debug()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn debug_3( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = debug ) ] + #[doc = "The `console.debug()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn debug_4( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = debug ) ] + #[doc = "The `console.debug()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn debug_5( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = debug ) ] + #[doc = "The `console.debug()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn debug_6( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = debug ) ] + #[doc = "The `console.debug()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/debug)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn debug_7( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + data_7: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( variadic , js_namespace = console , js_name = dir ) ] + #[doc = "The `console.dir()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dir(data: &::js_sys::Array); + # [ wasm_bindgen ( js_namespace = console , js_name = dir ) ] + #[doc = "The `console.dir()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dir_0(); + # [ wasm_bindgen ( js_namespace = console , js_name = dir ) ] + #[doc = "The `console.dir()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dir_1(data_1: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = dir ) ] + #[doc = "The `console.dir()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dir_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = dir ) ] + #[doc = "The `console.dir()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dir_3( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = dir ) ] + #[doc = "The `console.dir()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dir_4( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = dir ) ] + #[doc = "The `console.dir()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dir_5( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = dir ) ] + #[doc = "The `console.dir()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dir_6( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = dir ) ] + #[doc = "The `console.dir()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dir)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dir_7( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + data_7: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( variadic , js_namespace = console , js_name = dirxml ) ] + #[doc = "The `console.dirxml()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dirxml(data: &::js_sys::Array); + # [ wasm_bindgen ( js_namespace = console , js_name = dirxml ) ] + #[doc = "The `console.dirxml()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dirxml_0(); + # [ wasm_bindgen ( js_namespace = console , js_name = dirxml ) ] + #[doc = "The `console.dirxml()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dirxml_1(data_1: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = dirxml ) ] + #[doc = "The `console.dirxml()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dirxml_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = dirxml ) ] + #[doc = "The `console.dirxml()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dirxml_3( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = dirxml ) ] + #[doc = "The `console.dirxml()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dirxml_4( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = dirxml ) ] + #[doc = "The `console.dirxml()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dirxml_5( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = dirxml ) ] + #[doc = "The `console.dirxml()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dirxml_6( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = dirxml ) ] + #[doc = "The `console.dirxml()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/dirxml)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn dirxml_7( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + data_7: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( variadic , js_namespace = console , js_name = error ) ] + #[doc = "The `console.error()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn error(data: &::js_sys::Array); + # [ wasm_bindgen ( js_namespace = console , js_name = error ) ] + #[doc = "The `console.error()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn error_0(); + # [ wasm_bindgen ( js_namespace = console , js_name = error ) ] + #[doc = "The `console.error()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn error_1(data_1: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = error ) ] + #[doc = "The `console.error()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn error_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = error ) ] + #[doc = "The `console.error()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn error_3( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = error ) ] + #[doc = "The `console.error()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn error_4( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = error ) ] + #[doc = "The `console.error()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn error_5( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = error ) ] + #[doc = "The `console.error()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn error_6( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = error ) ] + #[doc = "The `console.error()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/error)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn error_7( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + data_7: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( variadic , js_namespace = console , js_name = exception ) ] + #[doc = "The `console.exception()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn exception(data: &::js_sys::Array); + # [ wasm_bindgen ( js_namespace = console , js_name = exception ) ] + #[doc = "The `console.exception()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn exception_0(); + # [ wasm_bindgen ( js_namespace = console , js_name = exception ) ] + #[doc = "The `console.exception()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn exception_1(data_1: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = exception ) ] + #[doc = "The `console.exception()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn exception_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = exception ) ] + #[doc = "The `console.exception()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn exception_3( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = exception ) ] + #[doc = "The `console.exception()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn exception_4( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = exception ) ] + #[doc = "The `console.exception()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn exception_5( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = exception ) ] + #[doc = "The `console.exception()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn exception_6( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = exception ) ] + #[doc = "The `console.exception()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/exception)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn exception_7( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + data_7: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( variadic , js_namespace = console , js_name = group ) ] + #[doc = "The `console.group()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group(data: &::js_sys::Array); + # [ wasm_bindgen ( js_namespace = console , js_name = group ) ] + #[doc = "The `console.group()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_0(); + # [ wasm_bindgen ( js_namespace = console , js_name = group ) ] + #[doc = "The `console.group()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_1(data_1: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = group ) ] + #[doc = "The `console.group()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = group ) ] + #[doc = "The `console.group()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_3( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = group ) ] + #[doc = "The `console.group()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_4( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = group ) ] + #[doc = "The `console.group()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_5( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = group ) ] + #[doc = "The `console.group()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_6( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = group ) ] + #[doc = "The `console.group()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/group)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_7( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + data_7: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( variadic , js_namespace = console , js_name = groupCollapsed ) ] + #[doc = "The `console.groupCollapsed()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_collapsed(data: &::js_sys::Array); + # [ wasm_bindgen ( js_namespace = console , js_name = groupCollapsed ) ] + #[doc = "The `console.groupCollapsed()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_collapsed_0(); + # [ wasm_bindgen ( js_namespace = console , js_name = groupCollapsed ) ] + #[doc = "The `console.groupCollapsed()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_collapsed_1(data_1: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = groupCollapsed ) ] + #[doc = "The `console.groupCollapsed()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_collapsed_2( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = groupCollapsed ) ] + #[doc = "The `console.groupCollapsed()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_collapsed_3( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = groupCollapsed ) ] + #[doc = "The `console.groupCollapsed()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_collapsed_4( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = groupCollapsed ) ] + #[doc = "The `console.groupCollapsed()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_collapsed_5( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = groupCollapsed ) ] + #[doc = "The `console.groupCollapsed()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_collapsed_6( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = groupCollapsed ) ] + #[doc = "The `console.groupCollapsed()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupCollapsed)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_collapsed_7( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + data_7: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = groupEnd ) ] + #[doc = "The `console.groupEnd()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/groupEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn group_end(); + # [ wasm_bindgen ( variadic , js_namespace = console , js_name = info ) ] + #[doc = "The `console.info()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn info(data: &::js_sys::Array); + # [ wasm_bindgen ( js_namespace = console , js_name = info ) ] + #[doc = "The `console.info()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn info_0(); + # [ wasm_bindgen ( js_namespace = console , js_name = info ) ] + #[doc = "The `console.info()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn info_1(data_1: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = info ) ] + #[doc = "The `console.info()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn info_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = info ) ] + #[doc = "The `console.info()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn info_3( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = info ) ] + #[doc = "The `console.info()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn info_4( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = info ) ] + #[doc = "The `console.info()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn info_5( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = info ) ] + #[doc = "The `console.info()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn info_6( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = info ) ] + #[doc = "The `console.info()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/info)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn info_7( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + data_7: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( variadic , js_namespace = console , js_name = log ) ] + #[doc = "The `console.log()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn log(data: &::js_sys::Array); + # [ wasm_bindgen ( js_namespace = console , js_name = log ) ] + #[doc = "The `console.log()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn log_0(); + # [ wasm_bindgen ( js_namespace = console , js_name = log ) ] + #[doc = "The `console.log()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn log_1(data_1: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = log ) ] + #[doc = "The `console.log()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn log_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = log ) ] + #[doc = "The `console.log()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn log_3( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = log ) ] + #[doc = "The `console.log()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn log_4( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = log ) ] + #[doc = "The `console.log()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn log_5( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = log ) ] + #[doc = "The `console.log()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn log_6( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = log ) ] + #[doc = "The `console.log()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/log)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn log_7( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + data_7: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( variadic , js_namespace = console , js_name = profile ) ] + #[doc = "The `console.profile()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile(data: &::js_sys::Array); + # [ wasm_bindgen ( js_namespace = console , js_name = profile ) ] + #[doc = "The `console.profile()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile_0(); + # [ wasm_bindgen ( js_namespace = console , js_name = profile ) ] + #[doc = "The `console.profile()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile_1(data_1: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = profile ) ] + #[doc = "The `console.profile()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = profile ) ] + #[doc = "The `console.profile()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile_3( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = profile ) ] + #[doc = "The `console.profile()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile_4( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = profile ) ] + #[doc = "The `console.profile()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile_5( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = profile ) ] + #[doc = "The `console.profile()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile_6( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = profile ) ] + #[doc = "The `console.profile()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profile)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile_7( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + data_7: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( variadic , js_namespace = console , js_name = profileEnd ) ] + #[doc = "The `console.profileEnd()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile_end(data: &::js_sys::Array); + # [ wasm_bindgen ( js_namespace = console , js_name = profileEnd ) ] + #[doc = "The `console.profileEnd()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile_end_0(); + # [ wasm_bindgen ( js_namespace = console , js_name = profileEnd ) ] + #[doc = "The `console.profileEnd()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile_end_1(data_1: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = profileEnd ) ] + #[doc = "The `console.profileEnd()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile_end_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = profileEnd ) ] + #[doc = "The `console.profileEnd()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile_end_3( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = profileEnd ) ] + #[doc = "The `console.profileEnd()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile_end_4( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = profileEnd ) ] + #[doc = "The `console.profileEnd()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile_end_5( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = profileEnd ) ] + #[doc = "The `console.profileEnd()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile_end_6( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = profileEnd ) ] + #[doc = "The `console.profileEnd()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/profileEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn profile_end_7( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + data_7: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( variadic , js_namespace = console , js_name = table ) ] + #[doc = "The `console.table()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn table(data: &::js_sys::Array); + # [ wasm_bindgen ( js_namespace = console , js_name = table ) ] + #[doc = "The `console.table()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn table_0(); + # [ wasm_bindgen ( js_namespace = console , js_name = table ) ] + #[doc = "The `console.table()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn table_1(data_1: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = table ) ] + #[doc = "The `console.table()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn table_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = table ) ] + #[doc = "The `console.table()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn table_3( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = table ) ] + #[doc = "The `console.table()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn table_4( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = table ) ] + #[doc = "The `console.table()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn table_5( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = table ) ] + #[doc = "The `console.table()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn table_6( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = table ) ] + #[doc = "The `console.table()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/table)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn table_7( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + data_7: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = time ) ] + #[doc = "The `console.time()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/time)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn time(); + # [ wasm_bindgen ( js_namespace = console , js_name = time ) ] + #[doc = "The `console.time()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/time)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn time_with_label(label: &str); + # [ wasm_bindgen ( js_namespace = console , js_name = timeEnd ) ] + #[doc = "The `console.timeEnd()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn time_end(); + # [ wasm_bindgen ( js_namespace = console , js_name = timeEnd ) ] + #[doc = "The `console.timeEnd()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeEnd)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn time_end_with_label(label: &str); + # [ wasm_bindgen ( js_namespace = console , js_name = timeLog ) ] + #[doc = "The `console.timeLog()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn time_log(); + # [ wasm_bindgen ( variadic , js_namespace = console , js_name = timeLog ) ] + #[doc = "The `console.timeLog()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn time_log_with_label_and_data(label: &str, data: &::js_sys::Array); + # [ wasm_bindgen ( js_namespace = console , js_name = timeLog ) ] + #[doc = "The `console.timeLog()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn time_log_with_label_and_data_0(label: &str); + # [ wasm_bindgen ( js_namespace = console , js_name = timeLog ) ] + #[doc = "The `console.timeLog()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn time_log_with_label_and_data_1(label: &str, data_1: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = timeLog ) ] + #[doc = "The `console.timeLog()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn time_log_with_label_and_data_2( + label: &str, + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = timeLog ) ] + #[doc = "The `console.timeLog()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn time_log_with_label_and_data_3( + label: &str, + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = timeLog ) ] + #[doc = "The `console.timeLog()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn time_log_with_label_and_data_4( + label: &str, + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = timeLog ) ] + #[doc = "The `console.timeLog()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn time_log_with_label_and_data_5( + label: &str, + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = timeLog ) ] + #[doc = "The `console.timeLog()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn time_log_with_label_and_data_6( + label: &str, + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = timeLog ) ] + #[doc = "The `console.timeLog()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeLog)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn time_log_with_label_and_data_7( + label: &str, + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + data_7: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = timeStamp ) ] + #[doc = "The `console.timeStamp()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeStamp)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn time_stamp(); + # [ wasm_bindgen ( js_namespace = console , js_name = timeStamp ) ] + #[doc = "The `console.timeStamp()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/timeStamp)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn time_stamp_with_data(data: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( variadic , js_namespace = console , js_name = trace ) ] + #[doc = "The `console.trace()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn trace(data: &::js_sys::Array); + # [ wasm_bindgen ( js_namespace = console , js_name = trace ) ] + #[doc = "The `console.trace()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn trace_0(); + # [ wasm_bindgen ( js_namespace = console , js_name = trace ) ] + #[doc = "The `console.trace()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn trace_1(data_1: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = trace ) ] + #[doc = "The `console.trace()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn trace_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = trace ) ] + #[doc = "The `console.trace()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn trace_3( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = trace ) ] + #[doc = "The `console.trace()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn trace_4( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = trace ) ] + #[doc = "The `console.trace()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn trace_5( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = trace ) ] + #[doc = "The `console.trace()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn trace_6( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = trace ) ] + #[doc = "The `console.trace()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/trace)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn trace_7( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + data_7: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( variadic , js_namespace = console , js_name = warn ) ] + #[doc = "The `console.warn()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn warn(data: &::js_sys::Array); + # [ wasm_bindgen ( js_namespace = console , js_name = warn ) ] + #[doc = "The `console.warn()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn warn_0(); + # [ wasm_bindgen ( js_namespace = console , js_name = warn ) ] + #[doc = "The `console.warn()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn warn_1(data_1: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = warn ) ] + #[doc = "The `console.warn()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn warn_2(data_1: &::wasm_bindgen::JsValue, data_2: &::wasm_bindgen::JsValue); + # [ wasm_bindgen ( js_namespace = console , js_name = warn ) ] + #[doc = "The `console.warn()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn warn_3( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = warn ) ] + #[doc = "The `console.warn()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn warn_4( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = warn ) ] + #[doc = "The `console.warn()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn warn_5( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = warn ) ] + #[doc = "The `console.warn()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn warn_6( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + ); + # [ wasm_bindgen ( js_namespace = console , js_name = warn ) ] + #[doc = "The `console.warn()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/console/warn)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `console`*"] + pub fn warn_7( + data_1: &::wasm_bindgen::JsValue, + data_2: &::wasm_bindgen::JsValue, + data_3: &::wasm_bindgen::JsValue, + data_4: &::wasm_bindgen::JsValue, + data_5: &::wasm_bindgen::JsValue, + data_6: &::wasm_bindgen::JsValue, + data_7: &::wasm_bindgen::JsValue, + ); + } +} diff --git a/crates/web-sys/src/features/gen_css.rs b/crates/web-sys/src/features/gen_css.rs new file mode 100644 index 00000000..7b49168a --- /dev/null +++ b/crates/web-sys/src/features/gen_css.rs @@ -0,0 +1,29 @@ +pub mod css { + #![allow(unused_imports)] + use super::super::*; + use wasm_bindgen::prelude::*; + #[wasm_bindgen] + extern "C" { + # [ wasm_bindgen ( js_namespace = CSS , js_name = escape ) ] + #[doc = "The `CSS.escape()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/escape)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `css`*"] + pub fn escape(ident: &str) -> String; + # [ wasm_bindgen ( catch , js_namespace = CSS , js_name = supports ) ] + #[doc = "The `CSS.supports()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/supports)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `css`*"] + pub fn supports_with_value(property: &str, value: &str) -> Result; + # [ wasm_bindgen ( catch , js_namespace = CSS , js_name = supports ) ] + #[doc = "The `CSS.supports()` function."] + #[doc = ""] + #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/CSS/supports)"] + #[doc = ""] + #[doc = "*This API requires the following crate features to be activated: `css`*"] + pub fn supports(condition_text: &str) -> Result; + } +} diff --git a/crates/web-sys/src/features/mod.rs b/crates/web-sys/src/features/mod.rs new file mode 100644 index 00000000..98c701fe --- /dev/null +++ b/crates/web-sys/src/features/mod.rs @@ -0,0 +1,7607 @@ +#[cfg(feature = "AbortController")] +#[allow(non_snake_case)] +mod gen_AbortController; +#[cfg(feature = "AbortController")] +pub use gen_AbortController::*; + +#[cfg(feature = "AbortSignal")] +#[allow(non_snake_case)] +mod gen_AbortSignal; +#[cfg(feature = "AbortSignal")] +pub use gen_AbortSignal::*; + +#[cfg(feature = "AddEventListenerOptions")] +#[allow(non_snake_case)] +mod gen_AddEventListenerOptions; +#[cfg(feature = "AddEventListenerOptions")] +pub use gen_AddEventListenerOptions::*; + +#[cfg(feature = "AesCbcParams")] +#[allow(non_snake_case)] +mod gen_AesCbcParams; +#[cfg(feature = "AesCbcParams")] +pub use gen_AesCbcParams::*; + +#[cfg(feature = "AesCtrParams")] +#[allow(non_snake_case)] +mod gen_AesCtrParams; +#[cfg(feature = "AesCtrParams")] +pub use gen_AesCtrParams::*; + +#[cfg(feature = "AesDerivedKeyParams")] +#[allow(non_snake_case)] +mod gen_AesDerivedKeyParams; +#[cfg(feature = "AesDerivedKeyParams")] +pub use gen_AesDerivedKeyParams::*; + +#[cfg(feature = "AesGcmParams")] +#[allow(non_snake_case)] +mod gen_AesGcmParams; +#[cfg(feature = "AesGcmParams")] +pub use gen_AesGcmParams::*; + +#[cfg(feature = "AesKeyAlgorithm")] +#[allow(non_snake_case)] +mod gen_AesKeyAlgorithm; +#[cfg(feature = "AesKeyAlgorithm")] +pub use gen_AesKeyAlgorithm::*; + +#[cfg(feature = "AesKeyGenParams")] +#[allow(non_snake_case)] +mod gen_AesKeyGenParams; +#[cfg(feature = "AesKeyGenParams")] +pub use gen_AesKeyGenParams::*; + +#[cfg(feature = "Algorithm")] +#[allow(non_snake_case)] +mod gen_Algorithm; +#[cfg(feature = "Algorithm")] +pub use gen_Algorithm::*; + +#[cfg(feature = "AlignSetting")] +#[allow(non_snake_case)] +mod gen_AlignSetting; +#[cfg(feature = "AlignSetting")] +pub use gen_AlignSetting::*; + +#[cfg(feature = "AnalyserNode")] +#[allow(non_snake_case)] +mod gen_AnalyserNode; +#[cfg(feature = "AnalyserNode")] +pub use gen_AnalyserNode::*; + +#[cfg(feature = "AnalyserOptions")] +#[allow(non_snake_case)] +mod gen_AnalyserOptions; +#[cfg(feature = "AnalyserOptions")] +pub use gen_AnalyserOptions::*; + +#[cfg(feature = "AngleInstancedArrays")] +#[allow(non_snake_case)] +mod gen_AngleInstancedArrays; +#[cfg(feature = "AngleInstancedArrays")] +pub use gen_AngleInstancedArrays::*; + +#[cfg(feature = "Animation")] +#[allow(non_snake_case)] +mod gen_Animation; +#[cfg(feature = "Animation")] +pub use gen_Animation::*; + +#[cfg(feature = "AnimationEffect")] +#[allow(non_snake_case)] +mod gen_AnimationEffect; +#[cfg(feature = "AnimationEffect")] +pub use gen_AnimationEffect::*; + +#[cfg(feature = "AnimationEvent")] +#[allow(non_snake_case)] +mod gen_AnimationEvent; +#[cfg(feature = "AnimationEvent")] +pub use gen_AnimationEvent::*; + +#[cfg(feature = "AnimationEventInit")] +#[allow(non_snake_case)] +mod gen_AnimationEventInit; +#[cfg(feature = "AnimationEventInit")] +pub use gen_AnimationEventInit::*; + +#[cfg(feature = "AnimationPlayState")] +#[allow(non_snake_case)] +mod gen_AnimationPlayState; +#[cfg(feature = "AnimationPlayState")] +pub use gen_AnimationPlayState::*; + +#[cfg(feature = "AnimationPlaybackEvent")] +#[allow(non_snake_case)] +mod gen_AnimationPlaybackEvent; +#[cfg(feature = "AnimationPlaybackEvent")] +pub use gen_AnimationPlaybackEvent::*; + +#[cfg(feature = "AnimationPlaybackEventInit")] +#[allow(non_snake_case)] +mod gen_AnimationPlaybackEventInit; +#[cfg(feature = "AnimationPlaybackEventInit")] +pub use gen_AnimationPlaybackEventInit::*; + +#[cfg(feature = "AnimationPropertyDetails")] +#[allow(non_snake_case)] +mod gen_AnimationPropertyDetails; +#[cfg(feature = "AnimationPropertyDetails")] +pub use gen_AnimationPropertyDetails::*; + +#[cfg(feature = "AnimationPropertyValueDetails")] +#[allow(non_snake_case)] +mod gen_AnimationPropertyValueDetails; +#[cfg(feature = "AnimationPropertyValueDetails")] +pub use gen_AnimationPropertyValueDetails::*; + +#[cfg(feature = "AnimationTimeline")] +#[allow(non_snake_case)] +mod gen_AnimationTimeline; +#[cfg(feature = "AnimationTimeline")] +pub use gen_AnimationTimeline::*; + +#[cfg(feature = "AssignedNodesOptions")] +#[allow(non_snake_case)] +mod gen_AssignedNodesOptions; +#[cfg(feature = "AssignedNodesOptions")] +pub use gen_AssignedNodesOptions::*; + +#[cfg(feature = "AttestationConveyancePreference")] +#[allow(non_snake_case)] +mod gen_AttestationConveyancePreference; +#[cfg(feature = "AttestationConveyancePreference")] +pub use gen_AttestationConveyancePreference::*; + +#[cfg(feature = "Attr")] +#[allow(non_snake_case)] +mod gen_Attr; +#[cfg(feature = "Attr")] +pub use gen_Attr::*; + +#[cfg(feature = "AttributeNameValue")] +#[allow(non_snake_case)] +mod gen_AttributeNameValue; +#[cfg(feature = "AttributeNameValue")] +pub use gen_AttributeNameValue::*; + +#[cfg(feature = "AudioBuffer")] +#[allow(non_snake_case)] +mod gen_AudioBuffer; +#[cfg(feature = "AudioBuffer")] +pub use gen_AudioBuffer::*; + +#[cfg(feature = "AudioBufferOptions")] +#[allow(non_snake_case)] +mod gen_AudioBufferOptions; +#[cfg(feature = "AudioBufferOptions")] +pub use gen_AudioBufferOptions::*; + +#[cfg(feature = "AudioBufferSourceNode")] +#[allow(non_snake_case)] +mod gen_AudioBufferSourceNode; +#[cfg(feature = "AudioBufferSourceNode")] +pub use gen_AudioBufferSourceNode::*; + +#[cfg(feature = "AudioBufferSourceOptions")] +#[allow(non_snake_case)] +mod gen_AudioBufferSourceOptions; +#[cfg(feature = "AudioBufferSourceOptions")] +pub use gen_AudioBufferSourceOptions::*; + +#[cfg(feature = "AudioConfiguration")] +#[allow(non_snake_case)] +mod gen_AudioConfiguration; +#[cfg(feature = "AudioConfiguration")] +pub use gen_AudioConfiguration::*; + +#[cfg(feature = "AudioContext")] +#[allow(non_snake_case)] +mod gen_AudioContext; +#[cfg(feature = "AudioContext")] +pub use gen_AudioContext::*; + +#[cfg(feature = "AudioContextOptions")] +#[allow(non_snake_case)] +mod gen_AudioContextOptions; +#[cfg(feature = "AudioContextOptions")] +pub use gen_AudioContextOptions::*; + +#[cfg(feature = "AudioContextState")] +#[allow(non_snake_case)] +mod gen_AudioContextState; +#[cfg(feature = "AudioContextState")] +pub use gen_AudioContextState::*; + +#[cfg(feature = "AudioDestinationNode")] +#[allow(non_snake_case)] +mod gen_AudioDestinationNode; +#[cfg(feature = "AudioDestinationNode")] +pub use gen_AudioDestinationNode::*; + +#[cfg(feature = "AudioListener")] +#[allow(non_snake_case)] +mod gen_AudioListener; +#[cfg(feature = "AudioListener")] +pub use gen_AudioListener::*; + +#[cfg(feature = "AudioNode")] +#[allow(non_snake_case)] +mod gen_AudioNode; +#[cfg(feature = "AudioNode")] +pub use gen_AudioNode::*; + +#[cfg(feature = "AudioNodeOptions")] +#[allow(non_snake_case)] +mod gen_AudioNodeOptions; +#[cfg(feature = "AudioNodeOptions")] +pub use gen_AudioNodeOptions::*; + +#[cfg(feature = "AudioParam")] +#[allow(non_snake_case)] +mod gen_AudioParam; +#[cfg(feature = "AudioParam")] +pub use gen_AudioParam::*; + +#[cfg(feature = "AudioParamMap")] +#[allow(non_snake_case)] +mod gen_AudioParamMap; +#[cfg(feature = "AudioParamMap")] +pub use gen_AudioParamMap::*; + +#[cfg(feature = "AudioProcessingEvent")] +#[allow(non_snake_case)] +mod gen_AudioProcessingEvent; +#[cfg(feature = "AudioProcessingEvent")] +pub use gen_AudioProcessingEvent::*; + +#[cfg(feature = "AudioScheduledSourceNode")] +#[allow(non_snake_case)] +mod gen_AudioScheduledSourceNode; +#[cfg(feature = "AudioScheduledSourceNode")] +pub use gen_AudioScheduledSourceNode::*; + +#[cfg(feature = "AudioStreamTrack")] +#[allow(non_snake_case)] +mod gen_AudioStreamTrack; +#[cfg(feature = "AudioStreamTrack")] +pub use gen_AudioStreamTrack::*; + +#[cfg(feature = "AudioTrack")] +#[allow(non_snake_case)] +mod gen_AudioTrack; +#[cfg(feature = "AudioTrack")] +pub use gen_AudioTrack::*; + +#[cfg(feature = "AudioTrackList")] +#[allow(non_snake_case)] +mod gen_AudioTrackList; +#[cfg(feature = "AudioTrackList")] +pub use gen_AudioTrackList::*; + +#[cfg(feature = "AudioWorklet")] +#[allow(non_snake_case)] +mod gen_AudioWorklet; +#[cfg(feature = "AudioWorklet")] +pub use gen_AudioWorklet::*; + +#[cfg(feature = "AudioWorkletGlobalScope")] +#[allow(non_snake_case)] +mod gen_AudioWorkletGlobalScope; +#[cfg(feature = "AudioWorkletGlobalScope")] +pub use gen_AudioWorkletGlobalScope::*; + +#[cfg(feature = "AudioWorkletNode")] +#[allow(non_snake_case)] +mod gen_AudioWorkletNode; +#[cfg(feature = "AudioWorkletNode")] +pub use gen_AudioWorkletNode::*; + +#[cfg(feature = "AudioWorkletNodeOptions")] +#[allow(non_snake_case)] +mod gen_AudioWorkletNodeOptions; +#[cfg(feature = "AudioWorkletNodeOptions")] +pub use gen_AudioWorkletNodeOptions::*; + +#[cfg(feature = "AudioWorkletProcessor")] +#[allow(non_snake_case)] +mod gen_AudioWorkletProcessor; +#[cfg(feature = "AudioWorkletProcessor")] +pub use gen_AudioWorkletProcessor::*; + +#[cfg(feature = "AuthenticationExtensionsClientInputs")] +#[allow(non_snake_case)] +mod gen_AuthenticationExtensionsClientInputs; +#[cfg(feature = "AuthenticationExtensionsClientInputs")] +pub use gen_AuthenticationExtensionsClientInputs::*; + +#[cfg(feature = "AuthenticationExtensionsClientOutputs")] +#[allow(non_snake_case)] +mod gen_AuthenticationExtensionsClientOutputs; +#[cfg(feature = "AuthenticationExtensionsClientOutputs")] +pub use gen_AuthenticationExtensionsClientOutputs::*; + +#[cfg(feature = "AuthenticatorAssertionResponse")] +#[allow(non_snake_case)] +mod gen_AuthenticatorAssertionResponse; +#[cfg(feature = "AuthenticatorAssertionResponse")] +pub use gen_AuthenticatorAssertionResponse::*; + +#[cfg(feature = "AuthenticatorAttachment")] +#[allow(non_snake_case)] +mod gen_AuthenticatorAttachment; +#[cfg(feature = "AuthenticatorAttachment")] +pub use gen_AuthenticatorAttachment::*; + +#[cfg(feature = "AuthenticatorAttestationResponse")] +#[allow(non_snake_case)] +mod gen_AuthenticatorAttestationResponse; +#[cfg(feature = "AuthenticatorAttestationResponse")] +pub use gen_AuthenticatorAttestationResponse::*; + +#[cfg(feature = "AuthenticatorResponse")] +#[allow(non_snake_case)] +mod gen_AuthenticatorResponse; +#[cfg(feature = "AuthenticatorResponse")] +pub use gen_AuthenticatorResponse::*; + +#[cfg(feature = "AuthenticatorSelectionCriteria")] +#[allow(non_snake_case)] +mod gen_AuthenticatorSelectionCriteria; +#[cfg(feature = "AuthenticatorSelectionCriteria")] +pub use gen_AuthenticatorSelectionCriteria::*; + +#[cfg(feature = "AuthenticatorTransport")] +#[allow(non_snake_case)] +mod gen_AuthenticatorTransport; +#[cfg(feature = "AuthenticatorTransport")] +pub use gen_AuthenticatorTransport::*; + +#[cfg(feature = "AutoKeyword")] +#[allow(non_snake_case)] +mod gen_AutoKeyword; +#[cfg(feature = "AutoKeyword")] +pub use gen_AutoKeyword::*; + +#[cfg(feature = "AutocompleteInfo")] +#[allow(non_snake_case)] +mod gen_AutocompleteInfo; +#[cfg(feature = "AutocompleteInfo")] +pub use gen_AutocompleteInfo::*; + +#[cfg(feature = "BarProp")] +#[allow(non_snake_case)] +mod gen_BarProp; +#[cfg(feature = "BarProp")] +pub use gen_BarProp::*; + +#[cfg(feature = "BaseAudioContext")] +#[allow(non_snake_case)] +mod gen_BaseAudioContext; +#[cfg(feature = "BaseAudioContext")] +pub use gen_BaseAudioContext::*; + +#[cfg(feature = "BaseComputedKeyframe")] +#[allow(non_snake_case)] +mod gen_BaseComputedKeyframe; +#[cfg(feature = "BaseComputedKeyframe")] +pub use gen_BaseComputedKeyframe::*; + +#[cfg(feature = "BaseKeyframe")] +#[allow(non_snake_case)] +mod gen_BaseKeyframe; +#[cfg(feature = "BaseKeyframe")] +pub use gen_BaseKeyframe::*; + +#[cfg(feature = "BasePropertyIndexedKeyframe")] +#[allow(non_snake_case)] +mod gen_BasePropertyIndexedKeyframe; +#[cfg(feature = "BasePropertyIndexedKeyframe")] +pub use gen_BasePropertyIndexedKeyframe::*; + +#[cfg(feature = "BasicCardRequest")] +#[allow(non_snake_case)] +mod gen_BasicCardRequest; +#[cfg(feature = "BasicCardRequest")] +pub use gen_BasicCardRequest::*; + +#[cfg(feature = "BasicCardResponse")] +#[allow(non_snake_case)] +mod gen_BasicCardResponse; +#[cfg(feature = "BasicCardResponse")] +pub use gen_BasicCardResponse::*; + +#[cfg(feature = "BasicCardType")] +#[allow(non_snake_case)] +mod gen_BasicCardType; +#[cfg(feature = "BasicCardType")] +pub use gen_BasicCardType::*; + +#[cfg(feature = "BatteryManager")] +#[allow(non_snake_case)] +mod gen_BatteryManager; +#[cfg(feature = "BatteryManager")] +pub use gen_BatteryManager::*; + +#[cfg(feature = "BeforeUnloadEvent")] +#[allow(non_snake_case)] +mod gen_BeforeUnloadEvent; +#[cfg(feature = "BeforeUnloadEvent")] +pub use gen_BeforeUnloadEvent::*; + +#[cfg(feature = "BinaryType")] +#[allow(non_snake_case)] +mod gen_BinaryType; +#[cfg(feature = "BinaryType")] +pub use gen_BinaryType::*; + +#[cfg(feature = "BiquadFilterNode")] +#[allow(non_snake_case)] +mod gen_BiquadFilterNode; +#[cfg(feature = "BiquadFilterNode")] +pub use gen_BiquadFilterNode::*; + +#[cfg(feature = "BiquadFilterOptions")] +#[allow(non_snake_case)] +mod gen_BiquadFilterOptions; +#[cfg(feature = "BiquadFilterOptions")] +pub use gen_BiquadFilterOptions::*; + +#[cfg(feature = "BiquadFilterType")] +#[allow(non_snake_case)] +mod gen_BiquadFilterType; +#[cfg(feature = "BiquadFilterType")] +pub use gen_BiquadFilterType::*; + +#[cfg(feature = "Blob")] +#[allow(non_snake_case)] +mod gen_Blob; +#[cfg(feature = "Blob")] +pub use gen_Blob::*; + +#[cfg(feature = "BlobEvent")] +#[allow(non_snake_case)] +mod gen_BlobEvent; +#[cfg(feature = "BlobEvent")] +pub use gen_BlobEvent::*; + +#[cfg(feature = "BlobEventInit")] +#[allow(non_snake_case)] +mod gen_BlobEventInit; +#[cfg(feature = "BlobEventInit")] +pub use gen_BlobEventInit::*; + +#[cfg(feature = "BlobPropertyBag")] +#[allow(non_snake_case)] +mod gen_BlobPropertyBag; +#[cfg(feature = "BlobPropertyBag")] +pub use gen_BlobPropertyBag::*; + +#[cfg(feature = "BlockParsingOptions")] +#[allow(non_snake_case)] +mod gen_BlockParsingOptions; +#[cfg(feature = "BlockParsingOptions")] +pub use gen_BlockParsingOptions::*; + +#[cfg(feature = "BoxQuadOptions")] +#[allow(non_snake_case)] +mod gen_BoxQuadOptions; +#[cfg(feature = "BoxQuadOptions")] +pub use gen_BoxQuadOptions::*; + +#[cfg(feature = "BroadcastChannel")] +#[allow(non_snake_case)] +mod gen_BroadcastChannel; +#[cfg(feature = "BroadcastChannel")] +pub use gen_BroadcastChannel::*; + +#[cfg(feature = "BrowserElementDownloadOptions")] +#[allow(non_snake_case)] +mod gen_BrowserElementDownloadOptions; +#[cfg(feature = "BrowserElementDownloadOptions")] +pub use gen_BrowserElementDownloadOptions::*; + +#[cfg(feature = "BrowserElementExecuteScriptOptions")] +#[allow(non_snake_case)] +mod gen_BrowserElementExecuteScriptOptions; +#[cfg(feature = "BrowserElementExecuteScriptOptions")] +pub use gen_BrowserElementExecuteScriptOptions::*; + +#[cfg(feature = "BrowserFeedWriter")] +#[allow(non_snake_case)] +mod gen_BrowserFeedWriter; +#[cfg(feature = "BrowserFeedWriter")] +pub use gen_BrowserFeedWriter::*; + +#[cfg(feature = "BrowserFindCaseSensitivity")] +#[allow(non_snake_case)] +mod gen_BrowserFindCaseSensitivity; +#[cfg(feature = "BrowserFindCaseSensitivity")] +pub use gen_BrowserFindCaseSensitivity::*; + +#[cfg(feature = "BrowserFindDirection")] +#[allow(non_snake_case)] +mod gen_BrowserFindDirection; +#[cfg(feature = "BrowserFindDirection")] +pub use gen_BrowserFindDirection::*; + +#[cfg(feature = "Cache")] +#[allow(non_snake_case)] +mod gen_Cache; +#[cfg(feature = "Cache")] +pub use gen_Cache::*; + +#[cfg(feature = "CacheBatchOperation")] +#[allow(non_snake_case)] +mod gen_CacheBatchOperation; +#[cfg(feature = "CacheBatchOperation")] +pub use gen_CacheBatchOperation::*; + +#[cfg(feature = "CacheQueryOptions")] +#[allow(non_snake_case)] +mod gen_CacheQueryOptions; +#[cfg(feature = "CacheQueryOptions")] +pub use gen_CacheQueryOptions::*; + +#[cfg(feature = "CacheStorage")] +#[allow(non_snake_case)] +mod gen_CacheStorage; +#[cfg(feature = "CacheStorage")] +pub use gen_CacheStorage::*; + +#[cfg(feature = "CacheStorageNamespace")] +#[allow(non_snake_case)] +mod gen_CacheStorageNamespace; +#[cfg(feature = "CacheStorageNamespace")] +pub use gen_CacheStorageNamespace::*; + +#[cfg(feature = "CanvasCaptureMediaStream")] +#[allow(non_snake_case)] +mod gen_CanvasCaptureMediaStream; +#[cfg(feature = "CanvasCaptureMediaStream")] +pub use gen_CanvasCaptureMediaStream::*; + +#[cfg(feature = "CanvasGradient")] +#[allow(non_snake_case)] +mod gen_CanvasGradient; +#[cfg(feature = "CanvasGradient")] +pub use gen_CanvasGradient::*; + +#[cfg(feature = "CanvasPattern")] +#[allow(non_snake_case)] +mod gen_CanvasPattern; +#[cfg(feature = "CanvasPattern")] +pub use gen_CanvasPattern::*; + +#[cfg(feature = "CanvasRenderingContext2d")] +#[allow(non_snake_case)] +mod gen_CanvasRenderingContext2d; +#[cfg(feature = "CanvasRenderingContext2d")] +pub use gen_CanvasRenderingContext2d::*; + +#[cfg(feature = "CanvasWindingRule")] +#[allow(non_snake_case)] +mod gen_CanvasWindingRule; +#[cfg(feature = "CanvasWindingRule")] +pub use gen_CanvasWindingRule::*; + +#[cfg(feature = "CaretChangedReason")] +#[allow(non_snake_case)] +mod gen_CaretChangedReason; +#[cfg(feature = "CaretChangedReason")] +pub use gen_CaretChangedReason::*; + +#[cfg(feature = "CaretPosition")] +#[allow(non_snake_case)] +mod gen_CaretPosition; +#[cfg(feature = "CaretPosition")] +pub use gen_CaretPosition::*; + +#[cfg(feature = "CaretStateChangedEventInit")] +#[allow(non_snake_case)] +mod gen_CaretStateChangedEventInit; +#[cfg(feature = "CaretStateChangedEventInit")] +pub use gen_CaretStateChangedEventInit::*; + +#[cfg(feature = "CdataSection")] +#[allow(non_snake_case)] +mod gen_CdataSection; +#[cfg(feature = "CdataSection")] +pub use gen_CdataSection::*; + +#[cfg(feature = "ChannelCountMode")] +#[allow(non_snake_case)] +mod gen_ChannelCountMode; +#[cfg(feature = "ChannelCountMode")] +pub use gen_ChannelCountMode::*; + +#[cfg(feature = "ChannelInterpretation")] +#[allow(non_snake_case)] +mod gen_ChannelInterpretation; +#[cfg(feature = "ChannelInterpretation")] +pub use gen_ChannelInterpretation::*; + +#[cfg(feature = "ChannelMergerNode")] +#[allow(non_snake_case)] +mod gen_ChannelMergerNode; +#[cfg(feature = "ChannelMergerNode")] +pub use gen_ChannelMergerNode::*; + +#[cfg(feature = "ChannelMergerOptions")] +#[allow(non_snake_case)] +mod gen_ChannelMergerOptions; +#[cfg(feature = "ChannelMergerOptions")] +pub use gen_ChannelMergerOptions::*; + +#[cfg(feature = "ChannelPixelLayout")] +#[allow(non_snake_case)] +mod gen_ChannelPixelLayout; +#[cfg(feature = "ChannelPixelLayout")] +pub use gen_ChannelPixelLayout::*; + +#[cfg(feature = "ChannelPixelLayoutDataType")] +#[allow(non_snake_case)] +mod gen_ChannelPixelLayoutDataType; +#[cfg(feature = "ChannelPixelLayoutDataType")] +pub use gen_ChannelPixelLayoutDataType::*; + +#[cfg(feature = "ChannelSplitterNode")] +#[allow(non_snake_case)] +mod gen_ChannelSplitterNode; +#[cfg(feature = "ChannelSplitterNode")] +pub use gen_ChannelSplitterNode::*; + +#[cfg(feature = "ChannelSplitterOptions")] +#[allow(non_snake_case)] +mod gen_ChannelSplitterOptions; +#[cfg(feature = "ChannelSplitterOptions")] +pub use gen_ChannelSplitterOptions::*; + +#[cfg(feature = "CharacterData")] +#[allow(non_snake_case)] +mod gen_CharacterData; +#[cfg(feature = "CharacterData")] +pub use gen_CharacterData::*; + +#[cfg(feature = "CheckerboardReason")] +#[allow(non_snake_case)] +mod gen_CheckerboardReason; +#[cfg(feature = "CheckerboardReason")] +pub use gen_CheckerboardReason::*; + +#[cfg(feature = "CheckerboardReport")] +#[allow(non_snake_case)] +mod gen_CheckerboardReport; +#[cfg(feature = "CheckerboardReport")] +pub use gen_CheckerboardReport::*; + +#[cfg(feature = "CheckerboardReportService")] +#[allow(non_snake_case)] +mod gen_CheckerboardReportService; +#[cfg(feature = "CheckerboardReportService")] +pub use gen_CheckerboardReportService::*; + +#[cfg(feature = "ChromeFilePropertyBag")] +#[allow(non_snake_case)] +mod gen_ChromeFilePropertyBag; +#[cfg(feature = "ChromeFilePropertyBag")] +pub use gen_ChromeFilePropertyBag::*; + +#[cfg(feature = "ChromeWorker")] +#[allow(non_snake_case)] +mod gen_ChromeWorker; +#[cfg(feature = "ChromeWorker")] +pub use gen_ChromeWorker::*; + +#[cfg(feature = "Client")] +#[allow(non_snake_case)] +mod gen_Client; +#[cfg(feature = "Client")] +pub use gen_Client::*; + +#[cfg(feature = "ClientQueryOptions")] +#[allow(non_snake_case)] +mod gen_ClientQueryOptions; +#[cfg(feature = "ClientQueryOptions")] +pub use gen_ClientQueryOptions::*; + +#[cfg(feature = "ClientRectsAndTexts")] +#[allow(non_snake_case)] +mod gen_ClientRectsAndTexts; +#[cfg(feature = "ClientRectsAndTexts")] +pub use gen_ClientRectsAndTexts::*; + +#[cfg(feature = "ClientType")] +#[allow(non_snake_case)] +mod gen_ClientType; +#[cfg(feature = "ClientType")] +pub use gen_ClientType::*; + +#[cfg(feature = "Clients")] +#[allow(non_snake_case)] +mod gen_Clients; +#[cfg(feature = "Clients")] +pub use gen_Clients::*; + +#[cfg(feature = "ClipboardEvent")] +#[allow(non_snake_case)] +mod gen_ClipboardEvent; +#[cfg(feature = "ClipboardEvent")] +pub use gen_ClipboardEvent::*; + +#[cfg(feature = "ClipboardEventInit")] +#[allow(non_snake_case)] +mod gen_ClipboardEventInit; +#[cfg(feature = "ClipboardEventInit")] +pub use gen_ClipboardEventInit::*; + +#[cfg(feature = "CloseEvent")] +#[allow(non_snake_case)] +mod gen_CloseEvent; +#[cfg(feature = "CloseEvent")] +pub use gen_CloseEvent::*; + +#[cfg(feature = "CloseEventInit")] +#[allow(non_snake_case)] +mod gen_CloseEventInit; +#[cfg(feature = "CloseEventInit")] +pub use gen_CloseEventInit::*; + +#[cfg(feature = "CollectedClientData")] +#[allow(non_snake_case)] +mod gen_CollectedClientData; +#[cfg(feature = "CollectedClientData")] +pub use gen_CollectedClientData::*; + +#[cfg(feature = "Comment")] +#[allow(non_snake_case)] +mod gen_Comment; +#[cfg(feature = "Comment")] +pub use gen_Comment::*; + +#[cfg(feature = "CompositeOperation")] +#[allow(non_snake_case)] +mod gen_CompositeOperation; +#[cfg(feature = "CompositeOperation")] +pub use gen_CompositeOperation::*; + +#[cfg(feature = "CompositionEvent")] +#[allow(non_snake_case)] +mod gen_CompositionEvent; +#[cfg(feature = "CompositionEvent")] +pub use gen_CompositionEvent::*; + +#[cfg(feature = "CompositionEventInit")] +#[allow(non_snake_case)] +mod gen_CompositionEventInit; +#[cfg(feature = "CompositionEventInit")] +pub use gen_CompositionEventInit::*; + +#[cfg(feature = "ComputedEffectTiming")] +#[allow(non_snake_case)] +mod gen_ComputedEffectTiming; +#[cfg(feature = "ComputedEffectTiming")] +pub use gen_ComputedEffectTiming::*; + +#[cfg(feature = "ConnStatusDict")] +#[allow(non_snake_case)] +mod gen_ConnStatusDict; +#[cfg(feature = "ConnStatusDict")] +pub use gen_ConnStatusDict::*; + +#[cfg(feature = "ConnectionType")] +#[allow(non_snake_case)] +mod gen_ConnectionType; +#[cfg(feature = "ConnectionType")] +pub use gen_ConnectionType::*; + +#[cfg(feature = "ConsoleCounter")] +#[allow(non_snake_case)] +mod gen_ConsoleCounter; +#[cfg(feature = "ConsoleCounter")] +pub use gen_ConsoleCounter::*; + +#[cfg(feature = "ConsoleCounterError")] +#[allow(non_snake_case)] +mod gen_ConsoleCounterError; +#[cfg(feature = "ConsoleCounterError")] +pub use gen_ConsoleCounterError::*; + +#[cfg(feature = "ConsoleEvent")] +#[allow(non_snake_case)] +mod gen_ConsoleEvent; +#[cfg(feature = "ConsoleEvent")] +pub use gen_ConsoleEvent::*; + +#[cfg(feature = "ConsoleInstance")] +#[allow(non_snake_case)] +mod gen_ConsoleInstance; +#[cfg(feature = "ConsoleInstance")] +pub use gen_ConsoleInstance::*; + +#[cfg(feature = "ConsoleInstanceOptions")] +#[allow(non_snake_case)] +mod gen_ConsoleInstanceOptions; +#[cfg(feature = "ConsoleInstanceOptions")] +pub use gen_ConsoleInstanceOptions::*; + +#[cfg(feature = "ConsoleLevel")] +#[allow(non_snake_case)] +mod gen_ConsoleLevel; +#[cfg(feature = "ConsoleLevel")] +pub use gen_ConsoleLevel::*; + +#[cfg(feature = "ConsoleLogLevel")] +#[allow(non_snake_case)] +mod gen_ConsoleLogLevel; +#[cfg(feature = "ConsoleLogLevel")] +pub use gen_ConsoleLogLevel::*; + +#[cfg(feature = "ConsoleProfileEvent")] +#[allow(non_snake_case)] +mod gen_ConsoleProfileEvent; +#[cfg(feature = "ConsoleProfileEvent")] +pub use gen_ConsoleProfileEvent::*; + +#[cfg(feature = "ConsoleStackEntry")] +#[allow(non_snake_case)] +mod gen_ConsoleStackEntry; +#[cfg(feature = "ConsoleStackEntry")] +pub use gen_ConsoleStackEntry::*; + +#[cfg(feature = "ConsoleTimerError")] +#[allow(non_snake_case)] +mod gen_ConsoleTimerError; +#[cfg(feature = "ConsoleTimerError")] +pub use gen_ConsoleTimerError::*; + +#[cfg(feature = "ConsoleTimerLogOrEnd")] +#[allow(non_snake_case)] +mod gen_ConsoleTimerLogOrEnd; +#[cfg(feature = "ConsoleTimerLogOrEnd")] +pub use gen_ConsoleTimerLogOrEnd::*; + +#[cfg(feature = "ConsoleTimerStart")] +#[allow(non_snake_case)] +mod gen_ConsoleTimerStart; +#[cfg(feature = "ConsoleTimerStart")] +pub use gen_ConsoleTimerStart::*; + +#[cfg(feature = "ConstantSourceNode")] +#[allow(non_snake_case)] +mod gen_ConstantSourceNode; +#[cfg(feature = "ConstantSourceNode")] +pub use gen_ConstantSourceNode::*; + +#[cfg(feature = "ConstantSourceOptions")] +#[allow(non_snake_case)] +mod gen_ConstantSourceOptions; +#[cfg(feature = "ConstantSourceOptions")] +pub use gen_ConstantSourceOptions::*; + +#[cfg(feature = "ConstrainBooleanParameters")] +#[allow(non_snake_case)] +mod gen_ConstrainBooleanParameters; +#[cfg(feature = "ConstrainBooleanParameters")] +pub use gen_ConstrainBooleanParameters::*; + +#[cfg(feature = "ConstrainDomStringParameters")] +#[allow(non_snake_case)] +mod gen_ConstrainDomStringParameters; +#[cfg(feature = "ConstrainDomStringParameters")] +pub use gen_ConstrainDomStringParameters::*; + +#[cfg(feature = "ConstrainDoubleRange")] +#[allow(non_snake_case)] +mod gen_ConstrainDoubleRange; +#[cfg(feature = "ConstrainDoubleRange")] +pub use gen_ConstrainDoubleRange::*; + +#[cfg(feature = "ConstrainLongRange")] +#[allow(non_snake_case)] +mod gen_ConstrainLongRange; +#[cfg(feature = "ConstrainLongRange")] +pub use gen_ConstrainLongRange::*; + +#[cfg(feature = "ContextAttributes2d")] +#[allow(non_snake_case)] +mod gen_ContextAttributes2d; +#[cfg(feature = "ContextAttributes2d")] +pub use gen_ContextAttributes2d::*; + +#[cfg(feature = "ConvertCoordinateOptions")] +#[allow(non_snake_case)] +mod gen_ConvertCoordinateOptions; +#[cfg(feature = "ConvertCoordinateOptions")] +pub use gen_ConvertCoordinateOptions::*; + +#[cfg(feature = "ConvolverNode")] +#[allow(non_snake_case)] +mod gen_ConvolverNode; +#[cfg(feature = "ConvolverNode")] +pub use gen_ConvolverNode::*; + +#[cfg(feature = "ConvolverOptions")] +#[allow(non_snake_case)] +mod gen_ConvolverOptions; +#[cfg(feature = "ConvolverOptions")] +pub use gen_ConvolverOptions::*; + +#[cfg(feature = "Coordinates")] +#[allow(non_snake_case)] +mod gen_Coordinates; +#[cfg(feature = "Coordinates")] +pub use gen_Coordinates::*; + +#[cfg(feature = "Credential")] +#[allow(non_snake_case)] +mod gen_Credential; +#[cfg(feature = "Credential")] +pub use gen_Credential::*; + +#[cfg(feature = "CredentialCreationOptions")] +#[allow(non_snake_case)] +mod gen_CredentialCreationOptions; +#[cfg(feature = "CredentialCreationOptions")] +pub use gen_CredentialCreationOptions::*; + +#[cfg(feature = "CredentialRequestOptions")] +#[allow(non_snake_case)] +mod gen_CredentialRequestOptions; +#[cfg(feature = "CredentialRequestOptions")] +pub use gen_CredentialRequestOptions::*; + +#[cfg(feature = "CredentialsContainer")] +#[allow(non_snake_case)] +mod gen_CredentialsContainer; +#[cfg(feature = "CredentialsContainer")] +pub use gen_CredentialsContainer::*; + +#[cfg(feature = "Crypto")] +#[allow(non_snake_case)] +mod gen_Crypto; +#[cfg(feature = "Crypto")] +pub use gen_Crypto::*; + +#[cfg(feature = "CryptoKey")] +#[allow(non_snake_case)] +mod gen_CryptoKey; +#[cfg(feature = "CryptoKey")] +pub use gen_CryptoKey::*; + +#[cfg(feature = "CryptoKeyPair")] +#[allow(non_snake_case)] +mod gen_CryptoKeyPair; +#[cfg(feature = "CryptoKeyPair")] +pub use gen_CryptoKeyPair::*; + +#[cfg(feature = "Csp")] +#[allow(non_snake_case)] +mod gen_Csp; +#[cfg(feature = "Csp")] +pub use gen_Csp::*; + +#[cfg(feature = "CspPolicies")] +#[allow(non_snake_case)] +mod gen_CspPolicies; +#[cfg(feature = "CspPolicies")] +pub use gen_CspPolicies::*; + +#[cfg(feature = "CspReport")] +#[allow(non_snake_case)] +mod gen_CspReport; +#[cfg(feature = "CspReport")] +pub use gen_CspReport::*; + +#[cfg(feature = "CspReportProperties")] +#[allow(non_snake_case)] +mod gen_CspReportProperties; +#[cfg(feature = "CspReportProperties")] +pub use gen_CspReportProperties::*; + +#[cfg(feature = "CssAnimation")] +#[allow(non_snake_case)] +mod gen_CssAnimation; +#[cfg(feature = "CssAnimation")] +pub use gen_CssAnimation::*; + +#[cfg(feature = "CssBoxType")] +#[allow(non_snake_case)] +mod gen_CssBoxType; +#[cfg(feature = "CssBoxType")] +pub use gen_CssBoxType::*; + +#[cfg(feature = "CssConditionRule")] +#[allow(non_snake_case)] +mod gen_CssConditionRule; +#[cfg(feature = "CssConditionRule")] +pub use gen_CssConditionRule::*; + +#[cfg(feature = "CssCounterStyleRule")] +#[allow(non_snake_case)] +mod gen_CssCounterStyleRule; +#[cfg(feature = "CssCounterStyleRule")] +pub use gen_CssCounterStyleRule::*; + +#[cfg(feature = "CssFontFaceRule")] +#[allow(non_snake_case)] +mod gen_CssFontFaceRule; +#[cfg(feature = "CssFontFaceRule")] +pub use gen_CssFontFaceRule::*; + +#[cfg(feature = "CssFontFeatureValuesRule")] +#[allow(non_snake_case)] +mod gen_CssFontFeatureValuesRule; +#[cfg(feature = "CssFontFeatureValuesRule")] +pub use gen_CssFontFeatureValuesRule::*; + +#[cfg(feature = "CssGroupingRule")] +#[allow(non_snake_case)] +mod gen_CssGroupingRule; +#[cfg(feature = "CssGroupingRule")] +pub use gen_CssGroupingRule::*; + +#[cfg(feature = "CssImportRule")] +#[allow(non_snake_case)] +mod gen_CssImportRule; +#[cfg(feature = "CssImportRule")] +pub use gen_CssImportRule::*; + +#[cfg(feature = "CssKeyframeRule")] +#[allow(non_snake_case)] +mod gen_CssKeyframeRule; +#[cfg(feature = "CssKeyframeRule")] +pub use gen_CssKeyframeRule::*; + +#[cfg(feature = "CssKeyframesRule")] +#[allow(non_snake_case)] +mod gen_CssKeyframesRule; +#[cfg(feature = "CssKeyframesRule")] +pub use gen_CssKeyframesRule::*; + +#[cfg(feature = "CssMediaRule")] +#[allow(non_snake_case)] +mod gen_CssMediaRule; +#[cfg(feature = "CssMediaRule")] +pub use gen_CssMediaRule::*; + +#[cfg(feature = "CssNamespaceRule")] +#[allow(non_snake_case)] +mod gen_CssNamespaceRule; +#[cfg(feature = "CssNamespaceRule")] +pub use gen_CssNamespaceRule::*; + +#[cfg(feature = "CssPageRule")] +#[allow(non_snake_case)] +mod gen_CssPageRule; +#[cfg(feature = "CssPageRule")] +pub use gen_CssPageRule::*; + +#[cfg(feature = "CssPseudoElement")] +#[allow(non_snake_case)] +mod gen_CssPseudoElement; +#[cfg(feature = "CssPseudoElement")] +pub use gen_CssPseudoElement::*; + +#[cfg(feature = "CssRule")] +#[allow(non_snake_case)] +mod gen_CssRule; +#[cfg(feature = "CssRule")] +pub use gen_CssRule::*; + +#[cfg(feature = "CssRuleList")] +#[allow(non_snake_case)] +mod gen_CssRuleList; +#[cfg(feature = "CssRuleList")] +pub use gen_CssRuleList::*; + +#[cfg(feature = "CssStyleDeclaration")] +#[allow(non_snake_case)] +mod gen_CssStyleDeclaration; +#[cfg(feature = "CssStyleDeclaration")] +pub use gen_CssStyleDeclaration::*; + +#[cfg(feature = "CssStyleRule")] +#[allow(non_snake_case)] +mod gen_CssStyleRule; +#[cfg(feature = "CssStyleRule")] +pub use gen_CssStyleRule::*; + +#[cfg(feature = "CssStyleSheet")] +#[allow(non_snake_case)] +mod gen_CssStyleSheet; +#[cfg(feature = "CssStyleSheet")] +pub use gen_CssStyleSheet::*; + +#[cfg(feature = "CssStyleSheetParsingMode")] +#[allow(non_snake_case)] +mod gen_CssStyleSheetParsingMode; +#[cfg(feature = "CssStyleSheetParsingMode")] +pub use gen_CssStyleSheetParsingMode::*; + +#[cfg(feature = "CssSupportsRule")] +#[allow(non_snake_case)] +mod gen_CssSupportsRule; +#[cfg(feature = "CssSupportsRule")] +pub use gen_CssSupportsRule::*; + +#[cfg(feature = "CssTransition")] +#[allow(non_snake_case)] +mod gen_CssTransition; +#[cfg(feature = "CssTransition")] +pub use gen_CssTransition::*; + +#[cfg(feature = "CustomElementRegistry")] +#[allow(non_snake_case)] +mod gen_CustomElementRegistry; +#[cfg(feature = "CustomElementRegistry")] +pub use gen_CustomElementRegistry::*; + +#[cfg(feature = "CustomEvent")] +#[allow(non_snake_case)] +mod gen_CustomEvent; +#[cfg(feature = "CustomEvent")] +pub use gen_CustomEvent::*; + +#[cfg(feature = "CustomEventInit")] +#[allow(non_snake_case)] +mod gen_CustomEventInit; +#[cfg(feature = "CustomEventInit")] +pub use gen_CustomEventInit::*; + +#[cfg(feature = "DataTransfer")] +#[allow(non_snake_case)] +mod gen_DataTransfer; +#[cfg(feature = "DataTransfer")] +pub use gen_DataTransfer::*; + +#[cfg(feature = "DataTransferItem")] +#[allow(non_snake_case)] +mod gen_DataTransferItem; +#[cfg(feature = "DataTransferItem")] +pub use gen_DataTransferItem::*; + +#[cfg(feature = "DataTransferItemList")] +#[allow(non_snake_case)] +mod gen_DataTransferItemList; +#[cfg(feature = "DataTransferItemList")] +pub use gen_DataTransferItemList::*; + +#[cfg(feature = "DateTimeValue")] +#[allow(non_snake_case)] +mod gen_DateTimeValue; +#[cfg(feature = "DateTimeValue")] +pub use gen_DateTimeValue::*; + +#[cfg(feature = "DecoderDoctorNotification")] +#[allow(non_snake_case)] +mod gen_DecoderDoctorNotification; +#[cfg(feature = "DecoderDoctorNotification")] +pub use gen_DecoderDoctorNotification::*; + +#[cfg(feature = "DecoderDoctorNotificationType")] +#[allow(non_snake_case)] +mod gen_DecoderDoctorNotificationType; +#[cfg(feature = "DecoderDoctorNotificationType")] +pub use gen_DecoderDoctorNotificationType::*; + +#[cfg(feature = "DedicatedWorkerGlobalScope")] +#[allow(non_snake_case)] +mod gen_DedicatedWorkerGlobalScope; +#[cfg(feature = "DedicatedWorkerGlobalScope")] +pub use gen_DedicatedWorkerGlobalScope::*; + +#[cfg(feature = "DelayNode")] +#[allow(non_snake_case)] +mod gen_DelayNode; +#[cfg(feature = "DelayNode")] +pub use gen_DelayNode::*; + +#[cfg(feature = "DelayOptions")] +#[allow(non_snake_case)] +mod gen_DelayOptions; +#[cfg(feature = "DelayOptions")] +pub use gen_DelayOptions::*; + +#[cfg(feature = "DeviceAcceleration")] +#[allow(non_snake_case)] +mod gen_DeviceAcceleration; +#[cfg(feature = "DeviceAcceleration")] +pub use gen_DeviceAcceleration::*; + +#[cfg(feature = "DeviceAccelerationInit")] +#[allow(non_snake_case)] +mod gen_DeviceAccelerationInit; +#[cfg(feature = "DeviceAccelerationInit")] +pub use gen_DeviceAccelerationInit::*; + +#[cfg(feature = "DeviceLightEvent")] +#[allow(non_snake_case)] +mod gen_DeviceLightEvent; +#[cfg(feature = "DeviceLightEvent")] +pub use gen_DeviceLightEvent::*; + +#[cfg(feature = "DeviceLightEventInit")] +#[allow(non_snake_case)] +mod gen_DeviceLightEventInit; +#[cfg(feature = "DeviceLightEventInit")] +pub use gen_DeviceLightEventInit::*; + +#[cfg(feature = "DeviceMotionEvent")] +#[allow(non_snake_case)] +mod gen_DeviceMotionEvent; +#[cfg(feature = "DeviceMotionEvent")] +pub use gen_DeviceMotionEvent::*; + +#[cfg(feature = "DeviceMotionEventInit")] +#[allow(non_snake_case)] +mod gen_DeviceMotionEventInit; +#[cfg(feature = "DeviceMotionEventInit")] +pub use gen_DeviceMotionEventInit::*; + +#[cfg(feature = "DeviceOrientationEvent")] +#[allow(non_snake_case)] +mod gen_DeviceOrientationEvent; +#[cfg(feature = "DeviceOrientationEvent")] +pub use gen_DeviceOrientationEvent::*; + +#[cfg(feature = "DeviceOrientationEventInit")] +#[allow(non_snake_case)] +mod gen_DeviceOrientationEventInit; +#[cfg(feature = "DeviceOrientationEventInit")] +pub use gen_DeviceOrientationEventInit::*; + +#[cfg(feature = "DeviceProximityEvent")] +#[allow(non_snake_case)] +mod gen_DeviceProximityEvent; +#[cfg(feature = "DeviceProximityEvent")] +pub use gen_DeviceProximityEvent::*; + +#[cfg(feature = "DeviceProximityEventInit")] +#[allow(non_snake_case)] +mod gen_DeviceProximityEventInit; +#[cfg(feature = "DeviceProximityEventInit")] +pub use gen_DeviceProximityEventInit::*; + +#[cfg(feature = "DeviceRotationRate")] +#[allow(non_snake_case)] +mod gen_DeviceRotationRate; +#[cfg(feature = "DeviceRotationRate")] +pub use gen_DeviceRotationRate::*; + +#[cfg(feature = "DeviceRotationRateInit")] +#[allow(non_snake_case)] +mod gen_DeviceRotationRateInit; +#[cfg(feature = "DeviceRotationRateInit")] +pub use gen_DeviceRotationRateInit::*; + +#[cfg(feature = "DhKeyDeriveParams")] +#[allow(non_snake_case)] +mod gen_DhKeyDeriveParams; +#[cfg(feature = "DhKeyDeriveParams")] +pub use gen_DhKeyDeriveParams::*; + +#[cfg(feature = "DirectionSetting")] +#[allow(non_snake_case)] +mod gen_DirectionSetting; +#[cfg(feature = "DirectionSetting")] +pub use gen_DirectionSetting::*; + +#[cfg(feature = "Directory")] +#[allow(non_snake_case)] +mod gen_Directory; +#[cfg(feature = "Directory")] +pub use gen_Directory::*; + +#[cfg(feature = "DisplayNameOptions")] +#[allow(non_snake_case)] +mod gen_DisplayNameOptions; +#[cfg(feature = "DisplayNameOptions")] +pub use gen_DisplayNameOptions::*; + +#[cfg(feature = "DisplayNameResult")] +#[allow(non_snake_case)] +mod gen_DisplayNameResult; +#[cfg(feature = "DisplayNameResult")] +pub use gen_DisplayNameResult::*; + +#[cfg(feature = "DistanceModelType")] +#[allow(non_snake_case)] +mod gen_DistanceModelType; +#[cfg(feature = "DistanceModelType")] +pub use gen_DistanceModelType::*; + +#[cfg(feature = "DnsCacheDict")] +#[allow(non_snake_case)] +mod gen_DnsCacheDict; +#[cfg(feature = "DnsCacheDict")] +pub use gen_DnsCacheDict::*; + +#[cfg(feature = "DnsCacheEntry")] +#[allow(non_snake_case)] +mod gen_DnsCacheEntry; +#[cfg(feature = "DnsCacheEntry")] +pub use gen_DnsCacheEntry::*; + +#[cfg(feature = "DnsLookupDict")] +#[allow(non_snake_case)] +mod gen_DnsLookupDict; +#[cfg(feature = "DnsLookupDict")] +pub use gen_DnsLookupDict::*; + +#[cfg(feature = "Document")] +#[allow(non_snake_case)] +mod gen_Document; +#[cfg(feature = "Document")] +pub use gen_Document::*; + +#[cfg(feature = "DocumentFragment")] +#[allow(non_snake_case)] +mod gen_DocumentFragment; +#[cfg(feature = "DocumentFragment")] +pub use gen_DocumentFragment::*; + +#[cfg(feature = "DocumentTimeline")] +#[allow(non_snake_case)] +mod gen_DocumentTimeline; +#[cfg(feature = "DocumentTimeline")] +pub use gen_DocumentTimeline::*; + +#[cfg(feature = "DocumentTimelineOptions")] +#[allow(non_snake_case)] +mod gen_DocumentTimelineOptions; +#[cfg(feature = "DocumentTimelineOptions")] +pub use gen_DocumentTimelineOptions::*; + +#[cfg(feature = "DocumentType")] +#[allow(non_snake_case)] +mod gen_DocumentType; +#[cfg(feature = "DocumentType")] +pub use gen_DocumentType::*; + +#[cfg(feature = "DomError")] +#[allow(non_snake_case)] +mod gen_DomError; +#[cfg(feature = "DomError")] +pub use gen_DomError::*; + +#[cfg(feature = "DomException")] +#[allow(non_snake_case)] +mod gen_DomException; +#[cfg(feature = "DomException")] +pub use gen_DomException::*; + +#[cfg(feature = "DomImplementation")] +#[allow(non_snake_case)] +mod gen_DomImplementation; +#[cfg(feature = "DomImplementation")] +pub use gen_DomImplementation::*; + +#[cfg(feature = "DomMatrix")] +#[allow(non_snake_case)] +mod gen_DomMatrix; +#[cfg(feature = "DomMatrix")] +pub use gen_DomMatrix::*; + +#[cfg(feature = "DomMatrixReadOnly")] +#[allow(non_snake_case)] +mod gen_DomMatrixReadOnly; +#[cfg(feature = "DomMatrixReadOnly")] +pub use gen_DomMatrixReadOnly::*; + +#[cfg(feature = "DomParser")] +#[allow(non_snake_case)] +mod gen_DomParser; +#[cfg(feature = "DomParser")] +pub use gen_DomParser::*; + +#[cfg(feature = "DomPoint")] +#[allow(non_snake_case)] +mod gen_DomPoint; +#[cfg(feature = "DomPoint")] +pub use gen_DomPoint::*; + +#[cfg(feature = "DomPointInit")] +#[allow(non_snake_case)] +mod gen_DomPointInit; +#[cfg(feature = "DomPointInit")] +pub use gen_DomPointInit::*; + +#[cfg(feature = "DomPointReadOnly")] +#[allow(non_snake_case)] +mod gen_DomPointReadOnly; +#[cfg(feature = "DomPointReadOnly")] +pub use gen_DomPointReadOnly::*; + +#[cfg(feature = "DomQuad")] +#[allow(non_snake_case)] +mod gen_DomQuad; +#[cfg(feature = "DomQuad")] +pub use gen_DomQuad::*; + +#[cfg(feature = "DomQuadInit")] +#[allow(non_snake_case)] +mod gen_DomQuadInit; +#[cfg(feature = "DomQuadInit")] +pub use gen_DomQuadInit::*; + +#[cfg(feature = "DomQuadJson")] +#[allow(non_snake_case)] +mod gen_DomQuadJson; +#[cfg(feature = "DomQuadJson")] +pub use gen_DomQuadJson::*; + +#[cfg(feature = "DomRect")] +#[allow(non_snake_case)] +mod gen_DomRect; +#[cfg(feature = "DomRect")] +pub use gen_DomRect::*; + +#[cfg(feature = "DomRectInit")] +#[allow(non_snake_case)] +mod gen_DomRectInit; +#[cfg(feature = "DomRectInit")] +pub use gen_DomRectInit::*; + +#[cfg(feature = "DomRectList")] +#[allow(non_snake_case)] +mod gen_DomRectList; +#[cfg(feature = "DomRectList")] +pub use gen_DomRectList::*; + +#[cfg(feature = "DomRectReadOnly")] +#[allow(non_snake_case)] +mod gen_DomRectReadOnly; +#[cfg(feature = "DomRectReadOnly")] +pub use gen_DomRectReadOnly::*; + +#[cfg(feature = "DomRequest")] +#[allow(non_snake_case)] +mod gen_DomRequest; +#[cfg(feature = "DomRequest")] +pub use gen_DomRequest::*; + +#[cfg(feature = "DomRequestReadyState")] +#[allow(non_snake_case)] +mod gen_DomRequestReadyState; +#[cfg(feature = "DomRequestReadyState")] +pub use gen_DomRequestReadyState::*; + +#[cfg(feature = "DomStringList")] +#[allow(non_snake_case)] +mod gen_DomStringList; +#[cfg(feature = "DomStringList")] +pub use gen_DomStringList::*; + +#[cfg(feature = "DomStringMap")] +#[allow(non_snake_case)] +mod gen_DomStringMap; +#[cfg(feature = "DomStringMap")] +pub use gen_DomStringMap::*; + +#[cfg(feature = "DomTokenList")] +#[allow(non_snake_case)] +mod gen_DomTokenList; +#[cfg(feature = "DomTokenList")] +pub use gen_DomTokenList::*; + +#[cfg(feature = "DomWindowResizeEventDetail")] +#[allow(non_snake_case)] +mod gen_DomWindowResizeEventDetail; +#[cfg(feature = "DomWindowResizeEventDetail")] +pub use gen_DomWindowResizeEventDetail::*; + +#[cfg(feature = "DragEvent")] +#[allow(non_snake_case)] +mod gen_DragEvent; +#[cfg(feature = "DragEvent")] +pub use gen_DragEvent::*; + +#[cfg(feature = "DragEventInit")] +#[allow(non_snake_case)] +mod gen_DragEventInit; +#[cfg(feature = "DragEventInit")] +pub use gen_DragEventInit::*; + +#[cfg(feature = "DynamicsCompressorNode")] +#[allow(non_snake_case)] +mod gen_DynamicsCompressorNode; +#[cfg(feature = "DynamicsCompressorNode")] +pub use gen_DynamicsCompressorNode::*; + +#[cfg(feature = "DynamicsCompressorOptions")] +#[allow(non_snake_case)] +mod gen_DynamicsCompressorOptions; +#[cfg(feature = "DynamicsCompressorOptions")] +pub use gen_DynamicsCompressorOptions::*; + +#[cfg(feature = "EcKeyAlgorithm")] +#[allow(non_snake_case)] +mod gen_EcKeyAlgorithm; +#[cfg(feature = "EcKeyAlgorithm")] +pub use gen_EcKeyAlgorithm::*; + +#[cfg(feature = "EcKeyGenParams")] +#[allow(non_snake_case)] +mod gen_EcKeyGenParams; +#[cfg(feature = "EcKeyGenParams")] +pub use gen_EcKeyGenParams::*; + +#[cfg(feature = "EcKeyImportParams")] +#[allow(non_snake_case)] +mod gen_EcKeyImportParams; +#[cfg(feature = "EcKeyImportParams")] +pub use gen_EcKeyImportParams::*; + +#[cfg(feature = "EcdhKeyDeriveParams")] +#[allow(non_snake_case)] +mod gen_EcdhKeyDeriveParams; +#[cfg(feature = "EcdhKeyDeriveParams")] +pub use gen_EcdhKeyDeriveParams::*; + +#[cfg(feature = "EcdsaParams")] +#[allow(non_snake_case)] +mod gen_EcdsaParams; +#[cfg(feature = "EcdsaParams")] +pub use gen_EcdsaParams::*; + +#[cfg(feature = "EffectTiming")] +#[allow(non_snake_case)] +mod gen_EffectTiming; +#[cfg(feature = "EffectTiming")] +pub use gen_EffectTiming::*; + +#[cfg(feature = "Element")] +#[allow(non_snake_case)] +mod gen_Element; +#[cfg(feature = "Element")] +pub use gen_Element::*; + +#[cfg(feature = "ElementCreationOptions")] +#[allow(non_snake_case)] +mod gen_ElementCreationOptions; +#[cfg(feature = "ElementCreationOptions")] +pub use gen_ElementCreationOptions::*; + +#[cfg(feature = "ElementDefinitionOptions")] +#[allow(non_snake_case)] +mod gen_ElementDefinitionOptions; +#[cfg(feature = "ElementDefinitionOptions")] +pub use gen_ElementDefinitionOptions::*; + +#[cfg(feature = "EndingTypes")] +#[allow(non_snake_case)] +mod gen_EndingTypes; +#[cfg(feature = "EndingTypes")] +pub use gen_EndingTypes::*; + +#[cfg(feature = "ErrorCallback")] +#[allow(non_snake_case)] +mod gen_ErrorCallback; +#[cfg(feature = "ErrorCallback")] +pub use gen_ErrorCallback::*; + +#[cfg(feature = "ErrorEvent")] +#[allow(non_snake_case)] +mod gen_ErrorEvent; +#[cfg(feature = "ErrorEvent")] +pub use gen_ErrorEvent::*; + +#[cfg(feature = "ErrorEventInit")] +#[allow(non_snake_case)] +mod gen_ErrorEventInit; +#[cfg(feature = "ErrorEventInit")] +pub use gen_ErrorEventInit::*; + +#[cfg(feature = "Event")] +#[allow(non_snake_case)] +mod gen_Event; +#[cfg(feature = "Event")] +pub use gen_Event::*; + +#[cfg(feature = "EventInit")] +#[allow(non_snake_case)] +mod gen_EventInit; +#[cfg(feature = "EventInit")] +pub use gen_EventInit::*; + +#[cfg(feature = "EventListener")] +#[allow(non_snake_case)] +mod gen_EventListener; +#[cfg(feature = "EventListener")] +pub use gen_EventListener::*; + +#[cfg(feature = "EventListenerOptions")] +#[allow(non_snake_case)] +mod gen_EventListenerOptions; +#[cfg(feature = "EventListenerOptions")] +pub use gen_EventListenerOptions::*; + +#[cfg(feature = "EventModifierInit")] +#[allow(non_snake_case)] +mod gen_EventModifierInit; +#[cfg(feature = "EventModifierInit")] +pub use gen_EventModifierInit::*; + +#[cfg(feature = "EventSource")] +#[allow(non_snake_case)] +mod gen_EventSource; +#[cfg(feature = "EventSource")] +pub use gen_EventSource::*; + +#[cfg(feature = "EventSourceInit")] +#[allow(non_snake_case)] +mod gen_EventSourceInit; +#[cfg(feature = "EventSourceInit")] +pub use gen_EventSourceInit::*; + +#[cfg(feature = "EventTarget")] +#[allow(non_snake_case)] +mod gen_EventTarget; +#[cfg(feature = "EventTarget")] +pub use gen_EventTarget::*; + +#[cfg(feature = "Exception")] +#[allow(non_snake_case)] +mod gen_Exception; +#[cfg(feature = "Exception")] +pub use gen_Exception::*; + +#[cfg(feature = "ExtBlendMinmax")] +#[allow(non_snake_case)] +mod gen_ExtBlendMinmax; +#[cfg(feature = "ExtBlendMinmax")] +pub use gen_ExtBlendMinmax::*; + +#[cfg(feature = "ExtColorBufferFloat")] +#[allow(non_snake_case)] +mod gen_ExtColorBufferFloat; +#[cfg(feature = "ExtColorBufferFloat")] +pub use gen_ExtColorBufferFloat::*; + +#[cfg(feature = "ExtColorBufferHalfFloat")] +#[allow(non_snake_case)] +mod gen_ExtColorBufferHalfFloat; +#[cfg(feature = "ExtColorBufferHalfFloat")] +pub use gen_ExtColorBufferHalfFloat::*; + +#[cfg(feature = "ExtDisjointTimerQuery")] +#[allow(non_snake_case)] +mod gen_ExtDisjointTimerQuery; +#[cfg(feature = "ExtDisjointTimerQuery")] +pub use gen_ExtDisjointTimerQuery::*; + +#[cfg(feature = "ExtFragDepth")] +#[allow(non_snake_case)] +mod gen_ExtFragDepth; +#[cfg(feature = "ExtFragDepth")] +pub use gen_ExtFragDepth::*; + +#[cfg(feature = "ExtSRgb")] +#[allow(non_snake_case)] +mod gen_ExtSRgb; +#[cfg(feature = "ExtSRgb")] +pub use gen_ExtSRgb::*; + +#[cfg(feature = "ExtShaderTextureLod")] +#[allow(non_snake_case)] +mod gen_ExtShaderTextureLod; +#[cfg(feature = "ExtShaderTextureLod")] +pub use gen_ExtShaderTextureLod::*; + +#[cfg(feature = "ExtTextureFilterAnisotropic")] +#[allow(non_snake_case)] +mod gen_ExtTextureFilterAnisotropic; +#[cfg(feature = "ExtTextureFilterAnisotropic")] +pub use gen_ExtTextureFilterAnisotropic::*; + +#[cfg(feature = "ExtendableEvent")] +#[allow(non_snake_case)] +mod gen_ExtendableEvent; +#[cfg(feature = "ExtendableEvent")] +pub use gen_ExtendableEvent::*; + +#[cfg(feature = "ExtendableEventInit")] +#[allow(non_snake_case)] +mod gen_ExtendableEventInit; +#[cfg(feature = "ExtendableEventInit")] +pub use gen_ExtendableEventInit::*; + +#[cfg(feature = "ExtendableMessageEvent")] +#[allow(non_snake_case)] +mod gen_ExtendableMessageEvent; +#[cfg(feature = "ExtendableMessageEvent")] +pub use gen_ExtendableMessageEvent::*; + +#[cfg(feature = "ExtendableMessageEventInit")] +#[allow(non_snake_case)] +mod gen_ExtendableMessageEventInit; +#[cfg(feature = "ExtendableMessageEventInit")] +pub use gen_ExtendableMessageEventInit::*; + +#[cfg(feature = "External")] +#[allow(non_snake_case)] +mod gen_External; +#[cfg(feature = "External")] +pub use gen_External::*; + +#[cfg(feature = "FakePluginMimeEntry")] +#[allow(non_snake_case)] +mod gen_FakePluginMimeEntry; +#[cfg(feature = "FakePluginMimeEntry")] +pub use gen_FakePluginMimeEntry::*; + +#[cfg(feature = "FakePluginTagInit")] +#[allow(non_snake_case)] +mod gen_FakePluginTagInit; +#[cfg(feature = "FakePluginTagInit")] +pub use gen_FakePluginTagInit::*; + +#[cfg(feature = "FetchEvent")] +#[allow(non_snake_case)] +mod gen_FetchEvent; +#[cfg(feature = "FetchEvent")] +pub use gen_FetchEvent::*; + +#[cfg(feature = "FetchEventInit")] +#[allow(non_snake_case)] +mod gen_FetchEventInit; +#[cfg(feature = "FetchEventInit")] +pub use gen_FetchEventInit::*; + +#[cfg(feature = "FetchObserver")] +#[allow(non_snake_case)] +mod gen_FetchObserver; +#[cfg(feature = "FetchObserver")] +pub use gen_FetchObserver::*; + +#[cfg(feature = "FetchReadableStreamReadDataArray")] +#[allow(non_snake_case)] +mod gen_FetchReadableStreamReadDataArray; +#[cfg(feature = "FetchReadableStreamReadDataArray")] +pub use gen_FetchReadableStreamReadDataArray::*; + +#[cfg(feature = "FetchReadableStreamReadDataDone")] +#[allow(non_snake_case)] +mod gen_FetchReadableStreamReadDataDone; +#[cfg(feature = "FetchReadableStreamReadDataDone")] +pub use gen_FetchReadableStreamReadDataDone::*; + +#[cfg(feature = "FetchState")] +#[allow(non_snake_case)] +mod gen_FetchState; +#[cfg(feature = "FetchState")] +pub use gen_FetchState::*; + +#[cfg(feature = "File")] +#[allow(non_snake_case)] +mod gen_File; +#[cfg(feature = "File")] +pub use gen_File::*; + +#[cfg(feature = "FileCallback")] +#[allow(non_snake_case)] +mod gen_FileCallback; +#[cfg(feature = "FileCallback")] +pub use gen_FileCallback::*; + +#[cfg(feature = "FileList")] +#[allow(non_snake_case)] +mod gen_FileList; +#[cfg(feature = "FileList")] +pub use gen_FileList::*; + +#[cfg(feature = "FilePropertyBag")] +#[allow(non_snake_case)] +mod gen_FilePropertyBag; +#[cfg(feature = "FilePropertyBag")] +pub use gen_FilePropertyBag::*; + +#[cfg(feature = "FileReader")] +#[allow(non_snake_case)] +mod gen_FileReader; +#[cfg(feature = "FileReader")] +pub use gen_FileReader::*; + +#[cfg(feature = "FileReaderSync")] +#[allow(non_snake_case)] +mod gen_FileReaderSync; +#[cfg(feature = "FileReaderSync")] +pub use gen_FileReaderSync::*; + +#[cfg(feature = "FileSystem")] +#[allow(non_snake_case)] +mod gen_FileSystem; +#[cfg(feature = "FileSystem")] +pub use gen_FileSystem::*; + +#[cfg(feature = "FileSystemDirectoryEntry")] +#[allow(non_snake_case)] +mod gen_FileSystemDirectoryEntry; +#[cfg(feature = "FileSystemDirectoryEntry")] +pub use gen_FileSystemDirectoryEntry::*; + +#[cfg(feature = "FileSystemDirectoryReader")] +#[allow(non_snake_case)] +mod gen_FileSystemDirectoryReader; +#[cfg(feature = "FileSystemDirectoryReader")] +pub use gen_FileSystemDirectoryReader::*; + +#[cfg(feature = "FileSystemEntriesCallback")] +#[allow(non_snake_case)] +mod gen_FileSystemEntriesCallback; +#[cfg(feature = "FileSystemEntriesCallback")] +pub use gen_FileSystemEntriesCallback::*; + +#[cfg(feature = "FileSystemEntry")] +#[allow(non_snake_case)] +mod gen_FileSystemEntry; +#[cfg(feature = "FileSystemEntry")] +pub use gen_FileSystemEntry::*; + +#[cfg(feature = "FileSystemEntryCallback")] +#[allow(non_snake_case)] +mod gen_FileSystemEntryCallback; +#[cfg(feature = "FileSystemEntryCallback")] +pub use gen_FileSystemEntryCallback::*; + +#[cfg(feature = "FileSystemFileEntry")] +#[allow(non_snake_case)] +mod gen_FileSystemFileEntry; +#[cfg(feature = "FileSystemFileEntry")] +pub use gen_FileSystemFileEntry::*; + +#[cfg(feature = "FileSystemFlags")] +#[allow(non_snake_case)] +mod gen_FileSystemFlags; +#[cfg(feature = "FileSystemFlags")] +pub use gen_FileSystemFlags::*; + +#[cfg(feature = "FillMode")] +#[allow(non_snake_case)] +mod gen_FillMode; +#[cfg(feature = "FillMode")] +pub use gen_FillMode::*; + +#[cfg(feature = "FlashClassification")] +#[allow(non_snake_case)] +mod gen_FlashClassification; +#[cfg(feature = "FlashClassification")] +pub use gen_FlashClassification::*; + +#[cfg(feature = "FlexLineGrowthState")] +#[allow(non_snake_case)] +mod gen_FlexLineGrowthState; +#[cfg(feature = "FlexLineGrowthState")] +pub use gen_FlexLineGrowthState::*; + +#[cfg(feature = "FocusEvent")] +#[allow(non_snake_case)] +mod gen_FocusEvent; +#[cfg(feature = "FocusEvent")] +pub use gen_FocusEvent::*; + +#[cfg(feature = "FocusEventInit")] +#[allow(non_snake_case)] +mod gen_FocusEventInit; +#[cfg(feature = "FocusEventInit")] +pub use gen_FocusEventInit::*; + +#[cfg(feature = "FontFace")] +#[allow(non_snake_case)] +mod gen_FontFace; +#[cfg(feature = "FontFace")] +pub use gen_FontFace::*; + +#[cfg(feature = "FontFaceDescriptors")] +#[allow(non_snake_case)] +mod gen_FontFaceDescriptors; +#[cfg(feature = "FontFaceDescriptors")] +pub use gen_FontFaceDescriptors::*; + +#[cfg(feature = "FontFaceLoadStatus")] +#[allow(non_snake_case)] +mod gen_FontFaceLoadStatus; +#[cfg(feature = "FontFaceLoadStatus")] +pub use gen_FontFaceLoadStatus::*; + +#[cfg(feature = "FontFaceSet")] +#[allow(non_snake_case)] +mod gen_FontFaceSet; +#[cfg(feature = "FontFaceSet")] +pub use gen_FontFaceSet::*; + +#[cfg(feature = "FontFaceSetIterator")] +#[allow(non_snake_case)] +mod gen_FontFaceSetIterator; +#[cfg(feature = "FontFaceSetIterator")] +pub use gen_FontFaceSetIterator::*; + +#[cfg(feature = "FontFaceSetIteratorResult")] +#[allow(non_snake_case)] +mod gen_FontFaceSetIteratorResult; +#[cfg(feature = "FontFaceSetIteratorResult")] +pub use gen_FontFaceSetIteratorResult::*; + +#[cfg(feature = "FontFaceSetLoadEvent")] +#[allow(non_snake_case)] +mod gen_FontFaceSetLoadEvent; +#[cfg(feature = "FontFaceSetLoadEvent")] +pub use gen_FontFaceSetLoadEvent::*; + +#[cfg(feature = "FontFaceSetLoadEventInit")] +#[allow(non_snake_case)] +mod gen_FontFaceSetLoadEventInit; +#[cfg(feature = "FontFaceSetLoadEventInit")] +pub use gen_FontFaceSetLoadEventInit::*; + +#[cfg(feature = "FontFaceSetLoadStatus")] +#[allow(non_snake_case)] +mod gen_FontFaceSetLoadStatus; +#[cfg(feature = "FontFaceSetLoadStatus")] +pub use gen_FontFaceSetLoadStatus::*; + +#[cfg(feature = "FormData")] +#[allow(non_snake_case)] +mod gen_FormData; +#[cfg(feature = "FormData")] +pub use gen_FormData::*; + +#[cfg(feature = "FrameType")] +#[allow(non_snake_case)] +mod gen_FrameType; +#[cfg(feature = "FrameType")] +pub use gen_FrameType::*; + +#[cfg(feature = "FuzzingFunctions")] +#[allow(non_snake_case)] +mod gen_FuzzingFunctions; +#[cfg(feature = "FuzzingFunctions")] +pub use gen_FuzzingFunctions::*; + +#[cfg(feature = "GainNode")] +#[allow(non_snake_case)] +mod gen_GainNode; +#[cfg(feature = "GainNode")] +pub use gen_GainNode::*; + +#[cfg(feature = "GainOptions")] +#[allow(non_snake_case)] +mod gen_GainOptions; +#[cfg(feature = "GainOptions")] +pub use gen_GainOptions::*; + +#[cfg(feature = "Gamepad")] +#[allow(non_snake_case)] +mod gen_Gamepad; +#[cfg(feature = "Gamepad")] +pub use gen_Gamepad::*; + +#[cfg(feature = "GamepadAxisMoveEvent")] +#[allow(non_snake_case)] +mod gen_GamepadAxisMoveEvent; +#[cfg(feature = "GamepadAxisMoveEvent")] +pub use gen_GamepadAxisMoveEvent::*; + +#[cfg(feature = "GamepadAxisMoveEventInit")] +#[allow(non_snake_case)] +mod gen_GamepadAxisMoveEventInit; +#[cfg(feature = "GamepadAxisMoveEventInit")] +pub use gen_GamepadAxisMoveEventInit::*; + +#[cfg(feature = "GamepadButton")] +#[allow(non_snake_case)] +mod gen_GamepadButton; +#[cfg(feature = "GamepadButton")] +pub use gen_GamepadButton::*; + +#[cfg(feature = "GamepadButtonEvent")] +#[allow(non_snake_case)] +mod gen_GamepadButtonEvent; +#[cfg(feature = "GamepadButtonEvent")] +pub use gen_GamepadButtonEvent::*; + +#[cfg(feature = "GamepadButtonEventInit")] +#[allow(non_snake_case)] +mod gen_GamepadButtonEventInit; +#[cfg(feature = "GamepadButtonEventInit")] +pub use gen_GamepadButtonEventInit::*; + +#[cfg(feature = "GamepadEvent")] +#[allow(non_snake_case)] +mod gen_GamepadEvent; +#[cfg(feature = "GamepadEvent")] +pub use gen_GamepadEvent::*; + +#[cfg(feature = "GamepadEventInit")] +#[allow(non_snake_case)] +mod gen_GamepadEventInit; +#[cfg(feature = "GamepadEventInit")] +pub use gen_GamepadEventInit::*; + +#[cfg(feature = "GamepadHand")] +#[allow(non_snake_case)] +mod gen_GamepadHand; +#[cfg(feature = "GamepadHand")] +pub use gen_GamepadHand::*; + +#[cfg(feature = "GamepadHapticActuator")] +#[allow(non_snake_case)] +mod gen_GamepadHapticActuator; +#[cfg(feature = "GamepadHapticActuator")] +pub use gen_GamepadHapticActuator::*; + +#[cfg(feature = "GamepadHapticActuatorType")] +#[allow(non_snake_case)] +mod gen_GamepadHapticActuatorType; +#[cfg(feature = "GamepadHapticActuatorType")] +pub use gen_GamepadHapticActuatorType::*; + +#[cfg(feature = "GamepadMappingType")] +#[allow(non_snake_case)] +mod gen_GamepadMappingType; +#[cfg(feature = "GamepadMappingType")] +pub use gen_GamepadMappingType::*; + +#[cfg(feature = "GamepadPose")] +#[allow(non_snake_case)] +mod gen_GamepadPose; +#[cfg(feature = "GamepadPose")] +pub use gen_GamepadPose::*; + +#[cfg(feature = "GamepadServiceTest")] +#[allow(non_snake_case)] +mod gen_GamepadServiceTest; +#[cfg(feature = "GamepadServiceTest")] +pub use gen_GamepadServiceTest::*; + +#[cfg(feature = "Geolocation")] +#[allow(non_snake_case)] +mod gen_Geolocation; +#[cfg(feature = "Geolocation")] +pub use gen_Geolocation::*; + +#[cfg(feature = "GetNotificationOptions")] +#[allow(non_snake_case)] +mod gen_GetNotificationOptions; +#[cfg(feature = "GetNotificationOptions")] +pub use gen_GetNotificationOptions::*; + +#[cfg(feature = "GetRootNodeOptions")] +#[allow(non_snake_case)] +mod gen_GetRootNodeOptions; +#[cfg(feature = "GetRootNodeOptions")] +pub use gen_GetRootNodeOptions::*; + +#[cfg(feature = "GetUserMediaRequest")] +#[allow(non_snake_case)] +mod gen_GetUserMediaRequest; +#[cfg(feature = "GetUserMediaRequest")] +pub use gen_GetUserMediaRequest::*; + +#[cfg(feature = "Gpu")] +#[allow(non_snake_case)] +mod gen_Gpu; +#[cfg(feature = "Gpu")] +pub use gen_Gpu::*; + +#[cfg(feature = "GpuAdapter")] +#[allow(non_snake_case)] +mod gen_GpuAdapter; +#[cfg(feature = "GpuAdapter")] +pub use gen_GpuAdapter::*; + +#[cfg(feature = "GpuAddressMode")] +#[allow(non_snake_case)] +mod gen_GpuAddressMode; +#[cfg(feature = "GpuAddressMode")] +pub use gen_GpuAddressMode::*; + +#[cfg(feature = "GpuBindGroup")] +#[allow(non_snake_case)] +mod gen_GpuBindGroup; +#[cfg(feature = "GpuBindGroup")] +pub use gen_GpuBindGroup::*; + +#[cfg(feature = "GpuBindGroupBinding")] +#[allow(non_snake_case)] +mod gen_GpuBindGroupBinding; +#[cfg(feature = "GpuBindGroupBinding")] +pub use gen_GpuBindGroupBinding::*; + +#[cfg(feature = "GpuBindGroupDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuBindGroupDescriptor; +#[cfg(feature = "GpuBindGroupDescriptor")] +pub use gen_GpuBindGroupDescriptor::*; + +#[cfg(feature = "GpuBindGroupLayout")] +#[allow(non_snake_case)] +mod gen_GpuBindGroupLayout; +#[cfg(feature = "GpuBindGroupLayout")] +pub use gen_GpuBindGroupLayout::*; + +#[cfg(feature = "GpuBindGroupLayoutBinding")] +#[allow(non_snake_case)] +mod gen_GpuBindGroupLayoutBinding; +#[cfg(feature = "GpuBindGroupLayoutBinding")] +pub use gen_GpuBindGroupLayoutBinding::*; + +#[cfg(feature = "GpuBindGroupLayoutDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuBindGroupLayoutDescriptor; +#[cfg(feature = "GpuBindGroupLayoutDescriptor")] +pub use gen_GpuBindGroupLayoutDescriptor::*; + +#[cfg(feature = "GpuBindingType")] +#[allow(non_snake_case)] +mod gen_GpuBindingType; +#[cfg(feature = "GpuBindingType")] +pub use gen_GpuBindingType::*; + +#[cfg(feature = "GpuBlendDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuBlendDescriptor; +#[cfg(feature = "GpuBlendDescriptor")] +pub use gen_GpuBlendDescriptor::*; + +#[cfg(feature = "GpuBlendFactor")] +#[allow(non_snake_case)] +mod gen_GpuBlendFactor; +#[cfg(feature = "GpuBlendFactor")] +pub use gen_GpuBlendFactor::*; + +#[cfg(feature = "GpuBlendOperation")] +#[allow(non_snake_case)] +mod gen_GpuBlendOperation; +#[cfg(feature = "GpuBlendOperation")] +pub use gen_GpuBlendOperation::*; + +#[cfg(feature = "GpuBuffer")] +#[allow(non_snake_case)] +mod gen_GpuBuffer; +#[cfg(feature = "GpuBuffer")] +pub use gen_GpuBuffer::*; + +#[cfg(feature = "GpuBufferBinding")] +#[allow(non_snake_case)] +mod gen_GpuBufferBinding; +#[cfg(feature = "GpuBufferBinding")] +pub use gen_GpuBufferBinding::*; + +#[cfg(feature = "GpuBufferCopyView")] +#[allow(non_snake_case)] +mod gen_GpuBufferCopyView; +#[cfg(feature = "GpuBufferCopyView")] +pub use gen_GpuBufferCopyView::*; + +#[cfg(feature = "GpuBufferDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuBufferDescriptor; +#[cfg(feature = "GpuBufferDescriptor")] +pub use gen_GpuBufferDescriptor::*; + +#[cfg(feature = "GpuBufferUsage")] +#[allow(non_snake_case)] +mod gen_GpuBufferUsage; +#[cfg(feature = "GpuBufferUsage")] +pub use gen_GpuBufferUsage::*; + +#[cfg(feature = "GpuCanvasContext")] +#[allow(non_snake_case)] +mod gen_GpuCanvasContext; +#[cfg(feature = "GpuCanvasContext")] +pub use gen_GpuCanvasContext::*; + +#[cfg(feature = "GpuColorDict")] +#[allow(non_snake_case)] +mod gen_GpuColorDict; +#[cfg(feature = "GpuColorDict")] +pub use gen_GpuColorDict::*; + +#[cfg(feature = "GpuColorStateDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuColorStateDescriptor; +#[cfg(feature = "GpuColorStateDescriptor")] +pub use gen_GpuColorStateDescriptor::*; + +#[cfg(feature = "GpuColorWrite")] +#[allow(non_snake_case)] +mod gen_GpuColorWrite; +#[cfg(feature = "GpuColorWrite")] +pub use gen_GpuColorWrite::*; + +#[cfg(feature = "GpuCommandBuffer")] +#[allow(non_snake_case)] +mod gen_GpuCommandBuffer; +#[cfg(feature = "GpuCommandBuffer")] +pub use gen_GpuCommandBuffer::*; + +#[cfg(feature = "GpuCommandBufferDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuCommandBufferDescriptor; +#[cfg(feature = "GpuCommandBufferDescriptor")] +pub use gen_GpuCommandBufferDescriptor::*; + +#[cfg(feature = "GpuCommandEncoder")] +#[allow(non_snake_case)] +mod gen_GpuCommandEncoder; +#[cfg(feature = "GpuCommandEncoder")] +pub use gen_GpuCommandEncoder::*; + +#[cfg(feature = "GpuCommandEncoderDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuCommandEncoderDescriptor; +#[cfg(feature = "GpuCommandEncoderDescriptor")] +pub use gen_GpuCommandEncoderDescriptor::*; + +#[cfg(feature = "GpuCompareFunction")] +#[allow(non_snake_case)] +mod gen_GpuCompareFunction; +#[cfg(feature = "GpuCompareFunction")] +pub use gen_GpuCompareFunction::*; + +#[cfg(feature = "GpuComputePassDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuComputePassDescriptor; +#[cfg(feature = "GpuComputePassDescriptor")] +pub use gen_GpuComputePassDescriptor::*; + +#[cfg(feature = "GpuComputePassEncoder")] +#[allow(non_snake_case)] +mod gen_GpuComputePassEncoder; +#[cfg(feature = "GpuComputePassEncoder")] +pub use gen_GpuComputePassEncoder::*; + +#[cfg(feature = "GpuComputePipeline")] +#[allow(non_snake_case)] +mod gen_GpuComputePipeline; +#[cfg(feature = "GpuComputePipeline")] +pub use gen_GpuComputePipeline::*; + +#[cfg(feature = "GpuComputePipelineDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuComputePipelineDescriptor; +#[cfg(feature = "GpuComputePipelineDescriptor")] +pub use gen_GpuComputePipelineDescriptor::*; + +#[cfg(feature = "GpuCullMode")] +#[allow(non_snake_case)] +mod gen_GpuCullMode; +#[cfg(feature = "GpuCullMode")] +pub use gen_GpuCullMode::*; + +#[cfg(feature = "GpuDepthStencilStateDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuDepthStencilStateDescriptor; +#[cfg(feature = "GpuDepthStencilStateDescriptor")] +pub use gen_GpuDepthStencilStateDescriptor::*; + +#[cfg(feature = "GpuDevice")] +#[allow(non_snake_case)] +mod gen_GpuDevice; +#[cfg(feature = "GpuDevice")] +pub use gen_GpuDevice::*; + +#[cfg(feature = "GpuDeviceDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuDeviceDescriptor; +#[cfg(feature = "GpuDeviceDescriptor")] +pub use gen_GpuDeviceDescriptor::*; + +#[cfg(feature = "GpuDeviceLostInfo")] +#[allow(non_snake_case)] +mod gen_GpuDeviceLostInfo; +#[cfg(feature = "GpuDeviceLostInfo")] +pub use gen_GpuDeviceLostInfo::*; + +#[cfg(feature = "GpuErrorFilter")] +#[allow(non_snake_case)] +mod gen_GpuErrorFilter; +#[cfg(feature = "GpuErrorFilter")] +pub use gen_GpuErrorFilter::*; + +#[cfg(feature = "GpuExtensionName")] +#[allow(non_snake_case)] +mod gen_GpuExtensionName; +#[cfg(feature = "GpuExtensionName")] +pub use gen_GpuExtensionName::*; + +#[cfg(feature = "GpuExtent3dDict")] +#[allow(non_snake_case)] +mod gen_GpuExtent3dDict; +#[cfg(feature = "GpuExtent3dDict")] +pub use gen_GpuExtent3dDict::*; + +#[cfg(feature = "GpuFence")] +#[allow(non_snake_case)] +mod gen_GpuFence; +#[cfg(feature = "GpuFence")] +pub use gen_GpuFence::*; + +#[cfg(feature = "GpuFenceDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuFenceDescriptor; +#[cfg(feature = "GpuFenceDescriptor")] +pub use gen_GpuFenceDescriptor::*; + +#[cfg(feature = "GpuFilterMode")] +#[allow(non_snake_case)] +mod gen_GpuFilterMode; +#[cfg(feature = "GpuFilterMode")] +pub use gen_GpuFilterMode::*; + +#[cfg(feature = "GpuFrontFace")] +#[allow(non_snake_case)] +mod gen_GpuFrontFace; +#[cfg(feature = "GpuFrontFace")] +pub use gen_GpuFrontFace::*; + +#[cfg(feature = "GpuImageBitmapCopyView")] +#[allow(non_snake_case)] +mod gen_GpuImageBitmapCopyView; +#[cfg(feature = "GpuImageBitmapCopyView")] +pub use gen_GpuImageBitmapCopyView::*; + +#[cfg(feature = "GpuIndexFormat")] +#[allow(non_snake_case)] +mod gen_GpuIndexFormat; +#[cfg(feature = "GpuIndexFormat")] +pub use gen_GpuIndexFormat::*; + +#[cfg(feature = "GpuInputStepMode")] +#[allow(non_snake_case)] +mod gen_GpuInputStepMode; +#[cfg(feature = "GpuInputStepMode")] +pub use gen_GpuInputStepMode::*; + +#[cfg(feature = "GpuLimits")] +#[allow(non_snake_case)] +mod gen_GpuLimits; +#[cfg(feature = "GpuLimits")] +pub use gen_GpuLimits::*; + +#[cfg(feature = "GpuLoadOp")] +#[allow(non_snake_case)] +mod gen_GpuLoadOp; +#[cfg(feature = "GpuLoadOp")] +pub use gen_GpuLoadOp::*; + +#[cfg(feature = "GpuObjectDescriptorBase")] +#[allow(non_snake_case)] +mod gen_GpuObjectDescriptorBase; +#[cfg(feature = "GpuObjectDescriptorBase")] +pub use gen_GpuObjectDescriptorBase::*; + +#[cfg(feature = "GpuOrigin2dDict")] +#[allow(non_snake_case)] +mod gen_GpuOrigin2dDict; +#[cfg(feature = "GpuOrigin2dDict")] +pub use gen_GpuOrigin2dDict::*; + +#[cfg(feature = "GpuOrigin3dDict")] +#[allow(non_snake_case)] +mod gen_GpuOrigin3dDict; +#[cfg(feature = "GpuOrigin3dDict")] +pub use gen_GpuOrigin3dDict::*; + +#[cfg(feature = "GpuOutOfMemoryError")] +#[allow(non_snake_case)] +mod gen_GpuOutOfMemoryError; +#[cfg(feature = "GpuOutOfMemoryError")] +pub use gen_GpuOutOfMemoryError::*; + +#[cfg(feature = "GpuPipelineDescriptorBase")] +#[allow(non_snake_case)] +mod gen_GpuPipelineDescriptorBase; +#[cfg(feature = "GpuPipelineDescriptorBase")] +pub use gen_GpuPipelineDescriptorBase::*; + +#[cfg(feature = "GpuPipelineLayout")] +#[allow(non_snake_case)] +mod gen_GpuPipelineLayout; +#[cfg(feature = "GpuPipelineLayout")] +pub use gen_GpuPipelineLayout::*; + +#[cfg(feature = "GpuPipelineLayoutDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuPipelineLayoutDescriptor; +#[cfg(feature = "GpuPipelineLayoutDescriptor")] +pub use gen_GpuPipelineLayoutDescriptor::*; + +#[cfg(feature = "GpuPowerPreference")] +#[allow(non_snake_case)] +mod gen_GpuPowerPreference; +#[cfg(feature = "GpuPowerPreference")] +pub use gen_GpuPowerPreference::*; + +#[cfg(feature = "GpuPrimitiveTopology")] +#[allow(non_snake_case)] +mod gen_GpuPrimitiveTopology; +#[cfg(feature = "GpuPrimitiveTopology")] +pub use gen_GpuPrimitiveTopology::*; + +#[cfg(feature = "GpuProgrammableStageDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuProgrammableStageDescriptor; +#[cfg(feature = "GpuProgrammableStageDescriptor")] +pub use gen_GpuProgrammableStageDescriptor::*; + +#[cfg(feature = "GpuQueue")] +#[allow(non_snake_case)] +mod gen_GpuQueue; +#[cfg(feature = "GpuQueue")] +pub use gen_GpuQueue::*; + +#[cfg(feature = "GpuRasterizationStateDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuRasterizationStateDescriptor; +#[cfg(feature = "GpuRasterizationStateDescriptor")] +pub use gen_GpuRasterizationStateDescriptor::*; + +#[cfg(feature = "GpuRenderBundle")] +#[allow(non_snake_case)] +mod gen_GpuRenderBundle; +#[cfg(feature = "GpuRenderBundle")] +pub use gen_GpuRenderBundle::*; + +#[cfg(feature = "GpuRenderBundleDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuRenderBundleDescriptor; +#[cfg(feature = "GpuRenderBundleDescriptor")] +pub use gen_GpuRenderBundleDescriptor::*; + +#[cfg(feature = "GpuRenderBundleEncoder")] +#[allow(non_snake_case)] +mod gen_GpuRenderBundleEncoder; +#[cfg(feature = "GpuRenderBundleEncoder")] +pub use gen_GpuRenderBundleEncoder::*; + +#[cfg(feature = "GpuRenderBundleEncoderDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuRenderBundleEncoderDescriptor; +#[cfg(feature = "GpuRenderBundleEncoderDescriptor")] +pub use gen_GpuRenderBundleEncoderDescriptor::*; + +#[cfg(feature = "GpuRenderPassColorAttachmentDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuRenderPassColorAttachmentDescriptor; +#[cfg(feature = "GpuRenderPassColorAttachmentDescriptor")] +pub use gen_GpuRenderPassColorAttachmentDescriptor::*; + +#[cfg(feature = "GpuRenderPassDepthStencilAttachmentDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuRenderPassDepthStencilAttachmentDescriptor; +#[cfg(feature = "GpuRenderPassDepthStencilAttachmentDescriptor")] +pub use gen_GpuRenderPassDepthStencilAttachmentDescriptor::*; + +#[cfg(feature = "GpuRenderPassDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuRenderPassDescriptor; +#[cfg(feature = "GpuRenderPassDescriptor")] +pub use gen_GpuRenderPassDescriptor::*; + +#[cfg(feature = "GpuRenderPassEncoder")] +#[allow(non_snake_case)] +mod gen_GpuRenderPassEncoder; +#[cfg(feature = "GpuRenderPassEncoder")] +pub use gen_GpuRenderPassEncoder::*; + +#[cfg(feature = "GpuRenderPipeline")] +#[allow(non_snake_case)] +mod gen_GpuRenderPipeline; +#[cfg(feature = "GpuRenderPipeline")] +pub use gen_GpuRenderPipeline::*; + +#[cfg(feature = "GpuRenderPipelineDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuRenderPipelineDescriptor; +#[cfg(feature = "GpuRenderPipelineDescriptor")] +pub use gen_GpuRenderPipelineDescriptor::*; + +#[cfg(feature = "GpuRequestAdapterOptions")] +#[allow(non_snake_case)] +mod gen_GpuRequestAdapterOptions; +#[cfg(feature = "GpuRequestAdapterOptions")] +pub use gen_GpuRequestAdapterOptions::*; + +#[cfg(feature = "GpuSampler")] +#[allow(non_snake_case)] +mod gen_GpuSampler; +#[cfg(feature = "GpuSampler")] +pub use gen_GpuSampler::*; + +#[cfg(feature = "GpuSamplerDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuSamplerDescriptor; +#[cfg(feature = "GpuSamplerDescriptor")] +pub use gen_GpuSamplerDescriptor::*; + +#[cfg(feature = "GpuShaderModule")] +#[allow(non_snake_case)] +mod gen_GpuShaderModule; +#[cfg(feature = "GpuShaderModule")] +pub use gen_GpuShaderModule::*; + +#[cfg(feature = "GpuShaderModuleDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuShaderModuleDescriptor; +#[cfg(feature = "GpuShaderModuleDescriptor")] +pub use gen_GpuShaderModuleDescriptor::*; + +#[cfg(feature = "GpuShaderStage")] +#[allow(non_snake_case)] +mod gen_GpuShaderStage; +#[cfg(feature = "GpuShaderStage")] +pub use gen_GpuShaderStage::*; + +#[cfg(feature = "GpuStencilOperation")] +#[allow(non_snake_case)] +mod gen_GpuStencilOperation; +#[cfg(feature = "GpuStencilOperation")] +pub use gen_GpuStencilOperation::*; + +#[cfg(feature = "GpuStencilStateFaceDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuStencilStateFaceDescriptor; +#[cfg(feature = "GpuStencilStateFaceDescriptor")] +pub use gen_GpuStencilStateFaceDescriptor::*; + +#[cfg(feature = "GpuStoreOp")] +#[allow(non_snake_case)] +mod gen_GpuStoreOp; +#[cfg(feature = "GpuStoreOp")] +pub use gen_GpuStoreOp::*; + +#[cfg(feature = "GpuSwapChain")] +#[allow(non_snake_case)] +mod gen_GpuSwapChain; +#[cfg(feature = "GpuSwapChain")] +pub use gen_GpuSwapChain::*; + +#[cfg(feature = "GpuSwapChainDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuSwapChainDescriptor; +#[cfg(feature = "GpuSwapChainDescriptor")] +pub use gen_GpuSwapChainDescriptor::*; + +#[cfg(feature = "GpuTexture")] +#[allow(non_snake_case)] +mod gen_GpuTexture; +#[cfg(feature = "GpuTexture")] +pub use gen_GpuTexture::*; + +#[cfg(feature = "GpuTextureAspect")] +#[allow(non_snake_case)] +mod gen_GpuTextureAspect; +#[cfg(feature = "GpuTextureAspect")] +pub use gen_GpuTextureAspect::*; + +#[cfg(feature = "GpuTextureComponentType")] +#[allow(non_snake_case)] +mod gen_GpuTextureComponentType; +#[cfg(feature = "GpuTextureComponentType")] +pub use gen_GpuTextureComponentType::*; + +#[cfg(feature = "GpuTextureCopyView")] +#[allow(non_snake_case)] +mod gen_GpuTextureCopyView; +#[cfg(feature = "GpuTextureCopyView")] +pub use gen_GpuTextureCopyView::*; + +#[cfg(feature = "GpuTextureDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuTextureDescriptor; +#[cfg(feature = "GpuTextureDescriptor")] +pub use gen_GpuTextureDescriptor::*; + +#[cfg(feature = "GpuTextureDimension")] +#[allow(non_snake_case)] +mod gen_GpuTextureDimension; +#[cfg(feature = "GpuTextureDimension")] +pub use gen_GpuTextureDimension::*; + +#[cfg(feature = "GpuTextureFormat")] +#[allow(non_snake_case)] +mod gen_GpuTextureFormat; +#[cfg(feature = "GpuTextureFormat")] +pub use gen_GpuTextureFormat::*; + +#[cfg(feature = "GpuTextureUsage")] +#[allow(non_snake_case)] +mod gen_GpuTextureUsage; +#[cfg(feature = "GpuTextureUsage")] +pub use gen_GpuTextureUsage::*; + +#[cfg(feature = "GpuTextureView")] +#[allow(non_snake_case)] +mod gen_GpuTextureView; +#[cfg(feature = "GpuTextureView")] +pub use gen_GpuTextureView::*; + +#[cfg(feature = "GpuTextureViewDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuTextureViewDescriptor; +#[cfg(feature = "GpuTextureViewDescriptor")] +pub use gen_GpuTextureViewDescriptor::*; + +#[cfg(feature = "GpuTextureViewDimension")] +#[allow(non_snake_case)] +mod gen_GpuTextureViewDimension; +#[cfg(feature = "GpuTextureViewDimension")] +pub use gen_GpuTextureViewDimension::*; + +#[cfg(feature = "GpuUncapturedErrorEvent")] +#[allow(non_snake_case)] +mod gen_GpuUncapturedErrorEvent; +#[cfg(feature = "GpuUncapturedErrorEvent")] +pub use gen_GpuUncapturedErrorEvent::*; + +#[cfg(feature = "GpuUncapturedErrorEventInit")] +#[allow(non_snake_case)] +mod gen_GpuUncapturedErrorEventInit; +#[cfg(feature = "GpuUncapturedErrorEventInit")] +pub use gen_GpuUncapturedErrorEventInit::*; + +#[cfg(feature = "GpuValidationError")] +#[allow(non_snake_case)] +mod gen_GpuValidationError; +#[cfg(feature = "GpuValidationError")] +pub use gen_GpuValidationError::*; + +#[cfg(feature = "GpuVertexAttributeDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuVertexAttributeDescriptor; +#[cfg(feature = "GpuVertexAttributeDescriptor")] +pub use gen_GpuVertexAttributeDescriptor::*; + +#[cfg(feature = "GpuVertexBufferLayoutDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuVertexBufferLayoutDescriptor; +#[cfg(feature = "GpuVertexBufferLayoutDescriptor")] +pub use gen_GpuVertexBufferLayoutDescriptor::*; + +#[cfg(feature = "GpuVertexFormat")] +#[allow(non_snake_case)] +mod gen_GpuVertexFormat; +#[cfg(feature = "GpuVertexFormat")] +pub use gen_GpuVertexFormat::*; + +#[cfg(feature = "GpuVertexStateDescriptor")] +#[allow(non_snake_case)] +mod gen_GpuVertexStateDescriptor; +#[cfg(feature = "GpuVertexStateDescriptor")] +pub use gen_GpuVertexStateDescriptor::*; + +#[cfg(feature = "GridDeclaration")] +#[allow(non_snake_case)] +mod gen_GridDeclaration; +#[cfg(feature = "GridDeclaration")] +pub use gen_GridDeclaration::*; + +#[cfg(feature = "GridTrackState")] +#[allow(non_snake_case)] +mod gen_GridTrackState; +#[cfg(feature = "GridTrackState")] +pub use gen_GridTrackState::*; + +#[cfg(feature = "GroupedHistoryEventInit")] +#[allow(non_snake_case)] +mod gen_GroupedHistoryEventInit; +#[cfg(feature = "GroupedHistoryEventInit")] +pub use gen_GroupedHistoryEventInit::*; + +#[cfg(feature = "HalfOpenInfoDict")] +#[allow(non_snake_case)] +mod gen_HalfOpenInfoDict; +#[cfg(feature = "HalfOpenInfoDict")] +pub use gen_HalfOpenInfoDict::*; + +#[cfg(feature = "HashChangeEvent")] +#[allow(non_snake_case)] +mod gen_HashChangeEvent; +#[cfg(feature = "HashChangeEvent")] +pub use gen_HashChangeEvent::*; + +#[cfg(feature = "HashChangeEventInit")] +#[allow(non_snake_case)] +mod gen_HashChangeEventInit; +#[cfg(feature = "HashChangeEventInit")] +pub use gen_HashChangeEventInit::*; + +#[cfg(feature = "Headers")] +#[allow(non_snake_case)] +mod gen_Headers; +#[cfg(feature = "Headers")] +pub use gen_Headers::*; + +#[cfg(feature = "HeadersGuardEnum")] +#[allow(non_snake_case)] +mod gen_HeadersGuardEnum; +#[cfg(feature = "HeadersGuardEnum")] +pub use gen_HeadersGuardEnum::*; + +#[cfg(feature = "HiddenPluginEventInit")] +#[allow(non_snake_case)] +mod gen_HiddenPluginEventInit; +#[cfg(feature = "HiddenPluginEventInit")] +pub use gen_HiddenPluginEventInit::*; + +#[cfg(feature = "History")] +#[allow(non_snake_case)] +mod gen_History; +#[cfg(feature = "History")] +pub use gen_History::*; + +#[cfg(feature = "HitRegionOptions")] +#[allow(non_snake_case)] +mod gen_HitRegionOptions; +#[cfg(feature = "HitRegionOptions")] +pub use gen_HitRegionOptions::*; + +#[cfg(feature = "HkdfParams")] +#[allow(non_snake_case)] +mod gen_HkdfParams; +#[cfg(feature = "HkdfParams")] +pub use gen_HkdfParams::*; + +#[cfg(feature = "HmacDerivedKeyParams")] +#[allow(non_snake_case)] +mod gen_HmacDerivedKeyParams; +#[cfg(feature = "HmacDerivedKeyParams")] +pub use gen_HmacDerivedKeyParams::*; + +#[cfg(feature = "HmacImportParams")] +#[allow(non_snake_case)] +mod gen_HmacImportParams; +#[cfg(feature = "HmacImportParams")] +pub use gen_HmacImportParams::*; + +#[cfg(feature = "HmacKeyAlgorithm")] +#[allow(non_snake_case)] +mod gen_HmacKeyAlgorithm; +#[cfg(feature = "HmacKeyAlgorithm")] +pub use gen_HmacKeyAlgorithm::*; + +#[cfg(feature = "HmacKeyGenParams")] +#[allow(non_snake_case)] +mod gen_HmacKeyGenParams; +#[cfg(feature = "HmacKeyGenParams")] +pub use gen_HmacKeyGenParams::*; + +#[cfg(feature = "HtmlAllCollection")] +#[allow(non_snake_case)] +mod gen_HtmlAllCollection; +#[cfg(feature = "HtmlAllCollection")] +pub use gen_HtmlAllCollection::*; + +#[cfg(feature = "HtmlAnchorElement")] +#[allow(non_snake_case)] +mod gen_HtmlAnchorElement; +#[cfg(feature = "HtmlAnchorElement")] +pub use gen_HtmlAnchorElement::*; + +#[cfg(feature = "HtmlAreaElement")] +#[allow(non_snake_case)] +mod gen_HtmlAreaElement; +#[cfg(feature = "HtmlAreaElement")] +pub use gen_HtmlAreaElement::*; + +#[cfg(feature = "HtmlAudioElement")] +#[allow(non_snake_case)] +mod gen_HtmlAudioElement; +#[cfg(feature = "HtmlAudioElement")] +pub use gen_HtmlAudioElement::*; + +#[cfg(feature = "HtmlBaseElement")] +#[allow(non_snake_case)] +mod gen_HtmlBaseElement; +#[cfg(feature = "HtmlBaseElement")] +pub use gen_HtmlBaseElement::*; + +#[cfg(feature = "HtmlBodyElement")] +#[allow(non_snake_case)] +mod gen_HtmlBodyElement; +#[cfg(feature = "HtmlBodyElement")] +pub use gen_HtmlBodyElement::*; + +#[cfg(feature = "HtmlBrElement")] +#[allow(non_snake_case)] +mod gen_HtmlBrElement; +#[cfg(feature = "HtmlBrElement")] +pub use gen_HtmlBrElement::*; + +#[cfg(feature = "HtmlButtonElement")] +#[allow(non_snake_case)] +mod gen_HtmlButtonElement; +#[cfg(feature = "HtmlButtonElement")] +pub use gen_HtmlButtonElement::*; + +#[cfg(feature = "HtmlCanvasElement")] +#[allow(non_snake_case)] +mod gen_HtmlCanvasElement; +#[cfg(feature = "HtmlCanvasElement")] +pub use gen_HtmlCanvasElement::*; + +#[cfg(feature = "HtmlCollection")] +#[allow(non_snake_case)] +mod gen_HtmlCollection; +#[cfg(feature = "HtmlCollection")] +pub use gen_HtmlCollection::*; + +#[cfg(feature = "HtmlDListElement")] +#[allow(non_snake_case)] +mod gen_HtmlDListElement; +#[cfg(feature = "HtmlDListElement")] +pub use gen_HtmlDListElement::*; + +#[cfg(feature = "HtmlDataElement")] +#[allow(non_snake_case)] +mod gen_HtmlDataElement; +#[cfg(feature = "HtmlDataElement")] +pub use gen_HtmlDataElement::*; + +#[cfg(feature = "HtmlDataListElement")] +#[allow(non_snake_case)] +mod gen_HtmlDataListElement; +#[cfg(feature = "HtmlDataListElement")] +pub use gen_HtmlDataListElement::*; + +#[cfg(feature = "HtmlDetailsElement")] +#[allow(non_snake_case)] +mod gen_HtmlDetailsElement; +#[cfg(feature = "HtmlDetailsElement")] +pub use gen_HtmlDetailsElement::*; + +#[cfg(feature = "HtmlDialogElement")] +#[allow(non_snake_case)] +mod gen_HtmlDialogElement; +#[cfg(feature = "HtmlDialogElement")] +pub use gen_HtmlDialogElement::*; + +#[cfg(feature = "HtmlDirectoryElement")] +#[allow(non_snake_case)] +mod gen_HtmlDirectoryElement; +#[cfg(feature = "HtmlDirectoryElement")] +pub use gen_HtmlDirectoryElement::*; + +#[cfg(feature = "HtmlDivElement")] +#[allow(non_snake_case)] +mod gen_HtmlDivElement; +#[cfg(feature = "HtmlDivElement")] +pub use gen_HtmlDivElement::*; + +#[cfg(feature = "HtmlDocument")] +#[allow(non_snake_case)] +mod gen_HtmlDocument; +#[cfg(feature = "HtmlDocument")] +pub use gen_HtmlDocument::*; + +#[cfg(feature = "HtmlElement")] +#[allow(non_snake_case)] +mod gen_HtmlElement; +#[cfg(feature = "HtmlElement")] +pub use gen_HtmlElement::*; + +#[cfg(feature = "HtmlEmbedElement")] +#[allow(non_snake_case)] +mod gen_HtmlEmbedElement; +#[cfg(feature = "HtmlEmbedElement")] +pub use gen_HtmlEmbedElement::*; + +#[cfg(feature = "HtmlFieldSetElement")] +#[allow(non_snake_case)] +mod gen_HtmlFieldSetElement; +#[cfg(feature = "HtmlFieldSetElement")] +pub use gen_HtmlFieldSetElement::*; + +#[cfg(feature = "HtmlFontElement")] +#[allow(non_snake_case)] +mod gen_HtmlFontElement; +#[cfg(feature = "HtmlFontElement")] +pub use gen_HtmlFontElement::*; + +#[cfg(feature = "HtmlFormControlsCollection")] +#[allow(non_snake_case)] +mod gen_HtmlFormControlsCollection; +#[cfg(feature = "HtmlFormControlsCollection")] +pub use gen_HtmlFormControlsCollection::*; + +#[cfg(feature = "HtmlFormElement")] +#[allow(non_snake_case)] +mod gen_HtmlFormElement; +#[cfg(feature = "HtmlFormElement")] +pub use gen_HtmlFormElement::*; + +#[cfg(feature = "HtmlFrameElement")] +#[allow(non_snake_case)] +mod gen_HtmlFrameElement; +#[cfg(feature = "HtmlFrameElement")] +pub use gen_HtmlFrameElement::*; + +#[cfg(feature = "HtmlFrameSetElement")] +#[allow(non_snake_case)] +mod gen_HtmlFrameSetElement; +#[cfg(feature = "HtmlFrameSetElement")] +pub use gen_HtmlFrameSetElement::*; + +#[cfg(feature = "HtmlHeadElement")] +#[allow(non_snake_case)] +mod gen_HtmlHeadElement; +#[cfg(feature = "HtmlHeadElement")] +pub use gen_HtmlHeadElement::*; + +#[cfg(feature = "HtmlHeadingElement")] +#[allow(non_snake_case)] +mod gen_HtmlHeadingElement; +#[cfg(feature = "HtmlHeadingElement")] +pub use gen_HtmlHeadingElement::*; + +#[cfg(feature = "HtmlHrElement")] +#[allow(non_snake_case)] +mod gen_HtmlHrElement; +#[cfg(feature = "HtmlHrElement")] +pub use gen_HtmlHrElement::*; + +#[cfg(feature = "HtmlHtmlElement")] +#[allow(non_snake_case)] +mod gen_HtmlHtmlElement; +#[cfg(feature = "HtmlHtmlElement")] +pub use gen_HtmlHtmlElement::*; + +#[cfg(feature = "HtmlIFrameElement")] +#[allow(non_snake_case)] +mod gen_HtmlIFrameElement; +#[cfg(feature = "HtmlIFrameElement")] +pub use gen_HtmlIFrameElement::*; + +#[cfg(feature = "HtmlImageElement")] +#[allow(non_snake_case)] +mod gen_HtmlImageElement; +#[cfg(feature = "HtmlImageElement")] +pub use gen_HtmlImageElement::*; + +#[cfg(feature = "HtmlInputElement")] +#[allow(non_snake_case)] +mod gen_HtmlInputElement; +#[cfg(feature = "HtmlInputElement")] +pub use gen_HtmlInputElement::*; + +#[cfg(feature = "HtmlLabelElement")] +#[allow(non_snake_case)] +mod gen_HtmlLabelElement; +#[cfg(feature = "HtmlLabelElement")] +pub use gen_HtmlLabelElement::*; + +#[cfg(feature = "HtmlLegendElement")] +#[allow(non_snake_case)] +mod gen_HtmlLegendElement; +#[cfg(feature = "HtmlLegendElement")] +pub use gen_HtmlLegendElement::*; + +#[cfg(feature = "HtmlLiElement")] +#[allow(non_snake_case)] +mod gen_HtmlLiElement; +#[cfg(feature = "HtmlLiElement")] +pub use gen_HtmlLiElement::*; + +#[cfg(feature = "HtmlLinkElement")] +#[allow(non_snake_case)] +mod gen_HtmlLinkElement; +#[cfg(feature = "HtmlLinkElement")] +pub use gen_HtmlLinkElement::*; + +#[cfg(feature = "HtmlMapElement")] +#[allow(non_snake_case)] +mod gen_HtmlMapElement; +#[cfg(feature = "HtmlMapElement")] +pub use gen_HtmlMapElement::*; + +#[cfg(feature = "HtmlMediaElement")] +#[allow(non_snake_case)] +mod gen_HtmlMediaElement; +#[cfg(feature = "HtmlMediaElement")] +pub use gen_HtmlMediaElement::*; + +#[cfg(feature = "HtmlMenuElement")] +#[allow(non_snake_case)] +mod gen_HtmlMenuElement; +#[cfg(feature = "HtmlMenuElement")] +pub use gen_HtmlMenuElement::*; + +#[cfg(feature = "HtmlMenuItemElement")] +#[allow(non_snake_case)] +mod gen_HtmlMenuItemElement; +#[cfg(feature = "HtmlMenuItemElement")] +pub use gen_HtmlMenuItemElement::*; + +#[cfg(feature = "HtmlMetaElement")] +#[allow(non_snake_case)] +mod gen_HtmlMetaElement; +#[cfg(feature = "HtmlMetaElement")] +pub use gen_HtmlMetaElement::*; + +#[cfg(feature = "HtmlMeterElement")] +#[allow(non_snake_case)] +mod gen_HtmlMeterElement; +#[cfg(feature = "HtmlMeterElement")] +pub use gen_HtmlMeterElement::*; + +#[cfg(feature = "HtmlModElement")] +#[allow(non_snake_case)] +mod gen_HtmlModElement; +#[cfg(feature = "HtmlModElement")] +pub use gen_HtmlModElement::*; + +#[cfg(feature = "HtmlOListElement")] +#[allow(non_snake_case)] +mod gen_HtmlOListElement; +#[cfg(feature = "HtmlOListElement")] +pub use gen_HtmlOListElement::*; + +#[cfg(feature = "HtmlObjectElement")] +#[allow(non_snake_case)] +mod gen_HtmlObjectElement; +#[cfg(feature = "HtmlObjectElement")] +pub use gen_HtmlObjectElement::*; + +#[cfg(feature = "HtmlOptGroupElement")] +#[allow(non_snake_case)] +mod gen_HtmlOptGroupElement; +#[cfg(feature = "HtmlOptGroupElement")] +pub use gen_HtmlOptGroupElement::*; + +#[cfg(feature = "HtmlOptionElement")] +#[allow(non_snake_case)] +mod gen_HtmlOptionElement; +#[cfg(feature = "HtmlOptionElement")] +pub use gen_HtmlOptionElement::*; + +#[cfg(feature = "HtmlOptionsCollection")] +#[allow(non_snake_case)] +mod gen_HtmlOptionsCollection; +#[cfg(feature = "HtmlOptionsCollection")] +pub use gen_HtmlOptionsCollection::*; + +#[cfg(feature = "HtmlOutputElement")] +#[allow(non_snake_case)] +mod gen_HtmlOutputElement; +#[cfg(feature = "HtmlOutputElement")] +pub use gen_HtmlOutputElement::*; + +#[cfg(feature = "HtmlParagraphElement")] +#[allow(non_snake_case)] +mod gen_HtmlParagraphElement; +#[cfg(feature = "HtmlParagraphElement")] +pub use gen_HtmlParagraphElement::*; + +#[cfg(feature = "HtmlParamElement")] +#[allow(non_snake_case)] +mod gen_HtmlParamElement; +#[cfg(feature = "HtmlParamElement")] +pub use gen_HtmlParamElement::*; + +#[cfg(feature = "HtmlPictureElement")] +#[allow(non_snake_case)] +mod gen_HtmlPictureElement; +#[cfg(feature = "HtmlPictureElement")] +pub use gen_HtmlPictureElement::*; + +#[cfg(feature = "HtmlPreElement")] +#[allow(non_snake_case)] +mod gen_HtmlPreElement; +#[cfg(feature = "HtmlPreElement")] +pub use gen_HtmlPreElement::*; + +#[cfg(feature = "HtmlProgressElement")] +#[allow(non_snake_case)] +mod gen_HtmlProgressElement; +#[cfg(feature = "HtmlProgressElement")] +pub use gen_HtmlProgressElement::*; + +#[cfg(feature = "HtmlQuoteElement")] +#[allow(non_snake_case)] +mod gen_HtmlQuoteElement; +#[cfg(feature = "HtmlQuoteElement")] +pub use gen_HtmlQuoteElement::*; + +#[cfg(feature = "HtmlScriptElement")] +#[allow(non_snake_case)] +mod gen_HtmlScriptElement; +#[cfg(feature = "HtmlScriptElement")] +pub use gen_HtmlScriptElement::*; + +#[cfg(feature = "HtmlSelectElement")] +#[allow(non_snake_case)] +mod gen_HtmlSelectElement; +#[cfg(feature = "HtmlSelectElement")] +pub use gen_HtmlSelectElement::*; + +#[cfg(feature = "HtmlSlotElement")] +#[allow(non_snake_case)] +mod gen_HtmlSlotElement; +#[cfg(feature = "HtmlSlotElement")] +pub use gen_HtmlSlotElement::*; + +#[cfg(feature = "HtmlSourceElement")] +#[allow(non_snake_case)] +mod gen_HtmlSourceElement; +#[cfg(feature = "HtmlSourceElement")] +pub use gen_HtmlSourceElement::*; + +#[cfg(feature = "HtmlSpanElement")] +#[allow(non_snake_case)] +mod gen_HtmlSpanElement; +#[cfg(feature = "HtmlSpanElement")] +pub use gen_HtmlSpanElement::*; + +#[cfg(feature = "HtmlStyleElement")] +#[allow(non_snake_case)] +mod gen_HtmlStyleElement; +#[cfg(feature = "HtmlStyleElement")] +pub use gen_HtmlStyleElement::*; + +#[cfg(feature = "HtmlTableCaptionElement")] +#[allow(non_snake_case)] +mod gen_HtmlTableCaptionElement; +#[cfg(feature = "HtmlTableCaptionElement")] +pub use gen_HtmlTableCaptionElement::*; + +#[cfg(feature = "HtmlTableCellElement")] +#[allow(non_snake_case)] +mod gen_HtmlTableCellElement; +#[cfg(feature = "HtmlTableCellElement")] +pub use gen_HtmlTableCellElement::*; + +#[cfg(feature = "HtmlTableColElement")] +#[allow(non_snake_case)] +mod gen_HtmlTableColElement; +#[cfg(feature = "HtmlTableColElement")] +pub use gen_HtmlTableColElement::*; + +#[cfg(feature = "HtmlTableElement")] +#[allow(non_snake_case)] +mod gen_HtmlTableElement; +#[cfg(feature = "HtmlTableElement")] +pub use gen_HtmlTableElement::*; + +#[cfg(feature = "HtmlTableRowElement")] +#[allow(non_snake_case)] +mod gen_HtmlTableRowElement; +#[cfg(feature = "HtmlTableRowElement")] +pub use gen_HtmlTableRowElement::*; + +#[cfg(feature = "HtmlTableSectionElement")] +#[allow(non_snake_case)] +mod gen_HtmlTableSectionElement; +#[cfg(feature = "HtmlTableSectionElement")] +pub use gen_HtmlTableSectionElement::*; + +#[cfg(feature = "HtmlTemplateElement")] +#[allow(non_snake_case)] +mod gen_HtmlTemplateElement; +#[cfg(feature = "HtmlTemplateElement")] +pub use gen_HtmlTemplateElement::*; + +#[cfg(feature = "HtmlTextAreaElement")] +#[allow(non_snake_case)] +mod gen_HtmlTextAreaElement; +#[cfg(feature = "HtmlTextAreaElement")] +pub use gen_HtmlTextAreaElement::*; + +#[cfg(feature = "HtmlTimeElement")] +#[allow(non_snake_case)] +mod gen_HtmlTimeElement; +#[cfg(feature = "HtmlTimeElement")] +pub use gen_HtmlTimeElement::*; + +#[cfg(feature = "HtmlTitleElement")] +#[allow(non_snake_case)] +mod gen_HtmlTitleElement; +#[cfg(feature = "HtmlTitleElement")] +pub use gen_HtmlTitleElement::*; + +#[cfg(feature = "HtmlTrackElement")] +#[allow(non_snake_case)] +mod gen_HtmlTrackElement; +#[cfg(feature = "HtmlTrackElement")] +pub use gen_HtmlTrackElement::*; + +#[cfg(feature = "HtmlUListElement")] +#[allow(non_snake_case)] +mod gen_HtmlUListElement; +#[cfg(feature = "HtmlUListElement")] +pub use gen_HtmlUListElement::*; + +#[cfg(feature = "HtmlUnknownElement")] +#[allow(non_snake_case)] +mod gen_HtmlUnknownElement; +#[cfg(feature = "HtmlUnknownElement")] +pub use gen_HtmlUnknownElement::*; + +#[cfg(feature = "HtmlVideoElement")] +#[allow(non_snake_case)] +mod gen_HtmlVideoElement; +#[cfg(feature = "HtmlVideoElement")] +pub use gen_HtmlVideoElement::*; + +#[cfg(feature = "HttpConnDict")] +#[allow(non_snake_case)] +mod gen_HttpConnDict; +#[cfg(feature = "HttpConnDict")] +pub use gen_HttpConnDict::*; + +#[cfg(feature = "HttpConnInfo")] +#[allow(non_snake_case)] +mod gen_HttpConnInfo; +#[cfg(feature = "HttpConnInfo")] +pub use gen_HttpConnInfo::*; + +#[cfg(feature = "HttpConnectionElement")] +#[allow(non_snake_case)] +mod gen_HttpConnectionElement; +#[cfg(feature = "HttpConnectionElement")] +pub use gen_HttpConnectionElement::*; + +#[cfg(feature = "IdbCursor")] +#[allow(non_snake_case)] +mod gen_IdbCursor; +#[cfg(feature = "IdbCursor")] +pub use gen_IdbCursor::*; + +#[cfg(feature = "IdbCursorDirection")] +#[allow(non_snake_case)] +mod gen_IdbCursorDirection; +#[cfg(feature = "IdbCursorDirection")] +pub use gen_IdbCursorDirection::*; + +#[cfg(feature = "IdbCursorWithValue")] +#[allow(non_snake_case)] +mod gen_IdbCursorWithValue; +#[cfg(feature = "IdbCursorWithValue")] +pub use gen_IdbCursorWithValue::*; + +#[cfg(feature = "IdbDatabase")] +#[allow(non_snake_case)] +mod gen_IdbDatabase; +#[cfg(feature = "IdbDatabase")] +pub use gen_IdbDatabase::*; + +#[cfg(feature = "IdbFactory")] +#[allow(non_snake_case)] +mod gen_IdbFactory; +#[cfg(feature = "IdbFactory")] +pub use gen_IdbFactory::*; + +#[cfg(feature = "IdbFileHandle")] +#[allow(non_snake_case)] +mod gen_IdbFileHandle; +#[cfg(feature = "IdbFileHandle")] +pub use gen_IdbFileHandle::*; + +#[cfg(feature = "IdbFileMetadataParameters")] +#[allow(non_snake_case)] +mod gen_IdbFileMetadataParameters; +#[cfg(feature = "IdbFileMetadataParameters")] +pub use gen_IdbFileMetadataParameters::*; + +#[cfg(feature = "IdbFileRequest")] +#[allow(non_snake_case)] +mod gen_IdbFileRequest; +#[cfg(feature = "IdbFileRequest")] +pub use gen_IdbFileRequest::*; + +#[cfg(feature = "IdbIndex")] +#[allow(non_snake_case)] +mod gen_IdbIndex; +#[cfg(feature = "IdbIndex")] +pub use gen_IdbIndex::*; + +#[cfg(feature = "IdbIndexParameters")] +#[allow(non_snake_case)] +mod gen_IdbIndexParameters; +#[cfg(feature = "IdbIndexParameters")] +pub use gen_IdbIndexParameters::*; + +#[cfg(feature = "IdbKeyRange")] +#[allow(non_snake_case)] +mod gen_IdbKeyRange; +#[cfg(feature = "IdbKeyRange")] +pub use gen_IdbKeyRange::*; + +#[cfg(feature = "IdbLocaleAwareKeyRange")] +#[allow(non_snake_case)] +mod gen_IdbLocaleAwareKeyRange; +#[cfg(feature = "IdbLocaleAwareKeyRange")] +pub use gen_IdbLocaleAwareKeyRange::*; + +#[cfg(feature = "IdbMutableFile")] +#[allow(non_snake_case)] +mod gen_IdbMutableFile; +#[cfg(feature = "IdbMutableFile")] +pub use gen_IdbMutableFile::*; + +#[cfg(feature = "IdbObjectStore")] +#[allow(non_snake_case)] +mod gen_IdbObjectStore; +#[cfg(feature = "IdbObjectStore")] +pub use gen_IdbObjectStore::*; + +#[cfg(feature = "IdbObjectStoreParameters")] +#[allow(non_snake_case)] +mod gen_IdbObjectStoreParameters; +#[cfg(feature = "IdbObjectStoreParameters")] +pub use gen_IdbObjectStoreParameters::*; + +#[cfg(feature = "IdbOpenDbOptions")] +#[allow(non_snake_case)] +mod gen_IdbOpenDbOptions; +#[cfg(feature = "IdbOpenDbOptions")] +pub use gen_IdbOpenDbOptions::*; + +#[cfg(feature = "IdbOpenDbRequest")] +#[allow(non_snake_case)] +mod gen_IdbOpenDbRequest; +#[cfg(feature = "IdbOpenDbRequest")] +pub use gen_IdbOpenDbRequest::*; + +#[cfg(feature = "IdbRequest")] +#[allow(non_snake_case)] +mod gen_IdbRequest; +#[cfg(feature = "IdbRequest")] +pub use gen_IdbRequest::*; + +#[cfg(feature = "IdbRequestReadyState")] +#[allow(non_snake_case)] +mod gen_IdbRequestReadyState; +#[cfg(feature = "IdbRequestReadyState")] +pub use gen_IdbRequestReadyState::*; + +#[cfg(feature = "IdbTransaction")] +#[allow(non_snake_case)] +mod gen_IdbTransaction; +#[cfg(feature = "IdbTransaction")] +pub use gen_IdbTransaction::*; + +#[cfg(feature = "IdbTransactionMode")] +#[allow(non_snake_case)] +mod gen_IdbTransactionMode; +#[cfg(feature = "IdbTransactionMode")] +pub use gen_IdbTransactionMode::*; + +#[cfg(feature = "IdbVersionChangeEvent")] +#[allow(non_snake_case)] +mod gen_IdbVersionChangeEvent; +#[cfg(feature = "IdbVersionChangeEvent")] +pub use gen_IdbVersionChangeEvent::*; + +#[cfg(feature = "IdbVersionChangeEventInit")] +#[allow(non_snake_case)] +mod gen_IdbVersionChangeEventInit; +#[cfg(feature = "IdbVersionChangeEventInit")] +pub use gen_IdbVersionChangeEventInit::*; + +#[cfg(feature = "IdleDeadline")] +#[allow(non_snake_case)] +mod gen_IdleDeadline; +#[cfg(feature = "IdleDeadline")] +pub use gen_IdleDeadline::*; + +#[cfg(feature = "IdleRequestOptions")] +#[allow(non_snake_case)] +mod gen_IdleRequestOptions; +#[cfg(feature = "IdleRequestOptions")] +pub use gen_IdleRequestOptions::*; + +#[cfg(feature = "IirFilterNode")] +#[allow(non_snake_case)] +mod gen_IirFilterNode; +#[cfg(feature = "IirFilterNode")] +pub use gen_IirFilterNode::*; + +#[cfg(feature = "IirFilterOptions")] +#[allow(non_snake_case)] +mod gen_IirFilterOptions; +#[cfg(feature = "IirFilterOptions")] +pub use gen_IirFilterOptions::*; + +#[cfg(feature = "ImageBitmap")] +#[allow(non_snake_case)] +mod gen_ImageBitmap; +#[cfg(feature = "ImageBitmap")] +pub use gen_ImageBitmap::*; + +#[cfg(feature = "ImageBitmapFormat")] +#[allow(non_snake_case)] +mod gen_ImageBitmapFormat; +#[cfg(feature = "ImageBitmapFormat")] +pub use gen_ImageBitmapFormat::*; + +#[cfg(feature = "ImageBitmapRenderingContext")] +#[allow(non_snake_case)] +mod gen_ImageBitmapRenderingContext; +#[cfg(feature = "ImageBitmapRenderingContext")] +pub use gen_ImageBitmapRenderingContext::*; + +#[cfg(feature = "ImageCapture")] +#[allow(non_snake_case)] +mod gen_ImageCapture; +#[cfg(feature = "ImageCapture")] +pub use gen_ImageCapture::*; + +#[cfg(feature = "ImageCaptureError")] +#[allow(non_snake_case)] +mod gen_ImageCaptureError; +#[cfg(feature = "ImageCaptureError")] +pub use gen_ImageCaptureError::*; + +#[cfg(feature = "ImageCaptureErrorEvent")] +#[allow(non_snake_case)] +mod gen_ImageCaptureErrorEvent; +#[cfg(feature = "ImageCaptureErrorEvent")] +pub use gen_ImageCaptureErrorEvent::*; + +#[cfg(feature = "ImageCaptureErrorEventInit")] +#[allow(non_snake_case)] +mod gen_ImageCaptureErrorEventInit; +#[cfg(feature = "ImageCaptureErrorEventInit")] +pub use gen_ImageCaptureErrorEventInit::*; + +#[cfg(feature = "ImageData")] +#[allow(non_snake_case)] +mod gen_ImageData; +#[cfg(feature = "ImageData")] +pub use gen_ImageData::*; + +#[cfg(feature = "InputEvent")] +#[allow(non_snake_case)] +mod gen_InputEvent; +#[cfg(feature = "InputEvent")] +pub use gen_InputEvent::*; + +#[cfg(feature = "InputEventInit")] +#[allow(non_snake_case)] +mod gen_InputEventInit; +#[cfg(feature = "InputEventInit")] +pub use gen_InputEventInit::*; + +#[cfg(feature = "InstallTriggerData")] +#[allow(non_snake_case)] +mod gen_InstallTriggerData; +#[cfg(feature = "InstallTriggerData")] +pub use gen_InstallTriggerData::*; + +#[cfg(feature = "IntersectionObserver")] +#[allow(non_snake_case)] +mod gen_IntersectionObserver; +#[cfg(feature = "IntersectionObserver")] +pub use gen_IntersectionObserver::*; + +#[cfg(feature = "IntersectionObserverEntry")] +#[allow(non_snake_case)] +mod gen_IntersectionObserverEntry; +#[cfg(feature = "IntersectionObserverEntry")] +pub use gen_IntersectionObserverEntry::*; + +#[cfg(feature = "IntersectionObserverEntryInit")] +#[allow(non_snake_case)] +mod gen_IntersectionObserverEntryInit; +#[cfg(feature = "IntersectionObserverEntryInit")] +pub use gen_IntersectionObserverEntryInit::*; + +#[cfg(feature = "IntersectionObserverInit")] +#[allow(non_snake_case)] +mod gen_IntersectionObserverInit; +#[cfg(feature = "IntersectionObserverInit")] +pub use gen_IntersectionObserverInit::*; + +#[cfg(feature = "IntlUtils")] +#[allow(non_snake_case)] +mod gen_IntlUtils; +#[cfg(feature = "IntlUtils")] +pub use gen_IntlUtils::*; + +#[cfg(feature = "IterableKeyAndValueResult")] +#[allow(non_snake_case)] +mod gen_IterableKeyAndValueResult; +#[cfg(feature = "IterableKeyAndValueResult")] +pub use gen_IterableKeyAndValueResult::*; + +#[cfg(feature = "IterableKeyOrValueResult")] +#[allow(non_snake_case)] +mod gen_IterableKeyOrValueResult; +#[cfg(feature = "IterableKeyOrValueResult")] +pub use gen_IterableKeyOrValueResult::*; + +#[cfg(feature = "IterationCompositeOperation")] +#[allow(non_snake_case)] +mod gen_IterationCompositeOperation; +#[cfg(feature = "IterationCompositeOperation")] +pub use gen_IterationCompositeOperation::*; + +#[cfg(feature = "JsonWebKey")] +#[allow(non_snake_case)] +mod gen_JsonWebKey; +#[cfg(feature = "JsonWebKey")] +pub use gen_JsonWebKey::*; + +#[cfg(feature = "KeyAlgorithm")] +#[allow(non_snake_case)] +mod gen_KeyAlgorithm; +#[cfg(feature = "KeyAlgorithm")] +pub use gen_KeyAlgorithm::*; + +#[cfg(feature = "KeyEvent")] +#[allow(non_snake_case)] +mod gen_KeyEvent; +#[cfg(feature = "KeyEvent")] +pub use gen_KeyEvent::*; + +#[cfg(feature = "KeyIdsInitData")] +#[allow(non_snake_case)] +mod gen_KeyIdsInitData; +#[cfg(feature = "KeyIdsInitData")] +pub use gen_KeyIdsInitData::*; + +#[cfg(feature = "KeyboardEvent")] +#[allow(non_snake_case)] +mod gen_KeyboardEvent; +#[cfg(feature = "KeyboardEvent")] +pub use gen_KeyboardEvent::*; + +#[cfg(feature = "KeyboardEventInit")] +#[allow(non_snake_case)] +mod gen_KeyboardEventInit; +#[cfg(feature = "KeyboardEventInit")] +pub use gen_KeyboardEventInit::*; + +#[cfg(feature = "KeyframeEffect")] +#[allow(non_snake_case)] +mod gen_KeyframeEffect; +#[cfg(feature = "KeyframeEffect")] +pub use gen_KeyframeEffect::*; + +#[cfg(feature = "KeyframeEffectOptions")] +#[allow(non_snake_case)] +mod gen_KeyframeEffectOptions; +#[cfg(feature = "KeyframeEffectOptions")] +pub use gen_KeyframeEffectOptions::*; + +#[cfg(feature = "L10nElement")] +#[allow(non_snake_case)] +mod gen_L10nElement; +#[cfg(feature = "L10nElement")] +pub use gen_L10nElement::*; + +#[cfg(feature = "L10nValue")] +#[allow(non_snake_case)] +mod gen_L10nValue; +#[cfg(feature = "L10nValue")] +pub use gen_L10nValue::*; + +#[cfg(feature = "LifecycleCallbacks")] +#[allow(non_snake_case)] +mod gen_LifecycleCallbacks; +#[cfg(feature = "LifecycleCallbacks")] +pub use gen_LifecycleCallbacks::*; + +#[cfg(feature = "LineAlignSetting")] +#[allow(non_snake_case)] +mod gen_LineAlignSetting; +#[cfg(feature = "LineAlignSetting")] +pub use gen_LineAlignSetting::*; + +#[cfg(feature = "ListBoxObject")] +#[allow(non_snake_case)] +mod gen_ListBoxObject; +#[cfg(feature = "ListBoxObject")] +pub use gen_ListBoxObject::*; + +#[cfg(feature = "LocalMediaStream")] +#[allow(non_snake_case)] +mod gen_LocalMediaStream; +#[cfg(feature = "LocalMediaStream")] +pub use gen_LocalMediaStream::*; + +#[cfg(feature = "LocaleInfo")] +#[allow(non_snake_case)] +mod gen_LocaleInfo; +#[cfg(feature = "LocaleInfo")] +pub use gen_LocaleInfo::*; + +#[cfg(feature = "Location")] +#[allow(non_snake_case)] +mod gen_Location; +#[cfg(feature = "Location")] +pub use gen_Location::*; + +#[cfg(feature = "MediaCapabilities")] +#[allow(non_snake_case)] +mod gen_MediaCapabilities; +#[cfg(feature = "MediaCapabilities")] +pub use gen_MediaCapabilities::*; + +#[cfg(feature = "MediaCapabilitiesInfo")] +#[allow(non_snake_case)] +mod gen_MediaCapabilitiesInfo; +#[cfg(feature = "MediaCapabilitiesInfo")] +pub use gen_MediaCapabilitiesInfo::*; + +#[cfg(feature = "MediaConfiguration")] +#[allow(non_snake_case)] +mod gen_MediaConfiguration; +#[cfg(feature = "MediaConfiguration")] +pub use gen_MediaConfiguration::*; + +#[cfg(feature = "MediaDecodingConfiguration")] +#[allow(non_snake_case)] +mod gen_MediaDecodingConfiguration; +#[cfg(feature = "MediaDecodingConfiguration")] +pub use gen_MediaDecodingConfiguration::*; + +#[cfg(feature = "MediaDecodingType")] +#[allow(non_snake_case)] +mod gen_MediaDecodingType; +#[cfg(feature = "MediaDecodingType")] +pub use gen_MediaDecodingType::*; + +#[cfg(feature = "MediaDeviceInfo")] +#[allow(non_snake_case)] +mod gen_MediaDeviceInfo; +#[cfg(feature = "MediaDeviceInfo")] +pub use gen_MediaDeviceInfo::*; + +#[cfg(feature = "MediaDeviceKind")] +#[allow(non_snake_case)] +mod gen_MediaDeviceKind; +#[cfg(feature = "MediaDeviceKind")] +pub use gen_MediaDeviceKind::*; + +#[cfg(feature = "MediaDevices")] +#[allow(non_snake_case)] +mod gen_MediaDevices; +#[cfg(feature = "MediaDevices")] +pub use gen_MediaDevices::*; + +#[cfg(feature = "MediaElementAudioSourceNode")] +#[allow(non_snake_case)] +mod gen_MediaElementAudioSourceNode; +#[cfg(feature = "MediaElementAudioSourceNode")] +pub use gen_MediaElementAudioSourceNode::*; + +#[cfg(feature = "MediaElementAudioSourceOptions")] +#[allow(non_snake_case)] +mod gen_MediaElementAudioSourceOptions; +#[cfg(feature = "MediaElementAudioSourceOptions")] +pub use gen_MediaElementAudioSourceOptions::*; + +#[cfg(feature = "MediaEncodingConfiguration")] +#[allow(non_snake_case)] +mod gen_MediaEncodingConfiguration; +#[cfg(feature = "MediaEncodingConfiguration")] +pub use gen_MediaEncodingConfiguration::*; + +#[cfg(feature = "MediaEncodingType")] +#[allow(non_snake_case)] +mod gen_MediaEncodingType; +#[cfg(feature = "MediaEncodingType")] +pub use gen_MediaEncodingType::*; + +#[cfg(feature = "MediaEncryptedEvent")] +#[allow(non_snake_case)] +mod gen_MediaEncryptedEvent; +#[cfg(feature = "MediaEncryptedEvent")] +pub use gen_MediaEncryptedEvent::*; + +#[cfg(feature = "MediaError")] +#[allow(non_snake_case)] +mod gen_MediaError; +#[cfg(feature = "MediaError")] +pub use gen_MediaError::*; + +#[cfg(feature = "MediaKeyError")] +#[allow(non_snake_case)] +mod gen_MediaKeyError; +#[cfg(feature = "MediaKeyError")] +pub use gen_MediaKeyError::*; + +#[cfg(feature = "MediaKeyMessageEvent")] +#[allow(non_snake_case)] +mod gen_MediaKeyMessageEvent; +#[cfg(feature = "MediaKeyMessageEvent")] +pub use gen_MediaKeyMessageEvent::*; + +#[cfg(feature = "MediaKeyMessageEventInit")] +#[allow(non_snake_case)] +mod gen_MediaKeyMessageEventInit; +#[cfg(feature = "MediaKeyMessageEventInit")] +pub use gen_MediaKeyMessageEventInit::*; + +#[cfg(feature = "MediaKeyMessageType")] +#[allow(non_snake_case)] +mod gen_MediaKeyMessageType; +#[cfg(feature = "MediaKeyMessageType")] +pub use gen_MediaKeyMessageType::*; + +#[cfg(feature = "MediaKeyNeededEventInit")] +#[allow(non_snake_case)] +mod gen_MediaKeyNeededEventInit; +#[cfg(feature = "MediaKeyNeededEventInit")] +pub use gen_MediaKeyNeededEventInit::*; + +#[cfg(feature = "MediaKeySession")] +#[allow(non_snake_case)] +mod gen_MediaKeySession; +#[cfg(feature = "MediaKeySession")] +pub use gen_MediaKeySession::*; + +#[cfg(feature = "MediaKeySessionType")] +#[allow(non_snake_case)] +mod gen_MediaKeySessionType; +#[cfg(feature = "MediaKeySessionType")] +pub use gen_MediaKeySessionType::*; + +#[cfg(feature = "MediaKeyStatus")] +#[allow(non_snake_case)] +mod gen_MediaKeyStatus; +#[cfg(feature = "MediaKeyStatus")] +pub use gen_MediaKeyStatus::*; + +#[cfg(feature = "MediaKeyStatusMap")] +#[allow(non_snake_case)] +mod gen_MediaKeyStatusMap; +#[cfg(feature = "MediaKeyStatusMap")] +pub use gen_MediaKeyStatusMap::*; + +#[cfg(feature = "MediaKeySystemAccess")] +#[allow(non_snake_case)] +mod gen_MediaKeySystemAccess; +#[cfg(feature = "MediaKeySystemAccess")] +pub use gen_MediaKeySystemAccess::*; + +#[cfg(feature = "MediaKeySystemConfiguration")] +#[allow(non_snake_case)] +mod gen_MediaKeySystemConfiguration; +#[cfg(feature = "MediaKeySystemConfiguration")] +pub use gen_MediaKeySystemConfiguration::*; + +#[cfg(feature = "MediaKeySystemMediaCapability")] +#[allow(non_snake_case)] +mod gen_MediaKeySystemMediaCapability; +#[cfg(feature = "MediaKeySystemMediaCapability")] +pub use gen_MediaKeySystemMediaCapability::*; + +#[cfg(feature = "MediaKeySystemStatus")] +#[allow(non_snake_case)] +mod gen_MediaKeySystemStatus; +#[cfg(feature = "MediaKeySystemStatus")] +pub use gen_MediaKeySystemStatus::*; + +#[cfg(feature = "MediaKeys")] +#[allow(non_snake_case)] +mod gen_MediaKeys; +#[cfg(feature = "MediaKeys")] +pub use gen_MediaKeys::*; + +#[cfg(feature = "MediaKeysPolicy")] +#[allow(non_snake_case)] +mod gen_MediaKeysPolicy; +#[cfg(feature = "MediaKeysPolicy")] +pub use gen_MediaKeysPolicy::*; + +#[cfg(feature = "MediaKeysRequirement")] +#[allow(non_snake_case)] +mod gen_MediaKeysRequirement; +#[cfg(feature = "MediaKeysRequirement")] +pub use gen_MediaKeysRequirement::*; + +#[cfg(feature = "MediaList")] +#[allow(non_snake_case)] +mod gen_MediaList; +#[cfg(feature = "MediaList")] +pub use gen_MediaList::*; + +#[cfg(feature = "MediaQueryList")] +#[allow(non_snake_case)] +mod gen_MediaQueryList; +#[cfg(feature = "MediaQueryList")] +pub use gen_MediaQueryList::*; + +#[cfg(feature = "MediaQueryListEvent")] +#[allow(non_snake_case)] +mod gen_MediaQueryListEvent; +#[cfg(feature = "MediaQueryListEvent")] +pub use gen_MediaQueryListEvent::*; + +#[cfg(feature = "MediaQueryListEventInit")] +#[allow(non_snake_case)] +mod gen_MediaQueryListEventInit; +#[cfg(feature = "MediaQueryListEventInit")] +pub use gen_MediaQueryListEventInit::*; + +#[cfg(feature = "MediaRecorder")] +#[allow(non_snake_case)] +mod gen_MediaRecorder; +#[cfg(feature = "MediaRecorder")] +pub use gen_MediaRecorder::*; + +#[cfg(feature = "MediaRecorderErrorEvent")] +#[allow(non_snake_case)] +mod gen_MediaRecorderErrorEvent; +#[cfg(feature = "MediaRecorderErrorEvent")] +pub use gen_MediaRecorderErrorEvent::*; + +#[cfg(feature = "MediaRecorderErrorEventInit")] +#[allow(non_snake_case)] +mod gen_MediaRecorderErrorEventInit; +#[cfg(feature = "MediaRecorderErrorEventInit")] +pub use gen_MediaRecorderErrorEventInit::*; + +#[cfg(feature = "MediaRecorderOptions")] +#[allow(non_snake_case)] +mod gen_MediaRecorderOptions; +#[cfg(feature = "MediaRecorderOptions")] +pub use gen_MediaRecorderOptions::*; + +#[cfg(feature = "MediaSource")] +#[allow(non_snake_case)] +mod gen_MediaSource; +#[cfg(feature = "MediaSource")] +pub use gen_MediaSource::*; + +#[cfg(feature = "MediaSourceEndOfStreamError")] +#[allow(non_snake_case)] +mod gen_MediaSourceEndOfStreamError; +#[cfg(feature = "MediaSourceEndOfStreamError")] +pub use gen_MediaSourceEndOfStreamError::*; + +#[cfg(feature = "MediaSourceEnum")] +#[allow(non_snake_case)] +mod gen_MediaSourceEnum; +#[cfg(feature = "MediaSourceEnum")] +pub use gen_MediaSourceEnum::*; + +#[cfg(feature = "MediaSourceReadyState")] +#[allow(non_snake_case)] +mod gen_MediaSourceReadyState; +#[cfg(feature = "MediaSourceReadyState")] +pub use gen_MediaSourceReadyState::*; + +#[cfg(feature = "MediaStream")] +#[allow(non_snake_case)] +mod gen_MediaStream; +#[cfg(feature = "MediaStream")] +pub use gen_MediaStream::*; + +#[cfg(feature = "MediaStreamAudioDestinationNode")] +#[allow(non_snake_case)] +mod gen_MediaStreamAudioDestinationNode; +#[cfg(feature = "MediaStreamAudioDestinationNode")] +pub use gen_MediaStreamAudioDestinationNode::*; + +#[cfg(feature = "MediaStreamAudioSourceNode")] +#[allow(non_snake_case)] +mod gen_MediaStreamAudioSourceNode; +#[cfg(feature = "MediaStreamAudioSourceNode")] +pub use gen_MediaStreamAudioSourceNode::*; + +#[cfg(feature = "MediaStreamAudioSourceOptions")] +#[allow(non_snake_case)] +mod gen_MediaStreamAudioSourceOptions; +#[cfg(feature = "MediaStreamAudioSourceOptions")] +pub use gen_MediaStreamAudioSourceOptions::*; + +#[cfg(feature = "MediaStreamConstraints")] +#[allow(non_snake_case)] +mod gen_MediaStreamConstraints; +#[cfg(feature = "MediaStreamConstraints")] +pub use gen_MediaStreamConstraints::*; + +#[cfg(feature = "MediaStreamError")] +#[allow(non_snake_case)] +mod gen_MediaStreamError; +#[cfg(feature = "MediaStreamError")] +pub use gen_MediaStreamError::*; + +#[cfg(feature = "MediaStreamEvent")] +#[allow(non_snake_case)] +mod gen_MediaStreamEvent; +#[cfg(feature = "MediaStreamEvent")] +pub use gen_MediaStreamEvent::*; + +#[cfg(feature = "MediaStreamEventInit")] +#[allow(non_snake_case)] +mod gen_MediaStreamEventInit; +#[cfg(feature = "MediaStreamEventInit")] +pub use gen_MediaStreamEventInit::*; + +#[cfg(feature = "MediaStreamTrack")] +#[allow(non_snake_case)] +mod gen_MediaStreamTrack; +#[cfg(feature = "MediaStreamTrack")] +pub use gen_MediaStreamTrack::*; + +#[cfg(feature = "MediaStreamTrackEvent")] +#[allow(non_snake_case)] +mod gen_MediaStreamTrackEvent; +#[cfg(feature = "MediaStreamTrackEvent")] +pub use gen_MediaStreamTrackEvent::*; + +#[cfg(feature = "MediaStreamTrackEventInit")] +#[allow(non_snake_case)] +mod gen_MediaStreamTrackEventInit; +#[cfg(feature = "MediaStreamTrackEventInit")] +pub use gen_MediaStreamTrackEventInit::*; + +#[cfg(feature = "MediaStreamTrackState")] +#[allow(non_snake_case)] +mod gen_MediaStreamTrackState; +#[cfg(feature = "MediaStreamTrackState")] +pub use gen_MediaStreamTrackState::*; + +#[cfg(feature = "MediaTrackConstraintSet")] +#[allow(non_snake_case)] +mod gen_MediaTrackConstraintSet; +#[cfg(feature = "MediaTrackConstraintSet")] +pub use gen_MediaTrackConstraintSet::*; + +#[cfg(feature = "MediaTrackConstraints")] +#[allow(non_snake_case)] +mod gen_MediaTrackConstraints; +#[cfg(feature = "MediaTrackConstraints")] +pub use gen_MediaTrackConstraints::*; + +#[cfg(feature = "MediaTrackSettings")] +#[allow(non_snake_case)] +mod gen_MediaTrackSettings; +#[cfg(feature = "MediaTrackSettings")] +pub use gen_MediaTrackSettings::*; + +#[cfg(feature = "MediaTrackSupportedConstraints")] +#[allow(non_snake_case)] +mod gen_MediaTrackSupportedConstraints; +#[cfg(feature = "MediaTrackSupportedConstraints")] +pub use gen_MediaTrackSupportedConstraints::*; + +#[cfg(feature = "MessageChannel")] +#[allow(non_snake_case)] +mod gen_MessageChannel; +#[cfg(feature = "MessageChannel")] +pub use gen_MessageChannel::*; + +#[cfg(feature = "MessageEvent")] +#[allow(non_snake_case)] +mod gen_MessageEvent; +#[cfg(feature = "MessageEvent")] +pub use gen_MessageEvent::*; + +#[cfg(feature = "MessageEventInit")] +#[allow(non_snake_case)] +mod gen_MessageEventInit; +#[cfg(feature = "MessageEventInit")] +pub use gen_MessageEventInit::*; + +#[cfg(feature = "MessagePort")] +#[allow(non_snake_case)] +mod gen_MessagePort; +#[cfg(feature = "MessagePort")] +pub use gen_MessagePort::*; + +#[cfg(feature = "MidiAccess")] +#[allow(non_snake_case)] +mod gen_MidiAccess; +#[cfg(feature = "MidiAccess")] +pub use gen_MidiAccess::*; + +#[cfg(feature = "MidiConnectionEvent")] +#[allow(non_snake_case)] +mod gen_MidiConnectionEvent; +#[cfg(feature = "MidiConnectionEvent")] +pub use gen_MidiConnectionEvent::*; + +#[cfg(feature = "MidiConnectionEventInit")] +#[allow(non_snake_case)] +mod gen_MidiConnectionEventInit; +#[cfg(feature = "MidiConnectionEventInit")] +pub use gen_MidiConnectionEventInit::*; + +#[cfg(feature = "MidiInput")] +#[allow(non_snake_case)] +mod gen_MidiInput; +#[cfg(feature = "MidiInput")] +pub use gen_MidiInput::*; + +#[cfg(feature = "MidiInputMap")] +#[allow(non_snake_case)] +mod gen_MidiInputMap; +#[cfg(feature = "MidiInputMap")] +pub use gen_MidiInputMap::*; + +#[cfg(feature = "MidiMessageEvent")] +#[allow(non_snake_case)] +mod gen_MidiMessageEvent; +#[cfg(feature = "MidiMessageEvent")] +pub use gen_MidiMessageEvent::*; + +#[cfg(feature = "MidiMessageEventInit")] +#[allow(non_snake_case)] +mod gen_MidiMessageEventInit; +#[cfg(feature = "MidiMessageEventInit")] +pub use gen_MidiMessageEventInit::*; + +#[cfg(feature = "MidiOptions")] +#[allow(non_snake_case)] +mod gen_MidiOptions; +#[cfg(feature = "MidiOptions")] +pub use gen_MidiOptions::*; + +#[cfg(feature = "MidiOutput")] +#[allow(non_snake_case)] +mod gen_MidiOutput; +#[cfg(feature = "MidiOutput")] +pub use gen_MidiOutput::*; + +#[cfg(feature = "MidiOutputMap")] +#[allow(non_snake_case)] +mod gen_MidiOutputMap; +#[cfg(feature = "MidiOutputMap")] +pub use gen_MidiOutputMap::*; + +#[cfg(feature = "MidiPort")] +#[allow(non_snake_case)] +mod gen_MidiPort; +#[cfg(feature = "MidiPort")] +pub use gen_MidiPort::*; + +#[cfg(feature = "MidiPortConnectionState")] +#[allow(non_snake_case)] +mod gen_MidiPortConnectionState; +#[cfg(feature = "MidiPortConnectionState")] +pub use gen_MidiPortConnectionState::*; + +#[cfg(feature = "MidiPortDeviceState")] +#[allow(non_snake_case)] +mod gen_MidiPortDeviceState; +#[cfg(feature = "MidiPortDeviceState")] +pub use gen_MidiPortDeviceState::*; + +#[cfg(feature = "MidiPortType")] +#[allow(non_snake_case)] +mod gen_MidiPortType; +#[cfg(feature = "MidiPortType")] +pub use gen_MidiPortType::*; + +#[cfg(feature = "MimeType")] +#[allow(non_snake_case)] +mod gen_MimeType; +#[cfg(feature = "MimeType")] +pub use gen_MimeType::*; + +#[cfg(feature = "MimeTypeArray")] +#[allow(non_snake_case)] +mod gen_MimeTypeArray; +#[cfg(feature = "MimeTypeArray")] +pub use gen_MimeTypeArray::*; + +#[cfg(feature = "MouseEvent")] +#[allow(non_snake_case)] +mod gen_MouseEvent; +#[cfg(feature = "MouseEvent")] +pub use gen_MouseEvent::*; + +#[cfg(feature = "MouseEventInit")] +#[allow(non_snake_case)] +mod gen_MouseEventInit; +#[cfg(feature = "MouseEventInit")] +pub use gen_MouseEventInit::*; + +#[cfg(feature = "MouseScrollEvent")] +#[allow(non_snake_case)] +mod gen_MouseScrollEvent; +#[cfg(feature = "MouseScrollEvent")] +pub use gen_MouseScrollEvent::*; + +#[cfg(feature = "MozDebug")] +#[allow(non_snake_case)] +mod gen_MozDebug; +#[cfg(feature = "MozDebug")] +pub use gen_MozDebug::*; + +#[cfg(feature = "MutationEvent")] +#[allow(non_snake_case)] +mod gen_MutationEvent; +#[cfg(feature = "MutationEvent")] +pub use gen_MutationEvent::*; + +#[cfg(feature = "MutationObserver")] +#[allow(non_snake_case)] +mod gen_MutationObserver; +#[cfg(feature = "MutationObserver")] +pub use gen_MutationObserver::*; + +#[cfg(feature = "MutationObserverInit")] +#[allow(non_snake_case)] +mod gen_MutationObserverInit; +#[cfg(feature = "MutationObserverInit")] +pub use gen_MutationObserverInit::*; + +#[cfg(feature = "MutationObservingInfo")] +#[allow(non_snake_case)] +mod gen_MutationObservingInfo; +#[cfg(feature = "MutationObservingInfo")] +pub use gen_MutationObservingInfo::*; + +#[cfg(feature = "MutationRecord")] +#[allow(non_snake_case)] +mod gen_MutationRecord; +#[cfg(feature = "MutationRecord")] +pub use gen_MutationRecord::*; + +#[cfg(feature = "NamedNodeMap")] +#[allow(non_snake_case)] +mod gen_NamedNodeMap; +#[cfg(feature = "NamedNodeMap")] +pub use gen_NamedNodeMap::*; + +#[cfg(feature = "NativeOsFileReadOptions")] +#[allow(non_snake_case)] +mod gen_NativeOsFileReadOptions; +#[cfg(feature = "NativeOsFileReadOptions")] +pub use gen_NativeOsFileReadOptions::*; + +#[cfg(feature = "NativeOsFileWriteAtomicOptions")] +#[allow(non_snake_case)] +mod gen_NativeOsFileWriteAtomicOptions; +#[cfg(feature = "NativeOsFileWriteAtomicOptions")] +pub use gen_NativeOsFileWriteAtomicOptions::*; + +#[cfg(feature = "NavigationType")] +#[allow(non_snake_case)] +mod gen_NavigationType; +#[cfg(feature = "NavigationType")] +pub use gen_NavigationType::*; + +#[cfg(feature = "Navigator")] +#[allow(non_snake_case)] +mod gen_Navigator; +#[cfg(feature = "Navigator")] +pub use gen_Navigator::*; + +#[cfg(feature = "NavigatorAutomationInformation")] +#[allow(non_snake_case)] +mod gen_NavigatorAutomationInformation; +#[cfg(feature = "NavigatorAutomationInformation")] +pub use gen_NavigatorAutomationInformation::*; + +#[cfg(feature = "NetworkCommandOptions")] +#[allow(non_snake_case)] +mod gen_NetworkCommandOptions; +#[cfg(feature = "NetworkCommandOptions")] +pub use gen_NetworkCommandOptions::*; + +#[cfg(feature = "NetworkInformation")] +#[allow(non_snake_case)] +mod gen_NetworkInformation; +#[cfg(feature = "NetworkInformation")] +pub use gen_NetworkInformation::*; + +#[cfg(feature = "NetworkResultOptions")] +#[allow(non_snake_case)] +mod gen_NetworkResultOptions; +#[cfg(feature = "NetworkResultOptions")] +pub use gen_NetworkResultOptions::*; + +#[cfg(feature = "Node")] +#[allow(non_snake_case)] +mod gen_Node; +#[cfg(feature = "Node")] +pub use gen_Node::*; + +#[cfg(feature = "NodeFilter")] +#[allow(non_snake_case)] +mod gen_NodeFilter; +#[cfg(feature = "NodeFilter")] +pub use gen_NodeFilter::*; + +#[cfg(feature = "NodeIterator")] +#[allow(non_snake_case)] +mod gen_NodeIterator; +#[cfg(feature = "NodeIterator")] +pub use gen_NodeIterator::*; + +#[cfg(feature = "NodeList")] +#[allow(non_snake_case)] +mod gen_NodeList; +#[cfg(feature = "NodeList")] +pub use gen_NodeList::*; + +#[cfg(feature = "Notification")] +#[allow(non_snake_case)] +mod gen_Notification; +#[cfg(feature = "Notification")] +pub use gen_Notification::*; + +#[cfg(feature = "NotificationBehavior")] +#[allow(non_snake_case)] +mod gen_NotificationBehavior; +#[cfg(feature = "NotificationBehavior")] +pub use gen_NotificationBehavior::*; + +#[cfg(feature = "NotificationDirection")] +#[allow(non_snake_case)] +mod gen_NotificationDirection; +#[cfg(feature = "NotificationDirection")] +pub use gen_NotificationDirection::*; + +#[cfg(feature = "NotificationEvent")] +#[allow(non_snake_case)] +mod gen_NotificationEvent; +#[cfg(feature = "NotificationEvent")] +pub use gen_NotificationEvent::*; + +#[cfg(feature = "NotificationEventInit")] +#[allow(non_snake_case)] +mod gen_NotificationEventInit; +#[cfg(feature = "NotificationEventInit")] +pub use gen_NotificationEventInit::*; + +#[cfg(feature = "NotificationOptions")] +#[allow(non_snake_case)] +mod gen_NotificationOptions; +#[cfg(feature = "NotificationOptions")] +pub use gen_NotificationOptions::*; + +#[cfg(feature = "NotificationPermission")] +#[allow(non_snake_case)] +mod gen_NotificationPermission; +#[cfg(feature = "NotificationPermission")] +pub use gen_NotificationPermission::*; + +#[cfg(feature = "ObserverCallback")] +#[allow(non_snake_case)] +mod gen_ObserverCallback; +#[cfg(feature = "ObserverCallback")] +pub use gen_ObserverCallback::*; + +#[cfg(feature = "OesElementIndexUint")] +#[allow(non_snake_case)] +mod gen_OesElementIndexUint; +#[cfg(feature = "OesElementIndexUint")] +pub use gen_OesElementIndexUint::*; + +#[cfg(feature = "OesStandardDerivatives")] +#[allow(non_snake_case)] +mod gen_OesStandardDerivatives; +#[cfg(feature = "OesStandardDerivatives")] +pub use gen_OesStandardDerivatives::*; + +#[cfg(feature = "OesTextureFloat")] +#[allow(non_snake_case)] +mod gen_OesTextureFloat; +#[cfg(feature = "OesTextureFloat")] +pub use gen_OesTextureFloat::*; + +#[cfg(feature = "OesTextureFloatLinear")] +#[allow(non_snake_case)] +mod gen_OesTextureFloatLinear; +#[cfg(feature = "OesTextureFloatLinear")] +pub use gen_OesTextureFloatLinear::*; + +#[cfg(feature = "OesTextureHalfFloat")] +#[allow(non_snake_case)] +mod gen_OesTextureHalfFloat; +#[cfg(feature = "OesTextureHalfFloat")] +pub use gen_OesTextureHalfFloat::*; + +#[cfg(feature = "OesTextureHalfFloatLinear")] +#[allow(non_snake_case)] +mod gen_OesTextureHalfFloatLinear; +#[cfg(feature = "OesTextureHalfFloatLinear")] +pub use gen_OesTextureHalfFloatLinear::*; + +#[cfg(feature = "OesVertexArrayObject")] +#[allow(non_snake_case)] +mod gen_OesVertexArrayObject; +#[cfg(feature = "OesVertexArrayObject")] +pub use gen_OesVertexArrayObject::*; + +#[cfg(feature = "OfflineAudioCompletionEvent")] +#[allow(non_snake_case)] +mod gen_OfflineAudioCompletionEvent; +#[cfg(feature = "OfflineAudioCompletionEvent")] +pub use gen_OfflineAudioCompletionEvent::*; + +#[cfg(feature = "OfflineAudioCompletionEventInit")] +#[allow(non_snake_case)] +mod gen_OfflineAudioCompletionEventInit; +#[cfg(feature = "OfflineAudioCompletionEventInit")] +pub use gen_OfflineAudioCompletionEventInit::*; + +#[cfg(feature = "OfflineAudioContext")] +#[allow(non_snake_case)] +mod gen_OfflineAudioContext; +#[cfg(feature = "OfflineAudioContext")] +pub use gen_OfflineAudioContext::*; + +#[cfg(feature = "OfflineAudioContextOptions")] +#[allow(non_snake_case)] +mod gen_OfflineAudioContextOptions; +#[cfg(feature = "OfflineAudioContextOptions")] +pub use gen_OfflineAudioContextOptions::*; + +#[cfg(feature = "OfflineResourceList")] +#[allow(non_snake_case)] +mod gen_OfflineResourceList; +#[cfg(feature = "OfflineResourceList")] +pub use gen_OfflineResourceList::*; + +#[cfg(feature = "OffscreenCanvas")] +#[allow(non_snake_case)] +mod gen_OffscreenCanvas; +#[cfg(feature = "OffscreenCanvas")] +pub use gen_OffscreenCanvas::*; + +#[cfg(feature = "OpenWindowEventDetail")] +#[allow(non_snake_case)] +mod gen_OpenWindowEventDetail; +#[cfg(feature = "OpenWindowEventDetail")] +pub use gen_OpenWindowEventDetail::*; + +#[cfg(feature = "OptionalEffectTiming")] +#[allow(non_snake_case)] +mod gen_OptionalEffectTiming; +#[cfg(feature = "OptionalEffectTiming")] +pub use gen_OptionalEffectTiming::*; + +#[cfg(feature = "OrientationLockType")] +#[allow(non_snake_case)] +mod gen_OrientationLockType; +#[cfg(feature = "OrientationLockType")] +pub use gen_OrientationLockType::*; + +#[cfg(feature = "OrientationType")] +#[allow(non_snake_case)] +mod gen_OrientationType; +#[cfg(feature = "OrientationType")] +pub use gen_OrientationType::*; + +#[cfg(feature = "OscillatorNode")] +#[allow(non_snake_case)] +mod gen_OscillatorNode; +#[cfg(feature = "OscillatorNode")] +pub use gen_OscillatorNode::*; + +#[cfg(feature = "OscillatorOptions")] +#[allow(non_snake_case)] +mod gen_OscillatorOptions; +#[cfg(feature = "OscillatorOptions")] +pub use gen_OscillatorOptions::*; + +#[cfg(feature = "OscillatorType")] +#[allow(non_snake_case)] +mod gen_OscillatorType; +#[cfg(feature = "OscillatorType")] +pub use gen_OscillatorType::*; + +#[cfg(feature = "OverSampleType")] +#[allow(non_snake_case)] +mod gen_OverSampleType; +#[cfg(feature = "OverSampleType")] +pub use gen_OverSampleType::*; + +#[cfg(feature = "PageTransitionEvent")] +#[allow(non_snake_case)] +mod gen_PageTransitionEvent; +#[cfg(feature = "PageTransitionEvent")] +pub use gen_PageTransitionEvent::*; + +#[cfg(feature = "PageTransitionEventInit")] +#[allow(non_snake_case)] +mod gen_PageTransitionEventInit; +#[cfg(feature = "PageTransitionEventInit")] +pub use gen_PageTransitionEventInit::*; + +#[cfg(feature = "PaintRequest")] +#[allow(non_snake_case)] +mod gen_PaintRequest; +#[cfg(feature = "PaintRequest")] +pub use gen_PaintRequest::*; + +#[cfg(feature = "PaintRequestList")] +#[allow(non_snake_case)] +mod gen_PaintRequestList; +#[cfg(feature = "PaintRequestList")] +pub use gen_PaintRequestList::*; + +#[cfg(feature = "PaintWorkletGlobalScope")] +#[allow(non_snake_case)] +mod gen_PaintWorkletGlobalScope; +#[cfg(feature = "PaintWorkletGlobalScope")] +pub use gen_PaintWorkletGlobalScope::*; + +#[cfg(feature = "PannerNode")] +#[allow(non_snake_case)] +mod gen_PannerNode; +#[cfg(feature = "PannerNode")] +pub use gen_PannerNode::*; + +#[cfg(feature = "PannerOptions")] +#[allow(non_snake_case)] +mod gen_PannerOptions; +#[cfg(feature = "PannerOptions")] +pub use gen_PannerOptions::*; + +#[cfg(feature = "PanningModelType")] +#[allow(non_snake_case)] +mod gen_PanningModelType; +#[cfg(feature = "PanningModelType")] +pub use gen_PanningModelType::*; + +#[cfg(feature = "Path2d")] +#[allow(non_snake_case)] +mod gen_Path2d; +#[cfg(feature = "Path2d")] +pub use gen_Path2d::*; + +#[cfg(feature = "PaymentAddress")] +#[allow(non_snake_case)] +mod gen_PaymentAddress; +#[cfg(feature = "PaymentAddress")] +pub use gen_PaymentAddress::*; + +#[cfg(feature = "PaymentComplete")] +#[allow(non_snake_case)] +mod gen_PaymentComplete; +#[cfg(feature = "PaymentComplete")] +pub use gen_PaymentComplete::*; + +#[cfg(feature = "PaymentMethodChangeEvent")] +#[allow(non_snake_case)] +mod gen_PaymentMethodChangeEvent; +#[cfg(feature = "PaymentMethodChangeEvent")] +pub use gen_PaymentMethodChangeEvent::*; + +#[cfg(feature = "PaymentMethodChangeEventInit")] +#[allow(non_snake_case)] +mod gen_PaymentMethodChangeEventInit; +#[cfg(feature = "PaymentMethodChangeEventInit")] +pub use gen_PaymentMethodChangeEventInit::*; + +#[cfg(feature = "PaymentRequestUpdateEvent")] +#[allow(non_snake_case)] +mod gen_PaymentRequestUpdateEvent; +#[cfg(feature = "PaymentRequestUpdateEvent")] +pub use gen_PaymentRequestUpdateEvent::*; + +#[cfg(feature = "PaymentRequestUpdateEventInit")] +#[allow(non_snake_case)] +mod gen_PaymentRequestUpdateEventInit; +#[cfg(feature = "PaymentRequestUpdateEventInit")] +pub use gen_PaymentRequestUpdateEventInit::*; + +#[cfg(feature = "PaymentResponse")] +#[allow(non_snake_case)] +mod gen_PaymentResponse; +#[cfg(feature = "PaymentResponse")] +pub use gen_PaymentResponse::*; + +#[cfg(feature = "Pbkdf2Params")] +#[allow(non_snake_case)] +mod gen_Pbkdf2Params; +#[cfg(feature = "Pbkdf2Params")] +pub use gen_Pbkdf2Params::*; + +#[cfg(feature = "PcImplIceConnectionState")] +#[allow(non_snake_case)] +mod gen_PcImplIceConnectionState; +#[cfg(feature = "PcImplIceConnectionState")] +pub use gen_PcImplIceConnectionState::*; + +#[cfg(feature = "PcImplIceGatheringState")] +#[allow(non_snake_case)] +mod gen_PcImplIceGatheringState; +#[cfg(feature = "PcImplIceGatheringState")] +pub use gen_PcImplIceGatheringState::*; + +#[cfg(feature = "PcImplSignalingState")] +#[allow(non_snake_case)] +mod gen_PcImplSignalingState; +#[cfg(feature = "PcImplSignalingState")] +pub use gen_PcImplSignalingState::*; + +#[cfg(feature = "PcObserverStateType")] +#[allow(non_snake_case)] +mod gen_PcObserverStateType; +#[cfg(feature = "PcObserverStateType")] +pub use gen_PcObserverStateType::*; + +#[cfg(feature = "Performance")] +#[allow(non_snake_case)] +mod gen_Performance; +#[cfg(feature = "Performance")] +pub use gen_Performance::*; + +#[cfg(feature = "PerformanceEntry")] +#[allow(non_snake_case)] +mod gen_PerformanceEntry; +#[cfg(feature = "PerformanceEntry")] +pub use gen_PerformanceEntry::*; + +#[cfg(feature = "PerformanceEntryEventInit")] +#[allow(non_snake_case)] +mod gen_PerformanceEntryEventInit; +#[cfg(feature = "PerformanceEntryEventInit")] +pub use gen_PerformanceEntryEventInit::*; + +#[cfg(feature = "PerformanceEntryFilterOptions")] +#[allow(non_snake_case)] +mod gen_PerformanceEntryFilterOptions; +#[cfg(feature = "PerformanceEntryFilterOptions")] +pub use gen_PerformanceEntryFilterOptions::*; + +#[cfg(feature = "PerformanceMark")] +#[allow(non_snake_case)] +mod gen_PerformanceMark; +#[cfg(feature = "PerformanceMark")] +pub use gen_PerformanceMark::*; + +#[cfg(feature = "PerformanceMeasure")] +#[allow(non_snake_case)] +mod gen_PerformanceMeasure; +#[cfg(feature = "PerformanceMeasure")] +pub use gen_PerformanceMeasure::*; + +#[cfg(feature = "PerformanceNavigation")] +#[allow(non_snake_case)] +mod gen_PerformanceNavigation; +#[cfg(feature = "PerformanceNavigation")] +pub use gen_PerformanceNavigation::*; + +#[cfg(feature = "PerformanceNavigationTiming")] +#[allow(non_snake_case)] +mod gen_PerformanceNavigationTiming; +#[cfg(feature = "PerformanceNavigationTiming")] +pub use gen_PerformanceNavigationTiming::*; + +#[cfg(feature = "PerformanceObserver")] +#[allow(non_snake_case)] +mod gen_PerformanceObserver; +#[cfg(feature = "PerformanceObserver")] +pub use gen_PerformanceObserver::*; + +#[cfg(feature = "PerformanceObserverEntryList")] +#[allow(non_snake_case)] +mod gen_PerformanceObserverEntryList; +#[cfg(feature = "PerformanceObserverEntryList")] +pub use gen_PerformanceObserverEntryList::*; + +#[cfg(feature = "PerformanceObserverInit")] +#[allow(non_snake_case)] +mod gen_PerformanceObserverInit; +#[cfg(feature = "PerformanceObserverInit")] +pub use gen_PerformanceObserverInit::*; + +#[cfg(feature = "PerformanceResourceTiming")] +#[allow(non_snake_case)] +mod gen_PerformanceResourceTiming; +#[cfg(feature = "PerformanceResourceTiming")] +pub use gen_PerformanceResourceTiming::*; + +#[cfg(feature = "PerformanceServerTiming")] +#[allow(non_snake_case)] +mod gen_PerformanceServerTiming; +#[cfg(feature = "PerformanceServerTiming")] +pub use gen_PerformanceServerTiming::*; + +#[cfg(feature = "PerformanceTiming")] +#[allow(non_snake_case)] +mod gen_PerformanceTiming; +#[cfg(feature = "PerformanceTiming")] +pub use gen_PerformanceTiming::*; + +#[cfg(feature = "PeriodicWave")] +#[allow(non_snake_case)] +mod gen_PeriodicWave; +#[cfg(feature = "PeriodicWave")] +pub use gen_PeriodicWave::*; + +#[cfg(feature = "PeriodicWaveConstraints")] +#[allow(non_snake_case)] +mod gen_PeriodicWaveConstraints; +#[cfg(feature = "PeriodicWaveConstraints")] +pub use gen_PeriodicWaveConstraints::*; + +#[cfg(feature = "PeriodicWaveOptions")] +#[allow(non_snake_case)] +mod gen_PeriodicWaveOptions; +#[cfg(feature = "PeriodicWaveOptions")] +pub use gen_PeriodicWaveOptions::*; + +#[cfg(feature = "PermissionDescriptor")] +#[allow(non_snake_case)] +mod gen_PermissionDescriptor; +#[cfg(feature = "PermissionDescriptor")] +pub use gen_PermissionDescriptor::*; + +#[cfg(feature = "PermissionName")] +#[allow(non_snake_case)] +mod gen_PermissionName; +#[cfg(feature = "PermissionName")] +pub use gen_PermissionName::*; + +#[cfg(feature = "PermissionState")] +#[allow(non_snake_case)] +mod gen_PermissionState; +#[cfg(feature = "PermissionState")] +pub use gen_PermissionState::*; + +#[cfg(feature = "PermissionStatus")] +#[allow(non_snake_case)] +mod gen_PermissionStatus; +#[cfg(feature = "PermissionStatus")] +pub use gen_PermissionStatus::*; + +#[cfg(feature = "Permissions")] +#[allow(non_snake_case)] +mod gen_Permissions; +#[cfg(feature = "Permissions")] +pub use gen_Permissions::*; + +#[cfg(feature = "PlaybackDirection")] +#[allow(non_snake_case)] +mod gen_PlaybackDirection; +#[cfg(feature = "PlaybackDirection")] +pub use gen_PlaybackDirection::*; + +#[cfg(feature = "Plugin")] +#[allow(non_snake_case)] +mod gen_Plugin; +#[cfg(feature = "Plugin")] +pub use gen_Plugin::*; + +#[cfg(feature = "PluginArray")] +#[allow(non_snake_case)] +mod gen_PluginArray; +#[cfg(feature = "PluginArray")] +pub use gen_PluginArray::*; + +#[cfg(feature = "PluginCrashedEventInit")] +#[allow(non_snake_case)] +mod gen_PluginCrashedEventInit; +#[cfg(feature = "PluginCrashedEventInit")] +pub use gen_PluginCrashedEventInit::*; + +#[cfg(feature = "PointerEvent")] +#[allow(non_snake_case)] +mod gen_PointerEvent; +#[cfg(feature = "PointerEvent")] +pub use gen_PointerEvent::*; + +#[cfg(feature = "PointerEventInit")] +#[allow(non_snake_case)] +mod gen_PointerEventInit; +#[cfg(feature = "PointerEventInit")] +pub use gen_PointerEventInit::*; + +#[cfg(feature = "PopStateEvent")] +#[allow(non_snake_case)] +mod gen_PopStateEvent; +#[cfg(feature = "PopStateEvent")] +pub use gen_PopStateEvent::*; + +#[cfg(feature = "PopStateEventInit")] +#[allow(non_snake_case)] +mod gen_PopStateEventInit; +#[cfg(feature = "PopStateEventInit")] +pub use gen_PopStateEventInit::*; + +#[cfg(feature = "PopupBlockedEvent")] +#[allow(non_snake_case)] +mod gen_PopupBlockedEvent; +#[cfg(feature = "PopupBlockedEvent")] +pub use gen_PopupBlockedEvent::*; + +#[cfg(feature = "PopupBlockedEventInit")] +#[allow(non_snake_case)] +mod gen_PopupBlockedEventInit; +#[cfg(feature = "PopupBlockedEventInit")] +pub use gen_PopupBlockedEventInit::*; + +#[cfg(feature = "Position")] +#[allow(non_snake_case)] +mod gen_Position; +#[cfg(feature = "Position")] +pub use gen_Position::*; + +#[cfg(feature = "PositionAlignSetting")] +#[allow(non_snake_case)] +mod gen_PositionAlignSetting; +#[cfg(feature = "PositionAlignSetting")] +pub use gen_PositionAlignSetting::*; + +#[cfg(feature = "PositionError")] +#[allow(non_snake_case)] +mod gen_PositionError; +#[cfg(feature = "PositionError")] +pub use gen_PositionError::*; + +#[cfg(feature = "PositionOptions")] +#[allow(non_snake_case)] +mod gen_PositionOptions; +#[cfg(feature = "PositionOptions")] +pub use gen_PositionOptions::*; + +#[cfg(feature = "Presentation")] +#[allow(non_snake_case)] +mod gen_Presentation; +#[cfg(feature = "Presentation")] +pub use gen_Presentation::*; + +#[cfg(feature = "PresentationAvailability")] +#[allow(non_snake_case)] +mod gen_PresentationAvailability; +#[cfg(feature = "PresentationAvailability")] +pub use gen_PresentationAvailability::*; + +#[cfg(feature = "PresentationConnection")] +#[allow(non_snake_case)] +mod gen_PresentationConnection; +#[cfg(feature = "PresentationConnection")] +pub use gen_PresentationConnection::*; + +#[cfg(feature = "PresentationConnectionAvailableEvent")] +#[allow(non_snake_case)] +mod gen_PresentationConnectionAvailableEvent; +#[cfg(feature = "PresentationConnectionAvailableEvent")] +pub use gen_PresentationConnectionAvailableEvent::*; + +#[cfg(feature = "PresentationConnectionAvailableEventInit")] +#[allow(non_snake_case)] +mod gen_PresentationConnectionAvailableEventInit; +#[cfg(feature = "PresentationConnectionAvailableEventInit")] +pub use gen_PresentationConnectionAvailableEventInit::*; + +#[cfg(feature = "PresentationConnectionBinaryType")] +#[allow(non_snake_case)] +mod gen_PresentationConnectionBinaryType; +#[cfg(feature = "PresentationConnectionBinaryType")] +pub use gen_PresentationConnectionBinaryType::*; + +#[cfg(feature = "PresentationConnectionCloseEvent")] +#[allow(non_snake_case)] +mod gen_PresentationConnectionCloseEvent; +#[cfg(feature = "PresentationConnectionCloseEvent")] +pub use gen_PresentationConnectionCloseEvent::*; + +#[cfg(feature = "PresentationConnectionCloseEventInit")] +#[allow(non_snake_case)] +mod gen_PresentationConnectionCloseEventInit; +#[cfg(feature = "PresentationConnectionCloseEventInit")] +pub use gen_PresentationConnectionCloseEventInit::*; + +#[cfg(feature = "PresentationConnectionClosedReason")] +#[allow(non_snake_case)] +mod gen_PresentationConnectionClosedReason; +#[cfg(feature = "PresentationConnectionClosedReason")] +pub use gen_PresentationConnectionClosedReason::*; + +#[cfg(feature = "PresentationConnectionList")] +#[allow(non_snake_case)] +mod gen_PresentationConnectionList; +#[cfg(feature = "PresentationConnectionList")] +pub use gen_PresentationConnectionList::*; + +#[cfg(feature = "PresentationConnectionState")] +#[allow(non_snake_case)] +mod gen_PresentationConnectionState; +#[cfg(feature = "PresentationConnectionState")] +pub use gen_PresentationConnectionState::*; + +#[cfg(feature = "PresentationReceiver")] +#[allow(non_snake_case)] +mod gen_PresentationReceiver; +#[cfg(feature = "PresentationReceiver")] +pub use gen_PresentationReceiver::*; + +#[cfg(feature = "PresentationRequest")] +#[allow(non_snake_case)] +mod gen_PresentationRequest; +#[cfg(feature = "PresentationRequest")] +pub use gen_PresentationRequest::*; + +#[cfg(feature = "ProcessingInstruction")] +#[allow(non_snake_case)] +mod gen_ProcessingInstruction; +#[cfg(feature = "ProcessingInstruction")] +pub use gen_ProcessingInstruction::*; + +#[cfg(feature = "ProfileTimelineLayerRect")] +#[allow(non_snake_case)] +mod gen_ProfileTimelineLayerRect; +#[cfg(feature = "ProfileTimelineLayerRect")] +pub use gen_ProfileTimelineLayerRect::*; + +#[cfg(feature = "ProfileTimelineMarker")] +#[allow(non_snake_case)] +mod gen_ProfileTimelineMarker; +#[cfg(feature = "ProfileTimelineMarker")] +pub use gen_ProfileTimelineMarker::*; + +#[cfg(feature = "ProfileTimelineMessagePortOperationType")] +#[allow(non_snake_case)] +mod gen_ProfileTimelineMessagePortOperationType; +#[cfg(feature = "ProfileTimelineMessagePortOperationType")] +pub use gen_ProfileTimelineMessagePortOperationType::*; + +#[cfg(feature = "ProfileTimelineStackFrame")] +#[allow(non_snake_case)] +mod gen_ProfileTimelineStackFrame; +#[cfg(feature = "ProfileTimelineStackFrame")] +pub use gen_ProfileTimelineStackFrame::*; + +#[cfg(feature = "ProfileTimelineWorkerOperationType")] +#[allow(non_snake_case)] +mod gen_ProfileTimelineWorkerOperationType; +#[cfg(feature = "ProfileTimelineWorkerOperationType")] +pub use gen_ProfileTimelineWorkerOperationType::*; + +#[cfg(feature = "ProgressEvent")] +#[allow(non_snake_case)] +mod gen_ProgressEvent; +#[cfg(feature = "ProgressEvent")] +pub use gen_ProgressEvent::*; + +#[cfg(feature = "ProgressEventInit")] +#[allow(non_snake_case)] +mod gen_ProgressEventInit; +#[cfg(feature = "ProgressEventInit")] +pub use gen_ProgressEventInit::*; + +#[cfg(feature = "PromiseNativeHandler")] +#[allow(non_snake_case)] +mod gen_PromiseNativeHandler; +#[cfg(feature = "PromiseNativeHandler")] +pub use gen_PromiseNativeHandler::*; + +#[cfg(feature = "PromiseRejectionEvent")] +#[allow(non_snake_case)] +mod gen_PromiseRejectionEvent; +#[cfg(feature = "PromiseRejectionEvent")] +pub use gen_PromiseRejectionEvent::*; + +#[cfg(feature = "PromiseRejectionEventInit")] +#[allow(non_snake_case)] +mod gen_PromiseRejectionEventInit; +#[cfg(feature = "PromiseRejectionEventInit")] +pub use gen_PromiseRejectionEventInit::*; + +#[cfg(feature = "PublicKeyCredential")] +#[allow(non_snake_case)] +mod gen_PublicKeyCredential; +#[cfg(feature = "PublicKeyCredential")] +pub use gen_PublicKeyCredential::*; + +#[cfg(feature = "PublicKeyCredentialCreationOptions")] +#[allow(non_snake_case)] +mod gen_PublicKeyCredentialCreationOptions; +#[cfg(feature = "PublicKeyCredentialCreationOptions")] +pub use gen_PublicKeyCredentialCreationOptions::*; + +#[cfg(feature = "PublicKeyCredentialDescriptor")] +#[allow(non_snake_case)] +mod gen_PublicKeyCredentialDescriptor; +#[cfg(feature = "PublicKeyCredentialDescriptor")] +pub use gen_PublicKeyCredentialDescriptor::*; + +#[cfg(feature = "PublicKeyCredentialEntity")] +#[allow(non_snake_case)] +mod gen_PublicKeyCredentialEntity; +#[cfg(feature = "PublicKeyCredentialEntity")] +pub use gen_PublicKeyCredentialEntity::*; + +#[cfg(feature = "PublicKeyCredentialParameters")] +#[allow(non_snake_case)] +mod gen_PublicKeyCredentialParameters; +#[cfg(feature = "PublicKeyCredentialParameters")] +pub use gen_PublicKeyCredentialParameters::*; + +#[cfg(feature = "PublicKeyCredentialRequestOptions")] +#[allow(non_snake_case)] +mod gen_PublicKeyCredentialRequestOptions; +#[cfg(feature = "PublicKeyCredentialRequestOptions")] +pub use gen_PublicKeyCredentialRequestOptions::*; + +#[cfg(feature = "PublicKeyCredentialRpEntity")] +#[allow(non_snake_case)] +mod gen_PublicKeyCredentialRpEntity; +#[cfg(feature = "PublicKeyCredentialRpEntity")] +pub use gen_PublicKeyCredentialRpEntity::*; + +#[cfg(feature = "PublicKeyCredentialType")] +#[allow(non_snake_case)] +mod gen_PublicKeyCredentialType; +#[cfg(feature = "PublicKeyCredentialType")] +pub use gen_PublicKeyCredentialType::*; + +#[cfg(feature = "PublicKeyCredentialUserEntity")] +#[allow(non_snake_case)] +mod gen_PublicKeyCredentialUserEntity; +#[cfg(feature = "PublicKeyCredentialUserEntity")] +pub use gen_PublicKeyCredentialUserEntity::*; + +#[cfg(feature = "PushEncryptionKeyName")] +#[allow(non_snake_case)] +mod gen_PushEncryptionKeyName; +#[cfg(feature = "PushEncryptionKeyName")] +pub use gen_PushEncryptionKeyName::*; + +#[cfg(feature = "PushEvent")] +#[allow(non_snake_case)] +mod gen_PushEvent; +#[cfg(feature = "PushEvent")] +pub use gen_PushEvent::*; + +#[cfg(feature = "PushEventInit")] +#[allow(non_snake_case)] +mod gen_PushEventInit; +#[cfg(feature = "PushEventInit")] +pub use gen_PushEventInit::*; + +#[cfg(feature = "PushManager")] +#[allow(non_snake_case)] +mod gen_PushManager; +#[cfg(feature = "PushManager")] +pub use gen_PushManager::*; + +#[cfg(feature = "PushMessageData")] +#[allow(non_snake_case)] +mod gen_PushMessageData; +#[cfg(feature = "PushMessageData")] +pub use gen_PushMessageData::*; + +#[cfg(feature = "PushPermissionState")] +#[allow(non_snake_case)] +mod gen_PushPermissionState; +#[cfg(feature = "PushPermissionState")] +pub use gen_PushPermissionState::*; + +#[cfg(feature = "PushSubscription")] +#[allow(non_snake_case)] +mod gen_PushSubscription; +#[cfg(feature = "PushSubscription")] +pub use gen_PushSubscription::*; + +#[cfg(feature = "PushSubscriptionInit")] +#[allow(non_snake_case)] +mod gen_PushSubscriptionInit; +#[cfg(feature = "PushSubscriptionInit")] +pub use gen_PushSubscriptionInit::*; + +#[cfg(feature = "PushSubscriptionJson")] +#[allow(non_snake_case)] +mod gen_PushSubscriptionJson; +#[cfg(feature = "PushSubscriptionJson")] +pub use gen_PushSubscriptionJson::*; + +#[cfg(feature = "PushSubscriptionKeys")] +#[allow(non_snake_case)] +mod gen_PushSubscriptionKeys; +#[cfg(feature = "PushSubscriptionKeys")] +pub use gen_PushSubscriptionKeys::*; + +#[cfg(feature = "PushSubscriptionOptions")] +#[allow(non_snake_case)] +mod gen_PushSubscriptionOptions; +#[cfg(feature = "PushSubscriptionOptions")] +pub use gen_PushSubscriptionOptions::*; + +#[cfg(feature = "PushSubscriptionOptionsInit")] +#[allow(non_snake_case)] +mod gen_PushSubscriptionOptionsInit; +#[cfg(feature = "PushSubscriptionOptionsInit")] +pub use gen_PushSubscriptionOptionsInit::*; + +#[cfg(feature = "RadioNodeList")] +#[allow(non_snake_case)] +mod gen_RadioNodeList; +#[cfg(feature = "RadioNodeList")] +pub use gen_RadioNodeList::*; + +#[cfg(feature = "Range")] +#[allow(non_snake_case)] +mod gen_Range; +#[cfg(feature = "Range")] +pub use gen_Range::*; + +#[cfg(feature = "RcwnPerfStats")] +#[allow(non_snake_case)] +mod gen_RcwnPerfStats; +#[cfg(feature = "RcwnPerfStats")] +pub use gen_RcwnPerfStats::*; + +#[cfg(feature = "RcwnStatus")] +#[allow(non_snake_case)] +mod gen_RcwnStatus; +#[cfg(feature = "RcwnStatus")] +pub use gen_RcwnStatus::*; + +#[cfg(feature = "ReadableStream")] +#[allow(non_snake_case)] +mod gen_ReadableStream; +#[cfg(feature = "ReadableStream")] +pub use gen_ReadableStream::*; + +#[cfg(feature = "RecordingState")] +#[allow(non_snake_case)] +mod gen_RecordingState; +#[cfg(feature = "RecordingState")] +pub use gen_RecordingState::*; + +#[cfg(feature = "ReferrerPolicy")] +#[allow(non_snake_case)] +mod gen_ReferrerPolicy; +#[cfg(feature = "ReferrerPolicy")] +pub use gen_ReferrerPolicy::*; + +#[cfg(feature = "RegisterRequest")] +#[allow(non_snake_case)] +mod gen_RegisterRequest; +#[cfg(feature = "RegisterRequest")] +pub use gen_RegisterRequest::*; + +#[cfg(feature = "RegisterResponse")] +#[allow(non_snake_case)] +mod gen_RegisterResponse; +#[cfg(feature = "RegisterResponse")] +pub use gen_RegisterResponse::*; + +#[cfg(feature = "RegisteredKey")] +#[allow(non_snake_case)] +mod gen_RegisteredKey; +#[cfg(feature = "RegisteredKey")] +pub use gen_RegisteredKey::*; + +#[cfg(feature = "RegistrationOptions")] +#[allow(non_snake_case)] +mod gen_RegistrationOptions; +#[cfg(feature = "RegistrationOptions")] +pub use gen_RegistrationOptions::*; + +#[cfg(feature = "Request")] +#[allow(non_snake_case)] +mod gen_Request; +#[cfg(feature = "Request")] +pub use gen_Request::*; + +#[cfg(feature = "RequestCache")] +#[allow(non_snake_case)] +mod gen_RequestCache; +#[cfg(feature = "RequestCache")] +pub use gen_RequestCache::*; + +#[cfg(feature = "RequestCredentials")] +#[allow(non_snake_case)] +mod gen_RequestCredentials; +#[cfg(feature = "RequestCredentials")] +pub use gen_RequestCredentials::*; + +#[cfg(feature = "RequestDestination")] +#[allow(non_snake_case)] +mod gen_RequestDestination; +#[cfg(feature = "RequestDestination")] +pub use gen_RequestDestination::*; + +#[cfg(feature = "RequestInit")] +#[allow(non_snake_case)] +mod gen_RequestInit; +#[cfg(feature = "RequestInit")] +pub use gen_RequestInit::*; + +#[cfg(feature = "RequestMediaKeySystemAccessNotification")] +#[allow(non_snake_case)] +mod gen_RequestMediaKeySystemAccessNotification; +#[cfg(feature = "RequestMediaKeySystemAccessNotification")] +pub use gen_RequestMediaKeySystemAccessNotification::*; + +#[cfg(feature = "RequestMode")] +#[allow(non_snake_case)] +mod gen_RequestMode; +#[cfg(feature = "RequestMode")] +pub use gen_RequestMode::*; + +#[cfg(feature = "RequestRedirect")] +#[allow(non_snake_case)] +mod gen_RequestRedirect; +#[cfg(feature = "RequestRedirect")] +pub use gen_RequestRedirect::*; + +#[cfg(feature = "Response")] +#[allow(non_snake_case)] +mod gen_Response; +#[cfg(feature = "Response")] +pub use gen_Response::*; + +#[cfg(feature = "ResponseInit")] +#[allow(non_snake_case)] +mod gen_ResponseInit; +#[cfg(feature = "ResponseInit")] +pub use gen_ResponseInit::*; + +#[cfg(feature = "ResponseType")] +#[allow(non_snake_case)] +mod gen_ResponseType; +#[cfg(feature = "ResponseType")] +pub use gen_ResponseType::*; + +#[cfg(feature = "RsaHashedImportParams")] +#[allow(non_snake_case)] +mod gen_RsaHashedImportParams; +#[cfg(feature = "RsaHashedImportParams")] +pub use gen_RsaHashedImportParams::*; + +#[cfg(feature = "RsaOaepParams")] +#[allow(non_snake_case)] +mod gen_RsaOaepParams; +#[cfg(feature = "RsaOaepParams")] +pub use gen_RsaOaepParams::*; + +#[cfg(feature = "RsaOtherPrimesInfo")] +#[allow(non_snake_case)] +mod gen_RsaOtherPrimesInfo; +#[cfg(feature = "RsaOtherPrimesInfo")] +pub use gen_RsaOtherPrimesInfo::*; + +#[cfg(feature = "RsaPssParams")] +#[allow(non_snake_case)] +mod gen_RsaPssParams; +#[cfg(feature = "RsaPssParams")] +pub use gen_RsaPssParams::*; + +#[cfg(feature = "RtcAnswerOptions")] +#[allow(non_snake_case)] +mod gen_RtcAnswerOptions; +#[cfg(feature = "RtcAnswerOptions")] +pub use gen_RtcAnswerOptions::*; + +#[cfg(feature = "RtcBundlePolicy")] +#[allow(non_snake_case)] +mod gen_RtcBundlePolicy; +#[cfg(feature = "RtcBundlePolicy")] +pub use gen_RtcBundlePolicy::*; + +#[cfg(feature = "RtcCertificate")] +#[allow(non_snake_case)] +mod gen_RtcCertificate; +#[cfg(feature = "RtcCertificate")] +pub use gen_RtcCertificate::*; + +#[cfg(feature = "RtcCertificateExpiration")] +#[allow(non_snake_case)] +mod gen_RtcCertificateExpiration; +#[cfg(feature = "RtcCertificateExpiration")] +pub use gen_RtcCertificateExpiration::*; + +#[cfg(feature = "RtcCodecStats")] +#[allow(non_snake_case)] +mod gen_RtcCodecStats; +#[cfg(feature = "RtcCodecStats")] +pub use gen_RtcCodecStats::*; + +#[cfg(feature = "RtcConfiguration")] +#[allow(non_snake_case)] +mod gen_RtcConfiguration; +#[cfg(feature = "RtcConfiguration")] +pub use gen_RtcConfiguration::*; + +#[cfg(feature = "RtcDataChannel")] +#[allow(non_snake_case)] +mod gen_RtcDataChannel; +#[cfg(feature = "RtcDataChannel")] +pub use gen_RtcDataChannel::*; + +#[cfg(feature = "RtcDataChannelEvent")] +#[allow(non_snake_case)] +mod gen_RtcDataChannelEvent; +#[cfg(feature = "RtcDataChannelEvent")] +pub use gen_RtcDataChannelEvent::*; + +#[cfg(feature = "RtcDataChannelEventInit")] +#[allow(non_snake_case)] +mod gen_RtcDataChannelEventInit; +#[cfg(feature = "RtcDataChannelEventInit")] +pub use gen_RtcDataChannelEventInit::*; + +#[cfg(feature = "RtcDataChannelInit")] +#[allow(non_snake_case)] +mod gen_RtcDataChannelInit; +#[cfg(feature = "RtcDataChannelInit")] +pub use gen_RtcDataChannelInit::*; + +#[cfg(feature = "RtcDataChannelState")] +#[allow(non_snake_case)] +mod gen_RtcDataChannelState; +#[cfg(feature = "RtcDataChannelState")] +pub use gen_RtcDataChannelState::*; + +#[cfg(feature = "RtcDataChannelType")] +#[allow(non_snake_case)] +mod gen_RtcDataChannelType; +#[cfg(feature = "RtcDataChannelType")] +pub use gen_RtcDataChannelType::*; + +#[cfg(feature = "RtcDegradationPreference")] +#[allow(non_snake_case)] +mod gen_RtcDegradationPreference; +#[cfg(feature = "RtcDegradationPreference")] +pub use gen_RtcDegradationPreference::*; + +#[cfg(feature = "RtcFecParameters")] +#[allow(non_snake_case)] +mod gen_RtcFecParameters; +#[cfg(feature = "RtcFecParameters")] +pub use gen_RtcFecParameters::*; + +#[cfg(feature = "RtcIceCandidate")] +#[allow(non_snake_case)] +mod gen_RtcIceCandidate; +#[cfg(feature = "RtcIceCandidate")] +pub use gen_RtcIceCandidate::*; + +#[cfg(feature = "RtcIceCandidateInit")] +#[allow(non_snake_case)] +mod gen_RtcIceCandidateInit; +#[cfg(feature = "RtcIceCandidateInit")] +pub use gen_RtcIceCandidateInit::*; + +#[cfg(feature = "RtcIceCandidatePairStats")] +#[allow(non_snake_case)] +mod gen_RtcIceCandidatePairStats; +#[cfg(feature = "RtcIceCandidatePairStats")] +pub use gen_RtcIceCandidatePairStats::*; + +#[cfg(feature = "RtcIceCandidateStats")] +#[allow(non_snake_case)] +mod gen_RtcIceCandidateStats; +#[cfg(feature = "RtcIceCandidateStats")] +pub use gen_RtcIceCandidateStats::*; + +#[cfg(feature = "RtcIceComponentStats")] +#[allow(non_snake_case)] +mod gen_RtcIceComponentStats; +#[cfg(feature = "RtcIceComponentStats")] +pub use gen_RtcIceComponentStats::*; + +#[cfg(feature = "RtcIceConnectionState")] +#[allow(non_snake_case)] +mod gen_RtcIceConnectionState; +#[cfg(feature = "RtcIceConnectionState")] +pub use gen_RtcIceConnectionState::*; + +#[cfg(feature = "RtcIceCredentialType")] +#[allow(non_snake_case)] +mod gen_RtcIceCredentialType; +#[cfg(feature = "RtcIceCredentialType")] +pub use gen_RtcIceCredentialType::*; + +#[cfg(feature = "RtcIceGatheringState")] +#[allow(non_snake_case)] +mod gen_RtcIceGatheringState; +#[cfg(feature = "RtcIceGatheringState")] +pub use gen_RtcIceGatheringState::*; + +#[cfg(feature = "RtcIceServer")] +#[allow(non_snake_case)] +mod gen_RtcIceServer; +#[cfg(feature = "RtcIceServer")] +pub use gen_RtcIceServer::*; + +#[cfg(feature = "RtcIceTransportPolicy")] +#[allow(non_snake_case)] +mod gen_RtcIceTransportPolicy; +#[cfg(feature = "RtcIceTransportPolicy")] +pub use gen_RtcIceTransportPolicy::*; + +#[cfg(feature = "RtcIdentityAssertion")] +#[allow(non_snake_case)] +mod gen_RtcIdentityAssertion; +#[cfg(feature = "RtcIdentityAssertion")] +pub use gen_RtcIdentityAssertion::*; + +#[cfg(feature = "RtcIdentityAssertionResult")] +#[allow(non_snake_case)] +mod gen_RtcIdentityAssertionResult; +#[cfg(feature = "RtcIdentityAssertionResult")] +pub use gen_RtcIdentityAssertionResult::*; + +#[cfg(feature = "RtcIdentityProvider")] +#[allow(non_snake_case)] +mod gen_RtcIdentityProvider; +#[cfg(feature = "RtcIdentityProvider")] +pub use gen_RtcIdentityProvider::*; + +#[cfg(feature = "RtcIdentityProviderDetails")] +#[allow(non_snake_case)] +mod gen_RtcIdentityProviderDetails; +#[cfg(feature = "RtcIdentityProviderDetails")] +pub use gen_RtcIdentityProviderDetails::*; + +#[cfg(feature = "RtcIdentityProviderOptions")] +#[allow(non_snake_case)] +mod gen_RtcIdentityProviderOptions; +#[cfg(feature = "RtcIdentityProviderOptions")] +pub use gen_RtcIdentityProviderOptions::*; + +#[cfg(feature = "RtcIdentityProviderRegistrar")] +#[allow(non_snake_case)] +mod gen_RtcIdentityProviderRegistrar; +#[cfg(feature = "RtcIdentityProviderRegistrar")] +pub use gen_RtcIdentityProviderRegistrar::*; + +#[cfg(feature = "RtcIdentityValidationResult")] +#[allow(non_snake_case)] +mod gen_RtcIdentityValidationResult; +#[cfg(feature = "RtcIdentityValidationResult")] +pub use gen_RtcIdentityValidationResult::*; + +#[cfg(feature = "RtcInboundRtpStreamStats")] +#[allow(non_snake_case)] +mod gen_RtcInboundRtpStreamStats; +#[cfg(feature = "RtcInboundRtpStreamStats")] +pub use gen_RtcInboundRtpStreamStats::*; + +#[cfg(feature = "RtcLifecycleEvent")] +#[allow(non_snake_case)] +mod gen_RtcLifecycleEvent; +#[cfg(feature = "RtcLifecycleEvent")] +pub use gen_RtcLifecycleEvent::*; + +#[cfg(feature = "RtcMediaStreamStats")] +#[allow(non_snake_case)] +mod gen_RtcMediaStreamStats; +#[cfg(feature = "RtcMediaStreamStats")] +pub use gen_RtcMediaStreamStats::*; + +#[cfg(feature = "RtcMediaStreamTrackStats")] +#[allow(non_snake_case)] +mod gen_RtcMediaStreamTrackStats; +#[cfg(feature = "RtcMediaStreamTrackStats")] +pub use gen_RtcMediaStreamTrackStats::*; + +#[cfg(feature = "RtcOfferAnswerOptions")] +#[allow(non_snake_case)] +mod gen_RtcOfferAnswerOptions; +#[cfg(feature = "RtcOfferAnswerOptions")] +pub use gen_RtcOfferAnswerOptions::*; + +#[cfg(feature = "RtcOfferOptions")] +#[allow(non_snake_case)] +mod gen_RtcOfferOptions; +#[cfg(feature = "RtcOfferOptions")] +pub use gen_RtcOfferOptions::*; + +#[cfg(feature = "RtcOutboundRtpStreamStats")] +#[allow(non_snake_case)] +mod gen_RtcOutboundRtpStreamStats; +#[cfg(feature = "RtcOutboundRtpStreamStats")] +pub use gen_RtcOutboundRtpStreamStats::*; + +#[cfg(feature = "RtcPeerConnection")] +#[allow(non_snake_case)] +mod gen_RtcPeerConnection; +#[cfg(feature = "RtcPeerConnection")] +pub use gen_RtcPeerConnection::*; + +#[cfg(feature = "RtcPeerConnectionIceEvent")] +#[allow(non_snake_case)] +mod gen_RtcPeerConnectionIceEvent; +#[cfg(feature = "RtcPeerConnectionIceEvent")] +pub use gen_RtcPeerConnectionIceEvent::*; + +#[cfg(feature = "RtcPeerConnectionIceEventInit")] +#[allow(non_snake_case)] +mod gen_RtcPeerConnectionIceEventInit; +#[cfg(feature = "RtcPeerConnectionIceEventInit")] +pub use gen_RtcPeerConnectionIceEventInit::*; + +#[cfg(feature = "RtcPriorityType")] +#[allow(non_snake_case)] +mod gen_RtcPriorityType; +#[cfg(feature = "RtcPriorityType")] +pub use gen_RtcPriorityType::*; + +#[cfg(feature = "RtcRtcpParameters")] +#[allow(non_snake_case)] +mod gen_RtcRtcpParameters; +#[cfg(feature = "RtcRtcpParameters")] +pub use gen_RtcRtcpParameters::*; + +#[cfg(feature = "RtcRtpCodecParameters")] +#[allow(non_snake_case)] +mod gen_RtcRtpCodecParameters; +#[cfg(feature = "RtcRtpCodecParameters")] +pub use gen_RtcRtpCodecParameters::*; + +#[cfg(feature = "RtcRtpContributingSource")] +#[allow(non_snake_case)] +mod gen_RtcRtpContributingSource; +#[cfg(feature = "RtcRtpContributingSource")] +pub use gen_RtcRtpContributingSource::*; + +#[cfg(feature = "RtcRtpEncodingParameters")] +#[allow(non_snake_case)] +mod gen_RtcRtpEncodingParameters; +#[cfg(feature = "RtcRtpEncodingParameters")] +pub use gen_RtcRtpEncodingParameters::*; + +#[cfg(feature = "RtcRtpHeaderExtensionParameters")] +#[allow(non_snake_case)] +mod gen_RtcRtpHeaderExtensionParameters; +#[cfg(feature = "RtcRtpHeaderExtensionParameters")] +pub use gen_RtcRtpHeaderExtensionParameters::*; + +#[cfg(feature = "RtcRtpParameters")] +#[allow(non_snake_case)] +mod gen_RtcRtpParameters; +#[cfg(feature = "RtcRtpParameters")] +pub use gen_RtcRtpParameters::*; + +#[cfg(feature = "RtcRtpReceiver")] +#[allow(non_snake_case)] +mod gen_RtcRtpReceiver; +#[cfg(feature = "RtcRtpReceiver")] +pub use gen_RtcRtpReceiver::*; + +#[cfg(feature = "RtcRtpSender")] +#[allow(non_snake_case)] +mod gen_RtcRtpSender; +#[cfg(feature = "RtcRtpSender")] +pub use gen_RtcRtpSender::*; + +#[cfg(feature = "RtcRtpSourceEntry")] +#[allow(non_snake_case)] +mod gen_RtcRtpSourceEntry; +#[cfg(feature = "RtcRtpSourceEntry")] +pub use gen_RtcRtpSourceEntry::*; + +#[cfg(feature = "RtcRtpSourceEntryType")] +#[allow(non_snake_case)] +mod gen_RtcRtpSourceEntryType; +#[cfg(feature = "RtcRtpSourceEntryType")] +pub use gen_RtcRtpSourceEntryType::*; + +#[cfg(feature = "RtcRtpSynchronizationSource")] +#[allow(non_snake_case)] +mod gen_RtcRtpSynchronizationSource; +#[cfg(feature = "RtcRtpSynchronizationSource")] +pub use gen_RtcRtpSynchronizationSource::*; + +#[cfg(feature = "RtcRtpTransceiver")] +#[allow(non_snake_case)] +mod gen_RtcRtpTransceiver; +#[cfg(feature = "RtcRtpTransceiver")] +pub use gen_RtcRtpTransceiver::*; + +#[cfg(feature = "RtcRtpTransceiverDirection")] +#[allow(non_snake_case)] +mod gen_RtcRtpTransceiverDirection; +#[cfg(feature = "RtcRtpTransceiverDirection")] +pub use gen_RtcRtpTransceiverDirection::*; + +#[cfg(feature = "RtcRtpTransceiverInit")] +#[allow(non_snake_case)] +mod gen_RtcRtpTransceiverInit; +#[cfg(feature = "RtcRtpTransceiverInit")] +pub use gen_RtcRtpTransceiverInit::*; + +#[cfg(feature = "RtcRtxParameters")] +#[allow(non_snake_case)] +mod gen_RtcRtxParameters; +#[cfg(feature = "RtcRtxParameters")] +pub use gen_RtcRtxParameters::*; + +#[cfg(feature = "RtcSdpType")] +#[allow(non_snake_case)] +mod gen_RtcSdpType; +#[cfg(feature = "RtcSdpType")] +pub use gen_RtcSdpType::*; + +#[cfg(feature = "RtcSessionDescription")] +#[allow(non_snake_case)] +mod gen_RtcSessionDescription; +#[cfg(feature = "RtcSessionDescription")] +pub use gen_RtcSessionDescription::*; + +#[cfg(feature = "RtcSessionDescriptionInit")] +#[allow(non_snake_case)] +mod gen_RtcSessionDescriptionInit; +#[cfg(feature = "RtcSessionDescriptionInit")] +pub use gen_RtcSessionDescriptionInit::*; + +#[cfg(feature = "RtcSignalingState")] +#[allow(non_snake_case)] +mod gen_RtcSignalingState; +#[cfg(feature = "RtcSignalingState")] +pub use gen_RtcSignalingState::*; + +#[cfg(feature = "RtcStats")] +#[allow(non_snake_case)] +mod gen_RtcStats; +#[cfg(feature = "RtcStats")] +pub use gen_RtcStats::*; + +#[cfg(feature = "RtcStatsIceCandidatePairState")] +#[allow(non_snake_case)] +mod gen_RtcStatsIceCandidatePairState; +#[cfg(feature = "RtcStatsIceCandidatePairState")] +pub use gen_RtcStatsIceCandidatePairState::*; + +#[cfg(feature = "RtcStatsIceCandidateType")] +#[allow(non_snake_case)] +mod gen_RtcStatsIceCandidateType; +#[cfg(feature = "RtcStatsIceCandidateType")] +pub use gen_RtcStatsIceCandidateType::*; + +#[cfg(feature = "RtcStatsReport")] +#[allow(non_snake_case)] +mod gen_RtcStatsReport; +#[cfg(feature = "RtcStatsReport")] +pub use gen_RtcStatsReport::*; + +#[cfg(feature = "RtcStatsReportInternal")] +#[allow(non_snake_case)] +mod gen_RtcStatsReportInternal; +#[cfg(feature = "RtcStatsReportInternal")] +pub use gen_RtcStatsReportInternal::*; + +#[cfg(feature = "RtcStatsType")] +#[allow(non_snake_case)] +mod gen_RtcStatsType; +#[cfg(feature = "RtcStatsType")] +pub use gen_RtcStatsType::*; + +#[cfg(feature = "RtcTrackEvent")] +#[allow(non_snake_case)] +mod gen_RtcTrackEvent; +#[cfg(feature = "RtcTrackEvent")] +pub use gen_RtcTrackEvent::*; + +#[cfg(feature = "RtcTrackEventInit")] +#[allow(non_snake_case)] +mod gen_RtcTrackEventInit; +#[cfg(feature = "RtcTrackEventInit")] +pub use gen_RtcTrackEventInit::*; + +#[cfg(feature = "RtcTransportStats")] +#[allow(non_snake_case)] +mod gen_RtcTransportStats; +#[cfg(feature = "RtcTransportStats")] +pub use gen_RtcTransportStats::*; + +#[cfg(feature = "RtcdtmfSender")] +#[allow(non_snake_case)] +mod gen_RtcdtmfSender; +#[cfg(feature = "RtcdtmfSender")] +pub use gen_RtcdtmfSender::*; + +#[cfg(feature = "RtcdtmfToneChangeEvent")] +#[allow(non_snake_case)] +mod gen_RtcdtmfToneChangeEvent; +#[cfg(feature = "RtcdtmfToneChangeEvent")] +pub use gen_RtcdtmfToneChangeEvent::*; + +#[cfg(feature = "RtcdtmfToneChangeEventInit")] +#[allow(non_snake_case)] +mod gen_RtcdtmfToneChangeEventInit; +#[cfg(feature = "RtcdtmfToneChangeEventInit")] +pub use gen_RtcdtmfToneChangeEventInit::*; + +#[cfg(feature = "RtcrtpContributingSourceStats")] +#[allow(non_snake_case)] +mod gen_RtcrtpContributingSourceStats; +#[cfg(feature = "RtcrtpContributingSourceStats")] +pub use gen_RtcrtpContributingSourceStats::*; + +#[cfg(feature = "RtcrtpStreamStats")] +#[allow(non_snake_case)] +mod gen_RtcrtpStreamStats; +#[cfg(feature = "RtcrtpStreamStats")] +pub use gen_RtcrtpStreamStats::*; + +#[cfg(feature = "Screen")] +#[allow(non_snake_case)] +mod gen_Screen; +#[cfg(feature = "Screen")] +pub use gen_Screen::*; + +#[cfg(feature = "ScreenColorGamut")] +#[allow(non_snake_case)] +mod gen_ScreenColorGamut; +#[cfg(feature = "ScreenColorGamut")] +pub use gen_ScreenColorGamut::*; + +#[cfg(feature = "ScreenLuminance")] +#[allow(non_snake_case)] +mod gen_ScreenLuminance; +#[cfg(feature = "ScreenLuminance")] +pub use gen_ScreenLuminance::*; + +#[cfg(feature = "ScreenOrientation")] +#[allow(non_snake_case)] +mod gen_ScreenOrientation; +#[cfg(feature = "ScreenOrientation")] +pub use gen_ScreenOrientation::*; + +#[cfg(feature = "ScriptProcessorNode")] +#[allow(non_snake_case)] +mod gen_ScriptProcessorNode; +#[cfg(feature = "ScriptProcessorNode")] +pub use gen_ScriptProcessorNode::*; + +#[cfg(feature = "ScrollAreaEvent")] +#[allow(non_snake_case)] +mod gen_ScrollAreaEvent; +#[cfg(feature = "ScrollAreaEvent")] +pub use gen_ScrollAreaEvent::*; + +#[cfg(feature = "ScrollBehavior")] +#[allow(non_snake_case)] +mod gen_ScrollBehavior; +#[cfg(feature = "ScrollBehavior")] +pub use gen_ScrollBehavior::*; + +#[cfg(feature = "ScrollBoxObject")] +#[allow(non_snake_case)] +mod gen_ScrollBoxObject; +#[cfg(feature = "ScrollBoxObject")] +pub use gen_ScrollBoxObject::*; + +#[cfg(feature = "ScrollIntoViewOptions")] +#[allow(non_snake_case)] +mod gen_ScrollIntoViewOptions; +#[cfg(feature = "ScrollIntoViewOptions")] +pub use gen_ScrollIntoViewOptions::*; + +#[cfg(feature = "ScrollLogicalPosition")] +#[allow(non_snake_case)] +mod gen_ScrollLogicalPosition; +#[cfg(feature = "ScrollLogicalPosition")] +pub use gen_ScrollLogicalPosition::*; + +#[cfg(feature = "ScrollOptions")] +#[allow(non_snake_case)] +mod gen_ScrollOptions; +#[cfg(feature = "ScrollOptions")] +pub use gen_ScrollOptions::*; + +#[cfg(feature = "ScrollRestoration")] +#[allow(non_snake_case)] +mod gen_ScrollRestoration; +#[cfg(feature = "ScrollRestoration")] +pub use gen_ScrollRestoration::*; + +#[cfg(feature = "ScrollSetting")] +#[allow(non_snake_case)] +mod gen_ScrollSetting; +#[cfg(feature = "ScrollSetting")] +pub use gen_ScrollSetting::*; + +#[cfg(feature = "ScrollState")] +#[allow(non_snake_case)] +mod gen_ScrollState; +#[cfg(feature = "ScrollState")] +pub use gen_ScrollState::*; + +#[cfg(feature = "ScrollToOptions")] +#[allow(non_snake_case)] +mod gen_ScrollToOptions; +#[cfg(feature = "ScrollToOptions")] +pub use gen_ScrollToOptions::*; + +#[cfg(feature = "ScrollViewChangeEventInit")] +#[allow(non_snake_case)] +mod gen_ScrollViewChangeEventInit; +#[cfg(feature = "ScrollViewChangeEventInit")] +pub use gen_ScrollViewChangeEventInit::*; + +#[cfg(feature = "SecurityPolicyViolationEvent")] +#[allow(non_snake_case)] +mod gen_SecurityPolicyViolationEvent; +#[cfg(feature = "SecurityPolicyViolationEvent")] +pub use gen_SecurityPolicyViolationEvent::*; + +#[cfg(feature = "SecurityPolicyViolationEventDisposition")] +#[allow(non_snake_case)] +mod gen_SecurityPolicyViolationEventDisposition; +#[cfg(feature = "SecurityPolicyViolationEventDisposition")] +pub use gen_SecurityPolicyViolationEventDisposition::*; + +#[cfg(feature = "SecurityPolicyViolationEventInit")] +#[allow(non_snake_case)] +mod gen_SecurityPolicyViolationEventInit; +#[cfg(feature = "SecurityPolicyViolationEventInit")] +pub use gen_SecurityPolicyViolationEventInit::*; + +#[cfg(feature = "Selection")] +#[allow(non_snake_case)] +mod gen_Selection; +#[cfg(feature = "Selection")] +pub use gen_Selection::*; + +#[cfg(feature = "ServerSocketOptions")] +#[allow(non_snake_case)] +mod gen_ServerSocketOptions; +#[cfg(feature = "ServerSocketOptions")] +pub use gen_ServerSocketOptions::*; + +#[cfg(feature = "ServiceWorker")] +#[allow(non_snake_case)] +mod gen_ServiceWorker; +#[cfg(feature = "ServiceWorker")] +pub use gen_ServiceWorker::*; + +#[cfg(feature = "ServiceWorkerContainer")] +#[allow(non_snake_case)] +mod gen_ServiceWorkerContainer; +#[cfg(feature = "ServiceWorkerContainer")] +pub use gen_ServiceWorkerContainer::*; + +#[cfg(feature = "ServiceWorkerGlobalScope")] +#[allow(non_snake_case)] +mod gen_ServiceWorkerGlobalScope; +#[cfg(feature = "ServiceWorkerGlobalScope")] +pub use gen_ServiceWorkerGlobalScope::*; + +#[cfg(feature = "ServiceWorkerRegistration")] +#[allow(non_snake_case)] +mod gen_ServiceWorkerRegistration; +#[cfg(feature = "ServiceWorkerRegistration")] +pub use gen_ServiceWorkerRegistration::*; + +#[cfg(feature = "ServiceWorkerState")] +#[allow(non_snake_case)] +mod gen_ServiceWorkerState; +#[cfg(feature = "ServiceWorkerState")] +pub use gen_ServiceWorkerState::*; + +#[cfg(feature = "ServiceWorkerUpdateViaCache")] +#[allow(non_snake_case)] +mod gen_ServiceWorkerUpdateViaCache; +#[cfg(feature = "ServiceWorkerUpdateViaCache")] +pub use gen_ServiceWorkerUpdateViaCache::*; + +#[cfg(feature = "ShadowRoot")] +#[allow(non_snake_case)] +mod gen_ShadowRoot; +#[cfg(feature = "ShadowRoot")] +pub use gen_ShadowRoot::*; + +#[cfg(feature = "ShadowRootInit")] +#[allow(non_snake_case)] +mod gen_ShadowRootInit; +#[cfg(feature = "ShadowRootInit")] +pub use gen_ShadowRootInit::*; + +#[cfg(feature = "ShadowRootMode")] +#[allow(non_snake_case)] +mod gen_ShadowRootMode; +#[cfg(feature = "ShadowRootMode")] +pub use gen_ShadowRootMode::*; + +#[cfg(feature = "SharedWorker")] +#[allow(non_snake_case)] +mod gen_SharedWorker; +#[cfg(feature = "SharedWorker")] +pub use gen_SharedWorker::*; + +#[cfg(feature = "SharedWorkerGlobalScope")] +#[allow(non_snake_case)] +mod gen_SharedWorkerGlobalScope; +#[cfg(feature = "SharedWorkerGlobalScope")] +pub use gen_SharedWorkerGlobalScope::*; + +#[cfg(feature = "SignResponse")] +#[allow(non_snake_case)] +mod gen_SignResponse; +#[cfg(feature = "SignResponse")] +pub use gen_SignResponse::*; + +#[cfg(feature = "SocketElement")] +#[allow(non_snake_case)] +mod gen_SocketElement; +#[cfg(feature = "SocketElement")] +pub use gen_SocketElement::*; + +#[cfg(feature = "SocketOptions")] +#[allow(non_snake_case)] +mod gen_SocketOptions; +#[cfg(feature = "SocketOptions")] +pub use gen_SocketOptions::*; + +#[cfg(feature = "SocketReadyState")] +#[allow(non_snake_case)] +mod gen_SocketReadyState; +#[cfg(feature = "SocketReadyState")] +pub use gen_SocketReadyState::*; + +#[cfg(feature = "SocketsDict")] +#[allow(non_snake_case)] +mod gen_SocketsDict; +#[cfg(feature = "SocketsDict")] +pub use gen_SocketsDict::*; + +#[cfg(feature = "SourceBuffer")] +#[allow(non_snake_case)] +mod gen_SourceBuffer; +#[cfg(feature = "SourceBuffer")] +pub use gen_SourceBuffer::*; + +#[cfg(feature = "SourceBufferAppendMode")] +#[allow(non_snake_case)] +mod gen_SourceBufferAppendMode; +#[cfg(feature = "SourceBufferAppendMode")] +pub use gen_SourceBufferAppendMode::*; + +#[cfg(feature = "SourceBufferList")] +#[allow(non_snake_case)] +mod gen_SourceBufferList; +#[cfg(feature = "SourceBufferList")] +pub use gen_SourceBufferList::*; + +#[cfg(feature = "SpeechGrammar")] +#[allow(non_snake_case)] +mod gen_SpeechGrammar; +#[cfg(feature = "SpeechGrammar")] +pub use gen_SpeechGrammar::*; + +#[cfg(feature = "SpeechGrammarList")] +#[allow(non_snake_case)] +mod gen_SpeechGrammarList; +#[cfg(feature = "SpeechGrammarList")] +pub use gen_SpeechGrammarList::*; + +#[cfg(feature = "SpeechRecognition")] +#[allow(non_snake_case)] +mod gen_SpeechRecognition; +#[cfg(feature = "SpeechRecognition")] +pub use gen_SpeechRecognition::*; + +#[cfg(feature = "SpeechRecognitionAlternative")] +#[allow(non_snake_case)] +mod gen_SpeechRecognitionAlternative; +#[cfg(feature = "SpeechRecognitionAlternative")] +pub use gen_SpeechRecognitionAlternative::*; + +#[cfg(feature = "SpeechRecognitionError")] +#[allow(non_snake_case)] +mod gen_SpeechRecognitionError; +#[cfg(feature = "SpeechRecognitionError")] +pub use gen_SpeechRecognitionError::*; + +#[cfg(feature = "SpeechRecognitionErrorCode")] +#[allow(non_snake_case)] +mod gen_SpeechRecognitionErrorCode; +#[cfg(feature = "SpeechRecognitionErrorCode")] +pub use gen_SpeechRecognitionErrorCode::*; + +#[cfg(feature = "SpeechRecognitionErrorInit")] +#[allow(non_snake_case)] +mod gen_SpeechRecognitionErrorInit; +#[cfg(feature = "SpeechRecognitionErrorInit")] +pub use gen_SpeechRecognitionErrorInit::*; + +#[cfg(feature = "SpeechRecognitionEvent")] +#[allow(non_snake_case)] +mod gen_SpeechRecognitionEvent; +#[cfg(feature = "SpeechRecognitionEvent")] +pub use gen_SpeechRecognitionEvent::*; + +#[cfg(feature = "SpeechRecognitionEventInit")] +#[allow(non_snake_case)] +mod gen_SpeechRecognitionEventInit; +#[cfg(feature = "SpeechRecognitionEventInit")] +pub use gen_SpeechRecognitionEventInit::*; + +#[cfg(feature = "SpeechRecognitionResult")] +#[allow(non_snake_case)] +mod gen_SpeechRecognitionResult; +#[cfg(feature = "SpeechRecognitionResult")] +pub use gen_SpeechRecognitionResult::*; + +#[cfg(feature = "SpeechRecognitionResultList")] +#[allow(non_snake_case)] +mod gen_SpeechRecognitionResultList; +#[cfg(feature = "SpeechRecognitionResultList")] +pub use gen_SpeechRecognitionResultList::*; + +#[cfg(feature = "SpeechSynthesis")] +#[allow(non_snake_case)] +mod gen_SpeechSynthesis; +#[cfg(feature = "SpeechSynthesis")] +pub use gen_SpeechSynthesis::*; + +#[cfg(feature = "SpeechSynthesisErrorCode")] +#[allow(non_snake_case)] +mod gen_SpeechSynthesisErrorCode; +#[cfg(feature = "SpeechSynthesisErrorCode")] +pub use gen_SpeechSynthesisErrorCode::*; + +#[cfg(feature = "SpeechSynthesisErrorEvent")] +#[allow(non_snake_case)] +mod gen_SpeechSynthesisErrorEvent; +#[cfg(feature = "SpeechSynthesisErrorEvent")] +pub use gen_SpeechSynthesisErrorEvent::*; + +#[cfg(feature = "SpeechSynthesisErrorEventInit")] +#[allow(non_snake_case)] +mod gen_SpeechSynthesisErrorEventInit; +#[cfg(feature = "SpeechSynthesisErrorEventInit")] +pub use gen_SpeechSynthesisErrorEventInit::*; + +#[cfg(feature = "SpeechSynthesisEvent")] +#[allow(non_snake_case)] +mod gen_SpeechSynthesisEvent; +#[cfg(feature = "SpeechSynthesisEvent")] +pub use gen_SpeechSynthesisEvent::*; + +#[cfg(feature = "SpeechSynthesisEventInit")] +#[allow(non_snake_case)] +mod gen_SpeechSynthesisEventInit; +#[cfg(feature = "SpeechSynthesisEventInit")] +pub use gen_SpeechSynthesisEventInit::*; + +#[cfg(feature = "SpeechSynthesisUtterance")] +#[allow(non_snake_case)] +mod gen_SpeechSynthesisUtterance; +#[cfg(feature = "SpeechSynthesisUtterance")] +pub use gen_SpeechSynthesisUtterance::*; + +#[cfg(feature = "SpeechSynthesisVoice")] +#[allow(non_snake_case)] +mod gen_SpeechSynthesisVoice; +#[cfg(feature = "SpeechSynthesisVoice")] +pub use gen_SpeechSynthesisVoice::*; + +#[cfg(feature = "StereoPannerNode")] +#[allow(non_snake_case)] +mod gen_StereoPannerNode; +#[cfg(feature = "StereoPannerNode")] +pub use gen_StereoPannerNode::*; + +#[cfg(feature = "StereoPannerOptions")] +#[allow(non_snake_case)] +mod gen_StereoPannerOptions; +#[cfg(feature = "StereoPannerOptions")] +pub use gen_StereoPannerOptions::*; + +#[cfg(feature = "Storage")] +#[allow(non_snake_case)] +mod gen_Storage; +#[cfg(feature = "Storage")] +pub use gen_Storage::*; + +#[cfg(feature = "StorageEstimate")] +#[allow(non_snake_case)] +mod gen_StorageEstimate; +#[cfg(feature = "StorageEstimate")] +pub use gen_StorageEstimate::*; + +#[cfg(feature = "StorageEvent")] +#[allow(non_snake_case)] +mod gen_StorageEvent; +#[cfg(feature = "StorageEvent")] +pub use gen_StorageEvent::*; + +#[cfg(feature = "StorageEventInit")] +#[allow(non_snake_case)] +mod gen_StorageEventInit; +#[cfg(feature = "StorageEventInit")] +pub use gen_StorageEventInit::*; + +#[cfg(feature = "StorageManager")] +#[allow(non_snake_case)] +mod gen_StorageManager; +#[cfg(feature = "StorageManager")] +pub use gen_StorageManager::*; + +#[cfg(feature = "StorageType")] +#[allow(non_snake_case)] +mod gen_StorageType; +#[cfg(feature = "StorageType")] +pub use gen_StorageType::*; + +#[cfg(feature = "StyleRuleChangeEventInit")] +#[allow(non_snake_case)] +mod gen_StyleRuleChangeEventInit; +#[cfg(feature = "StyleRuleChangeEventInit")] +pub use gen_StyleRuleChangeEventInit::*; + +#[cfg(feature = "StyleSheet")] +#[allow(non_snake_case)] +mod gen_StyleSheet; +#[cfg(feature = "StyleSheet")] +pub use gen_StyleSheet::*; + +#[cfg(feature = "StyleSheetApplicableStateChangeEventInit")] +#[allow(non_snake_case)] +mod gen_StyleSheetApplicableStateChangeEventInit; +#[cfg(feature = "StyleSheetApplicableStateChangeEventInit")] +pub use gen_StyleSheetApplicableStateChangeEventInit::*; + +#[cfg(feature = "StyleSheetChangeEventInit")] +#[allow(non_snake_case)] +mod gen_StyleSheetChangeEventInit; +#[cfg(feature = "StyleSheetChangeEventInit")] +pub use gen_StyleSheetChangeEventInit::*; + +#[cfg(feature = "StyleSheetList")] +#[allow(non_snake_case)] +mod gen_StyleSheetList; +#[cfg(feature = "StyleSheetList")] +pub use gen_StyleSheetList::*; + +#[cfg(feature = "SubtleCrypto")] +#[allow(non_snake_case)] +mod gen_SubtleCrypto; +#[cfg(feature = "SubtleCrypto")] +pub use gen_SubtleCrypto::*; + +#[cfg(feature = "SupportedType")] +#[allow(non_snake_case)] +mod gen_SupportedType; +#[cfg(feature = "SupportedType")] +pub use gen_SupportedType::*; + +#[cfg(feature = "SvgAngle")] +#[allow(non_snake_case)] +mod gen_SvgAngle; +#[cfg(feature = "SvgAngle")] +pub use gen_SvgAngle::*; + +#[cfg(feature = "SvgAnimateElement")] +#[allow(non_snake_case)] +mod gen_SvgAnimateElement; +#[cfg(feature = "SvgAnimateElement")] +pub use gen_SvgAnimateElement::*; + +#[cfg(feature = "SvgAnimateMotionElement")] +#[allow(non_snake_case)] +mod gen_SvgAnimateMotionElement; +#[cfg(feature = "SvgAnimateMotionElement")] +pub use gen_SvgAnimateMotionElement::*; + +#[cfg(feature = "SvgAnimateTransformElement")] +#[allow(non_snake_case)] +mod gen_SvgAnimateTransformElement; +#[cfg(feature = "SvgAnimateTransformElement")] +pub use gen_SvgAnimateTransformElement::*; + +#[cfg(feature = "SvgAnimatedAngle")] +#[allow(non_snake_case)] +mod gen_SvgAnimatedAngle; +#[cfg(feature = "SvgAnimatedAngle")] +pub use gen_SvgAnimatedAngle::*; + +#[cfg(feature = "SvgAnimatedBoolean")] +#[allow(non_snake_case)] +mod gen_SvgAnimatedBoolean; +#[cfg(feature = "SvgAnimatedBoolean")] +pub use gen_SvgAnimatedBoolean::*; + +#[cfg(feature = "SvgAnimatedEnumeration")] +#[allow(non_snake_case)] +mod gen_SvgAnimatedEnumeration; +#[cfg(feature = "SvgAnimatedEnumeration")] +pub use gen_SvgAnimatedEnumeration::*; + +#[cfg(feature = "SvgAnimatedInteger")] +#[allow(non_snake_case)] +mod gen_SvgAnimatedInteger; +#[cfg(feature = "SvgAnimatedInteger")] +pub use gen_SvgAnimatedInteger::*; + +#[cfg(feature = "SvgAnimatedLength")] +#[allow(non_snake_case)] +mod gen_SvgAnimatedLength; +#[cfg(feature = "SvgAnimatedLength")] +pub use gen_SvgAnimatedLength::*; + +#[cfg(feature = "SvgAnimatedLengthList")] +#[allow(non_snake_case)] +mod gen_SvgAnimatedLengthList; +#[cfg(feature = "SvgAnimatedLengthList")] +pub use gen_SvgAnimatedLengthList::*; + +#[cfg(feature = "SvgAnimatedNumber")] +#[allow(non_snake_case)] +mod gen_SvgAnimatedNumber; +#[cfg(feature = "SvgAnimatedNumber")] +pub use gen_SvgAnimatedNumber::*; + +#[cfg(feature = "SvgAnimatedNumberList")] +#[allow(non_snake_case)] +mod gen_SvgAnimatedNumberList; +#[cfg(feature = "SvgAnimatedNumberList")] +pub use gen_SvgAnimatedNumberList::*; + +#[cfg(feature = "SvgAnimatedPreserveAspectRatio")] +#[allow(non_snake_case)] +mod gen_SvgAnimatedPreserveAspectRatio; +#[cfg(feature = "SvgAnimatedPreserveAspectRatio")] +pub use gen_SvgAnimatedPreserveAspectRatio::*; + +#[cfg(feature = "SvgAnimatedRect")] +#[allow(non_snake_case)] +mod gen_SvgAnimatedRect; +#[cfg(feature = "SvgAnimatedRect")] +pub use gen_SvgAnimatedRect::*; + +#[cfg(feature = "SvgAnimatedString")] +#[allow(non_snake_case)] +mod gen_SvgAnimatedString; +#[cfg(feature = "SvgAnimatedString")] +pub use gen_SvgAnimatedString::*; + +#[cfg(feature = "SvgAnimatedTransformList")] +#[allow(non_snake_case)] +mod gen_SvgAnimatedTransformList; +#[cfg(feature = "SvgAnimatedTransformList")] +pub use gen_SvgAnimatedTransformList::*; + +#[cfg(feature = "SvgAnimationElement")] +#[allow(non_snake_case)] +mod gen_SvgAnimationElement; +#[cfg(feature = "SvgAnimationElement")] +pub use gen_SvgAnimationElement::*; + +#[cfg(feature = "SvgBoundingBoxOptions")] +#[allow(non_snake_case)] +mod gen_SvgBoundingBoxOptions; +#[cfg(feature = "SvgBoundingBoxOptions")] +pub use gen_SvgBoundingBoxOptions::*; + +#[cfg(feature = "SvgCircleElement")] +#[allow(non_snake_case)] +mod gen_SvgCircleElement; +#[cfg(feature = "SvgCircleElement")] +pub use gen_SvgCircleElement::*; + +#[cfg(feature = "SvgClipPathElement")] +#[allow(non_snake_case)] +mod gen_SvgClipPathElement; +#[cfg(feature = "SvgClipPathElement")] +pub use gen_SvgClipPathElement::*; + +#[cfg(feature = "SvgComponentTransferFunctionElement")] +#[allow(non_snake_case)] +mod gen_SvgComponentTransferFunctionElement; +#[cfg(feature = "SvgComponentTransferFunctionElement")] +pub use gen_SvgComponentTransferFunctionElement::*; + +#[cfg(feature = "SvgDefsElement")] +#[allow(non_snake_case)] +mod gen_SvgDefsElement; +#[cfg(feature = "SvgDefsElement")] +pub use gen_SvgDefsElement::*; + +#[cfg(feature = "SvgDescElement")] +#[allow(non_snake_case)] +mod gen_SvgDescElement; +#[cfg(feature = "SvgDescElement")] +pub use gen_SvgDescElement::*; + +#[cfg(feature = "SvgElement")] +#[allow(non_snake_case)] +mod gen_SvgElement; +#[cfg(feature = "SvgElement")] +pub use gen_SvgElement::*; + +#[cfg(feature = "SvgEllipseElement")] +#[allow(non_snake_case)] +mod gen_SvgEllipseElement; +#[cfg(feature = "SvgEllipseElement")] +pub use gen_SvgEllipseElement::*; + +#[cfg(feature = "SvgFilterElement")] +#[allow(non_snake_case)] +mod gen_SvgFilterElement; +#[cfg(feature = "SvgFilterElement")] +pub use gen_SvgFilterElement::*; + +#[cfg(feature = "SvgForeignObjectElement")] +#[allow(non_snake_case)] +mod gen_SvgForeignObjectElement; +#[cfg(feature = "SvgForeignObjectElement")] +pub use gen_SvgForeignObjectElement::*; + +#[cfg(feature = "SvgGeometryElement")] +#[allow(non_snake_case)] +mod gen_SvgGeometryElement; +#[cfg(feature = "SvgGeometryElement")] +pub use gen_SvgGeometryElement::*; + +#[cfg(feature = "SvgGradientElement")] +#[allow(non_snake_case)] +mod gen_SvgGradientElement; +#[cfg(feature = "SvgGradientElement")] +pub use gen_SvgGradientElement::*; + +#[cfg(feature = "SvgGraphicsElement")] +#[allow(non_snake_case)] +mod gen_SvgGraphicsElement; +#[cfg(feature = "SvgGraphicsElement")] +pub use gen_SvgGraphicsElement::*; + +#[cfg(feature = "SvgImageElement")] +#[allow(non_snake_case)] +mod gen_SvgImageElement; +#[cfg(feature = "SvgImageElement")] +pub use gen_SvgImageElement::*; + +#[cfg(feature = "SvgLength")] +#[allow(non_snake_case)] +mod gen_SvgLength; +#[cfg(feature = "SvgLength")] +pub use gen_SvgLength::*; + +#[cfg(feature = "SvgLengthList")] +#[allow(non_snake_case)] +mod gen_SvgLengthList; +#[cfg(feature = "SvgLengthList")] +pub use gen_SvgLengthList::*; + +#[cfg(feature = "SvgLineElement")] +#[allow(non_snake_case)] +mod gen_SvgLineElement; +#[cfg(feature = "SvgLineElement")] +pub use gen_SvgLineElement::*; + +#[cfg(feature = "SvgLinearGradientElement")] +#[allow(non_snake_case)] +mod gen_SvgLinearGradientElement; +#[cfg(feature = "SvgLinearGradientElement")] +pub use gen_SvgLinearGradientElement::*; + +#[cfg(feature = "SvgMarkerElement")] +#[allow(non_snake_case)] +mod gen_SvgMarkerElement; +#[cfg(feature = "SvgMarkerElement")] +pub use gen_SvgMarkerElement::*; + +#[cfg(feature = "SvgMaskElement")] +#[allow(non_snake_case)] +mod gen_SvgMaskElement; +#[cfg(feature = "SvgMaskElement")] +pub use gen_SvgMaskElement::*; + +#[cfg(feature = "SvgMatrix")] +#[allow(non_snake_case)] +mod gen_SvgMatrix; +#[cfg(feature = "SvgMatrix")] +pub use gen_SvgMatrix::*; + +#[cfg(feature = "SvgMetadataElement")] +#[allow(non_snake_case)] +mod gen_SvgMetadataElement; +#[cfg(feature = "SvgMetadataElement")] +pub use gen_SvgMetadataElement::*; + +#[cfg(feature = "SvgNumber")] +#[allow(non_snake_case)] +mod gen_SvgNumber; +#[cfg(feature = "SvgNumber")] +pub use gen_SvgNumber::*; + +#[cfg(feature = "SvgNumberList")] +#[allow(non_snake_case)] +mod gen_SvgNumberList; +#[cfg(feature = "SvgNumberList")] +pub use gen_SvgNumberList::*; + +#[cfg(feature = "SvgPathElement")] +#[allow(non_snake_case)] +mod gen_SvgPathElement; +#[cfg(feature = "SvgPathElement")] +pub use gen_SvgPathElement::*; + +#[cfg(feature = "SvgPathSeg")] +#[allow(non_snake_case)] +mod gen_SvgPathSeg; +#[cfg(feature = "SvgPathSeg")] +pub use gen_SvgPathSeg::*; + +#[cfg(feature = "SvgPathSegArcAbs")] +#[allow(non_snake_case)] +mod gen_SvgPathSegArcAbs; +#[cfg(feature = "SvgPathSegArcAbs")] +pub use gen_SvgPathSegArcAbs::*; + +#[cfg(feature = "SvgPathSegArcRel")] +#[allow(non_snake_case)] +mod gen_SvgPathSegArcRel; +#[cfg(feature = "SvgPathSegArcRel")] +pub use gen_SvgPathSegArcRel::*; + +#[cfg(feature = "SvgPathSegClosePath")] +#[allow(non_snake_case)] +mod gen_SvgPathSegClosePath; +#[cfg(feature = "SvgPathSegClosePath")] +pub use gen_SvgPathSegClosePath::*; + +#[cfg(feature = "SvgPathSegCurvetoCubicAbs")] +#[allow(non_snake_case)] +mod gen_SvgPathSegCurvetoCubicAbs; +#[cfg(feature = "SvgPathSegCurvetoCubicAbs")] +pub use gen_SvgPathSegCurvetoCubicAbs::*; + +#[cfg(feature = "SvgPathSegCurvetoCubicRel")] +#[allow(non_snake_case)] +mod gen_SvgPathSegCurvetoCubicRel; +#[cfg(feature = "SvgPathSegCurvetoCubicRel")] +pub use gen_SvgPathSegCurvetoCubicRel::*; + +#[cfg(feature = "SvgPathSegCurvetoCubicSmoothAbs")] +#[allow(non_snake_case)] +mod gen_SvgPathSegCurvetoCubicSmoothAbs; +#[cfg(feature = "SvgPathSegCurvetoCubicSmoothAbs")] +pub use gen_SvgPathSegCurvetoCubicSmoothAbs::*; + +#[cfg(feature = "SvgPathSegCurvetoCubicSmoothRel")] +#[allow(non_snake_case)] +mod gen_SvgPathSegCurvetoCubicSmoothRel; +#[cfg(feature = "SvgPathSegCurvetoCubicSmoothRel")] +pub use gen_SvgPathSegCurvetoCubicSmoothRel::*; + +#[cfg(feature = "SvgPathSegCurvetoQuadraticAbs")] +#[allow(non_snake_case)] +mod gen_SvgPathSegCurvetoQuadraticAbs; +#[cfg(feature = "SvgPathSegCurvetoQuadraticAbs")] +pub use gen_SvgPathSegCurvetoQuadraticAbs::*; + +#[cfg(feature = "SvgPathSegCurvetoQuadraticRel")] +#[allow(non_snake_case)] +mod gen_SvgPathSegCurvetoQuadraticRel; +#[cfg(feature = "SvgPathSegCurvetoQuadraticRel")] +pub use gen_SvgPathSegCurvetoQuadraticRel::*; + +#[cfg(feature = "SvgPathSegCurvetoQuadraticSmoothAbs")] +#[allow(non_snake_case)] +mod gen_SvgPathSegCurvetoQuadraticSmoothAbs; +#[cfg(feature = "SvgPathSegCurvetoQuadraticSmoothAbs")] +pub use gen_SvgPathSegCurvetoQuadraticSmoothAbs::*; + +#[cfg(feature = "SvgPathSegCurvetoQuadraticSmoothRel")] +#[allow(non_snake_case)] +mod gen_SvgPathSegCurvetoQuadraticSmoothRel; +#[cfg(feature = "SvgPathSegCurvetoQuadraticSmoothRel")] +pub use gen_SvgPathSegCurvetoQuadraticSmoothRel::*; + +#[cfg(feature = "SvgPathSegLinetoAbs")] +#[allow(non_snake_case)] +mod gen_SvgPathSegLinetoAbs; +#[cfg(feature = "SvgPathSegLinetoAbs")] +pub use gen_SvgPathSegLinetoAbs::*; + +#[cfg(feature = "SvgPathSegLinetoHorizontalAbs")] +#[allow(non_snake_case)] +mod gen_SvgPathSegLinetoHorizontalAbs; +#[cfg(feature = "SvgPathSegLinetoHorizontalAbs")] +pub use gen_SvgPathSegLinetoHorizontalAbs::*; + +#[cfg(feature = "SvgPathSegLinetoHorizontalRel")] +#[allow(non_snake_case)] +mod gen_SvgPathSegLinetoHorizontalRel; +#[cfg(feature = "SvgPathSegLinetoHorizontalRel")] +pub use gen_SvgPathSegLinetoHorizontalRel::*; + +#[cfg(feature = "SvgPathSegLinetoRel")] +#[allow(non_snake_case)] +mod gen_SvgPathSegLinetoRel; +#[cfg(feature = "SvgPathSegLinetoRel")] +pub use gen_SvgPathSegLinetoRel::*; + +#[cfg(feature = "SvgPathSegLinetoVerticalAbs")] +#[allow(non_snake_case)] +mod gen_SvgPathSegLinetoVerticalAbs; +#[cfg(feature = "SvgPathSegLinetoVerticalAbs")] +pub use gen_SvgPathSegLinetoVerticalAbs::*; + +#[cfg(feature = "SvgPathSegLinetoVerticalRel")] +#[allow(non_snake_case)] +mod gen_SvgPathSegLinetoVerticalRel; +#[cfg(feature = "SvgPathSegLinetoVerticalRel")] +pub use gen_SvgPathSegLinetoVerticalRel::*; + +#[cfg(feature = "SvgPathSegList")] +#[allow(non_snake_case)] +mod gen_SvgPathSegList; +#[cfg(feature = "SvgPathSegList")] +pub use gen_SvgPathSegList::*; + +#[cfg(feature = "SvgPathSegMovetoAbs")] +#[allow(non_snake_case)] +mod gen_SvgPathSegMovetoAbs; +#[cfg(feature = "SvgPathSegMovetoAbs")] +pub use gen_SvgPathSegMovetoAbs::*; + +#[cfg(feature = "SvgPathSegMovetoRel")] +#[allow(non_snake_case)] +mod gen_SvgPathSegMovetoRel; +#[cfg(feature = "SvgPathSegMovetoRel")] +pub use gen_SvgPathSegMovetoRel::*; + +#[cfg(feature = "SvgPatternElement")] +#[allow(non_snake_case)] +mod gen_SvgPatternElement; +#[cfg(feature = "SvgPatternElement")] +pub use gen_SvgPatternElement::*; + +#[cfg(feature = "SvgPoint")] +#[allow(non_snake_case)] +mod gen_SvgPoint; +#[cfg(feature = "SvgPoint")] +pub use gen_SvgPoint::*; + +#[cfg(feature = "SvgPointList")] +#[allow(non_snake_case)] +mod gen_SvgPointList; +#[cfg(feature = "SvgPointList")] +pub use gen_SvgPointList::*; + +#[cfg(feature = "SvgPolygonElement")] +#[allow(non_snake_case)] +mod gen_SvgPolygonElement; +#[cfg(feature = "SvgPolygonElement")] +pub use gen_SvgPolygonElement::*; + +#[cfg(feature = "SvgPolylineElement")] +#[allow(non_snake_case)] +mod gen_SvgPolylineElement; +#[cfg(feature = "SvgPolylineElement")] +pub use gen_SvgPolylineElement::*; + +#[cfg(feature = "SvgPreserveAspectRatio")] +#[allow(non_snake_case)] +mod gen_SvgPreserveAspectRatio; +#[cfg(feature = "SvgPreserveAspectRatio")] +pub use gen_SvgPreserveAspectRatio::*; + +#[cfg(feature = "SvgRadialGradientElement")] +#[allow(non_snake_case)] +mod gen_SvgRadialGradientElement; +#[cfg(feature = "SvgRadialGradientElement")] +pub use gen_SvgRadialGradientElement::*; + +#[cfg(feature = "SvgRect")] +#[allow(non_snake_case)] +mod gen_SvgRect; +#[cfg(feature = "SvgRect")] +pub use gen_SvgRect::*; + +#[cfg(feature = "SvgRectElement")] +#[allow(non_snake_case)] +mod gen_SvgRectElement; +#[cfg(feature = "SvgRectElement")] +pub use gen_SvgRectElement::*; + +#[cfg(feature = "SvgScriptElement")] +#[allow(non_snake_case)] +mod gen_SvgScriptElement; +#[cfg(feature = "SvgScriptElement")] +pub use gen_SvgScriptElement::*; + +#[cfg(feature = "SvgSetElement")] +#[allow(non_snake_case)] +mod gen_SvgSetElement; +#[cfg(feature = "SvgSetElement")] +pub use gen_SvgSetElement::*; + +#[cfg(feature = "SvgStopElement")] +#[allow(non_snake_case)] +mod gen_SvgStopElement; +#[cfg(feature = "SvgStopElement")] +pub use gen_SvgStopElement::*; + +#[cfg(feature = "SvgStringList")] +#[allow(non_snake_case)] +mod gen_SvgStringList; +#[cfg(feature = "SvgStringList")] +pub use gen_SvgStringList::*; + +#[cfg(feature = "SvgStyleElement")] +#[allow(non_snake_case)] +mod gen_SvgStyleElement; +#[cfg(feature = "SvgStyleElement")] +pub use gen_SvgStyleElement::*; + +#[cfg(feature = "SvgSwitchElement")] +#[allow(non_snake_case)] +mod gen_SvgSwitchElement; +#[cfg(feature = "SvgSwitchElement")] +pub use gen_SvgSwitchElement::*; + +#[cfg(feature = "SvgSymbolElement")] +#[allow(non_snake_case)] +mod gen_SvgSymbolElement; +#[cfg(feature = "SvgSymbolElement")] +pub use gen_SvgSymbolElement::*; + +#[cfg(feature = "SvgTextContentElement")] +#[allow(non_snake_case)] +mod gen_SvgTextContentElement; +#[cfg(feature = "SvgTextContentElement")] +pub use gen_SvgTextContentElement::*; + +#[cfg(feature = "SvgTextElement")] +#[allow(non_snake_case)] +mod gen_SvgTextElement; +#[cfg(feature = "SvgTextElement")] +pub use gen_SvgTextElement::*; + +#[cfg(feature = "SvgTextPathElement")] +#[allow(non_snake_case)] +mod gen_SvgTextPathElement; +#[cfg(feature = "SvgTextPathElement")] +pub use gen_SvgTextPathElement::*; + +#[cfg(feature = "SvgTextPositioningElement")] +#[allow(non_snake_case)] +mod gen_SvgTextPositioningElement; +#[cfg(feature = "SvgTextPositioningElement")] +pub use gen_SvgTextPositioningElement::*; + +#[cfg(feature = "SvgTitleElement")] +#[allow(non_snake_case)] +mod gen_SvgTitleElement; +#[cfg(feature = "SvgTitleElement")] +pub use gen_SvgTitleElement::*; + +#[cfg(feature = "SvgTransform")] +#[allow(non_snake_case)] +mod gen_SvgTransform; +#[cfg(feature = "SvgTransform")] +pub use gen_SvgTransform::*; + +#[cfg(feature = "SvgTransformList")] +#[allow(non_snake_case)] +mod gen_SvgTransformList; +#[cfg(feature = "SvgTransformList")] +pub use gen_SvgTransformList::*; + +#[cfg(feature = "SvgUnitTypes")] +#[allow(non_snake_case)] +mod gen_SvgUnitTypes; +#[cfg(feature = "SvgUnitTypes")] +pub use gen_SvgUnitTypes::*; + +#[cfg(feature = "SvgUseElement")] +#[allow(non_snake_case)] +mod gen_SvgUseElement; +#[cfg(feature = "SvgUseElement")] +pub use gen_SvgUseElement::*; + +#[cfg(feature = "SvgViewElement")] +#[allow(non_snake_case)] +mod gen_SvgViewElement; +#[cfg(feature = "SvgViewElement")] +pub use gen_SvgViewElement::*; + +#[cfg(feature = "SvgZoomAndPan")] +#[allow(non_snake_case)] +mod gen_SvgZoomAndPan; +#[cfg(feature = "SvgZoomAndPan")] +pub use gen_SvgZoomAndPan::*; + +#[cfg(feature = "SvgaElement")] +#[allow(non_snake_case)] +mod gen_SvgaElement; +#[cfg(feature = "SvgaElement")] +pub use gen_SvgaElement::*; + +#[cfg(feature = "SvgfeBlendElement")] +#[allow(non_snake_case)] +mod gen_SvgfeBlendElement; +#[cfg(feature = "SvgfeBlendElement")] +pub use gen_SvgfeBlendElement::*; + +#[cfg(feature = "SvgfeColorMatrixElement")] +#[allow(non_snake_case)] +mod gen_SvgfeColorMatrixElement; +#[cfg(feature = "SvgfeColorMatrixElement")] +pub use gen_SvgfeColorMatrixElement::*; + +#[cfg(feature = "SvgfeComponentTransferElement")] +#[allow(non_snake_case)] +mod gen_SvgfeComponentTransferElement; +#[cfg(feature = "SvgfeComponentTransferElement")] +pub use gen_SvgfeComponentTransferElement::*; + +#[cfg(feature = "SvgfeCompositeElement")] +#[allow(non_snake_case)] +mod gen_SvgfeCompositeElement; +#[cfg(feature = "SvgfeCompositeElement")] +pub use gen_SvgfeCompositeElement::*; + +#[cfg(feature = "SvgfeConvolveMatrixElement")] +#[allow(non_snake_case)] +mod gen_SvgfeConvolveMatrixElement; +#[cfg(feature = "SvgfeConvolveMatrixElement")] +pub use gen_SvgfeConvolveMatrixElement::*; + +#[cfg(feature = "SvgfeDiffuseLightingElement")] +#[allow(non_snake_case)] +mod gen_SvgfeDiffuseLightingElement; +#[cfg(feature = "SvgfeDiffuseLightingElement")] +pub use gen_SvgfeDiffuseLightingElement::*; + +#[cfg(feature = "SvgfeDisplacementMapElement")] +#[allow(non_snake_case)] +mod gen_SvgfeDisplacementMapElement; +#[cfg(feature = "SvgfeDisplacementMapElement")] +pub use gen_SvgfeDisplacementMapElement::*; + +#[cfg(feature = "SvgfeDistantLightElement")] +#[allow(non_snake_case)] +mod gen_SvgfeDistantLightElement; +#[cfg(feature = "SvgfeDistantLightElement")] +pub use gen_SvgfeDistantLightElement::*; + +#[cfg(feature = "SvgfeDropShadowElement")] +#[allow(non_snake_case)] +mod gen_SvgfeDropShadowElement; +#[cfg(feature = "SvgfeDropShadowElement")] +pub use gen_SvgfeDropShadowElement::*; + +#[cfg(feature = "SvgfeFloodElement")] +#[allow(non_snake_case)] +mod gen_SvgfeFloodElement; +#[cfg(feature = "SvgfeFloodElement")] +pub use gen_SvgfeFloodElement::*; + +#[cfg(feature = "SvgfeFuncAElement")] +#[allow(non_snake_case)] +mod gen_SvgfeFuncAElement; +#[cfg(feature = "SvgfeFuncAElement")] +pub use gen_SvgfeFuncAElement::*; + +#[cfg(feature = "SvgfeFuncBElement")] +#[allow(non_snake_case)] +mod gen_SvgfeFuncBElement; +#[cfg(feature = "SvgfeFuncBElement")] +pub use gen_SvgfeFuncBElement::*; + +#[cfg(feature = "SvgfeFuncGElement")] +#[allow(non_snake_case)] +mod gen_SvgfeFuncGElement; +#[cfg(feature = "SvgfeFuncGElement")] +pub use gen_SvgfeFuncGElement::*; + +#[cfg(feature = "SvgfeFuncRElement")] +#[allow(non_snake_case)] +mod gen_SvgfeFuncRElement; +#[cfg(feature = "SvgfeFuncRElement")] +pub use gen_SvgfeFuncRElement::*; + +#[cfg(feature = "SvgfeGaussianBlurElement")] +#[allow(non_snake_case)] +mod gen_SvgfeGaussianBlurElement; +#[cfg(feature = "SvgfeGaussianBlurElement")] +pub use gen_SvgfeGaussianBlurElement::*; + +#[cfg(feature = "SvgfeImageElement")] +#[allow(non_snake_case)] +mod gen_SvgfeImageElement; +#[cfg(feature = "SvgfeImageElement")] +pub use gen_SvgfeImageElement::*; + +#[cfg(feature = "SvgfeMergeElement")] +#[allow(non_snake_case)] +mod gen_SvgfeMergeElement; +#[cfg(feature = "SvgfeMergeElement")] +pub use gen_SvgfeMergeElement::*; + +#[cfg(feature = "SvgfeMergeNodeElement")] +#[allow(non_snake_case)] +mod gen_SvgfeMergeNodeElement; +#[cfg(feature = "SvgfeMergeNodeElement")] +pub use gen_SvgfeMergeNodeElement::*; + +#[cfg(feature = "SvgfeMorphologyElement")] +#[allow(non_snake_case)] +mod gen_SvgfeMorphologyElement; +#[cfg(feature = "SvgfeMorphologyElement")] +pub use gen_SvgfeMorphologyElement::*; + +#[cfg(feature = "SvgfeOffsetElement")] +#[allow(non_snake_case)] +mod gen_SvgfeOffsetElement; +#[cfg(feature = "SvgfeOffsetElement")] +pub use gen_SvgfeOffsetElement::*; + +#[cfg(feature = "SvgfePointLightElement")] +#[allow(non_snake_case)] +mod gen_SvgfePointLightElement; +#[cfg(feature = "SvgfePointLightElement")] +pub use gen_SvgfePointLightElement::*; + +#[cfg(feature = "SvgfeSpecularLightingElement")] +#[allow(non_snake_case)] +mod gen_SvgfeSpecularLightingElement; +#[cfg(feature = "SvgfeSpecularLightingElement")] +pub use gen_SvgfeSpecularLightingElement::*; + +#[cfg(feature = "SvgfeSpotLightElement")] +#[allow(non_snake_case)] +mod gen_SvgfeSpotLightElement; +#[cfg(feature = "SvgfeSpotLightElement")] +pub use gen_SvgfeSpotLightElement::*; + +#[cfg(feature = "SvgfeTileElement")] +#[allow(non_snake_case)] +mod gen_SvgfeTileElement; +#[cfg(feature = "SvgfeTileElement")] +pub use gen_SvgfeTileElement::*; + +#[cfg(feature = "SvgfeTurbulenceElement")] +#[allow(non_snake_case)] +mod gen_SvgfeTurbulenceElement; +#[cfg(feature = "SvgfeTurbulenceElement")] +pub use gen_SvgfeTurbulenceElement::*; + +#[cfg(feature = "SvggElement")] +#[allow(non_snake_case)] +mod gen_SvggElement; +#[cfg(feature = "SvggElement")] +pub use gen_SvggElement::*; + +#[cfg(feature = "SvgmPathElement")] +#[allow(non_snake_case)] +mod gen_SvgmPathElement; +#[cfg(feature = "SvgmPathElement")] +pub use gen_SvgmPathElement::*; + +#[cfg(feature = "SvgsvgElement")] +#[allow(non_snake_case)] +mod gen_SvgsvgElement; +#[cfg(feature = "SvgsvgElement")] +pub use gen_SvgsvgElement::*; + +#[cfg(feature = "SvgtSpanElement")] +#[allow(non_snake_case)] +mod gen_SvgtSpanElement; +#[cfg(feature = "SvgtSpanElement")] +pub use gen_SvgtSpanElement::*; + +#[cfg(feature = "TcpReadyState")] +#[allow(non_snake_case)] +mod gen_TcpReadyState; +#[cfg(feature = "TcpReadyState")] +pub use gen_TcpReadyState::*; + +#[cfg(feature = "TcpServerSocket")] +#[allow(non_snake_case)] +mod gen_TcpServerSocket; +#[cfg(feature = "TcpServerSocket")] +pub use gen_TcpServerSocket::*; + +#[cfg(feature = "TcpServerSocketEvent")] +#[allow(non_snake_case)] +mod gen_TcpServerSocketEvent; +#[cfg(feature = "TcpServerSocketEvent")] +pub use gen_TcpServerSocketEvent::*; + +#[cfg(feature = "TcpServerSocketEventInit")] +#[allow(non_snake_case)] +mod gen_TcpServerSocketEventInit; +#[cfg(feature = "TcpServerSocketEventInit")] +pub use gen_TcpServerSocketEventInit::*; + +#[cfg(feature = "TcpSocket")] +#[allow(non_snake_case)] +mod gen_TcpSocket; +#[cfg(feature = "TcpSocket")] +pub use gen_TcpSocket::*; + +#[cfg(feature = "TcpSocketBinaryType")] +#[allow(non_snake_case)] +mod gen_TcpSocketBinaryType; +#[cfg(feature = "TcpSocketBinaryType")] +pub use gen_TcpSocketBinaryType::*; + +#[cfg(feature = "TcpSocketErrorEvent")] +#[allow(non_snake_case)] +mod gen_TcpSocketErrorEvent; +#[cfg(feature = "TcpSocketErrorEvent")] +pub use gen_TcpSocketErrorEvent::*; + +#[cfg(feature = "TcpSocketErrorEventInit")] +#[allow(non_snake_case)] +mod gen_TcpSocketErrorEventInit; +#[cfg(feature = "TcpSocketErrorEventInit")] +pub use gen_TcpSocketErrorEventInit::*; + +#[cfg(feature = "TcpSocketEvent")] +#[allow(non_snake_case)] +mod gen_TcpSocketEvent; +#[cfg(feature = "TcpSocketEvent")] +pub use gen_TcpSocketEvent::*; + +#[cfg(feature = "TcpSocketEventInit")] +#[allow(non_snake_case)] +mod gen_TcpSocketEventInit; +#[cfg(feature = "TcpSocketEventInit")] +pub use gen_TcpSocketEventInit::*; + +#[cfg(feature = "Text")] +#[allow(non_snake_case)] +mod gen_Text; +#[cfg(feature = "Text")] +pub use gen_Text::*; + +#[cfg(feature = "TextDecodeOptions")] +#[allow(non_snake_case)] +mod gen_TextDecodeOptions; +#[cfg(feature = "TextDecodeOptions")] +pub use gen_TextDecodeOptions::*; + +#[cfg(feature = "TextDecoder")] +#[allow(non_snake_case)] +mod gen_TextDecoder; +#[cfg(feature = "TextDecoder")] +pub use gen_TextDecoder::*; + +#[cfg(feature = "TextDecoderOptions")] +#[allow(non_snake_case)] +mod gen_TextDecoderOptions; +#[cfg(feature = "TextDecoderOptions")] +pub use gen_TextDecoderOptions::*; + +#[cfg(feature = "TextEncoder")] +#[allow(non_snake_case)] +mod gen_TextEncoder; +#[cfg(feature = "TextEncoder")] +pub use gen_TextEncoder::*; + +#[cfg(feature = "TextMetrics")] +#[allow(non_snake_case)] +mod gen_TextMetrics; +#[cfg(feature = "TextMetrics")] +pub use gen_TextMetrics::*; + +#[cfg(feature = "TextTrack")] +#[allow(non_snake_case)] +mod gen_TextTrack; +#[cfg(feature = "TextTrack")] +pub use gen_TextTrack::*; + +#[cfg(feature = "TextTrackCue")] +#[allow(non_snake_case)] +mod gen_TextTrackCue; +#[cfg(feature = "TextTrackCue")] +pub use gen_TextTrackCue::*; + +#[cfg(feature = "TextTrackCueList")] +#[allow(non_snake_case)] +mod gen_TextTrackCueList; +#[cfg(feature = "TextTrackCueList")] +pub use gen_TextTrackCueList::*; + +#[cfg(feature = "TextTrackKind")] +#[allow(non_snake_case)] +mod gen_TextTrackKind; +#[cfg(feature = "TextTrackKind")] +pub use gen_TextTrackKind::*; + +#[cfg(feature = "TextTrackList")] +#[allow(non_snake_case)] +mod gen_TextTrackList; +#[cfg(feature = "TextTrackList")] +pub use gen_TextTrackList::*; + +#[cfg(feature = "TextTrackMode")] +#[allow(non_snake_case)] +mod gen_TextTrackMode; +#[cfg(feature = "TextTrackMode")] +pub use gen_TextTrackMode::*; + +#[cfg(feature = "TimeEvent")] +#[allow(non_snake_case)] +mod gen_TimeEvent; +#[cfg(feature = "TimeEvent")] +pub use gen_TimeEvent::*; + +#[cfg(feature = "TimeRanges")] +#[allow(non_snake_case)] +mod gen_TimeRanges; +#[cfg(feature = "TimeRanges")] +pub use gen_TimeRanges::*; + +#[cfg(feature = "Touch")] +#[allow(non_snake_case)] +mod gen_Touch; +#[cfg(feature = "Touch")] +pub use gen_Touch::*; + +#[cfg(feature = "TouchEvent")] +#[allow(non_snake_case)] +mod gen_TouchEvent; +#[cfg(feature = "TouchEvent")] +pub use gen_TouchEvent::*; + +#[cfg(feature = "TouchEventInit")] +#[allow(non_snake_case)] +mod gen_TouchEventInit; +#[cfg(feature = "TouchEventInit")] +pub use gen_TouchEventInit::*; + +#[cfg(feature = "TouchInit")] +#[allow(non_snake_case)] +mod gen_TouchInit; +#[cfg(feature = "TouchInit")] +pub use gen_TouchInit::*; + +#[cfg(feature = "TouchList")] +#[allow(non_snake_case)] +mod gen_TouchList; +#[cfg(feature = "TouchList")] +pub use gen_TouchList::*; + +#[cfg(feature = "TrackEvent")] +#[allow(non_snake_case)] +mod gen_TrackEvent; +#[cfg(feature = "TrackEvent")] +pub use gen_TrackEvent::*; + +#[cfg(feature = "TrackEventInit")] +#[allow(non_snake_case)] +mod gen_TrackEventInit; +#[cfg(feature = "TrackEventInit")] +pub use gen_TrackEventInit::*; + +#[cfg(feature = "TransitionEvent")] +#[allow(non_snake_case)] +mod gen_TransitionEvent; +#[cfg(feature = "TransitionEvent")] +pub use gen_TransitionEvent::*; + +#[cfg(feature = "TransitionEventInit")] +#[allow(non_snake_case)] +mod gen_TransitionEventInit; +#[cfg(feature = "TransitionEventInit")] +pub use gen_TransitionEventInit::*; + +#[cfg(feature = "Transport")] +#[allow(non_snake_case)] +mod gen_Transport; +#[cfg(feature = "Transport")] +pub use gen_Transport::*; + +#[cfg(feature = "TreeBoxObject")] +#[allow(non_snake_case)] +mod gen_TreeBoxObject; +#[cfg(feature = "TreeBoxObject")] +pub use gen_TreeBoxObject::*; + +#[cfg(feature = "TreeCellInfo")] +#[allow(non_snake_case)] +mod gen_TreeCellInfo; +#[cfg(feature = "TreeCellInfo")] +pub use gen_TreeCellInfo::*; + +#[cfg(feature = "TreeView")] +#[allow(non_snake_case)] +mod gen_TreeView; +#[cfg(feature = "TreeView")] +pub use gen_TreeView::*; + +#[cfg(feature = "TreeWalker")] +#[allow(non_snake_case)] +mod gen_TreeWalker; +#[cfg(feature = "TreeWalker")] +pub use gen_TreeWalker::*; + +#[cfg(feature = "U2f")] +#[allow(non_snake_case)] +mod gen_U2f; +#[cfg(feature = "U2f")] +pub use gen_U2f::*; + +#[cfg(feature = "U2fClientData")] +#[allow(non_snake_case)] +mod gen_U2fClientData; +#[cfg(feature = "U2fClientData")] +pub use gen_U2fClientData::*; + +#[cfg(feature = "UdpMessageEventInit")] +#[allow(non_snake_case)] +mod gen_UdpMessageEventInit; +#[cfg(feature = "UdpMessageEventInit")] +pub use gen_UdpMessageEventInit::*; + +#[cfg(feature = "UdpOptions")] +#[allow(non_snake_case)] +mod gen_UdpOptions; +#[cfg(feature = "UdpOptions")] +pub use gen_UdpOptions::*; + +#[cfg(feature = "UiEvent")] +#[allow(non_snake_case)] +mod gen_UiEvent; +#[cfg(feature = "UiEvent")] +pub use gen_UiEvent::*; + +#[cfg(feature = "UiEventInit")] +#[allow(non_snake_case)] +mod gen_UiEventInit; +#[cfg(feature = "UiEventInit")] +pub use gen_UiEventInit::*; + +#[cfg(feature = "Url")] +#[allow(non_snake_case)] +mod gen_Url; +#[cfg(feature = "Url")] +pub use gen_Url::*; + +#[cfg(feature = "UrlSearchParams")] +#[allow(non_snake_case)] +mod gen_UrlSearchParams; +#[cfg(feature = "UrlSearchParams")] +pub use gen_UrlSearchParams::*; + +#[cfg(feature = "UserProximityEvent")] +#[allow(non_snake_case)] +mod gen_UserProximityEvent; +#[cfg(feature = "UserProximityEvent")] +pub use gen_UserProximityEvent::*; + +#[cfg(feature = "UserProximityEventInit")] +#[allow(non_snake_case)] +mod gen_UserProximityEventInit; +#[cfg(feature = "UserProximityEventInit")] +pub use gen_UserProximityEventInit::*; + +#[cfg(feature = "UserVerificationRequirement")] +#[allow(non_snake_case)] +mod gen_UserVerificationRequirement; +#[cfg(feature = "UserVerificationRequirement")] +pub use gen_UserVerificationRequirement::*; + +#[cfg(feature = "ValidityState")] +#[allow(non_snake_case)] +mod gen_ValidityState; +#[cfg(feature = "ValidityState")] +pub use gen_ValidityState::*; + +#[cfg(feature = "VideoConfiguration")] +#[allow(non_snake_case)] +mod gen_VideoConfiguration; +#[cfg(feature = "VideoConfiguration")] +pub use gen_VideoConfiguration::*; + +#[cfg(feature = "VideoFacingModeEnum")] +#[allow(non_snake_case)] +mod gen_VideoFacingModeEnum; +#[cfg(feature = "VideoFacingModeEnum")] +pub use gen_VideoFacingModeEnum::*; + +#[cfg(feature = "VideoPlaybackQuality")] +#[allow(non_snake_case)] +mod gen_VideoPlaybackQuality; +#[cfg(feature = "VideoPlaybackQuality")] +pub use gen_VideoPlaybackQuality::*; + +#[cfg(feature = "VideoStreamTrack")] +#[allow(non_snake_case)] +mod gen_VideoStreamTrack; +#[cfg(feature = "VideoStreamTrack")] +pub use gen_VideoStreamTrack::*; + +#[cfg(feature = "VideoTrack")] +#[allow(non_snake_case)] +mod gen_VideoTrack; +#[cfg(feature = "VideoTrack")] +pub use gen_VideoTrack::*; + +#[cfg(feature = "VideoTrackList")] +#[allow(non_snake_case)] +mod gen_VideoTrackList; +#[cfg(feature = "VideoTrackList")] +pub use gen_VideoTrackList::*; + +#[cfg(feature = "VisibilityState")] +#[allow(non_snake_case)] +mod gen_VisibilityState; +#[cfg(feature = "VisibilityState")] +pub use gen_VisibilityState::*; + +#[cfg(feature = "VoidCallback")] +#[allow(non_snake_case)] +mod gen_VoidCallback; +#[cfg(feature = "VoidCallback")] +pub use gen_VoidCallback::*; + +#[cfg(feature = "VrDisplay")] +#[allow(non_snake_case)] +mod gen_VrDisplay; +#[cfg(feature = "VrDisplay")] +pub use gen_VrDisplay::*; + +#[cfg(feature = "VrDisplayCapabilities")] +#[allow(non_snake_case)] +mod gen_VrDisplayCapabilities; +#[cfg(feature = "VrDisplayCapabilities")] +pub use gen_VrDisplayCapabilities::*; + +#[cfg(feature = "VrEye")] +#[allow(non_snake_case)] +mod gen_VrEye; +#[cfg(feature = "VrEye")] +pub use gen_VrEye::*; + +#[cfg(feature = "VrEyeParameters")] +#[allow(non_snake_case)] +mod gen_VrEyeParameters; +#[cfg(feature = "VrEyeParameters")] +pub use gen_VrEyeParameters::*; + +#[cfg(feature = "VrFieldOfView")] +#[allow(non_snake_case)] +mod gen_VrFieldOfView; +#[cfg(feature = "VrFieldOfView")] +pub use gen_VrFieldOfView::*; + +#[cfg(feature = "VrFrameData")] +#[allow(non_snake_case)] +mod gen_VrFrameData; +#[cfg(feature = "VrFrameData")] +pub use gen_VrFrameData::*; + +#[cfg(feature = "VrLayer")] +#[allow(non_snake_case)] +mod gen_VrLayer; +#[cfg(feature = "VrLayer")] +pub use gen_VrLayer::*; + +#[cfg(feature = "VrMockController")] +#[allow(non_snake_case)] +mod gen_VrMockController; +#[cfg(feature = "VrMockController")] +pub use gen_VrMockController::*; + +#[cfg(feature = "VrMockDisplay")] +#[allow(non_snake_case)] +mod gen_VrMockDisplay; +#[cfg(feature = "VrMockDisplay")] +pub use gen_VrMockDisplay::*; + +#[cfg(feature = "VrPose")] +#[allow(non_snake_case)] +mod gen_VrPose; +#[cfg(feature = "VrPose")] +pub use gen_VrPose::*; + +#[cfg(feature = "VrServiceTest")] +#[allow(non_snake_case)] +mod gen_VrServiceTest; +#[cfg(feature = "VrServiceTest")] +pub use gen_VrServiceTest::*; + +#[cfg(feature = "VrStageParameters")] +#[allow(non_snake_case)] +mod gen_VrStageParameters; +#[cfg(feature = "VrStageParameters")] +pub use gen_VrStageParameters::*; + +#[cfg(feature = "VrSubmitFrameResult")] +#[allow(non_snake_case)] +mod gen_VrSubmitFrameResult; +#[cfg(feature = "VrSubmitFrameResult")] +pub use gen_VrSubmitFrameResult::*; + +#[cfg(feature = "VttCue")] +#[allow(non_snake_case)] +mod gen_VttCue; +#[cfg(feature = "VttCue")] +pub use gen_VttCue::*; + +#[cfg(feature = "VttRegion")] +#[allow(non_snake_case)] +mod gen_VttRegion; +#[cfg(feature = "VttRegion")] +pub use gen_VttRegion::*; + +#[cfg(feature = "WaveShaperNode")] +#[allow(non_snake_case)] +mod gen_WaveShaperNode; +#[cfg(feature = "WaveShaperNode")] +pub use gen_WaveShaperNode::*; + +#[cfg(feature = "WaveShaperOptions")] +#[allow(non_snake_case)] +mod gen_WaveShaperOptions; +#[cfg(feature = "WaveShaperOptions")] +pub use gen_WaveShaperOptions::*; + +#[cfg(feature = "WebGl2RenderingContext")] +#[allow(non_snake_case)] +mod gen_WebGl2RenderingContext; +#[cfg(feature = "WebGl2RenderingContext")] +pub use gen_WebGl2RenderingContext::*; + +#[cfg(feature = "WebGlActiveInfo")] +#[allow(non_snake_case)] +mod gen_WebGlActiveInfo; +#[cfg(feature = "WebGlActiveInfo")] +pub use gen_WebGlActiveInfo::*; + +#[cfg(feature = "WebGlBuffer")] +#[allow(non_snake_case)] +mod gen_WebGlBuffer; +#[cfg(feature = "WebGlBuffer")] +pub use gen_WebGlBuffer::*; + +#[cfg(feature = "WebGlContextAttributes")] +#[allow(non_snake_case)] +mod gen_WebGlContextAttributes; +#[cfg(feature = "WebGlContextAttributes")] +pub use gen_WebGlContextAttributes::*; + +#[cfg(feature = "WebGlContextEvent")] +#[allow(non_snake_case)] +mod gen_WebGlContextEvent; +#[cfg(feature = "WebGlContextEvent")] +pub use gen_WebGlContextEvent::*; + +#[cfg(feature = "WebGlContextEventInit")] +#[allow(non_snake_case)] +mod gen_WebGlContextEventInit; +#[cfg(feature = "WebGlContextEventInit")] +pub use gen_WebGlContextEventInit::*; + +#[cfg(feature = "WebGlFramebuffer")] +#[allow(non_snake_case)] +mod gen_WebGlFramebuffer; +#[cfg(feature = "WebGlFramebuffer")] +pub use gen_WebGlFramebuffer::*; + +#[cfg(feature = "WebGlPowerPreference")] +#[allow(non_snake_case)] +mod gen_WebGlPowerPreference; +#[cfg(feature = "WebGlPowerPreference")] +pub use gen_WebGlPowerPreference::*; + +#[cfg(feature = "WebGlProgram")] +#[allow(non_snake_case)] +mod gen_WebGlProgram; +#[cfg(feature = "WebGlProgram")] +pub use gen_WebGlProgram::*; + +#[cfg(feature = "WebGlQuery")] +#[allow(non_snake_case)] +mod gen_WebGlQuery; +#[cfg(feature = "WebGlQuery")] +pub use gen_WebGlQuery::*; + +#[cfg(feature = "WebGlRenderbuffer")] +#[allow(non_snake_case)] +mod gen_WebGlRenderbuffer; +#[cfg(feature = "WebGlRenderbuffer")] +pub use gen_WebGlRenderbuffer::*; + +#[cfg(feature = "WebGlRenderingContext")] +#[allow(non_snake_case)] +mod gen_WebGlRenderingContext; +#[cfg(feature = "WebGlRenderingContext")] +pub use gen_WebGlRenderingContext::*; + +#[cfg(feature = "WebGlSampler")] +#[allow(non_snake_case)] +mod gen_WebGlSampler; +#[cfg(feature = "WebGlSampler")] +pub use gen_WebGlSampler::*; + +#[cfg(feature = "WebGlShader")] +#[allow(non_snake_case)] +mod gen_WebGlShader; +#[cfg(feature = "WebGlShader")] +pub use gen_WebGlShader::*; + +#[cfg(feature = "WebGlShaderPrecisionFormat")] +#[allow(non_snake_case)] +mod gen_WebGlShaderPrecisionFormat; +#[cfg(feature = "WebGlShaderPrecisionFormat")] +pub use gen_WebGlShaderPrecisionFormat::*; + +#[cfg(feature = "WebGlSync")] +#[allow(non_snake_case)] +mod gen_WebGlSync; +#[cfg(feature = "WebGlSync")] +pub use gen_WebGlSync::*; + +#[cfg(feature = "WebGlTexture")] +#[allow(non_snake_case)] +mod gen_WebGlTexture; +#[cfg(feature = "WebGlTexture")] +pub use gen_WebGlTexture::*; + +#[cfg(feature = "WebGlTransformFeedback")] +#[allow(non_snake_case)] +mod gen_WebGlTransformFeedback; +#[cfg(feature = "WebGlTransformFeedback")] +pub use gen_WebGlTransformFeedback::*; + +#[cfg(feature = "WebGlUniformLocation")] +#[allow(non_snake_case)] +mod gen_WebGlUniformLocation; +#[cfg(feature = "WebGlUniformLocation")] +pub use gen_WebGlUniformLocation::*; + +#[cfg(feature = "WebGlVertexArrayObject")] +#[allow(non_snake_case)] +mod gen_WebGlVertexArrayObject; +#[cfg(feature = "WebGlVertexArrayObject")] +pub use gen_WebGlVertexArrayObject::*; + +#[cfg(feature = "WebKitCssMatrix")] +#[allow(non_snake_case)] +mod gen_WebKitCssMatrix; +#[cfg(feature = "WebKitCssMatrix")] +pub use gen_WebKitCssMatrix::*; + +#[cfg(feature = "WebSocket")] +#[allow(non_snake_case)] +mod gen_WebSocket; +#[cfg(feature = "WebSocket")] +pub use gen_WebSocket::*; + +#[cfg(feature = "WebSocketDict")] +#[allow(non_snake_case)] +mod gen_WebSocketDict; +#[cfg(feature = "WebSocketDict")] +pub use gen_WebSocketDict::*; + +#[cfg(feature = "WebSocketElement")] +#[allow(non_snake_case)] +mod gen_WebSocketElement; +#[cfg(feature = "WebSocketElement")] +pub use gen_WebSocketElement::*; + +#[cfg(feature = "WebglColorBufferFloat")] +#[allow(non_snake_case)] +mod gen_WebglColorBufferFloat; +#[cfg(feature = "WebglColorBufferFloat")] +pub use gen_WebglColorBufferFloat::*; + +#[cfg(feature = "WebglCompressedTextureAstc")] +#[allow(non_snake_case)] +mod gen_WebglCompressedTextureAstc; +#[cfg(feature = "WebglCompressedTextureAstc")] +pub use gen_WebglCompressedTextureAstc::*; + +#[cfg(feature = "WebglCompressedTextureAtc")] +#[allow(non_snake_case)] +mod gen_WebglCompressedTextureAtc; +#[cfg(feature = "WebglCompressedTextureAtc")] +pub use gen_WebglCompressedTextureAtc::*; + +#[cfg(feature = "WebglCompressedTextureEtc")] +#[allow(non_snake_case)] +mod gen_WebglCompressedTextureEtc; +#[cfg(feature = "WebglCompressedTextureEtc")] +pub use gen_WebglCompressedTextureEtc::*; + +#[cfg(feature = "WebglCompressedTextureEtc1")] +#[allow(non_snake_case)] +mod gen_WebglCompressedTextureEtc1; +#[cfg(feature = "WebglCompressedTextureEtc1")] +pub use gen_WebglCompressedTextureEtc1::*; + +#[cfg(feature = "WebglCompressedTexturePvrtc")] +#[allow(non_snake_case)] +mod gen_WebglCompressedTexturePvrtc; +#[cfg(feature = "WebglCompressedTexturePvrtc")] +pub use gen_WebglCompressedTexturePvrtc::*; + +#[cfg(feature = "WebglCompressedTextureS3tc")] +#[allow(non_snake_case)] +mod gen_WebglCompressedTextureS3tc; +#[cfg(feature = "WebglCompressedTextureS3tc")] +pub use gen_WebglCompressedTextureS3tc::*; + +#[cfg(feature = "WebglCompressedTextureS3tcSrgb")] +#[allow(non_snake_case)] +mod gen_WebglCompressedTextureS3tcSrgb; +#[cfg(feature = "WebglCompressedTextureS3tcSrgb")] +pub use gen_WebglCompressedTextureS3tcSrgb::*; + +#[cfg(feature = "WebglDebugRendererInfo")] +#[allow(non_snake_case)] +mod gen_WebglDebugRendererInfo; +#[cfg(feature = "WebglDebugRendererInfo")] +pub use gen_WebglDebugRendererInfo::*; + +#[cfg(feature = "WebglDebugShaders")] +#[allow(non_snake_case)] +mod gen_WebglDebugShaders; +#[cfg(feature = "WebglDebugShaders")] +pub use gen_WebglDebugShaders::*; + +#[cfg(feature = "WebglDepthTexture")] +#[allow(non_snake_case)] +mod gen_WebglDepthTexture; +#[cfg(feature = "WebglDepthTexture")] +pub use gen_WebglDepthTexture::*; + +#[cfg(feature = "WebglDrawBuffers")] +#[allow(non_snake_case)] +mod gen_WebglDrawBuffers; +#[cfg(feature = "WebglDrawBuffers")] +pub use gen_WebglDrawBuffers::*; + +#[cfg(feature = "WebglLoseContext")] +#[allow(non_snake_case)] +mod gen_WebglLoseContext; +#[cfg(feature = "WebglLoseContext")] +pub use gen_WebglLoseContext::*; + +#[cfg(feature = "WebrtcGlobalStatisticsReport")] +#[allow(non_snake_case)] +mod gen_WebrtcGlobalStatisticsReport; +#[cfg(feature = "WebrtcGlobalStatisticsReport")] +pub use gen_WebrtcGlobalStatisticsReport::*; + +#[cfg(feature = "WheelEvent")] +#[allow(non_snake_case)] +mod gen_WheelEvent; +#[cfg(feature = "WheelEvent")] +pub use gen_WheelEvent::*; + +#[cfg(feature = "WheelEventInit")] +#[allow(non_snake_case)] +mod gen_WheelEventInit; +#[cfg(feature = "WheelEventInit")] +pub use gen_WheelEventInit::*; + +#[cfg(feature = "WidevineCdmManifest")] +#[allow(non_snake_case)] +mod gen_WidevineCdmManifest; +#[cfg(feature = "WidevineCdmManifest")] +pub use gen_WidevineCdmManifest::*; + +#[cfg(feature = "Window")] +#[allow(non_snake_case)] +mod gen_Window; +#[cfg(feature = "Window")] +pub use gen_Window::*; + +#[cfg(feature = "WindowClient")] +#[allow(non_snake_case)] +mod gen_WindowClient; +#[cfg(feature = "WindowClient")] +pub use gen_WindowClient::*; + +#[cfg(feature = "Worker")] +#[allow(non_snake_case)] +mod gen_Worker; +#[cfg(feature = "Worker")] +pub use gen_Worker::*; + +#[cfg(feature = "WorkerDebuggerGlobalScope")] +#[allow(non_snake_case)] +mod gen_WorkerDebuggerGlobalScope; +#[cfg(feature = "WorkerDebuggerGlobalScope")] +pub use gen_WorkerDebuggerGlobalScope::*; + +#[cfg(feature = "WorkerGlobalScope")] +#[allow(non_snake_case)] +mod gen_WorkerGlobalScope; +#[cfg(feature = "WorkerGlobalScope")] +pub use gen_WorkerGlobalScope::*; + +#[cfg(feature = "WorkerLocation")] +#[allow(non_snake_case)] +mod gen_WorkerLocation; +#[cfg(feature = "WorkerLocation")] +pub use gen_WorkerLocation::*; + +#[cfg(feature = "WorkerNavigator")] +#[allow(non_snake_case)] +mod gen_WorkerNavigator; +#[cfg(feature = "WorkerNavigator")] +pub use gen_WorkerNavigator::*; + +#[cfg(feature = "WorkerOptions")] +#[allow(non_snake_case)] +mod gen_WorkerOptions; +#[cfg(feature = "WorkerOptions")] +pub use gen_WorkerOptions::*; + +#[cfg(feature = "Worklet")] +#[allow(non_snake_case)] +mod gen_Worklet; +#[cfg(feature = "Worklet")] +pub use gen_Worklet::*; + +#[cfg(feature = "WorkletGlobalScope")] +#[allow(non_snake_case)] +mod gen_WorkletGlobalScope; +#[cfg(feature = "WorkletGlobalScope")] +pub use gen_WorkletGlobalScope::*; + +#[cfg(feature = "WorkletOptions")] +#[allow(non_snake_case)] +mod gen_WorkletOptions; +#[cfg(feature = "WorkletOptions")] +pub use gen_WorkletOptions::*; + +#[cfg(feature = "XPathExpression")] +#[allow(non_snake_case)] +mod gen_XPathExpression; +#[cfg(feature = "XPathExpression")] +pub use gen_XPathExpression::*; + +#[cfg(feature = "XPathNsResolver")] +#[allow(non_snake_case)] +mod gen_XPathNsResolver; +#[cfg(feature = "XPathNsResolver")] +pub use gen_XPathNsResolver::*; + +#[cfg(feature = "XPathResult")] +#[allow(non_snake_case)] +mod gen_XPathResult; +#[cfg(feature = "XPathResult")] +pub use gen_XPathResult::*; + +#[cfg(feature = "XmlDocument")] +#[allow(non_snake_case)] +mod gen_XmlDocument; +#[cfg(feature = "XmlDocument")] +pub use gen_XmlDocument::*; + +#[cfg(feature = "XmlHttpRequest")] +#[allow(non_snake_case)] +mod gen_XmlHttpRequest; +#[cfg(feature = "XmlHttpRequest")] +pub use gen_XmlHttpRequest::*; + +#[cfg(feature = "XmlHttpRequestEventTarget")] +#[allow(non_snake_case)] +mod gen_XmlHttpRequestEventTarget; +#[cfg(feature = "XmlHttpRequestEventTarget")] +pub use gen_XmlHttpRequestEventTarget::*; + +#[cfg(feature = "XmlHttpRequestResponseType")] +#[allow(non_snake_case)] +mod gen_XmlHttpRequestResponseType; +#[cfg(feature = "XmlHttpRequestResponseType")] +pub use gen_XmlHttpRequestResponseType::*; + +#[cfg(feature = "XmlHttpRequestUpload")] +#[allow(non_snake_case)] +mod gen_XmlHttpRequestUpload; +#[cfg(feature = "XmlHttpRequestUpload")] +pub use gen_XmlHttpRequestUpload::*; + +#[cfg(feature = "XmlSerializer")] +#[allow(non_snake_case)] +mod gen_XmlSerializer; +#[cfg(feature = "XmlSerializer")] +pub use gen_XmlSerializer::*; + +#[cfg(feature = "XsltProcessor")] +#[allow(non_snake_case)] +mod gen_XsltProcessor; +#[cfg(feature = "XsltProcessor")] +pub use gen_XsltProcessor::*; + +#[cfg(feature = "console")] +#[allow(non_snake_case)] +mod gen_console; +#[cfg(feature = "console")] +pub use gen_console::*; + +#[cfg(feature = "css")] +#[allow(non_snake_case)] +mod gen_css; +#[cfg(feature = "css")] +pub use gen_css::*; diff --git a/crates/web-sys/src/lib.rs b/crates/web-sys/src/lib.rs index d19d5ae8..63cb82a9 100644 --- a/crates/web-sys/src/lib.rs +++ b/crates/web-sys/src/lib.rs @@ -14,8 +14,8 @@ #![doc(html_root_url = "https://docs.rs/web-sys/0.2")] #![allow(deprecated)] -#[allow(unused_imports)] -use js_sys::Object; +mod features; +pub use features::*; /// Getter for the `Window` object /// @@ -30,5 +30,3 @@ pub fn window() -> Option { js_sys::global().dyn_into::().ok() } - -include!(env!("BINDINGS")); diff --git a/crates/web-sys/tests/wasm/button_element.rs b/crates/web-sys/tests/wasm/button_element.rs index a14c0522..d94160aa 100644 --- a/crates/web-sys/tests/wasm/button_element.rs +++ b/crates/web-sys/tests/wasm/button_element.rs @@ -8,22 +8,10 @@ extern "C" { fn new_form() -> HtmlFormElement; } -#[wasm_bindgen] -extern "C" { - #[wasm_bindgen(js_name = location, js_namespace = document)] - static LOCATION: Location; - - type Location; - - // FIXME: `href` should be structural in `web_sys` - #[wasm_bindgen(getter, method, structural)] - fn href(this: &Location) -> String; -} - #[wasm_bindgen_test] fn test_button_element() { let element = new_button(); - let location = LOCATION.href(); + let location = web_sys::window().unwrap().location().href().unwrap(); assert!(!element.autofocus(), "Shouldn't have autofocus"); element.set_autofocus(true); assert!(element.autofocus(), "Should have autofocus"); diff --git a/crates/web-sys/tests/wasm/input_element.rs b/crates/web-sys/tests/wasm/input_element.rs index 2a86f807..46057632 100644 --- a/crates/web-sys/tests/wasm/input_element.rs +++ b/crates/web-sys/tests/wasm/input_element.rs @@ -7,22 +7,10 @@ extern "C" { fn new_input() -> HtmlInputElement; } -#[wasm_bindgen] -extern "C" { - #[wasm_bindgen(js_name = location, js_namespace = document)] - static LOCATION: Location; - - type Location; - - // FIXME: `href` should be structural in `web_sys` - #[wasm_bindgen(getter, method, structural)] - fn href(this: &Location) -> String; -} - #[wasm_bindgen_test] fn test_input_element() { let element = new_input(); - let location = LOCATION.href(); + let location = web_sys::window().unwrap().location().href().unwrap(); assert_eq!(element.accept(), "", "Shouldn't have an accept"); element.set_accept("audio/*"); assert_eq!(element.accept(), "audio/*", "Should have an accept"); diff --git a/crates/webidl-tests/.gitignore b/crates/webidl-tests/.gitignore new file mode 100644 index 00000000..e324eac9 --- /dev/null +++ b/crates/webidl-tests/.gitignore @@ -0,0 +1 @@ +/generated diff --git a/crates/webidl-tests/Cargo.toml b/crates/webidl-tests/Cargo.toml index c07f30e2..90eebca8 100644 --- a/crates/webidl-tests/Cargo.toml +++ b/crates/webidl-tests/Cargo.toml @@ -3,19 +3,21 @@ name = "webidl-tests" version = "0.1.0" authors = ["The wasm-bindgen Developers"] edition = "2018" +publish = false [lib] test = false doctest = false path = 'lib.rs' -[build-dependencies] -wasm-bindgen-webidl = { path = '../webidl' } -env_logger = "0.7" - -[dev-dependencies] +[dependencies] js-sys = { path = '../js-sys' } wasm-bindgen = { path = '../..' } + +[build-dependencies] +wasm-bindgen-webidl = { path = "../webidl" } + +[dev-dependencies] wasm-bindgen-test = { path = '../test' } [[test]] diff --git a/crates/webidl-tests/array.js b/crates/webidl-tests/array.js deleted file mode 100644 index 8429bfd8..00000000 --- a/crates/webidl-tests/array.js +++ /dev/null @@ -1,70 +0,0 @@ -const strictEqual = require('assert').strictEqual; - -global.TestArrays = class { - strings(x) { - strictEqual(x, 'y'); - return 'x'; - } - byteStrings(x) { - strictEqual(x, 'yz'); - return 'xx'; - } - usvStrings(x) { - strictEqual(x, 'abc'); - return 'efg'; - } - f32(x) { - strictEqual(x.length, 2); - strictEqual(x[0], 1); - strictEqual(x[1], 2); - return new Float32Array([3, 4, 5]); - } - f64(x) { - strictEqual(x.length, 2); - strictEqual(x[0], 1); - strictEqual(x[1], 2); - return new Float64Array([3, 4, 5]); - } - i8(x) { - strictEqual(x.length, 2); - strictEqual(x[0], 1); - strictEqual(x[1], 2); - return new Int8Array([3, 4, 5]); - } - i16(x) { - strictEqual(x.length, 2); - strictEqual(x[0], 1); - strictEqual(x[1], 2); - return new Int16Array([3, 4, 5]); - } - i32(x) { - strictEqual(x.length, 2); - strictEqual(x[0], 1); - strictEqual(x[1], 2); - return new Int32Array([3, 4, 5]); - } - u8(x) { - strictEqual(x.length, 2); - strictEqual(x[0], 1); - strictEqual(x[1], 2); - return new Uint8Array([3, 4, 5]); - } - u8Clamped(x) { - strictEqual(x.length, 2); - strictEqual(x[0], 1); - strictEqual(x[1], 2); - return new Uint8ClampedArray([3, 4, 5]); - } - u16(x) { - strictEqual(x.length, 2); - strictEqual(x[0], 1); - strictEqual(x[1], 2); - return new Uint16Array([3, 4, 5]); - } - u32(x) { - strictEqual(x.length, 2); - strictEqual(x[0], 1); - strictEqual(x[1], 2); - return new Uint32Array([3, 4, 5]); - } -}; diff --git a/crates/webidl-tests/array.rs b/crates/webidl-tests/array.rs index e3cf993c..a9813219 100644 --- a/crates/webidl-tests/array.rs +++ b/crates/webidl-tests/array.rs @@ -1,8 +1,7 @@ +use crate::generated::*; use wasm_bindgen::Clamped; use wasm_bindgen_test::*; -include!(concat!(env!("OUT_DIR"), "/array.rs")); - #[wasm_bindgen_test] fn take_and_return_a_bunch_of_slices() { let f = TestArrays::new().unwrap(); diff --git a/crates/webidl-tests/array_buffer.js b/crates/webidl-tests/array_buffer.js deleted file mode 100644 index f4c1b871..00000000 --- a/crates/webidl-tests/array_buffer.js +++ /dev/null @@ -1,8 +0,0 @@ -global.ArrayBufferTest = class { - getBuffer() { - return new ArrayBuffer(3); - } - setBuffer(x) { - // ... - } -}; diff --git a/crates/webidl-tests/array_buffer.rs b/crates/webidl-tests/array_buffer.rs index 0886ff91..53cc9eb8 100644 --- a/crates/webidl-tests/array_buffer.rs +++ b/crates/webidl-tests/array_buffer.rs @@ -1,7 +1,6 @@ +use crate::generated::*; use wasm_bindgen_test::*; -include!(concat!(env!("OUT_DIR"), "/array_buffer.rs")); - #[wasm_bindgen_test] fn take_and_return_a_bunch_of_slices() { let f = ArrayBufferTest::new().unwrap(); diff --git a/crates/webidl-tests/build.rs b/crates/webidl-tests/build.rs index f43fb639..aa5dd85d 100644 --- a/crates/webidl-tests/build.rs +++ b/crates/webidl-tests/build.rs @@ -1,74 +1,12 @@ -extern crate env_logger; -extern crate wasm_bindgen_webidl; - use std::env; -use std::fs; use std::path::PathBuf; -use std::process::Command; fn main() { - env_logger::init(); - let idls = fs::read_dir(".") - .unwrap() - .map(|f| f.unwrap().path()) - .filter(|path| path.extension().and_then(|s| s.to_str()) == Some("webidl")) - .map(|path| { - let unstable = path.file_name().and_then(|s| s.to_str()) == Some("unstable.webidl"); - let file = fs::read_to_string(&path).unwrap(); - (file, path, unstable) - }); - let out_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap()); - for (i, (idl, path, unstable)) in idls.enumerate() { - println!("processing {:?}", path); - let (stable_source, experimental_source) = if unstable { - (String::new(), idl) - } else { - (idl, String::new()) - }; - let mut generated_rust = - wasm_bindgen_webidl::compile(&stable_source, &experimental_source, None).unwrap(); - - generated_rust.insert_str( - 0, - " - mod generated_code { - #[allow(unused_imports)] - use js_sys::Object; - ", - ); - - let out_file = out_dir.join(path.file_name().unwrap()).with_extension("rs"); - - generated_rust.push_str(&format!( - r#" - pub mod import_script {{ - use wasm_bindgen::prelude::*; - use wasm_bindgen_test::*; - - #[wasm_bindgen(module = "/{}.js")] - extern "C" {{ - fn not_actually_a_function{1}(x: &str); - }} - - #[wasm_bindgen_test] - fn foo() {{ - if ::std::env::var("NOT_GONNA_WORK").is_ok() {{ - not_actually_a_function{1}("foo"); - }} - }} - }} - "#, - path.file_stem().unwrap().to_str().unwrap(), - i - )); - - generated_rust.push_str("}\nuse self::generated_code::*;"); - - fs::write(&out_file, generated_rust).unwrap(); - - // Attempt to run rustfmt, but don't worry if it fails or if it isn't - // installed, this is just to help with debugging - drop(Command::new("rustfmt").arg(&out_file).status()); - } + wasm_bindgen_webidl::generate( + "webidls".as_ref(), + &out_dir, + wasm_bindgen_webidl::Options { features: false }, + ) + .unwrap(); } diff --git a/crates/webidl-tests/callbacks.js b/crates/webidl-tests/callbacks.js deleted file mode 100644 index b976bfd3..00000000 --- a/crates/webidl-tests/callbacks.js +++ /dev/null @@ -1,4 +0,0 @@ -global.TakeCallbackInterface = class { - a() {} - b() {} -}; diff --git a/crates/webidl-tests/callbacks.rs b/crates/webidl-tests/callbacks.rs index 3c67926c..650e7b01 100644 --- a/crates/webidl-tests/callbacks.rs +++ b/crates/webidl-tests/callbacks.rs @@ -1,8 +1,7 @@ +use crate::generated::*; use js_sys::Function; use wasm_bindgen_test::*; -include!(concat!(env!("OUT_DIR"), "/callbacks.rs")); - #[wasm_bindgen_test] fn multi_op_same_name() { let a = CallbackInterface2::new(); diff --git a/crates/webidl-tests/consts.js b/crates/webidl-tests/consts.js deleted file mode 100644 index e69de29b..00000000 diff --git a/crates/webidl-tests/consts.rs b/crates/webidl-tests/consts.rs index 629e9f37..ff807987 100644 --- a/crates/webidl-tests/consts.rs +++ b/crates/webidl-tests/consts.rs @@ -1,7 +1,6 @@ +use crate::generated::*; use wasm_bindgen_test::*; -include!(concat!(env!("OUT_DIR"), "/consts.rs")); - #[wasm_bindgen_test] fn bool() { let falsish: bool = ConstBool::NOT_TRUE; diff --git a/crates/webidl-tests/dictionary.js b/crates/webidl-tests/dictionary.js deleted file mode 100644 index 7eadc871..00000000 --- a/crates/webidl-tests/dictionary.js +++ /dev/null @@ -1,26 +0,0 @@ -const assert = require('assert'); - -global.assert_dict_c = function(c) { - assert.strictEqual(c.a, 1); - assert.strictEqual(c.b, 2); - assert.strictEqual(c.c, 3); - assert.strictEqual(c.d, 4); - assert.strictEqual(c.e, 5); - assert.strictEqual(c.f, 6); - assert.strictEqual(c.g, 7); - assert.strictEqual(c.h, 8); -}; - -global.mk_dict_a = function() { - return {}; -}; - -global.assert_dict_required = function(c) { - assert.strictEqual(c.a, 3); - assert.strictEqual(c.b, "a"); - assert.strictEqual(c.c, 4); -}; - -global.assert_camel_case = function(dict) { - assert.strictEqual(dict.wierd_fieldName, 1); -} diff --git a/crates/webidl-tests/dictionary.rs b/crates/webidl-tests/dictionary.rs index 94029cd9..99e8e69d 100644 --- a/crates/webidl-tests/dictionary.rs +++ b/crates/webidl-tests/dictionary.rs @@ -1,8 +1,7 @@ +use crate::generated::*; use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; -include!(concat!(env!("OUT_DIR"), "/dictionary.rs")); - #[wasm_bindgen] extern "C" { fn assert_dict_c(c: &C); diff --git a/crates/webidl-tests/enums.js b/crates/webidl-tests/enums.js deleted file mode 100644 index 1750f69e..00000000 --- a/crates/webidl-tests/enums.js +++ /dev/null @@ -1,29 +0,0 @@ -global.Shape = class Shape { - constructor(kind) { - this.kind = kind; - } - - static triangle() { - return new Shape('triangle'); - } - - isSquare() { - return this.kind === 'square'; - } - - isCircle() { - return this.kind === 'circle'; - } - - getShape() { - return this.kind; - } - - get shapeTypeNone() { - return null; - } - - get shapeTypeSome() { - return this.kind; - } -}; diff --git a/crates/webidl-tests/enums.rs b/crates/webidl-tests/enums.rs index 215ae95c..5ab0986b 100644 --- a/crates/webidl-tests/enums.rs +++ b/crates/webidl-tests/enums.rs @@ -1,7 +1,6 @@ +use crate::generated::*; use wasm_bindgen_test::*; -include!(concat!(env!("OUT_DIR"), "/enums.rs")); - #[wasm_bindgen_test] fn top_level_enum() { let circle = Shape::new(ShapeType::Circle).unwrap(); diff --git a/crates/webidl-tests/global.js b/crates/webidl-tests/global.js deleted file mode 100644 index b703d16c..00000000 --- a/crates/webidl-tests/global.js +++ /dev/null @@ -1,8 +0,0 @@ -const map = { - global_no_args: () => 3, - global_with_args: (a, b) => a + b, - global_attribute: 'x', -}; - -global.get_global = () => map; - diff --git a/crates/webidl-tests/global.rs b/crates/webidl-tests/global.rs index 2bb7450d..fc987687 100644 --- a/crates/webidl-tests/global.rs +++ b/crates/webidl-tests/global.rs @@ -1,8 +1,7 @@ +use crate::generated::*; use wasm_bindgen::prelude::*; use wasm_bindgen_test::*; -include!(concat!(env!("OUT_DIR"), "/global.rs")); - #[wasm_bindgen] extern "C" { fn get_global() -> Global; diff --git a/crates/webidl-tests/globals.js b/crates/webidl-tests/globals.js new file mode 100644 index 00000000..4404ea08 --- /dev/null +++ b/crates/webidl-tests/globals.js @@ -0,0 +1,386 @@ +const strictEqual = require('assert').strictEqual; + +exports.noop = function () {}; + +global.TestArrays = class { + strings(x) { + strictEqual(x, 'y'); + return 'x'; + } + byteStrings(x) { + strictEqual(x, 'yz'); + return 'xx'; + } + usvStrings(x) { + strictEqual(x, 'abc'); + return 'efg'; + } + f32(x) { + strictEqual(x.length, 2); + strictEqual(x[0], 1); + strictEqual(x[1], 2); + return new Float32Array([3, 4, 5]); + } + f64(x) { + strictEqual(x.length, 2); + strictEqual(x[0], 1); + strictEqual(x[1], 2); + return new Float64Array([3, 4, 5]); + } + i8(x) { + strictEqual(x.length, 2); + strictEqual(x[0], 1); + strictEqual(x[1], 2); + return new Int8Array([3, 4, 5]); + } + i16(x) { + strictEqual(x.length, 2); + strictEqual(x[0], 1); + strictEqual(x[1], 2); + return new Int16Array([3, 4, 5]); + } + i32(x) { + strictEqual(x.length, 2); + strictEqual(x[0], 1); + strictEqual(x[1], 2); + return new Int32Array([3, 4, 5]); + } + u8(x) { + strictEqual(x.length, 2); + strictEqual(x[0], 1); + strictEqual(x[1], 2); + return new Uint8Array([3, 4, 5]); + } + u8Clamped(x) { + strictEqual(x.length, 2); + strictEqual(x[0], 1); + strictEqual(x[1], 2); + return new Uint8ClampedArray([3, 4, 5]); + } + u16(x) { + strictEqual(x.length, 2); + strictEqual(x[0], 1); + strictEqual(x[1], 2); + return new Uint16Array([3, 4, 5]); + } + u32(x) { + strictEqual(x.length, 2); + strictEqual(x[0], 1); + strictEqual(x[1], 2); + return new Uint32Array([3, 4, 5]); + } +}; + +global.ArrayBufferTest = class { + getBuffer() { + return new ArrayBuffer(3); + } + setBuffer(x) { + // ... + } +}; + +global.TakeCallbackInterface = class { + a() {} + b() {} +}; + +global.assert_dict_c = function(c) { + strictEqual(c.a, 1); + strictEqual(c.b, 2); + strictEqual(c.c, 3); + strictEqual(c.d, 4); + strictEqual(c.e, 5); + strictEqual(c.f, 6); + strictEqual(c.g, 7); + strictEqual(c.h, 8); +}; + +global.mk_dict_a = function() { + return {}; +}; + +global.assert_dict_required = function(c) { + strictEqual(c.a, 3); + strictEqual(c.b, "a"); + strictEqual(c.c, 4); +}; + +global.assert_camel_case = function(dict) { + strictEqual(dict.wierd_fieldName, 1); +} + +global.Shape = class Shape { + constructor(kind) { + this.kind = kind; + } + + static triangle() { + return new Shape('triangle'); + } + + isSquare() { + return this.kind === 'square'; + } + + isCircle() { + return this.kind === 'circle'; + } + + getShape() { + return this.kind; + } + + get shapeTypeNone() { + return null; + } + + get shapeTypeSome() { + return this.kind; + } +}; + +const map = { + global_no_args: () => 3, + global_with_args: (a, b) => a + b, + global_attribute: 'x', +}; + +global.get_global = () => map; + +global.math_test = { + pow(base, exp) { + return Math.pow(base, exp); + }, + + add_one(val) { + return val + 1; + }, +}; + +global.GetNoInterfaceObject = class { + static get() { + return { + number: 3, + foo: () => {}, + } + } +}; + +global.Method = class Method { + constructor(value) { + this.value = value; + } + myCmp(other) { + return this.value === other.value; + } +}; + +global.Property = class Property { + constructor(value) { + this._value = value; + } + + get value() { + return this._value; + } + + set value(value) { + this._value = value; + } +}; + +global.NamedConstructorParent = class NamedConstructor { + constructor() { + this._value = 0; + } + + get value(){ + return this._value; + } +}; + +global.NamedConstructor = class NamedConstructor extends NamedConstructorParent { + constructor(_value) { + super(); + this._value = _value; + } +}; + +global.NamedConstructorBar = class NamedConstructorBar extends NamedConstructor { + constructor(_value) { + super(); + this._value = _value; + } +}; + +global.StaticMethod = class StaticMethod { + static swap(value) { + const res = StaticMethod.value; + StaticMethod.value = value; + return res; + } +}; + +StaticMethod.value = 0; + +global.StaticProperty = class StaticProperty { + static get value(){ + return StaticProperty._value; + } + + static set value(value) { + StaticProperty._value = value; + } +}; + +StaticProperty._value = 0; + +global.UndefinedMethod = class UndefinedMethod { + constructor() {} + ok_method() { + return true; + } +}; + +global.NullableMethod = class NullableMethod { + constructor() {} + opt(a) { + if (a == undefined) { + return undefined; + } else { + return a + 1; + } + } +}; + +global.Unforgeable = class Unforgeable { + constructor() { + this.uno = 1; + } + get dos() { + return 2; + } +}; + +global.GlobalMethod = class { + m() { return 123; } +}; + +global.get_global_method = () => new GlobalMethod(); + +global.Indexing = function () { + return new Proxy({}, { + get(obj, prop) { + return obj.hasOwnProperty(prop) ? obj[prop] : -1; + }, + set(obj, prop, value) { + obj[prop] = value; + }, + deleteProperty(obj, prop) { + delete obj[prop]; + }, + }); +}; + +global.OptionalAndUnionArguments = class OptionalAndUnionArguments { + constructor() {} + m(a, b = true, c = 123, d = 456) { + return [typeof a, a, typeof b, b, typeof c, c, typeof d, d].join(', '); + } +}; + +global.Variadic = class Variadic { + constructor() {} + sum(...values) { + return values.reduce((a, b) => a + b, 0); + } +}; + +global.PartialInterface = class PartialInterface { + get un() { + return 1; + } + deux() { + return 2; + } + get trois() { + return 3; + } + quatre() { + return 4; + } +}; + +global.MixinFoo = class MixinFoo { + constructor(bar) { + this._bar = bar | MixinFoo.defaultBar; + } + static get defaultBar() { + return MixinFoo._defaultBar; + } + static set defaultBar(defaultBar) { + MixinFoo._defaultBar = defaultBar; + } + get bar() { + return this._bar; + } + addToBar(other) { + this._bar += other; + } +}; + +global.Overloads = class { + foo() {} +}; + +global.InvokeCallback = class { + invoke(f) { f(); } + callAdd(f) { + return f(1, 2); + } + callRepeat(f) { + return f('ab', 4); + } +}; + +global.Thang = class Thang { + constructor(value) { + if (value % 2 == 0) { + throw new Error("only odd allowed"); + } + this.value = value; + } + + get ok_attr() { return this.value; } + set ok_attr(x) { } + + get err_attr() { throw new Error("bad"); } + set err_attr(x) { throw new Error("bad"); } + + ok_method() { return this.value + 1; } + err_method() { throw new Error("bad"); } + + static ok_static_method() { return 1; } + static err_static_method() { throw new Error("bad"); } + + static get ok_static_attr() { return 1; } + static set ok_static_attr(x) { } + + static get err_static_attr() { throw new Error("bad"); } + static set err_static_attr(x) { throw new Error("bad"); } +}; + +global.GetUnstableInterface = class { + static get() { + return { + enum_value(dict) { + if (!dict) { + return 0; + } + + return dict.unstableEnum === "a" ? 1 : 2; + } + } + } +} diff --git a/crates/webidl-tests/main.rs b/crates/webidl-tests/main.rs index e3c56929..1a9d3558 100644 --- a/crates/webidl-tests/main.rs +++ b/crates/webidl-tests/main.rs @@ -1,6 +1,23 @@ -extern crate js_sys; -extern crate wasm_bindgen; -extern crate wasm_bindgen_test; +use wasm_bindgen::prelude::*; +use wasm_bindgen_test::*; + +#[wasm_bindgen(module = "/globals.js")] +extern "C" { + fn noop(); +} + +#[wasm_bindgen] +pub fn hello_there() {} + +// This is to ensure that the file is actually loaded +#[wasm_bindgen_test] +fn keep() { + noop(); +} + +mod generated { + include!(concat!(env!("OUT_DIR"), "/mod.rs")); +} pub mod array; pub mod array_buffer; diff --git a/crates/webidl-tests/namespace.js b/crates/webidl-tests/namespace.js deleted file mode 100644 index c9e362dc..00000000 --- a/crates/webidl-tests/namespace.js +++ /dev/null @@ -1,9 +0,0 @@ -global.math_test = { - pow(base, exp) { - return Math.pow(base, exp); - }, - - add_one(val) { - return val + 1; - }, -}; diff --git a/crates/webidl-tests/namespace.rs b/crates/webidl-tests/namespace.rs index ec2fde2e..43fe1253 100644 --- a/crates/webidl-tests/namespace.rs +++ b/crates/webidl-tests/namespace.rs @@ -1,7 +1,6 @@ +use crate::generated::*; use wasm_bindgen_test::*; -include!(concat!(env!("OUT_DIR"), "/namespace.rs")); - #[wasm_bindgen_test] fn simple_namespace_test() { assert_eq!(math_test::add_one(1), 2); diff --git a/crates/webidl-tests/no_interface.js b/crates/webidl-tests/no_interface.js deleted file mode 100644 index d5c65c96..00000000 --- a/crates/webidl-tests/no_interface.js +++ /dev/null @@ -1,8 +0,0 @@ -global.GetNoInterfaceObject = class { - static get() { - return { - number: 3, - foo: () => {}, - } - } -}; diff --git a/crates/webidl-tests/no_interface.rs b/crates/webidl-tests/no_interface.rs index 4e367858..364de0df 100644 --- a/crates/webidl-tests/no_interface.rs +++ b/crates/webidl-tests/no_interface.rs @@ -1,7 +1,6 @@ +use crate::generated::*; use wasm_bindgen_test::*; -include!(concat!(env!("OUT_DIR"), "/no_interface.rs")); - #[wasm_bindgen_test] fn smoke() { let obj = GetNoInterfaceObject::get(); diff --git a/crates/webidl-tests/simple.js b/crates/webidl-tests/simple.js deleted file mode 100644 index 8498b547..00000000 --- a/crates/webidl-tests/simple.js +++ /dev/null @@ -1,169 +0,0 @@ -global.Method = class Method { - constructor(value) { - this.value = value; - } - myCmp(other) { - return this.value === other.value; - } -}; - -global.Property = class Property { - constructor(value) { - this._value = value; - } - - get value() { - return this._value; - } - - set value(value) { - this._value = value; - } -}; - -global.NamedConstructor = class NamedConstructor { - constructor() { - this._value = 0; - } - - get value(){ - return this._value; - } -}; - -global.NamedConstructorBar = class NamedConstructorBar extends NamedConstructor { - constructor(_value) { - super(); - this._value = _value; - } -}; - -global.StaticMethod = class StaticMethod { - static swap(value) { - const res = StaticMethod.value; - StaticMethod.value = value; - return res; - } -}; - -StaticMethod.value = 0; - -global.StaticProperty = class StaticProperty { - static get value(){ - return StaticProperty._value; - } - - static set value(value) { - StaticProperty._value = value; - } -}; - -StaticProperty._value = 0; - -global.UndefinedMethod = class UndefinedMethod { - constructor() {} - ok_method() { - return true; - } -}; - -global.NullableMethod = class NullableMethod { - constructor() {} - opt(a) { - if (a == undefined) { - return undefined; - } else { - return a + 1; - } - } -}; - -global.Unforgeable = class Unforgeable { - constructor() { - this.uno = 1; - } - get dos() { - return 2; - } -}; - -global.GlobalMethod = class { - m() { return 123; } -}; - -global.get_global_method = () => new GlobalMethod(); - -global.Indexing = function () { - return new Proxy({}, { - get(obj, prop) { - return obj.hasOwnProperty(prop) ? obj[prop] : -1; - }, - set(obj, prop, value) { - obj[prop] = value; - }, - deleteProperty(obj, prop) { - delete obj[prop]; - }, - }); -}; - -global.OptionalAndUnionArguments = class OptionalAndUnionArguments { - constructor() {} - m(a, b = true, c = 123, d = 456) { - return [typeof a, a, typeof b, b, typeof c, c, typeof d, d].join(', '); - } -}; - -global.Variadic = class Variadic { - constructor() {} - sum(...values) { - return values.reduce((a, b) => a + b, 0); - } -}; - -global.PartialInterface = class PartialInterface { - get un() { - return 1; - } - deux() { - return 2; - } - get trois() { - return 3; - } - quatre() { - return 4; - } -}; - -global.MixinFoo = class MixinFoo { - constructor(bar) { - this._bar = bar | MixinFoo.defaultBar; - } - static get defaultBar() { - return MixinFoo._defaultBar; - } - static set defaultBar(defaultBar) { - MixinFoo._defaultBar = defaultBar; - } - get bar() { - return this._bar; - } - addToBar(other) { - this._bar += other; - } -}; - -global.Overloads = class { - foo() {} -}; - -global.InvokeCallback = class { - invoke(f) { f(); } - callAdd(f) { - return f(1, 2); - } - callRepeat(f) { - return f('ab', 4); - } -}; diff --git a/crates/webidl-tests/simple.rs b/crates/webidl-tests/simple.rs index 91b8f54c..7f7c010a 100644 --- a/crates/webidl-tests/simple.rs +++ b/crates/webidl-tests/simple.rs @@ -1,10 +1,9 @@ +use crate::generated::*; use js_sys::Object; use wasm_bindgen::prelude::*; use wasm_bindgen::JsCast; use wasm_bindgen_test::*; -include!(concat!(env!("OUT_DIR"), "/simple.rs")); - #[wasm_bindgen_test] fn interfaces_inherit_from_object() { let m = Method::new(42.0).unwrap(); diff --git a/crates/webidl-tests/throws.js b/crates/webidl-tests/throws.js deleted file mode 100644 index 047cb771..00000000 --- a/crates/webidl-tests/throws.js +++ /dev/null @@ -1,26 +0,0 @@ -global.Thang = class Thang { - constructor(value) { - if (value % 2 == 0) { - throw new Error("only odd allowed"); - } - this.value = value; - } - - get ok_attr() { return this.value; } - set ok_attr(x) { } - - get err_attr() { throw new Error("bad"); } - set err_attr(x) { throw new Error("bad"); } - - ok_method() { return this.value + 1; } - err_method() { throw new Error("bad"); } - - static ok_static_method() { return 1; } - static err_static_method() { throw new Error("bad"); } - - static get ok_static_attr() { return 1; } - static set ok_static_attr(x) { } - - static get err_static_attr() { throw new Error("bad"); } - static set err_static_attr(x) { throw new Error("bad"); } -}; diff --git a/crates/webidl-tests/throws.rs b/crates/webidl-tests/throws.rs index 5eff71e4..4fe2a837 100644 --- a/crates/webidl-tests/throws.rs +++ b/crates/webidl-tests/throws.rs @@ -1,7 +1,6 @@ +use crate::generated::*; use wasm_bindgen_test::*; -include!(concat!(env!("OUT_DIR"), "/throws.rs")); - #[wasm_bindgen_test] fn throws() { assert!(Thang::new(0).is_err()); diff --git a/crates/webidl-tests/unstable.js b/crates/webidl-tests/unstable.js deleted file mode 100644 index 377b2cf3..00000000 --- a/crates/webidl-tests/unstable.js +++ /dev/null @@ -1,13 +0,0 @@ -global.GetUnstableInterface = class { - static get() { - return { - enum_value(dict) { - if (!dict) { - return 0; - } - - return dict.unstableEnum === "a" ? 1 : 2; - } - } - } -} diff --git a/crates/webidl-tests/unstable.rs b/crates/webidl-tests/unstable.rs index 1c419835..1a9eb739 100644 --- a/crates/webidl-tests/unstable.rs +++ b/crates/webidl-tests/unstable.rs @@ -1,7 +1,8 @@ +#[cfg(web_sys_unstable_apis)] +use crate::generated::*; +#[cfg(web_sys_unstable_apis)] use wasm_bindgen_test::*; -include!(concat!(env!("OUT_DIR"), "/unstable.rs")); - #[cfg(web_sys_unstable_apis)] #[wasm_bindgen_test] fn can_use_unstable_apis() { diff --git a/crates/webidl-tests/array.webidl b/crates/webidl-tests/webidls/enabled/array.webidl similarity index 100% rename from crates/webidl-tests/array.webidl rename to crates/webidl-tests/webidls/enabled/array.webidl diff --git a/crates/webidl-tests/array_buffer.webidl b/crates/webidl-tests/webidls/enabled/array_buffer.webidl similarity index 100% rename from crates/webidl-tests/array_buffer.webidl rename to crates/webidl-tests/webidls/enabled/array_buffer.webidl diff --git a/crates/webidl-tests/callbacks.webidl b/crates/webidl-tests/webidls/enabled/callbacks.webidl similarity index 100% rename from crates/webidl-tests/callbacks.webidl rename to crates/webidl-tests/webidls/enabled/callbacks.webidl diff --git a/crates/webidl-tests/consts.webidl b/crates/webidl-tests/webidls/enabled/consts.webidl similarity index 100% rename from crates/webidl-tests/consts.webidl rename to crates/webidl-tests/webidls/enabled/consts.webidl diff --git a/crates/webidl-tests/dictionary.webidl b/crates/webidl-tests/webidls/enabled/dictionary.webidl similarity index 100% rename from crates/webidl-tests/dictionary.webidl rename to crates/webidl-tests/webidls/enabled/dictionary.webidl diff --git a/crates/webidl-tests/enums.webidl b/crates/webidl-tests/webidls/enabled/enums.webidl similarity index 100% rename from crates/webidl-tests/enums.webidl rename to crates/webidl-tests/webidls/enabled/enums.webidl diff --git a/crates/webidl-tests/global.webidl b/crates/webidl-tests/webidls/enabled/global.webidl similarity index 100% rename from crates/webidl-tests/global.webidl rename to crates/webidl-tests/webidls/enabled/global.webidl diff --git a/crates/webidl-tests/namespace.webidl b/crates/webidl-tests/webidls/enabled/namespace.webidl similarity index 100% rename from crates/webidl-tests/namespace.webidl rename to crates/webidl-tests/webidls/enabled/namespace.webidl diff --git a/crates/webidl-tests/no_interface.webidl b/crates/webidl-tests/webidls/enabled/no_interface.webidl similarity index 100% rename from crates/webidl-tests/no_interface.webidl rename to crates/webidl-tests/webidls/enabled/no_interface.webidl diff --git a/crates/webidl-tests/simple.webidl b/crates/webidl-tests/webidls/enabled/simple.webidl similarity index 100% rename from crates/webidl-tests/simple.webidl rename to crates/webidl-tests/webidls/enabled/simple.webidl diff --git a/crates/webidl-tests/throws.webidl b/crates/webidl-tests/webidls/enabled/throws.webidl similarity index 100% rename from crates/webidl-tests/throws.webidl rename to crates/webidl-tests/webidls/enabled/throws.webidl diff --git a/crates/webidl-tests/unstable.webidl b/crates/webidl-tests/webidls/unstable/unstable.webidl similarity index 100% rename from crates/webidl-tests/unstable.webidl rename to crates/webidl-tests/webidls/unstable/unstable.webidl diff --git a/crates/webidl/Cargo.toml b/crates/webidl/Cargo.toml index d597faf9..28463733 100644 --- a/crates/webidl/Cargo.toml +++ b/crates/webidl/Cargo.toml @@ -13,6 +13,7 @@ Support for parsing WebIDL specific to wasm-bindgen edition = "2018" [dependencies] +env_logger = "0.7.0" anyhow = "1.0" heck = "0.3" log = "0.4.1" @@ -21,3 +22,6 @@ quote = '1.0' syn = { version = '1.0', features = ['full'] } wasm-bindgen-backend = { version = "=0.2.58", path = "../backend" } weedle = "0.11" +lazy_static = "1.0.0" +sourcefile = "0.1" +structopt = "0.3.9" diff --git a/crates/webidl/src/constants.rs b/crates/webidl/src/constants.rs new file mode 100644 index 00000000..1247189c --- /dev/null +++ b/crates/webidl/src/constants.rs @@ -0,0 +1,86 @@ +use lazy_static::lazy_static; +use std::collections::BTreeSet; +use std::iter::FromIterator; + +lazy_static! { + pub(crate) static ref BUILTIN_IDENTS: BTreeSet<&'static str> = BTreeSet::from_iter(vec![ + "str", + "char", + "bool", + "JsValue", + "u8", + "i8", + "u16", + "i16", + "u32", + "i32", + "u64", + "i64", + "usize", + "isize", + "f32", + "f64", + "Result", + "String", + "Vec", + "Option", + "Array", + "ArrayBuffer", + "Object", + "Promise", + "Function", + "Clamped", + ]); + + + // whitelist a few names that have known polyfills + pub(crate) static ref POLYFILL_INTERFACES: BTreeSet<&'static str> = BTreeSet::from_iter(vec![ + "AudioContext", + "OfflineAudioContext", + ]); + + + pub(crate) static ref IMMUTABLE_SLICE_WHITELIST: BTreeSet<&'static str> = BTreeSet::from_iter(vec![ + // WebGlRenderingContext, WebGl2RenderingContext + "uniform1fv", + "uniform2fv", + "uniform3fv", + "uniform4fv", + "uniform1iv", + "uniform2iv", + "uniform3iv", + "uniform4iv", + "uniformMatrix2fv", + "uniformMatrix3fv", + "uniformMatrix4fv", + "uniformMatrix2x3fv", + "uniformMatrix2x4fv", + "uniformMatrix3x2fv", + "uniformMatrix3x4fv", + "uniformMatrix4x2fv", + "uniformMatrix4x3fv", + "vertexAttrib1fv", + "vertexAttrib2fv", + "vertexAttrib3fv", + "vertexAttrib4fv", + "bufferData", + "bufferSubData", + "texImage2D", + "texSubImage2D", + "compressedTexImage2D", + // WebGl2RenderingContext + "uniform1uiv", + "uniform2uiv", + "uniform3uiv", + "uniform4uiv", + "texImage3D", + "texSubImage3D", + "compressedTexImage3D", + "clearBufferfv", + "clearBufferiv", + "clearBufferuiv", + // WebSocket + "send", + // TODO: Add another type's functions here. Leave a comment header with the type name + ]); +} diff --git a/crates/webidl/src/first_pass.rs b/crates/webidl/src/first_pass.rs index 13b1edc9..0ffbcefa 100644 --- a/crates/webidl/src/first_pass.rs +++ b/crates/webidl/src/first_pass.rs @@ -10,7 +10,6 @@ use std::cmp::Ordering; use std::collections::{BTreeMap, BTreeSet}; -use proc_macro2::Ident; use weedle; use weedle::argument::Argument; use weedle::attribute::*; @@ -28,7 +27,6 @@ use crate::{ /// Collection of constructs that may use partial. #[derive(Default)] pub(crate) struct FirstPassRecord<'src> { - pub(crate) builtin_idents: BTreeSet, pub(crate) interfaces: BTreeMap<&'src str, InterfaceData<'src>>, pub(crate) enums: BTreeMap<&'src str, EnumData<'src>>, /// The mixins, mapping their name to the webidl ast node for the mixin. @@ -39,7 +37,6 @@ pub(crate) struct FirstPassRecord<'src> { pub(crate) dictionaries: BTreeMap<&'src str, DictionaryData<'src>>, pub(crate) callbacks: BTreeSet<&'src str>, pub(crate) callback_interfaces: BTreeMap<&'src str, CallbackInterfaceData<'src>>, - pub(crate) immutable_slice_whitelist: BTreeSet<&'static str>, } pub(crate) struct AttributeInterfaceData<'src> { @@ -104,7 +101,8 @@ pub(crate) struct CallbackInterfaceData<'src> { #[derive(PartialEq, Eq, PartialOrd, Ord, Debug, Clone, Copy)] pub(crate) enum OperationId<'src> { - Constructor(IgnoreTraits<&'src str>), + Constructor, + NamedConstructor(IgnoreTraits<&'src str>), /// The name of a function in crates/web-sys/webidls/enabled/*.webidl /// /// ex: Operation(Some("vertexAttrib1fv")) @@ -392,7 +390,7 @@ fn process_interface_attribute<'src>( record, FirstPassOperationType::Interface, self_name, - &[OperationId::Constructor(IgnoreTraits(self_name))], + &[OperationId::Constructor], &list.args.body.list, &return_ty, &None, @@ -404,7 +402,7 @@ fn process_interface_attribute<'src>( record, FirstPassOperationType::Interface, self_name, - &[OperationId::Constructor(IgnoreTraits(self_name))], + &[OperationId::Constructor], &[], &return_ty, &None, @@ -416,7 +414,7 @@ fn process_interface_attribute<'src>( record, FirstPassOperationType::Interface, self_name, - &[OperationId::Constructor(IgnoreTraits( + &[OperationId::NamedConstructor(IgnoreTraits( list.rhs_identifier.0, ))], &list.args.body.list, diff --git a/crates/webidl/src/generator.rs b/crates/webidl/src/generator.rs new file mode 100644 index 00000000..bee52f22 --- /dev/null +++ b/crates/webidl/src/generator.rs @@ -0,0 +1,887 @@ +use proc_macro2::Literal; +use proc_macro2::TokenStream; +use quote::quote; +use std::collections::BTreeSet; +use syn::{Ident, Type}; +use wasm_bindgen_backend::util::{raw_ident, rust_ident}; + +use crate::constants::{BUILTIN_IDENTS, POLYFILL_INTERFACES}; +use crate::traverse::TraverseType; +use crate::util::{get_cfg_features, mdn_doc, required_doc_string, snake_case_ident}; +use crate::Options; + +fn add_features(features: &mut BTreeSet, ty: &impl TraverseType) { + ty.traverse_type(&mut |ident| { + let ident = ident.to_string(); + + if !BUILTIN_IDENTS.contains(ident.as_str()) { + features.insert(ident); + } + }); +} + +fn get_features_doc(options: &Options, name: String) -> Option { + let mut features = BTreeSet::new(); + features.insert(name); + required_doc_string(options, &features) +} + +fn comment(mut comment: String, features: &Option) -> TokenStream { + if let Some(s) = features { + comment.push_str(s); + } + + let lines = comment.lines().map(|doc| quote!( #[doc = #doc] )); + + quote! { + #(#lines)* + } +} + +fn maybe_unstable_attr(unstable: bool) -> Option { + if unstable { + Some(quote! { + #[cfg(web_sys_unstable_apis)] + }) + } else { + None + } +} + +fn maybe_unstable_docs(unstable: bool) -> Option { + if unstable { + Some(quote! { + #[doc = ""] + #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] + #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] + }) + } else { + None + } +} + +fn generate_arguments(arguments: &[(Ident, Type)], variadic: bool) -> Vec { + arguments + .into_iter() + .enumerate() + .map(|(i, (name, ty))| { + if variadic && i + 1 == arguments.len() { + quote!( #name: &::js_sys::Array ) + } else { + quote!( #name: #ty ) + } + }) + .collect::>() +} + +fn generate_variadic(variadic: bool) -> Option { + if variadic { + Some(quote!(variadic,)) + } else { + None + } +} + +pub struct EnumVariant { + pub name: Ident, + pub value: String, +} + +impl EnumVariant { + fn generate(&self) -> TokenStream { + let EnumVariant { name, value } = self; + + quote!( #name = #value ) + } +} + +pub struct Enum { + pub name: Ident, + pub variants: Vec, + pub unstable: bool, +} + +impl Enum { + pub fn generate(&self, options: &Options) -> TokenStream { + let Enum { + name, + variants, + unstable, + } = self; + + let unstable_attr = maybe_unstable_attr(*unstable); + let unstable_docs = maybe_unstable_docs(*unstable); + + let doc_comment = comment( + format!("The `{}` enum.", name), + &get_features_doc(options, name.to_string()), + ); + + let variants = variants + .into_iter() + .map(|variant| variant.generate()) + .collect::>(); + + quote! { + #![allow(unused_imports)] + use wasm_bindgen::prelude::*; + + #unstable_attr + #[wasm_bindgen] + #doc_comment + #unstable_docs + #[derive(Debug, Clone, Copy, PartialEq, Eq)] + pub enum #name { + #(#variants),* + } + } + } +} + +pub enum InterfaceAttributeKind { + Getter, + Setter, +} + +pub struct InterfaceAttribute { + pub js_name: String, + pub ty: Type, + pub is_static: bool, + pub structural: bool, + pub catch: bool, + pub kind: InterfaceAttributeKind, + pub unstable: bool, +} + +impl InterfaceAttribute { + fn generate( + &self, + options: &Options, + parent_name: &Ident, + parent_js_name: &str, + parents: &[Ident], + ) -> TokenStream { + let InterfaceAttribute { + js_name, + ty, + is_static, + structural, + catch, + kind, + unstable, + } = self; + + let unstable_attr = maybe_unstable_attr(*unstable); + let unstable_docs = maybe_unstable_docs(*unstable); + + let mdn_docs = mdn_doc(parent_js_name, Some(js_name)); + + let mut features = BTreeSet::new(); + + add_features(&mut features, ty); + + for parent in parents { + features.remove(&parent.to_string()); + } + + features.remove(&parent_name.to_string()); + + let cfg_features = get_cfg_features(options, &features); + + features.insert(parent_name.to_string()); + + let doc_comment = required_doc_string(options, &features); + + let structural = if *structural { + quote!(structural,) + } else { + quote!(final,) + }; + + let (method, this) = if *is_static { + (quote!( static_method_of = #parent_name, ), None) + } else { + (quote!(method,), Some(quote!( this: &#parent_name, ))) + }; + + let (prefix, attr, def) = match kind { + InterfaceAttributeKind::Getter => { + let name = rust_ident(&snake_case_ident(js_name)); + + let ty = if *catch { + quote!( Result<#ty, JsValue> ) + } else { + quote!( #ty ) + }; + + ( + "Getter", + quote!(getter,), + quote!( pub fn #name(#this) -> #ty; ), + ) + } + + InterfaceAttributeKind::Setter => { + let name = rust_ident(&format!("set_{}", snake_case_ident(js_name))); + + let ret_ty = if *catch { + Some(quote!( -> Result<(), JsValue> )) + } else { + None + }; + + ( + "Setter", + quote!(setter,), + quote!( pub fn #name(#this value: #ty) #ret_ty; ), + ) + } + }; + + let catch = if *catch { Some(quote!(catch,)) } else { None }; + + let doc_comment = comment( + format!( + "{} for the `{}` field of this object.\n\n{}", + prefix, js_name, mdn_docs + ), + &doc_comment, + ); + + let js_name = raw_ident(js_name); + + quote! { + #unstable_attr + #cfg_features + #[wasm_bindgen( + #structural + #catch + #method + #attr + js_class = #parent_js_name, + js_name = #js_name + )] + #doc_comment + #unstable_docs + #def + } + } +} + +#[derive(Debug, Clone)] +pub enum InterfaceMethodKind { + Constructor(Option), + Regular, + IndexingGetter, + IndexingSetter, + IndexingDeleter, +} + +pub struct InterfaceMethod { + pub name: Ident, + pub js_name: String, + pub arguments: Vec<(Ident, Type)>, + pub ret_ty: Option, + pub kind: InterfaceMethodKind, + pub is_static: bool, + pub structural: bool, + pub catch: bool, + pub variadic: bool, + pub unstable: bool, +} + +impl InterfaceMethod { + fn generate( + &self, + options: &Options, + parent_name: &Ident, + parent_js_name: String, + parents: &[Ident], + ) -> TokenStream { + let InterfaceMethod { + name, + js_name, + arguments, + ret_ty, + kind, + is_static, + structural, + catch, + variadic, + unstable, + } = self; + + let unstable_attr = maybe_unstable_attr(*unstable); + let unstable_docs = maybe_unstable_docs(*unstable); + + let mut is_constructor = false; + + let mut extra_args = vec![quote!( js_class = #parent_js_name )]; + + let doc_comment = match kind { + InterfaceMethodKind::Constructor(name) => { + is_constructor = true; + if let Some(name) = name { + extra_args[0] = quote!( js_class = #name ); + } + format!( + "The `new {}(..)` constructor, creating a new \ + instance of `{0}`.\n\n{}", + parent_name, + mdn_doc(&parent_js_name, Some(&parent_js_name)) + ) + } + InterfaceMethodKind::Regular => { + { + let js_name = raw_ident(js_name); + extra_args.push(quote!( js_name = #js_name )); + } + format!( + "The `{}()` method.\n\n{}", + js_name, + mdn_doc(&parent_js_name, Some(js_name)) + ) + } + InterfaceMethodKind::IndexingGetter => { + extra_args.push(quote!(indexing_getter)); + format!("Indexing getter.\n\n") + } + InterfaceMethodKind::IndexingSetter => { + extra_args.push(quote!(indexing_setter)); + format!("Indexing setter.\n\n") + } + InterfaceMethodKind::IndexingDeleter => { + extra_args.push(quote!(indexing_deleter)); + format!("Indexing deleter.\n\n") + } + }; + + let mut features = BTreeSet::new(); + + for (_, ty) in arguments.iter() { + add_features(&mut features, ty); + } + + if let Some(ty) = ret_ty { + add_features(&mut features, ty); + } + + for parent in parents { + features.remove(&parent.to_string()); + } + + features.remove(&parent_name.to_string()); + + let cfg_features = get_cfg_features(options, &features); + + features.insert(parent_name.to_string()); + + let doc_comment = comment(doc_comment, &required_doc_string(options, &features)); + + let ret = ret_ty.as_ref().map(|ret| quote!( #ret )); + + let ret = if *catch { + let ret = ret.unwrap_or_else(|| quote!(())); + Some(quote!( Result<#ret, JsValue> )) + } else { + ret + }; + + let ret = ret.as_ref().map(|ret| quote!( -> #ret )); + + let catch = if *catch { Some(quote!(catch,)) } else { None }; + + let (method, this) = if is_constructor { + assert!(!is_static); + + (quote!(constructor,), None) + } else if *is_static { + (quote!( static_method_of = #parent_name, ), None) + } else { + let structural = if *structural { + quote!(structural) + } else { + quote!(final) + }; + + ( + quote!( method, #structural, ), + Some(quote!( this: &#parent_name, )), + ) + }; + + let arguments = generate_arguments(arguments, *variadic); + let variadic = generate_variadic(*variadic); + + quote! { + #unstable_attr + #cfg_features + #[wasm_bindgen( + #catch + #method + #variadic + #(#extra_args),* + )] + #doc_comment + #unstable_docs + pub fn #name(#this #(#arguments),*) #ret; + } + } +} + +pub enum InterfaceConstValue { + BooleanLiteral(bool), + FloatLiteral(f64), + SignedIntegerLiteral(i64), + UnsignedIntegerLiteral(u64), +} + +impl InterfaceConstValue { + fn generate(&self) -> TokenStream { + use InterfaceConstValue::*; + + match self { + BooleanLiteral(false) => quote!(false), + BooleanLiteral(true) => quote!(true), + // the actual type is unknown because of typedefs + // so we cannot use std::fxx::INFINITY + // but we can use type inference + FloatLiteral(f) if f.is_infinite() && f.is_sign_positive() => quote!(1.0 / 0.0), + FloatLiteral(f) if f.is_infinite() && f.is_sign_negative() => quote!(-1.0 / 0.0), + FloatLiteral(f) if f.is_nan() => quote!(0.0 / 0.0), + // again no suffix + // panics on +-inf, nan + FloatLiteral(f) => { + let f = Literal::f64_suffixed(*f); + quote!(#f) + } + SignedIntegerLiteral(i) => { + let i = Literal::i64_suffixed(*i); + quote!(#i) + } + UnsignedIntegerLiteral(i) => { + let i = Literal::u64_suffixed(*i); + quote!(#i) + } + } + } +} + +pub struct InterfaceConst { + pub name: Ident, + pub js_name: String, + pub ty: syn::Type, + pub value: InterfaceConstValue, + pub unstable: bool, +} + +impl InterfaceConst { + fn generate( + &self, + options: &Options, + parent_name: &Ident, + parent_js_name: &str, + ) -> TokenStream { + let name = &self.name; + let ty = &self.ty; + let js_name = &self.js_name; + let value = self.value.generate(); + let unstable = self.unstable; + + let unstable_attr = maybe_unstable_attr(unstable); + let unstable_docs = maybe_unstable_docs(unstable); + + let doc_comment = comment( + format!("The `{}.{}` const.", parent_js_name, js_name), + &get_features_doc(options, parent_name.to_string()), + ); + + quote! { + #unstable_attr + #doc_comment + #unstable_docs + pub const #name: #ty = #value as #ty; + } + } +} + +pub struct Interface { + pub name: Ident, + pub js_name: String, + pub deprecated: Option, + pub has_interface: bool, + pub parents: Vec, + pub consts: Vec, + pub attributes: Vec, + pub methods: Vec, + pub unstable: bool, +} + +impl Interface { + pub fn generate(&self, options: &Options) -> TokenStream { + let Interface { + name, + js_name, + deprecated, + has_interface, + parents, + consts, + attributes, + methods, + unstable, + } = self; + + let unstable_attr = maybe_unstable_attr(*unstable); + let unstable_docs = maybe_unstable_docs(*unstable); + + let doc_comment = comment( + format!("The `{}` class.\n\n{}", name, mdn_doc(js_name, None)), + &get_features_doc(options, name.to_string()), + ); + + let deprecated = deprecated + .as_ref() + .map(|msg| quote!( #[deprecated(note = #msg)] )); + + let is_type_of = if *has_interface { + None + } else { + Some(quote!(is_type_of = |_| false,)) + }; + + let prefixes = if POLYFILL_INTERFACES.contains(js_name.as_str()) { + Some(quote!(vendor_prefix = webkit,)) + } else { + None + }; + + let extends = parents + .into_iter() + .map(|x| quote!( extends = #x, )) + .collect::>(); + + let consts = consts + .into_iter() + .map(|x| x.generate(options, &name, js_name)) + .collect::>(); + + let consts = if consts.is_empty() { + None + } else { + Some(quote! { + #unstable_attr + impl #name { + #(#deprecated #consts)* + } + }) + }; + + let attributes = attributes + .into_iter() + .map(|x| x.generate(options, &name, js_name, &parents)) + .collect::>(); + + let methods = methods + .into_iter() + .map(|x| x.generate(options, &name, js_name.to_string(), &parents)) + .collect::>(); + + let js_ident = raw_ident(js_name); + + quote! { + #![allow(unused_imports)] + use super::*; + use wasm_bindgen::prelude::*; + + #unstable_attr + #[wasm_bindgen] + extern "C" { + #[wasm_bindgen( + #is_type_of + #prefixes + #(#extends)* + extends = ::js_sys::Object, + js_name = #js_ident, + typescript_type = #js_name + )] + #[derive(Debug, Clone, PartialEq, Eq)] + #doc_comment + #unstable_docs + #deprecated + pub type #name; + + #(#deprecated #attributes)* + #(#deprecated #methods)* + } + + #consts + } + } +} + +pub struct DictionaryField { + pub name: Ident, + pub js_name: String, + pub ty: Type, + pub required: bool, +} + +impl DictionaryField { + fn generate_rust(&self, options: &Options, parent_name: String, unstable: bool) -> TokenStream { + let DictionaryField { + name, + js_name, + ty, + required: _, + } = self; + + let unstable_attr = maybe_unstable_attr(unstable); + let unstable_docs = maybe_unstable_docs(unstable); + + let mut features = BTreeSet::new(); + + add_features(&mut features, ty); + + features.remove(&parent_name); + + let cfg_features = get_cfg_features(options, &features); + + features.insert(parent_name); + + let doc_comment = comment( + format!("Change the `{}` field of this object.", js_name), + &required_doc_string(options, &features), + ); + + quote! { + #unstable_attr + #cfg_features + #doc_comment + #unstable_docs + pub fn #name(&mut self, val: #ty) -> &mut Self { + use wasm_bindgen::JsValue; + let r = ::js_sys::Reflect::set( + self.as_ref(), + &JsValue::from(#js_name), + &JsValue::from(val), + ); + debug_assert!(r.is_ok(), "setting properties should never fail on our dictionary objects"); + let _ = r; + self + } + } + } +} + +pub struct Dictionary { + pub name: Ident, + pub js_name: String, + pub fields: Vec, + pub unstable: bool, +} + +impl Dictionary { + pub fn generate(&self, options: &Options) -> TokenStream { + let Dictionary { + name, + js_name, + fields, + unstable, + } = self; + + let unstable_attr = maybe_unstable_attr(*unstable); + let unstable_docs = maybe_unstable_docs(*unstable); + + let js_name = raw_ident(js_name); + + let mut required_features = BTreeSet::new(); + let mut required_args = vec![]; + let mut required_calls = vec![]; + + for field in fields.iter() { + if field.required { + let name = &field.name; + let ty = &field.ty; + required_args.push(quote!( #name: #ty )); + required_calls.push(quote!( ret.#name(#name); )); + add_features(&mut required_features, &field.ty); + } + } + + required_features.remove(&name.to_string()); + + let cfg_features = get_cfg_features(options, &required_features); + + required_features.insert(name.to_string()); + + let doc_comment = comment( + format!("The `{}` dictionary.", name), + &get_features_doc(options, name.to_string()), + ); + let ctor_doc_comment = comment( + format!("Construct a new `{}`.", name), + &required_doc_string(options, &required_features), + ); + + let fields = fields + .into_iter() + .map(|field| field.generate_rust(options, name.to_string(), *unstable)) + .collect::>(); + + quote! { + #![allow(unused_imports)] + use super::*; + use wasm_bindgen::prelude::*; + + #unstable_attr + #[wasm_bindgen] + extern "C" { + #[wasm_bindgen(extends = ::js_sys::Object, js_name = #js_name)] + #[derive(Debug, Clone, PartialEq, Eq)] + #doc_comment + #unstable_docs + pub type #name; + } + + #unstable_attr + impl #name { + #cfg_features + #ctor_doc_comment + #unstable_docs + pub fn new(#(#required_args),*) -> Self { + #[allow(unused_mut)] + let mut ret: Self = ::wasm_bindgen::JsCast::unchecked_into(::js_sys::Object::new()); + #(#required_calls)* + ret + } + + #(#fields)* + } + } + } +} + +pub struct Function { + pub name: Ident, + pub js_name: String, + pub arguments: Vec<(Ident, Type)>, + pub ret_ty: Option, + pub catch: bool, + pub variadic: bool, + pub unstable: bool, +} + +impl Function { + fn generate( + &self, + options: &Options, + parent_name: &Ident, + parent_js_name: String, + ) -> TokenStream { + let Function { + name, + js_name, + arguments, + ret_ty, + catch, + variadic, + unstable, + } = self; + + let unstable_attr = maybe_unstable_attr(*unstable); + let unstable_docs = maybe_unstable_docs(*unstable); + + let js_namespace = raw_ident(&parent_js_name); + + let doc_comment = format!( + "The `{}.{}()` function.\n\n{}", + parent_js_name, + js_name, + mdn_doc(&parent_js_name, Some(&js_name)) + ); + + let mut features = BTreeSet::new(); + + for (_, ty) in arguments.iter() { + add_features(&mut features, ty); + } + + if let Some(ty) = ret_ty { + add_features(&mut features, ty); + } + + features.remove(&parent_name.to_string()); + + let cfg_features = get_cfg_features(options, &features); + + features.insert(parent_name.to_string()); + + let doc_comment = comment(doc_comment, &required_doc_string(options, &features)); + + let ret = ret_ty.as_ref().map(|ret| quote!( #ret )); + + let ret = if *catch { + let ret = ret.unwrap_or_else(|| quote!(())); + Some(quote!( Result<#ret, JsValue> )) + } else { + ret + }; + + let ret = ret.as_ref().map(|ret| quote!( -> #ret )); + + let catch = if *catch { Some(quote!(catch,)) } else { None }; + + let arguments = generate_arguments(arguments, *variadic); + let variadic = generate_variadic(*variadic); + + let js_name = raw_ident(js_name); + + quote! { + #unstable_attr + #cfg_features + #[wasm_bindgen( + #catch + #variadic + js_namespace = #js_namespace, + js_name = #js_name + )] + #doc_comment + #unstable_docs + pub fn #name(#(#arguments),*) #ret; + } + } +} + +pub struct Namespace { + pub name: Ident, + pub js_name: String, + pub functions: Vec, +} + +impl Namespace { + pub fn generate(&self, options: &Options) -> TokenStream { + let Namespace { + name, + js_name, + functions, + } = self; + + let functions = functions + .into_iter() + .map(|x| x.generate(options, &name, js_name.to_string())) + .collect::>(); + + quote! { + pub mod #name { + #![allow(unused_imports)] + use super::super::*; + use wasm_bindgen::prelude::*; + + #[wasm_bindgen] + extern "C" { + #(#functions)* + } + } + } + } +} diff --git a/crates/webidl/src/idl_type.rs b/crates/webidl/src/idl_type.rs index bdd62a87..8790301b 100644 --- a/crates/webidl/src/idl_type.rs +++ b/crates/webidl/src/idl_type.rs @@ -408,6 +408,11 @@ terms_to_idl_type_maybe_immutable! { Uint8ClampedArray => Uint8ClampedArray } +#[derive(Debug, Clone)] +pub enum TypeError { + CannotConvert, +} + impl<'a> IdlType<'a> { /// Generates a snake case type name. pub(crate) fn push_snake_case_name(&self, dst: &mut String) { @@ -490,7 +495,7 @@ impl<'a> IdlType<'a> { } /// Converts to syn type if possible. - pub(crate) fn to_syn_type(&self, pos: TypePosition) -> Option { + pub(crate) fn to_syn_type(&self, pos: TypePosition) -> Result, TypeError> { let anyref = |ty| { Some(match pos { TypePosition::Argument => shared_ref(ty, false), @@ -507,13 +512,13 @@ impl<'a> IdlType<'a> { anyref(leading_colon_path_ty(path)) }; match self { - IdlType::Boolean => Some(ident_ty(raw_ident("bool"))), - IdlType::Byte => Some(ident_ty(raw_ident("i8"))), - IdlType::Octet => Some(ident_ty(raw_ident("u8"))), - IdlType::Short => Some(ident_ty(raw_ident("i16"))), - IdlType::UnsignedShort => Some(ident_ty(raw_ident("u16"))), - IdlType::Long => Some(ident_ty(raw_ident("i32"))), - IdlType::UnsignedLong => Some(ident_ty(raw_ident("u32"))), + IdlType::Boolean => Ok(Some(ident_ty(raw_ident("bool")))), + IdlType::Byte => Ok(Some(ident_ty(raw_ident("i8")))), + IdlType::Octet => Ok(Some(ident_ty(raw_ident("u8")))), + IdlType::Short => Ok(Some(ident_ty(raw_ident("i16")))), + IdlType::UnsignedShort => Ok(Some(ident_ty(raw_ident("u16")))), + IdlType::Long => Ok(Some(ident_ty(raw_ident("i32")))), + IdlType::UnsignedLong => Ok(Some(ident_ty(raw_ident("u32")))), // Technically these are 64-bit numbers, but we're binding web // APIs that don't actually have return the corresponding 64-bit @@ -527,74 +532,81 @@ impl<'a> IdlType<'a> { // // Perhaps one day we'll bind to u64/i64 here, but we need `BigInt` // to see more usage! - IdlType::LongLong | IdlType::UnsignedLongLong => Some(ident_ty(raw_ident("f64"))), + IdlType::LongLong | IdlType::UnsignedLongLong => Ok(Some(ident_ty(raw_ident("f64")))), - IdlType::Float => Some(ident_ty(raw_ident("f32"))), - IdlType::UnrestrictedFloat => Some(ident_ty(raw_ident("f32"))), - IdlType::Double => Some(ident_ty(raw_ident("f64"))), - IdlType::UnrestrictedDouble => Some(ident_ty(raw_ident("f64"))), + IdlType::Float => Ok(Some(ident_ty(raw_ident("f32")))), + IdlType::UnrestrictedFloat => Ok(Some(ident_ty(raw_ident("f32")))), + IdlType::Double => Ok(Some(ident_ty(raw_ident("f64")))), + IdlType::UnrestrictedDouble => Ok(Some(ident_ty(raw_ident("f64")))), IdlType::DomString | IdlType::ByteString | IdlType::UsvString => match pos { - TypePosition::Argument => Some(shared_ref(ident_ty(raw_ident("str")), false)), - TypePosition::Return => Some(ident_ty(raw_ident("String"))), + TypePosition::Argument => Ok(Some(shared_ref(ident_ty(raw_ident("str")), false))), + TypePosition::Return => Ok(Some(ident_ty(raw_ident("String")))), }, - IdlType::Object => js_sys("Object"), - IdlType::Symbol => None, - IdlType::Error => None, + IdlType::Object => Ok(js_sys("Object")), + IdlType::Symbol => Err(TypeError::CannotConvert), + IdlType::Error => Err(TypeError::CannotConvert), - IdlType::ArrayBuffer => js_sys("ArrayBuffer"), - IdlType::DataView => None, - IdlType::Int8Array { immutable } => Some(array("i8", pos, *immutable)), - IdlType::Uint8Array { immutable } => Some(array("u8", pos, *immutable)), - IdlType::Uint8ClampedArray { immutable } => Some(clamped(array("u8", pos, *immutable))), - IdlType::Int16Array { immutable } => Some(array("i16", pos, *immutable)), - IdlType::Uint16Array { immutable } => Some(array("u16", pos, *immutable)), - IdlType::Int32Array { immutable } => Some(array("i32", pos, *immutable)), - IdlType::Uint32Array { immutable } => Some(array("u32", pos, *immutable)), - IdlType::Float32Array { immutable } => Some(array("f32", pos, *immutable)), - IdlType::Float64Array { immutable } => Some(array("f64", pos, *immutable)), + IdlType::ArrayBuffer => Ok(js_sys("ArrayBuffer")), + IdlType::DataView => Err(TypeError::CannotConvert), + IdlType::Int8Array { immutable } => Ok(Some(array("i8", pos, *immutable))), + IdlType::Uint8Array { immutable } => Ok(Some(array("u8", pos, *immutable))), + IdlType::Uint8ClampedArray { immutable } => { + Ok(Some(clamped(array("u8", pos, *immutable)))) + } + IdlType::Int16Array { immutable } => Ok(Some(array("i16", pos, *immutable))), + IdlType::Uint16Array { immutable } => Ok(Some(array("u16", pos, *immutable))), + IdlType::Int32Array { immutable } => Ok(Some(array("i32", pos, *immutable))), + IdlType::Uint32Array { immutable } => Ok(Some(array("u32", pos, *immutable))), + IdlType::Float32Array { immutable } => Ok(Some(array("f32", pos, *immutable))), + IdlType::Float64Array { immutable } => Ok(Some(array("f64", pos, *immutable))), - IdlType::ArrayBufferView { .. } | IdlType::BufferSource { .. } => js_sys("Object"), + IdlType::ArrayBufferView { .. } | IdlType::BufferSource { .. } => Ok(js_sys("Object")), IdlType::Interface(name) | IdlType::Dictionary(name) | IdlType::CallbackInterface { name, .. } => { let ty = ident_ty(rust_ident(camel_case_ident(name).as_str())); - anyref(ty) + Ok(anyref(ty)) } - IdlType::Enum(name) => Some(ident_ty(rust_ident(camel_case_ident(name).as_str()))), + IdlType::Enum(name) => Ok(Some(ident_ty(rust_ident(camel_case_ident(name).as_str())))), IdlType::Nullable(idl_type) => { let inner = idl_type.to_syn_type(pos)?; - // TODO: this is a bit of a hack, but `Option` isn't - // supported right now. As a result if we see `JsValue` for our - // inner type, leave that as the same when we create a nullable - // version of that. That way `any?` just becomes `JsValue` and - // it's up to users to dispatch and/or create instances - // appropriately. - if let syn::Type::Path(path) = &inner { - if path.qself.is_none() - && path - .path - .segments - .last() - .map(|p| p.ident == "JsValue") - .unwrap_or(false) - { - return Some(inner.clone()); - } - } + match inner { + Some(inner) => { + // TODO: this is a bit of a hack, but `Option` isn't + // supported right now. As a result if we see `JsValue` for our + // inner type, leave that as the same when we create a nullable + // version of that. That way `any?` just becomes `JsValue` and + // it's up to users to dispatch and/or create instances + // appropriately. + if let syn::Type::Path(path) = &inner { + if path.qself.is_none() + && path + .path + .segments + .last() + .map(|p| p.ident == "JsValue") + .unwrap_or(false) + { + return Ok(Some(inner.clone())); + } + } - Some(option_ty(inner)) + Ok(Some(option_ty(inner))) + } + None => Ok(None), + } } - IdlType::FrozenArray(_idl_type) => None, + IdlType::FrozenArray(_idl_type) => Err(TypeError::CannotConvert), // webidl sequences must always be returned as javascript `Array`s. They may accept // anything implementing the @@iterable interface. IdlType::Sequence(_idl_type) => match pos { - TypePosition::Argument => js_value, - TypePosition::Return => js_sys("Array"), + TypePosition::Argument => Ok(js_value), + TypePosition::Return => Ok(js_sys("Array")), }, - IdlType::Promise(_idl_type) => js_sys("Promise"), - IdlType::Record(_idl_type_from, _idl_type_to) => None, + IdlType::Promise(_idl_type) => Ok(js_sys("Promise")), + IdlType::Record(_idl_type_from, _idl_type_to) => Err(TypeError::CannotConvert), IdlType::Union(idl_types) => { // Note that most union types have already been expanded to // their components via `flatten`. Unions in a return position @@ -629,10 +641,10 @@ impl<'a> IdlType<'a> { } } - IdlType::Any => js_value, - IdlType::Void => None, - IdlType::Callback => js_sys("Function"), - IdlType::UnknownInterface(_) => None, + IdlType::Any => Ok(js_value), + IdlType::Void => Ok(None), + IdlType::Callback => Ok(js_sys("Function")), + IdlType::UnknownInterface(_) => Err(TypeError::CannotConvert), } } diff --git a/crates/webidl/src/lib.rs b/crates/webidl/src/lib.rs index a0bd749a..1296f48c 100644 --- a/crates/webidl/src/lib.rs +++ b/crates/webidl/src/lib.rs @@ -9,39 +9,63 @@ emitted for the types and methods described in the WebIDL. #![deny(missing_debug_implementations)] #![doc(html_root_url = "https://docs.rs/wasm-bindgen-webidl/0.2")] +mod constants; mod first_pass; +mod generator; mod idl_type; +mod traverse; mod util; use crate::first_pass::{CallbackInterfaceData, OperationData}; use crate::first_pass::{FirstPass, FirstPassRecord, InterfaceData, OperationId}; +use crate::generator::{ + Dictionary, DictionaryField, Enum, EnumVariant, Function, Interface, InterfaceAttribute, + InterfaceAttributeKind, InterfaceConst, InterfaceMethod, Namespace, +}; use crate::idl_type::ToIdlType; +use crate::traverse::TraverseType; use crate::util::{ - camel_case_ident, mdn_doc, public, shouty_snake_case_ident, snake_case_ident, + camel_case_ident, is_structural, shouty_snake_case_ident, snake_case_ident, throws, webidl_const_v_to_backend_const_v, TypePosition, }; +use anyhow::Context; use anyhow::Result; -use proc_macro2::{Ident, Span}; -use quote::{quote, ToTokens}; -use std::collections::{BTreeSet, HashSet}; -use std::env; +use proc_macro2::{Ident, TokenStream}; +use quote::ToTokens; +use sourcefile::SourceFile; +use std::collections::{BTreeMap, BTreeSet}; +use std::ffi::OsStr; use std::fmt; -use std::fmt::Display; use std::fs; -use std::iter::FromIterator; -use wasm_bindgen_backend::ast; -use wasm_bindgen_backend::defined::ImportedTypeReferences; -use wasm_bindgen_backend::defined::{ImportedTypeDefinitions, RemoveUndefinedImports}; -use wasm_bindgen_backend::util::{ident_ty, raw_ident, rust_ident, wrap_import_function}; -use wasm_bindgen_backend::TryToTokens; +use std::path::{Path, PathBuf}; +use std::process::Command; +use wasm_bindgen_backend::util::rust_ident; use weedle::attribute::ExtendedAttributeList; use weedle::dictionary::DictionaryMember; use weedle::interface::InterfaceMember; use weedle::Parse; +/// Options to configure the conversion process +#[derive(Debug)] +pub struct Options { + /// Whether to generate cfg features or not + pub features: bool, +} + +#[derive(Default)] struct Program { - main: ast::Program, - submodules: Vec<(String, ast::Program)>, + tokens: TokenStream, + required_features: BTreeSet, +} + +impl Program { + fn to_string(&self) -> Option { + if self.tokens.is_empty() { + None + } else { + Some(self.tokens.to_string()) + } + } } /// A parse error indicating where parsing failed @@ -94,11 +118,9 @@ fn parse_source(source: &str) -> Result> { fn parse( webidl_source: &str, unstable_source: &str, - allowed_types: Option<&[&str]>, -) -> Result { + options: Options, +) -> Result> { let mut first_pass_record: FirstPassRecord = Default::default(); - first_pass_record.builtin_idents = builtin_idents(); - first_pass_record.immutable_slice_whitelist = immutable_slice_whitelist(); let definitions = parse_source(webidl_source)?; definitions.first_pass(&mut first_pass_record, ApiStability::Stable)?; @@ -106,58 +128,51 @@ fn parse( let unstable_definitions = parse_source(unstable_source)?; unstable_definitions.first_pass(&mut first_pass_record, ApiStability::Unstable)?; - let mut program = Default::default(); - let mut submodules = Vec::new(); + let mut types: BTreeMap = BTreeMap::new(); - let allowed_types = allowed_types.map(|list| list.iter().cloned().collect::>()); - let filter = |name: &str| match &allowed_types { - Some(set) => set.contains(name), - None => true, - }; - - for (name, e) in first_pass_record.enums.iter() { - if filter(&camel_case_ident(name)) { - first_pass_record.append_enum(&mut program, e); - } + for (js_name, e) in first_pass_record.enums.iter() { + let name = rust_ident(&camel_case_ident(js_name)); + let program = types.entry(name.to_string()).or_default(); + first_pass_record.append_enum(&options, program, name, js_name, e); } - for (name, d) in first_pass_record.dictionaries.iter() { - if filter(&camel_case_ident(name)) { - first_pass_record.append_dictionary(&mut program, d); - } + for (js_name, d) in first_pass_record.dictionaries.iter() { + let name = rust_ident(&camel_case_ident(js_name)); + let program = types.entry(name.to_string()).or_default(); + first_pass_record.append_dictionary(&options, program, name, js_name.to_string(), d); } - for (name, n) in first_pass_record.namespaces.iter() { - if filter(&snake_case_ident(name)) { - let prog = first_pass_record.append_ns(name, n); - submodules.push((snake_case_ident(name).to_string(), prog)); - } + for (js_name, n) in first_pass_record.namespaces.iter() { + let name = rust_ident(&snake_case_ident(js_name)); + let program = types.entry(name.to_string()).or_default(); + first_pass_record.append_ns(&options, program, name, js_name.to_string(), n); } - for (name, d) in first_pass_record.interfaces.iter() { - if filter(&camel_case_ident(name)) { - first_pass_record.append_interface(&mut program, name, d); - } + for (js_name, d) in first_pass_record.interfaces.iter() { + let name = rust_ident(&camel_case_ident(js_name)); + let program = types.entry(name.to_string()).or_default(); + first_pass_record.append_interface(&options, program, name, js_name.to_string(), d); } - for (name, d) in first_pass_record.callback_interfaces.iter() { - if filter(&camel_case_ident(name)) { - first_pass_record.append_callback_interface(&mut program, d); - } + for (js_name, d) in first_pass_record.callback_interfaces.iter() { + let name = rust_ident(&camel_case_ident(js_name)); + let program = types.entry(name.to_string()).or_default(); + first_pass_record.append_callback_interface( + &options, + program, + name, + js_name.to_string(), + d, + ); } - // Prune out `extends` annotations that aren't defined as these shouldn't - // prevent the type from being usable entirely. They're just there for - // `AsRef` and such implementations. - for import in program.imports.iter_mut() { - if let ast::ImportKind::Type(t) = &mut import.kind { - t.extends.retain(|n| { - let ident = &n.segments.last().unwrap().ident; - first_pass_record.builtin_idents.contains(ident) || filter(&ident.to_string()) - }); - } - } + Ok(types) +} - Ok(Program { - main: program, - submodules, - }) +/// Data for a single feature +#[derive(Debug)] +pub struct Feature { + /// Generated code + pub code: String, + + /// Required features + pub required_features: Vec, } /// Compile the given WebIDL source text into Rust source text containing @@ -165,237 +180,105 @@ fn parse( pub fn compile( webidl_source: &str, experimental_source: &str, - allowed_types: Option<&[&str]>, -) -> Result { - let ast = parse(webidl_source, experimental_source, allowed_types)?; - Ok(compile_ast(ast)) -} + options: Options, +) -> Result> { + let ast = parse(webidl_source, experimental_source, options)?; -fn builtin_idents() -> BTreeSet { - BTreeSet::from_iter( - vec![ - "str", - "char", - "bool", - "JsValue", - "u8", - "i8", - "u16", - "i16", - "u32", - "i32", - "u64", - "i64", - "usize", - "isize", - "f32", - "f64", - "Result", - "String", - "Vec", - "Option", - "Array", - "ArrayBuffer", - "Object", - "Promise", - "Function", - "Clamped", - ] + let features = ast .into_iter() - .map(|id| proc_macro2::Ident::new(id, proc_macro2::Span::call_site())), - ) -} - -fn immutable_slice_whitelist() -> BTreeSet<&'static str> { - BTreeSet::from_iter(vec![ - // WebGlRenderingContext, WebGl2RenderingContext - "uniform1fv", - "uniform2fv", - "uniform3fv", - "uniform4fv", - "uniform1iv", - "uniform2iv", - "uniform3iv", - "uniform4iv", - "uniformMatrix2fv", - "uniformMatrix3fv", - "uniformMatrix4fv", - "uniformMatrix2x3fv", - "uniformMatrix2x4fv", - "uniformMatrix3x2fv", - "uniformMatrix3x4fv", - "uniformMatrix4x2fv", - "uniformMatrix4x3fv", - "vertexAttrib1fv", - "vertexAttrib2fv", - "vertexAttrib3fv", - "vertexAttrib4fv", - "bufferData", - "bufferSubData", - "texImage2D", - "texSubImage2D", - "compressedTexImage2D", - // WebGl2RenderingContext - "uniform1uiv", - "uniform2uiv", - "uniform3uiv", - "uniform4uiv", - "texImage3D", - "texSubImage3D", - "compressedTexImage3D", - "clearBufferfv", - "clearBufferiv", - "clearBufferuiv", - // WebSocket - "send", - // TODO: Add another type's functions here. Leave a comment header with the type name - ]) -} - -/// Run codegen on the AST to generate rust code. -fn compile_ast(mut ast: Program) -> String { - // Iteratively prune all entries from the AST which reference undefined - // fields. Each pass may remove definitions of types and so we need to - // reexecute this pass to see if we need to keep removing types until we - // reach a steady state. - let builtin = builtin_idents(); - let mut all_definitions = BTreeSet::new(); - let track = env::var_os("__WASM_BINDGEN_DUMP_FEATURES"); - loop { - let mut defined = builtin.clone(); - { - let mut cb = |id: &Ident| { - defined.insert(id.clone()); - if track.is_some() { - all_definitions.insert(id.clone()); - } - }; - ast.main.imported_type_definitions(&mut cb); - for (name, m) in ast.submodules.iter() { - cb(&Ident::new(name, Span::call_site())); - m.imported_type_references(&mut cb); - } - } - let changed = ast - .main - .remove_undefined_imports(&|id| defined.contains(id)) - || ast - .submodules - .iter_mut() - .any(|(_, m)| m.remove_undefined_imports(&|id| defined.contains(id))); - if !changed { - break; - } - } - if let Some(path) = track { - let contents = all_definitions - .into_iter() - .filter(|def| !builtin.contains(def)) - .map(|s| format!("{} = []", s)) - .collect::>() - .join("\n"); - fs::write(path, contents).unwrap(); - } - - let mut tokens = proc_macro2::TokenStream::new(); - if let Err(e) = ast.main.try_to_tokens(&mut tokens) { - e.panic(); - } - for (name, m) in ast.submodules.iter() { - let mut m_tokens = proc_macro2::TokenStream::new(); - if let Err(e) = m.try_to_tokens(&mut m_tokens) { - e.panic(); - } - - let name = Ident::new(name, Span::call_site()); - - (quote! { - pub mod #name { #m_tokens } + .filter_map(|(name, program)| { + let code = program.to_string()?; + let required_features = program.required_features.into_iter().collect(); + Some(( + name, + Feature { + required_features, + code, + }, + )) }) - .to_tokens(&mut tokens); - } - tokens.to_string() + .collect(); + + Ok(features) } impl<'src> FirstPassRecord<'src> { - fn append_enum(&self, program: &mut ast::Program, data: &first_pass::EnumData<'src>) { + fn append_enum( + &self, + options: &Options, + program: &mut Program, + name: Ident, + js_name: &str, + data: &first_pass::EnumData<'src>, + ) { let enum_ = data.definition; - let variants = &enum_.values.body.list; - let unstable_api = data.stability.is_unstable(); - program.imports.push(ast::Import { - module: ast::ImportModule::None, - js_namespace: None, - kind: ast::ImportKind::Enum(ast::ImportEnum { - vis: public(), - name: rust_ident(camel_case_ident(enum_.identifier.0).as_str()), - variants: variants - .iter() - .map(|v| { - if !v.0.is_empty() { - rust_ident(camel_case_ident(&v.0).as_str()) - } else { - rust_ident("None") - } - }) - .collect(), - variant_values: variants.iter().map(|v| v.0.to_string()).collect(), - rust_attrs: vec![syn::parse_quote!(#[derive(Copy, Clone, PartialEq, Debug)])], - unstable_api, - }), - unstable_api, - }); + let unstable = data.stability.is_unstable(); + + assert_eq!(js_name, enum_.identifier.0); + + let variants = enum_ + .values + .body + .list + .iter() + .map(|v| { + let name = if !v.0.is_empty() { + rust_ident(camel_case_ident(&v.0).as_str()) + } else { + rust_ident("None") + }; + + let value = v.0.to_string(); + + EnumVariant { name, value } + }) + .collect::>(); + + Enum { + name, + variants, + unstable, + } + .generate(options) + .to_tokens(&mut program.tokens); } // tons more data for what's going on here at // https://www.w3.org/TR/WebIDL-1/#idl-dictionaries fn append_dictionary( &self, - program: &mut ast::Program, + options: &Options, + program: &mut Program, + name: Ident, + js_name: String, data: &first_pass::DictionaryData<'src>, ) { let def = match data.definition { Some(def) => def, None => return, }; + + assert_eq!(js_name, def.identifier.0); + + let unstable = data.stability.is_unstable(); + let mut fields = Vec::new(); - if !self.append_dictionary_members(def.identifier.0, &mut fields) { + + if !self.append_dictionary_members(&js_name, &mut fields) { return; } - let name = rust_ident(&camel_case_ident(def.identifier.0)); - let extra_feature = name.to_string(); - for field in fields.iter_mut() { - let mut doc_comment = Some(format!( - "Configure the `{}` field of this object\n", - field.js_name, - )); - self.append_required_features_doc(&*field, &mut doc_comment, &[&extra_feature]); - field.doc_comment = doc_comment; - } - let mut doc_comment = format!("The `{}` dictionary\n", def.identifier.0); - if let Some(s) = self.required_doc_string(vec![name.clone()]) { - doc_comment.push_str(&s); - } - let mut dict = ast::Dictionary { + Dictionary { name, + js_name, fields, - ctor: true, - doc_comment: Some(doc_comment), - ctor_doc_comment: None, - unstable_api: data.stability.is_unstable(), - }; - let mut ctor_doc_comment = Some(format!("Construct a new `{}`\n", def.identifier.0)); - self.append_required_features_doc(&dict, &mut ctor_doc_comment, &[&extra_feature]); - dict.ctor_doc_comment = ctor_doc_comment; - - program.dictionaries.push(dict); + unstable, + } + .generate(options) + .to_tokens(&mut program.tokens); } - fn append_dictionary_members( - &self, - dict: &'src str, - dst: &mut Vec, - ) -> bool { + fn append_dictionary_members(&self, dict: &'src str, dst: &mut Vec) -> bool { let dict_data = &self.dictionaries[&dict]; let definition = dict_data.definition.unwrap(); @@ -438,15 +321,13 @@ impl<'src> FirstPassRecord<'src> { return true; } - fn dictionary_field( - &self, - field: &'src DictionaryMember<'src>, - ) -> Option { + fn dictionary_field(&self, field: &'src DictionaryMember<'src>) -> Option { // use argument position now as we're just binding setters let ty = field .type_ .to_idl_type(self) - .to_syn_type(TypePosition::Argument)?; + .to_syn_type(TypePosition::Argument) + .unwrap_or(None)?; // Slice types aren't supported because they don't implement // `Into` @@ -477,228 +358,210 @@ impl<'src> FirstPassRecord<'src> { // Similarly i64/u64 aren't supported because they don't // implement `Into` let mut any_64bit = false; - ty.imported_type_references(&mut |i| { - any_64bit = any_64bit || i == "u64" || i == "i64"; + + ty.traverse_type(&mut |ident| { + if !any_64bit { + if ident == "u64" || ident == "i64" { + any_64bit = true; + } + } }); + if any_64bit { return None; } - Some(ast::DictionaryField { + Some(DictionaryField { required: field.required.is_some(), - rust_name: rust_ident(&snake_case_ident(field.identifier.0)), + name: rust_ident(&snake_case_ident(field.identifier.0)), js_name: field.identifier.0.to_string(), ty, - doc_comment: None, }) } fn append_ns( &'src self, - name: &'src str, + options: &Options, + program: &mut Program, + name: Ident, + js_name: String, ns: &'src first_pass::NamespaceData<'src>, - ) -> ast::Program { - let mut ret = Default::default(); + ) { + let mut functions = vec![]; for (id, data) in ns.operations.iter() { - self.append_ns_member(&mut ret, name, id, data); + self.append_ns_member(&mut functions, &js_name, id, data); } - return ret; + if !functions.is_empty() { + Namespace { + name, + js_name, + functions, + } + .generate(options) + .to_tokens(&mut program.tokens); + } } fn append_ns_member( &self, - module: &mut ast::Program, - self_name: &'src str, + functions: &mut Vec, + js_name: &'src str, id: &OperationId<'src>, data: &OperationData<'src>, ) { - let name = match id { - OperationId::Operation(Some(name)) => name, - OperationId::Constructor(_) + match id { + OperationId::Operation(Some(_)) => {} + OperationId::Constructor + | OperationId::NamedConstructor(_) | OperationId::Operation(None) | OperationId::IndexingGetter | OperationId::IndexingSetter | OperationId::IndexingDeleter => { - log::warn!("Unsupported unnamed operation: on {:?}", self_name); + log::warn!("Unsupported unnamed operation: on {:?}", js_name); return; } - }; - let doc_comment = format!( - "The `{}.{}()` function\n\n{}", - self_name, - name, - mdn_doc(self_name, Some(&name)) - ); + } - let kind = ast::ImportFunctionKind::Normal; - let extra = snake_case_ident(self_name); - let extra = &[&extra[..]]; - for mut import_function in self.create_imports(None, kind, id, data, false) { - let mut doc = Some(doc_comment.clone()); - self.append_required_features_doc(&import_function, &mut doc, extra); - import_function.doc_comment = doc; - module.imports.push(ast::Import { - module: ast::ImportModule::None, - js_namespace: Some(raw_ident(self_name)), - kind: ast::ImportKind::Function(import_function), - unstable_api: false, + for x in self.create_imports(None, id, data, false) { + functions.push(Function { + name: x.name, + js_name: x.js_name, + arguments: x.arguments, + ret_ty: x.ret_ty, + catch: x.catch, + variadic: x.variadic, + unstable: false, }); } } fn append_const( &self, - program: &mut ast::Program, - self_name: &'src str, + consts: &mut Vec, member: &'src weedle::interface::ConstMember<'src>, - unstable_api: bool, + unstable: bool, ) { let idl_type = member.const_type.to_idl_type(self); - let ty = match idl_type.to_syn_type(TypePosition::Return) { - Some(ty) => ty, - None => { - log::warn!( - "Cannot convert const type to syn type: {:?} in {:?} on {:?}", - idl_type, - member, - self_name - ); - return; - } - }; + let ty = idl_type.to_syn_type(TypePosition::Return).unwrap().unwrap(); - program.consts.push(ast::Const { - vis: public(), - name: rust_ident(shouty_snake_case_ident(member.identifier.0).as_str()), - class: Some(rust_ident(camel_case_ident(&self_name).as_str())), + let js_name = member.identifier.0; + let name = rust_ident(shouty_snake_case_ident(js_name).as_str()); + let value = webidl_const_v_to_backend_const_v(&member.const_value); + + consts.push(InterfaceConst { + name, + js_name: js_name.to_string(), ty, - value: webidl_const_v_to_backend_const_v(&member.const_value), - unstable_api, + value, + unstable, }); } fn append_interface( &self, - program: &mut ast::Program, - name: &'src str, + options: &Options, + program: &mut Program, + name: Ident, + js_name: String, data: &InterfaceData<'src>, ) { - let mut doc_comment = Some(format!("The `{}` object\n\n{}", name, mdn_doc(name, None),)); + let unstable = data.stability.is_unstable(); + let has_interface = data.has_interface; - let interface_unstable = data.stability.is_unstable(); + let deprecated = data.deprecated.clone(); - let mut attrs = Vec::new(); - attrs.push(syn::parse_quote!( #[derive(Debug, Clone, PartialEq, Eq)] )); - self.add_deprecated(data, &mut attrs); - let mut import_type = ast::ImportType { - vis: public(), - rust_name: rust_ident(camel_case_ident(name).as_str()), - js_name: name.to_string(), - attrs, - unstable_api: interface_unstable, - doc_comment: None, - instanceof_shim: format!("__widl_instanceof_{}", name), - is_type_of: if data.has_interface { - None - } else { - Some(syn::parse_quote! { |_| false }) - }, - typescript_name: Some(name.to_string()), - extends: Vec::new(), - vendor_prefixes: Vec::new(), - }; + let parents = self + .all_superclasses(&js_name) + .map(|parent| { + let ident = rust_ident(&camel_case_ident(&parent)); + program.required_features.insert(parent); + ident + }) + .collect::>(); - // whitelist a few names that have known polyfills - match name { - "AudioContext" | "OfflineAudioContext" => { - import_type - .vendor_prefixes - .push(Ident::new("webkit", Span::call_site())); - } - _ => {} - } - let extra = camel_case_ident(name); - let extra = &[&extra[..]]; - self.append_required_features_doc(&import_type, &mut doc_comment, extra); - import_type.extends = self - .all_superclasses(name) - .map(|name| Ident::new(&name, Span::call_site()).into()) - .chain(Some(Ident::new("Object", Span::call_site()).into())) - .collect(); - import_type.doc_comment = doc_comment; + let mut consts = vec![]; + let mut attributes = vec![]; + let mut methods = vec![]; - program.imports.push(ast::Import { - module: ast::ImportModule::None, - js_namespace: None, - kind: ast::ImportKind::Type(import_type), - unstable_api: interface_unstable, - }); - - for (id, op_data) in data.operations.iter() { - self.member_operation(program, name, data, id, op_data); - } for member in data.consts.iter() { - self.append_const(program, name, member, interface_unstable); + self.append_const(&mut consts, member, unstable); } + for member in data.attributes.iter() { - let member_def = member.definition; + let unstable = unstable || member.stability.is_unstable(); + let member = member.definition; self.member_attribute( - program, - name, - data, - member_def.modifier, - member_def.readonly.is_some(), - &member_def.type_, - member_def.identifier.0, - &member_def.attributes, + &mut attributes, + member.modifier, + member.readonly.is_some(), + &member.type_, + member.identifier.0.to_string(), + &member.attributes, data.definition_attributes, - interface_unstable || member.stability.is_unstable(), + unstable, ); } - for mixin_data in self.all_mixins(name) { - for (id, op_data) in mixin_data.operations.iter() { - self.member_operation(program, name, data, id, op_data); - } + for (id, op_data) in data.operations.iter() { + self.member_operation(&mut methods, data, id, op_data); + } + + for mixin_data in self.all_mixins(&js_name) { for member in &mixin_data.consts { - self.append_const(program, name, member, interface_unstable); + self.append_const(&mut consts, member, unstable); } + for member in &mixin_data.attributes { - let member_def = member.definition; + let unstable = unstable || member.stability.is_unstable(); + let member = member.definition; self.member_attribute( - program, - name, - data, - if let Some(s) = member_def.stringifier { + &mut attributes, + if let Some(s) = member.stringifier { Some(weedle::interface::StringifierOrInheritOrStatic::Stringifier(s)) } else { None }, - member_def.readonly.is_some(), - &member_def.type_, - member_def.identifier.0, - &member_def.attributes, + member.readonly.is_some(), + &member.type_, + member.identifier.0.to_string(), + &member.attributes, data.definition_attributes, - interface_unstable || member.stability.is_unstable(), + unstable, ); } + + for (id, op_data) in mixin_data.operations.iter() { + self.member_operation(&mut methods, data, id, op_data); + } } + + Interface { + name, + js_name, + deprecated, + has_interface, + parents, + consts, + attributes, + methods, + unstable, + } + .generate(options) + .to_tokens(&mut program.tokens); } fn member_attribute( &self, - program: &mut ast::Program, - self_name: &'src str, - data: &InterfaceData<'src>, + attributes: &mut Vec, modifier: Option, readonly: bool, type_: &'src weedle::types::AttributedType<'src>, - identifier: &'src str, + js_name: String, attrs: &'src Option>, container_attrs: Option<&'src ExtendedAttributeList<'src>>, - unstable_api: bool, + unstable: bool, ) { use weedle::interface::StringifierOrInheritOrStatic::*; @@ -709,156 +572,80 @@ impl<'src> FirstPassRecord<'src> { None => false, }; - for mut import_function in self.create_getter( - identifier, - &type_.type_, - self_name, - is_static, - attrs, - container_attrs, - unstable_api, - ) { - let mut doc = import_function.doc_comment.take(); - self.append_required_features_doc(&import_function, &mut doc, &[]); - import_function.doc_comment = doc; - program.imports.push(wrap_import_function(import_function)); + let structural = is_structural(attrs.as_ref(), container_attrs); + + let catch = throws(attrs); + + let ty = type_ + .type_ + .to_idl_type(self) + .to_syn_type(TypePosition::Return) + .unwrap_or(None); + + // Skip types which can't be converted + if let Some(ty) = ty { + let kind = InterfaceAttributeKind::Getter; + attributes.push(InterfaceAttribute { + is_static, + structural, + catch, + ty, + js_name: js_name.clone(), + kind, + unstable, + }); } if !readonly { - for mut import_function in self.create_setter( - identifier, - &type_.type_, - self_name, - is_static, - attrs, - container_attrs, - unstable_api, - ) { - let mut doc = import_function.doc_comment.take(); - self.append_required_features_doc(&import_function, &mut doc, &[]); - import_function.doc_comment = doc; - self.add_deprecated(data, &mut import_function.function.rust_attrs); - program.imports.push(wrap_import_function(import_function)); + let ty = type_ + .type_ + .to_idl_type(self) + .to_syn_type(TypePosition::Argument) + .unwrap_or(None); + + // Skip types which can't be converted + if let Some(ty) = ty { + let kind = InterfaceAttributeKind::Setter; + attributes.push(InterfaceAttribute { + is_static, + structural, + catch, + ty, + js_name, + kind, + unstable, + }); } } } fn member_operation( &self, - program: &mut ast::Program, - self_name: &str, + methods: &mut Vec, data: &InterfaceData<'src>, id: &OperationId<'src>, op_data: &OperationData<'src>, ) { - let import_function_kind = - |opkind| self.import_function_kind(self_name, op_data.is_static, opkind); - let kind = match id { - OperationId::Constructor(ctor_name) => { - let self_ty = ident_ty(rust_ident(&camel_case_ident(self_name))); - ast::ImportFunctionKind::Method { - class: ctor_name.0.to_string(), - ty: self_ty.clone(), - kind: ast::MethodKind::Constructor, - } - } - OperationId::Operation(_) => import_function_kind(ast::OperationKind::Regular), - OperationId::IndexingGetter => import_function_kind(ast::OperationKind::IndexingGetter), - OperationId::IndexingSetter => import_function_kind(ast::OperationKind::IndexingSetter), - OperationId::IndexingDeleter => { - import_function_kind(ast::OperationKind::IndexingDeleter) - } - }; - let doc = match id { - OperationId::Operation(None) => Some(String::new()), - OperationId::Constructor(_) => Some(format!( - "The `new {}(..)` constructor, creating a new \ - instance of `{0}`\n\n{}", - self_name, - mdn_doc(self_name, Some(self_name)) - )), - OperationId::Operation(Some(name)) => Some(format!( - "The `{}()` method\n\n{}", - name, - mdn_doc(self_name, Some(name)) - )), - OperationId::IndexingGetter => Some(format!("The indexing getter\n\n")), - OperationId::IndexingSetter => Some(format!("The indexing setter\n\n")), - OperationId::IndexingDeleter => Some(format!("The indexing deleter\n\n")), - }; let attrs = data.definition_attributes; - for mut method in - self.create_imports(attrs, kind, id, op_data, data.stability.is_unstable()) - { - let mut doc = doc.clone(); - self.append_required_features_doc(&method, &mut doc, &[]); - method.doc_comment = doc; - self.add_deprecated(data, &mut method.function.rust_attrs); - program.imports.push(wrap_import_function(method)); - } - } + let unstable = data.stability.is_unstable(); - fn add_deprecated(&self, data: &InterfaceData<'src>, dst: &mut Vec) { - let msg = match &data.deprecated { - Some(s) => s, - None => return, - }; - dst.push(syn::parse_quote!( #[deprecated(note = #msg)] )); - } - - fn append_required_features_doc( - &self, - item: impl ImportedTypeReferences, - doc: &mut Option, - extra: &[&str], - ) { - let doc = match doc { - Some(doc) => doc, - None => return, - }; - let mut required = extra - .iter() - .map(|s| Ident::new(s, Span::call_site())) - .collect::>(); - item.imported_type_references(&mut |f| { - if !self.builtin_idents.contains(f) { - required.insert(f.clone()); - } - }); - if required.len() == 0 { - return; + for method in self.create_imports(attrs, id, op_data, unstable) { + methods.push(method); } - if let Some(extra) = self.required_doc_string(required) { - doc.push_str(&extra); - } - } - - fn required_doc_string( - &self, - features: impl IntoIterator, - ) -> Option { - let features = features.into_iter().collect::>(); - if features.len() == 0 { - return None; - } - let list = features - .iter() - .map(|ident| format!("`{}`", ident)) - .collect::>() - .join(", "); - Some(format!( - "\n\n*This API requires the following crate features \ - to be activated: {}*", - list, - )) } fn append_callback_interface( &self, - program: &mut ast::Program, + options: &Options, + program: &mut Program, + name: Ident, + js_name: String, item: &CallbackInterfaceData<'src>, ) { + assert_eq!(js_name, item.definition.identifier.0); + let mut fields = Vec::new(); + for member in item.definition.members.body.iter() { match member { InterfaceMember::Operation(op) => { @@ -867,13 +654,16 @@ impl<'src> FirstPassRecord<'src> { None => continue, }; let pos = TypePosition::Argument; - fields.push(ast::DictionaryField { + + fields.push(DictionaryField { required: false, - rust_name: rust_ident(&snake_case_ident(identifier)), + name: rust_ident(&snake_case_ident(identifier)), js_name: identifier.to_string(), - ty: idl_type::IdlType::Callback.to_syn_type(pos).unwrap(), - doc_comment: None, - }); + ty: idl_type::IdlType::Callback + .to_syn_type(pos) + .unwrap() + .unwrap(), + }) } _ => { log::warn!( @@ -884,13 +674,139 @@ impl<'src> FirstPassRecord<'src> { } } - program.dictionaries.push(ast::Dictionary { - name: rust_ident(&camel_case_ident(item.definition.identifier.0)), + Dictionary { + name, + js_name, fields, - ctor: true, - doc_comment: None, - ctor_doc_comment: None, - unstable_api: false, - }); + unstable: false, + } + .generate(options) + .to_tokens(&mut program.tokens); + } +} + +/// Generates Rust source code with #[wasm_bindgen] annotations. +/// +/// * Reads WebIDL files in `from` +/// * Generates Rust source code in the directory `to` +/// * `options.features` indicates whether everything is gated by features or +/// not +/// +/// If features are enabled, returns a string that should be appended to +/// `Cargo.toml` which lists all the known features. +pub fn generate(from: &Path, to: &Path, options: Options) -> Result { + let generate_features = options.features; + + let source = read_source_from_path(&from.join("enabled"))?; + let unstable_source = read_source_from_path(&from.join("unstable"))?; + + let features = parse_webidl(generate_features, source, unstable_source)?; + + if to.exists() { + fs::remove_dir_all(&to).context("Removing features directory")?; + } + + fs::create_dir_all(&to).context("Creating features directory")?; + + for (name, feature) in features.iter() { + let out_file_path = to.join(format!("gen_{}.rs", name)); + + fs::write(&out_file_path, &feature.code)?; + + rustfmt(&out_file_path, name)?; + } + + let binding_file = features.keys().map(|name| { + if generate_features { + format!("#[cfg(feature = \"{name}\")] #[allow(non_snake_case)] mod gen_{name};\n#[cfg(feature = \"{name}\")] pub use gen_{name}::*;", name = name) + } else { + format!("#[allow(non_snake_case)] mod gen_{name};\npub use gen_{name}::*;", name = name) + } + }).collect::>().join("\n\n"); + + fs::write(to.join("mod.rs"), binding_file)?; + + rustfmt(&to.join("mod.rs"), "mod")?; + + return if generate_features { + let features = features + .iter() + .map(|(name, feature)| { + let features = feature + .required_features + .iter() + .map(|x| format!("\"{}\"", x)) + .collect::>() + .join(", "); + format!("{} = [{}]", name, features) + }) + .collect::>() + .join("\n"); + Ok(features) + } else { + Ok(String::new()) + }; + + /// Read all WebIDL files in a directory into a single `SourceFile` + fn read_source_from_path(dir: &Path) -> Result { + let entries = fs::read_dir(dir).context("reading webidls directory")?; + let mut source = SourceFile::default(); + for entry in entries { + let entry = entry.context(format!("getting {}/*.webidl entry", dir.display()))?; + let path = entry.path(); + if path.extension() != Some(OsStr::new("webidl")) { + continue; + } + source = source + .add_file(&path) + .with_context(|| format!("reading contents of file \"{}\"", path.display()))?; + } + + Ok(source) + } + + fn rustfmt(path: &PathBuf, name: &str) -> Result<()> { + // run rustfmt on the generated file - really handy for debugging + let result = Command::new("rustfmt") + .arg("--edition") + .arg("2018") + .arg(&path) + .status() + .context(format!("rustfmt on file {}", name))?; + + assert!(result.success(), "rustfmt on file {}", name); + + Ok(()) + } + + fn parse_webidl( + generate_features: bool, + enabled: SourceFile, + unstable: SourceFile, + ) -> Result> { + let options = Options { + features: generate_features, + }; + + match compile(&enabled.contents, &unstable.contents, options) { + Ok(features) => Ok(features), + Err(e) => { + if let Some(err) = e.downcast_ref::() { + if let Some(pos) = enabled.resolve_offset(err.0) { + let ctx = format!( + "compiling WebIDL into wasm-bindgen bindings in file \ + \"{}\", line {} column {}", + pos.filename, + pos.line + 1, + pos.col + 1 + ); + return Err(e.context(ctx)); + } else { + return Err(e.context("compiling WebIDL into wasm-bindgen bindings")); + } + } + return Err(e.context("compiling WebIDL into wasm-bindgen bindings")); + } + } } } diff --git a/crates/webidl/src/main.rs b/crates/webidl/src/main.rs new file mode 100644 index 00000000..b5c13e56 --- /dev/null +++ b/crates/webidl/src/main.rs @@ -0,0 +1,41 @@ +use anyhow::{Context, Result}; +use std::fs; +use std::path::PathBuf; +use structopt::StructOpt; + +#[derive(StructOpt, Debug)] +#[structopt( + name = "wasm-bindgen-webidl", + about = "Converts WebIDL into wasm-bindgen compatible code." +)] +struct Opt { + #[structopt(parse(from_os_str))] + input_dir: PathBuf, + + #[structopt(parse(from_os_str))] + output_dir: PathBuf, + + #[structopt(long)] + no_features: bool, +} + +fn main() -> Result<()> { + env_logger::init(); + + let opt = Opt::from_args(); + + let features = !opt.no_features; + + let generated_features = wasm_bindgen_webidl::generate( + &opt.input_dir, + &opt.output_dir, + wasm_bindgen_webidl::Options { features }, + )?; + + if features { + fs::write(&"features", generated_features) + .context("writing features to current directory")?; + } + + Ok(()) +} diff --git a/crates/webidl/src/traverse.rs b/crates/webidl/src/traverse.rs new file mode 100644 index 00000000..107b1165 --- /dev/null +++ b/crates/webidl/src/traverse.rs @@ -0,0 +1,203 @@ +use syn::{Ident, Type}; + +pub trait TraverseType { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident); +} + +impl TraverseType for Type { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident), + { + match self { + Type::Array(x) => x.traverse_type(f), + Type::BareFn(x) => x.traverse_type(f), + Type::Group(x) => x.traverse_type(f), + Type::Paren(x) => x.traverse_type(f), + Type::Path(x) => x.traverse_type(f), + Type::Ptr(x) => x.traverse_type(f), + Type::Reference(x) => x.traverse_type(f), + Type::Slice(x) => x.traverse_type(f), + Type::Tuple(x) => x.traverse_type(f), + _ => {} + } + } +} + +impl TraverseType for syn::TypeArray { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident), + { + self.elem.traverse_type(f); + } +} + +impl TraverseType for syn::TypeBareFn { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident), + { + for input in self.inputs.iter() { + input.ty.traverse_type(f); + } + + self.output.traverse_type(f); + } +} + +impl TraverseType for syn::ReturnType { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident), + { + match self { + Self::Default => {} + Self::Type(_, ty) => { + ty.traverse_type(f); + } + } + } +} + +impl TraverseType for syn::TypeGroup { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident), + { + self.elem.traverse_type(f); + } +} + +impl TraverseType for syn::TypeParen { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident), + { + self.elem.traverse_type(f); + } +} + +impl TraverseType for syn::TypePath { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident), + { + if let Some(qself) = self.qself.as_ref() { + qself.traverse_type(f); + } + + if let Some(last) = self.path.segments.last() { + f(&last.ident); + last.arguments.traverse_type(f); + } + } +} + +impl TraverseType for syn::QSelf { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident), + { + self.ty.traverse_type(f); + } +} + +impl TraverseType for syn::PathArguments { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident), + { + match self { + Self::None => {} + Self::AngleBracketed(x) => x.traverse_type(f), + Self::Parenthesized(x) => x.traverse_type(f), + } + } +} + +impl TraverseType for syn::AngleBracketedGenericArguments { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident), + { + for ty in self.args.iter() { + ty.traverse_type(f); + } + } +} + +impl TraverseType for syn::GenericArgument { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident), + { + match self { + Self::Type(x) => x.traverse_type(f), + Self::Binding(x) => x.traverse_type(f), + _ => {} + } + } +} + +impl TraverseType for syn::Binding { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident), + { + self.ty.traverse_type(f); + } +} + +impl TraverseType for syn::ParenthesizedGenericArguments { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident), + { + for ty in self.inputs.iter() { + ty.traverse_type(f); + } + + self.output.traverse_type(f); + } +} + +impl TraverseType for syn::TypePtr { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident), + { + self.elem.traverse_type(f); + } +} + +impl TraverseType for syn::TypeReference { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident), + { + self.elem.traverse_type(f); + } +} + +impl TraverseType for syn::TypeTuple { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident), + { + for ty in self.elems.iter() { + ty.traverse_type(f); + } + } +} + +impl TraverseType for syn::TypeSlice { + fn traverse_type(&self, f: &mut F) + where + F: FnMut(&Ident), + { + self.elem.traverse_type(f); + } +} diff --git a/crates/webidl/src/util.rs b/crates/webidl/src/util.rs index b567b178..431479f2 100644 --- a/crates/webidl/src/util.rs +++ b/crates/webidl/src/util.rs @@ -1,17 +1,21 @@ +use std::collections::BTreeSet; use std::iter::FromIterator; use std::ptr; use heck::{CamelCase, ShoutySnakeCase, SnakeCase}; -use proc_macro2::{Ident, Span}; +use proc_macro2::{Ident, TokenStream}; +use quote::quote; use syn; -use wasm_bindgen_backend::ast; -use wasm_bindgen_backend::util::{ident_ty, leading_colon_path_ty, raw_ident, rust_ident}; +use wasm_bindgen_backend::util::{ident_ty, raw_ident, rust_ident}; use weedle; use weedle::attribute::{ExtendedAttribute, ExtendedAttributeList, IdentifierOrString}; use weedle::literal::{ConstValue, FloatLit, IntegerLit}; +use crate::constants::IMMUTABLE_SLICE_WHITELIST; use crate::first_pass::{FirstPassRecord, OperationData, OperationId, Signature}; +use crate::generator::{InterfaceConstValue, InterfaceMethod, InterfaceMethodKind}; use crate::idl_type::{IdlType, ToIdlType}; +use crate::Options; /// For variadic operations an overload with a `js_sys::Array` argument is generated alongside with /// `operation_name_0`, `operation_name_1`, `operation_name_2`, ..., `operation_name_n` overloads @@ -81,16 +85,18 @@ pub(crate) fn array(base_ty: &str, pos: TypePosition, immutable: bool) -> syn::T } /// Map a webidl const value to the correct wasm-bindgen const value -pub fn webidl_const_v_to_backend_const_v(v: &ConstValue) -> ast::ConstValue { +pub fn webidl_const_v_to_backend_const_v(v: &ConstValue) -> InterfaceConstValue { use std::f64::{INFINITY, NAN, NEG_INFINITY}; match *v { - ConstValue::Boolean(b) => ast::ConstValue::BooleanLiteral(b.0), - ConstValue::Float(FloatLit::NegInfinity(_)) => ast::ConstValue::FloatLiteral(NEG_INFINITY), - ConstValue::Float(FloatLit::Infinity(_)) => ast::ConstValue::FloatLiteral(INFINITY), - ConstValue::Float(FloatLit::NaN(_)) => ast::ConstValue::FloatLiteral(NAN), + ConstValue::Boolean(b) => InterfaceConstValue::BooleanLiteral(b.0), + ConstValue::Float(FloatLit::NegInfinity(_)) => { + InterfaceConstValue::FloatLiteral(NEG_INFINITY) + } + ConstValue::Float(FloatLit::Infinity(_)) => InterfaceConstValue::FloatLiteral(INFINITY), + ConstValue::Float(FloatLit::NaN(_)) => InterfaceConstValue::FloatLiteral(NAN), ConstValue::Float(FloatLit::Value(s)) => { - ast::ConstValue::FloatLiteral(s.0.parse().unwrap()) + InterfaceConstValue::FloatLiteral(s.0.parse().unwrap()) } ConstValue::Integer(lit) => { let mklit = |orig_text: &str, base: u32, offset: usize| { @@ -100,7 +106,7 @@ pub fn webidl_const_v_to_backend_const_v(v: &ConstValue) -> ast::ConstValue { (false, orig_text) }; if text == "0" { - return ast::ConstValue::SignedIntegerLiteral(0); + return InterfaceConstValue::SignedIntegerLiteral(0); } let text = &text[offset..]; let n = u64::from_str_radix(text, base) @@ -111,9 +117,9 @@ pub fn webidl_const_v_to_backend_const_v(v: &ConstValue) -> ast::ConstValue { } else { n.wrapping_neg() as i64 }; - ast::ConstValue::SignedIntegerLiteral(n) + InterfaceConstValue::SignedIntegerLiteral(n) } else { - ast::ConstValue::UnsignedIntegerLiteral(n) + InterfaceConstValue::UnsignedIntegerLiteral(n) } }; match lit { @@ -122,55 +128,10 @@ pub fn webidl_const_v_to_backend_const_v(v: &ConstValue) -> ast::ConstValue { IntegerLit::Dec(h) => mklit(h.0, 10, 0), } } - ConstValue::Null(_) => ast::ConstValue::Null, + ConstValue::Null(_) => unimplemented!(), } } -/// From `ident` and `Ty`, create `ident: Ty` for use in e.g. `fn(ident: Ty)`. -fn simple_fn_arg(ident: Ident, ty: syn::Type) -> syn::PatType { - syn::PatType { - pat: Box::new(syn::Pat::Ident(syn::PatIdent { - attrs: Vec::new(), - by_ref: None, - ident, - mutability: None, - subpat: None, - })), - colon_token: Default::default(), - ty: Box::new(ty), - attrs: Vec::new(), - } -} - -/// Create `()`. -fn unit_ty() -> syn::Type { - syn::Type::Tuple(syn::TypeTuple { - paren_token: Default::default(), - elems: syn::punctuated::Punctuated::new(), - }) -} - -/// From `T` create `Result`. -fn result_ty(t: syn::Type) -> syn::Type { - let js_value = leading_colon_path_ty(vec![rust_ident("wasm_bindgen"), rust_ident("JsValue")]); - - let arguments = syn::PathArguments::AngleBracketed(syn::AngleBracketedGenericArguments { - colon2_token: None, - lt_token: Default::default(), - args: FromIterator::from_iter(vec![ - syn::GenericArgument::Type(t), - syn::GenericArgument::Type(js_value), - ]), - gt_token: Default::default(), - }); - - let ident = raw_ident("Result"); - let seg = syn::PathSegment { ident, arguments }; - let path: syn::Path = seg.into(); - let ty = syn::TypePath { qself: None, path }; - ty.into() -} - /// From `T` create `[T]`. pub(crate) fn slice_ty(t: syn::Type) -> syn::Type { syn::TypeSlice { @@ -220,208 +181,15 @@ pub enum TypePosition { } impl<'src> FirstPassRecord<'src> { - pub fn create_one_function<'a>( - &self, - js_name: &str, - rust_name: &str, - idl_arguments: impl Iterator)>, - ret: &IdlType<'src>, - kind: ast::ImportFunctionKind, - structural: bool, - catch: bool, - variadic: bool, - doc_comment: Option, - unstable_api: bool, - ) -> Option - where - 'src: 'a, - { - // Convert all of the arguments from their IDL type to a `syn` type, - // ready to pass to the backend. - // - // Note that for non-static methods we add a `&self` type placeholder, - // but this type isn't actually used so it's just here for show mostly. - let mut arguments = if let &ast::ImportFunctionKind::Method { - ref ty, - kind: - ast::MethodKind::Operation(ast::Operation { - is_static: false, .. - }), - .. - } = &kind - { - let mut res = Vec::with_capacity(idl_arguments.size_hint().0 + 1); - res.push(simple_fn_arg( - raw_ident("self_"), - shared_ref(ty.clone(), false), - )); - res - } else { - Vec::with_capacity(idl_arguments.size_hint().0) - }; - let idl_arguments: Vec<_> = idl_arguments.collect(); - let arguments_count = idl_arguments.len(); - for (i, (argument_name, idl_type)) in idl_arguments.into_iter().enumerate() { - let syn_type = match idl_type.to_syn_type(TypePosition::Argument) { - Some(t) => t, - None => { - log::warn!( - "Unsupported argument type: {:?} on {:?}", - idl_type, - rust_name - ); - return None; - } - }; - let syn_type = if variadic && i == arguments_count - 1 { - let path = vec![rust_ident("js_sys"), rust_ident("Array")]; - shared_ref(leading_colon_path_ty(path), false) - } else { - syn_type - }; - let argument_name = rust_ident(&argument_name.to_snake_case()); - arguments.push(simple_fn_arg(argument_name, syn_type)); - } - - // Convert the return type to a `syn` type, handling the `catch` - // attribute here to use a `Result` in Rust. - let ret = match ret { - IdlType::Void => None, - ret @ _ => match ret.to_syn_type(TypePosition::Return) { - Some(ret) => Some(ret), - None => { - log::warn!("Unsupported return type: {:?} on {:?}", ret, rust_name); - return None; - } - }, - }; - let js_ret = ret.clone(); - let ret = if catch { - Some(ret.map_or_else(|| result_ty(unit_ty()), result_ty)) - } else { - ret - }; - - Some(ast::ImportFunction { - function: ast::Function { - name: js_name.to_string(), - name_span: Span::call_site(), - renamed_via_js_name: false, - arguments, - ret: ret.clone(), - rust_attrs: vec![], - rust_vis: public(), - r#async: false, - }, - rust_name: rust_ident(rust_name), - js_ret: js_ret.clone(), - variadic, - catch, - structural, - assert_no_shim: false, - shim: { - let ns = match kind { - ast::ImportFunctionKind::Normal => "", - ast::ImportFunctionKind::Method { ref class, .. } => class, - }; - raw_ident(&format!("__widl_f_{}_{}", rust_name, ns)) - }, - kind, - doc_comment, - unstable_api, - }) - } - - /// Create a wasm-bindgen getter method, if possible. - pub fn create_getter( - &self, - name: &str, - ty: &weedle::types::Type<'src>, - self_name: &str, - is_static: bool, - attrs: &Option, - container_attrs: Option<&ExtendedAttributeList>, - unstable_api: bool, - ) -> Option { - let kind = ast::OperationKind::Getter(Some(raw_ident(name))); - let kind = self.import_function_kind(self_name, is_static, kind); - let ret = ty.to_idl_type(self); - self.create_one_function( - &name, - &snake_case_ident(name), - None.into_iter(), - &ret, - kind, - is_structural(attrs.as_ref(), container_attrs), - throws(attrs), - false, - Some(format!( - "The `{}` getter\n\n{}", - name, - mdn_doc(self_name, Some(name)) - )), - unstable_api, - ) - } - - /// Create a wasm-bindgen setter method, if possible. - pub fn create_setter( - &self, - name: &str, - field_ty: &weedle::types::Type<'src>, - self_name: &str, - is_static: bool, - attrs: &Option, - container_attrs: Option<&ExtendedAttributeList>, - unstable_api: bool, - ) -> Option { - let kind = ast::OperationKind::Setter(Some(raw_ident(name))); - let kind = self.import_function_kind(self_name, is_static, kind); - let field_ty = field_ty.to_idl_type(self); - self.create_one_function( - &name, - &format!("set_{}", name).to_snake_case(), - Some((name, &field_ty)).into_iter(), - &IdlType::Void, - kind, - is_structural(attrs.as_ref(), container_attrs), - throws(attrs), - false, - Some(format!( - "The `{}` setter\n\n{}", - name, - mdn_doc(self_name, Some(name)) - )), - unstable_api, - ) - } - - pub fn import_function_kind( - &self, - self_name: &str, - is_static: bool, - operation_kind: ast::OperationKind, - ) -> ast::ImportFunctionKind { - let operation = ast::Operation { - is_static, - kind: operation_kind, - }; - let ty = ident_ty(rust_ident(camel_case_ident(&self_name).as_str())); - ast::ImportFunctionKind::Method { - class: self_name.to_string(), - ty, - kind: ast::MethodKind::Operation(operation), - } - } - pub fn create_imports( &self, container_attrs: Option<&ExtendedAttributeList<'src>>, - kind: ast::ImportFunctionKind, id: &OperationId<'src>, data: &OperationData<'src>, - unstable_api: bool, - ) -> Vec { + unstable: bool, + ) -> Vec { + let is_static = data.is_static; + // First up, prune all signatures that reference unsupported arguments. // We won't consider these until said arguments are implemented. // @@ -499,7 +267,7 @@ impl<'src> FirstPassRecord<'src> { } } - let (name, force_structural, force_throws) = match id { + let (name, kind, force_structural, force_throws) = match id { // Constructors aren't annotated with `[Throws]` extended attributes // (how could they be, since they themselves are extended // attributes?) so we must conservatively assume that they can @@ -512,15 +280,29 @@ impl<'src> FirstPassRecord<'src> { // > value of a type corresponding to the interface the // > `[Constructor]` extended attribute appears on, **or throw an // > exception**. - OperationId::Constructor(_) => ("new", false, true), - OperationId::Operation(Some(s)) => (*s, false, false), + OperationId::Constructor => { + ("new", InterfaceMethodKind::Constructor(None), false, true) + } + OperationId::NamedConstructor(n) => ( + "new", + InterfaceMethodKind::Constructor(Some(n.0.to_string())), + false, + true, + ), + OperationId::Operation(Some(s)) => (*s, InterfaceMethodKind::Regular, false, false), OperationId::Operation(None) => { log::warn!("unsupported unnamed operation"); return Vec::new(); } - OperationId::IndexingGetter => ("get", true, false), - OperationId::IndexingSetter => ("set", true, false), - OperationId::IndexingDeleter => ("delete", true, false), + OperationId::IndexingGetter => { + ("get", InterfaceMethodKind::IndexingGetter, true, false) + } + OperationId::IndexingSetter => { + ("set", InterfaceMethodKind::IndexingSetter, true, false) + } + OperationId::IndexingDeleter => { + ("delete", InterfaceMethodKind::IndexingDeleter, true, false) + } }; let mut ret = Vec::new(); @@ -610,51 +392,81 @@ impl<'src> FirstPassRecord<'src> { .last() .map(|arg| arg.variadic) .unwrap_or(false); - ret.extend( - self.create_one_function( - name, - &rust_name, - signature - .args - .iter() - .zip(&signature.orig.args) - .map(|(idl_type, orig_arg)| (orig_arg.name, idl_type)), - &ret_ty, - kind.clone(), - structural, - catch, - variadic, - None, - unstable_api, - ), + + fn idl_arguments<'a>( + args: impl Iterator)>, + ) -> Option> { + let mut output = vec![]; + + for (name, idl_type) in args { + let ty = match idl_type.to_syn_type(TypePosition::Argument) { + Ok(ty) => ty.unwrap(), + Err(_) => { + return None; + } + }; + + output.push((rust_ident(&snake_case_ident(&name[..])), ty)); + } + + Some(output) + } + + let arguments = idl_arguments( + signature + .args + .iter() + .zip(&signature.orig.args) + .map(|(idl_type, orig_arg)| (orig_arg.name.to_string(), idl_type)), ); + + if let Some(arguments) = arguments { + if let Ok(ret_ty) = ret_ty.to_syn_type(TypePosition::Return) { + ret.push(InterfaceMethod { + name: rust_ident(&rust_name), + js_name: name.to_string(), + arguments, + ret_ty, + kind: kind.clone(), + is_static, + structural, + catch, + variadic, + unstable, + }); + } + } + if !variadic { continue; } let last_idl_type = &signature.args[signature.args.len() - 1]; let last_name = signature.orig.args[signature.args.len() - 1].name; for i in 0..=MAX_VARIADIC_ARGUMENTS_COUNT { - ret.extend( - self.create_one_function( - name, - &format!("{}_{}", rust_name, i), - signature.args[..signature.args.len() - 1] - .iter() - .zip(&signature.orig.args) - .map(|(idl_type, orig_arg)| (orig_arg.name.to_string(), idl_type)) - .chain((1..=i).map(|j| (format!("{}_{}", last_name, j), last_idl_type))) - .collect::>() - .iter() - .map(|(name, idl_type)| (&name[..], idl_type.clone())), - &ret_ty, - kind.clone(), - structural, - catch, - false, - None, - unstable_api, - ), + let arguments = idl_arguments( + signature.args[..signature.args.len() - 1] + .iter() + .zip(&signature.orig.args) + .map(|(idl_type, orig_arg)| (orig_arg.name.to_string(), idl_type)) + .chain((1..=i).map(|j| (format!("{}_{}", last_name, j), last_idl_type))), ); + + if let Some(arguments) = arguments { + if let Ok(ret_ty) = ret_ty.to_syn_type(TypePosition::Return) { + ret.push(InterfaceMethod { + name: rust_ident(&format!("{}_{}", rust_name, i)), + js_name: name.to_string(), + arguments, + kind: kind.clone(), + ret_ty, + is_static, + structural, + catch, + variadic: false, + unstable, + }); + } + } } } return ret; @@ -676,7 +488,7 @@ impl<'src> FirstPassRecord<'src> { _ => return idl_type, }; - if self.immutable_slice_whitelist.contains(op) { + if IMMUTABLE_SLICE_WHITELIST.contains(op) { flag_slices_immutable(&mut idl_type) } @@ -755,13 +567,6 @@ pub fn throws(attrs: &Option) -> bool { has_named_attribute(attrs.as_ref(), "Throws") } -/// Create a syn `pub` token -pub fn public() -> syn::Visibility { - syn::Visibility::Public(syn::VisPublic { - pub_token: Default::default(), - }) -} - fn flag_slices_immutable(ty: &mut IdlType) { match ty { IdlType::Int8Array { immutable } @@ -792,3 +597,39 @@ fn flag_slices_immutable(ty: &mut IdlType) { _ => {} } } + +pub fn required_doc_string(options: &Options, features: &BTreeSet) -> Option { + if !options.features || features.len() == 0 { + return None; + } + let list = features + .iter() + .map(|ident| format!("`{}`", ident)) + .collect::>() + .join(", "); + Some(format!( + "\n\n*This API requires the following crate features \ + to be activated: {}*", + list, + )) +} + +pub fn get_cfg_features(options: &Options, features: &BTreeSet) -> Option { + let len = features.len(); + + if !options.features || len == 0 { + None + } else { + let features = features + .into_iter() + .map(|feature| quote!( feature = #feature, )) + .collect::(); + + // This is technically unneeded but it generates more idiomatic code + if len == 1 { + Some(syn::parse_quote!( #[cfg(#features)] )) + } else { + Some(syn::parse_quote!( #[cfg(all(#features))] )) + } + } +} diff --git a/guide/src/reference/attributes/on-js-imports/typescript_type.md b/guide/src/reference/attributes/on-js-imports/typescript_type.md new file mode 100644 index 00000000..bedc9b38 --- /dev/null +++ b/guide/src/reference/attributes/on-js-imports/typescript_type.md @@ -0,0 +1,15 @@ +# `typescript_type = "Blah"` + +The `typescript_type` attribute is used to specify the TypeScript type for an +imported type. This type will be used in the generated `.d.ts`. + +Right now only identifiers are supported, but eventually we'd like to support +all TypeScript types. + +```rust +#[wasm_bindgen] +extern "C" { + #[wasm_bindgen(typescript_type = "Foo")] + type Foo; +} +``` diff --git a/rustfmt.toml b/rustfmt.toml deleted file mode 100644 index b6f799d6..00000000 --- a/rustfmt.toml +++ /dev/null @@ -1 +0,0 @@ -tab_spaces = 4 diff --git a/tests/wasm/api.js b/tests/wasm/api.js index be59f28d..59daca20 100644 --- a/tests/wasm/api.js +++ b/tests/wasm/api.js @@ -57,7 +57,7 @@ exports.debug_values = () => ([ ]); exports.assert_function_table = (x, i) => { - const rawWasm = require('wasm-bindgen-test_bg.js'); + const rawWasm = require('wasm-bindgen-test.js').__wasm; assert.ok(x instanceof WebAssembly.Table); assert.strictEqual(x.get(i), rawWasm.function_table_lookup); }; diff --git a/tests/wasm/simple.js b/tests/wasm/simple.js index 5ba8b0e5..cf53525e 100644 --- a/tests/wasm/simple.js +++ b/tests/wasm/simple.js @@ -31,7 +31,7 @@ exports.test_wrong_types = function() { }; exports.test_other_exports_still_available = function() { - require('wasm-bindgen-test_bg').foo(3); + require('wasm-bindgen-test').__wasm.foo(3); }; exports.test_jsvalue_typeof = function() {